/* ============================================
   DESKTOP HEADER CSS (> 849px)
   ============================================ */

/* Desktop Menu Navigation */
.hide-for-medium .header-nav-main.nav-left {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    /* Canh trái */
    gap: 0 !important;
    /* Không có gap, dùng padding của items */
    flex-wrap: nowrap !important;
}

.hide-for-medium .header-nav-main.nav-left>li {
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

.hide-for-medium .header-nav-main.nav-left>li>a {
    padding: 0 15px !important;
    /* Khoảng cách giữa menu items */
    white-space: nowrap !important;
}

/* Desktop Right Navigation (Search + Button) */
.hide-for-medium .header-nav-main.nav-right {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 15px !important;
    flex-wrap: nowrap !important;
}

.hide-for-medium .header-nav-main.nav-right>li {
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

/* Desktop Search Form */
.hide-for-medium .header-search-form {
    flex-shrink: 0 !important;
    position: relative !important;
}

/* Search Input Styling */
.hide-for-medium .header-search-form input[type="search"],
.hide-for-medium .header-search-form .search-field {
    height: 40px !important;
    min-width: 200px !important;
    padding: 8px 45px 8px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    background: #fff !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
}

.hide-for-medium .header-search-form input[type="search"]:focus,
.hide-for-medium .header-search-form .search-field:focus {
    border-color: #004A99 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 74, 153, 0.1) !important;
}

.hide-for-medium .header-search-form input[type="search"]::placeholder,
.hide-for-medium .header-search-form .search-field::placeholder {
    color: #999 !important;
    font-size: 13px !important;
}

/* Search Submit Button */
.hide-for-medium .header-search-form button[type="submit"],
.hide-for-medium .header-search-form .submit-button {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    height: 40px !important;
    width: 40px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    color: #004A99 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.hide-for-medium .header-search-form button[type="submit"]:hover,
.hide-for-medium .header-search-form .submit-button:hover {
    color: #003366 !important;
    background: rgba(0, 74, 153, 0.05) !important;
}

.hide-for-medium .header-search-form button[type="submit"] i,
.hide-for-medium .header-search-form .submit-button i {
    font-size: 16px !important;
}

/* Desktop Button (NHẬN TƯ VẤN) */
.hide-for-medium .header-button-2 {
    flex-shrink: 0 !important;
}

.hide-for-medium .header-button-2 .button {
    white-space: nowrap !important;
    background: #E30613 !important;
    color: #fff !important;
    border: 2px solid #E30613 !important;
    border-radius: 4px !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.hide-for-medium .header-button-2 .button:hover {
    background: #fff !important;
    color: #E30613 !important;
    border-color: #E30613 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.25) !important;
}

.hide-for-medium .header-button-2 .button:active {
    transform: translateY(0) !important;
}

/* Logo Alignment */
#logo {
    display: flex !important;
    align-items: center !important;
}

#logo img {
    max-height: 60px !important;
    width: auto !important;
}

/* Desktop Header Layout */
@media (min-width: 850px) {
    .header-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .flex-left.flex-grow {
        flex-grow: 0 !important;
        /* Không cho menu dãn ra */
        flex-shrink: 0 !important;
        margin-left: 20px !important;
        /* Khoảng cách từ logo */
    }

    .flex-right {
        flex-shrink: 0 !important;
        margin-left: auto !important;
        /* Đẩy sang phải */
    }
}