/* =========================================================
   Font Override (Plus Jakarta Sans replaces Jost — Latin Extended support)
   ========================================================= */
:root {
    --font-primary: "Plus Jakarta Sans", sans-serif;
}

/* =========================================================
   Brand Colors (from Samafora logo)
   ========================================================= */
:root {
    --color-blue-1:  #1B6AF5;
    --color-blue-2:  #E8F1FE;
    --color-dark-1:  #05205C;
    --color-dark-2:  #0A2E7A;
    --color-dark-3:  #0F3A9E;
    --color-dark-4:  #1346BE;
    --color-green-2: #00C47C;
    --color-green-1: #D6F7EC;
}

/* =========================================================
   Global Brand Hover Overrides
   ========================================================= */

/* Filled blue button → green on hover */
.button.-blue-1:hover,
.button.bg-blue-1:hover {
    background-color: var(--color-green-2) !important;
    border-color: var(--color-green-2) !important;
    box-shadow: 0 6px 20px rgba(0, 196, 124, 0.30);
    color: #fff !important;
}

/* Outline blue button → green fill on hover (excluding search form counters) */
.button.-outline-blue-1:not(.js-down):not(.js-up):hover {
    background-color: var(--color-green-2) !important;
    border-color: var(--color-green-2) !important;
    color: #fff !important;
}

/* Text links that turn blue → use brand blue */
a.text-blue-1:hover,
.text-blue-1:hover {
    color: var(--color-green-2) !important;
}

/* Input focus border */
.form-input input:focus,
.form-input textarea:focus {
    border-color: var(--color-blue-1) !important;
    outline: none;
}

/* Tabs active underline */
.tabs.-underline .tabs__button.is-tab-el-active {
    border-bottom-color: var(--color-green-2) !important;
    color: var(--color-green-2) !important;
}

/* Checkbox checked state */
.form-checkbox input:checked + .form-checkbox__mark {
    background-color: var(--color-blue-1) !important;
    border-color: var(--color-blue-1) !important;
}

/* Pagination active */
.pagination__item.is-active {
    background-color: var(--color-blue-1) !important;
    border-color: var(--color-blue-1) !important;
}

/* =========================================================
   Navigation
   ========================================================= */
.header .header-menu .menu__nav > li > a {
    position: relative;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: #051036;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: color 0.2s;
}

.header .header-menu .menu__nav > li > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 14px;
    right: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-blue-1);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.header .header-menu .menu__nav > li > a:hover {
    color: var(--color-blue-1);
}

.header .header-menu .menu__nav > li > a:hover::after,
.header .header-menu .menu__nav > li.is-active > a::after {
    transform: scaleX(1);
}

.header .header-menu .menu__nav > li.is-active > a {
    color: var(--color-blue-1);
    font-weight: 600;
}

/* =========================================================
   Header Sign In Button
   ========================================================= */
.header-signin-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 20px;
    height: 42px;
    border-radius: 100px;
    background: linear-gradient(135deg, #2979ff 0%, #1B6AF5 55%, #1457d4 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-decoration: none;
    transition: box-shadow 0.22s, transform 0.15s, background 0.22s;
    box-shadow: 0 4px 16px rgba(27, 106, 245, 0.35), 0 1px 3px rgba(27, 106, 245, 0.18);
    position: relative;
    overflow: hidden;
}

.header-signin-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
    pointer-events: none;
}

.header-signin-btn i {
    font-size: 14px;
    opacity: 0.88;
}

.header-signin-btn:hover {
    background: linear-gradient(135deg, #00d68a 0%, #00C47C 60%, #00a869 100%);
    box-shadow: 0 6px 22px rgba(0, 196, 124, 0.42), 0 1px 4px rgba(0, 196, 124, 0.20);
    transform: translateY(-1px);
    color: #fff;
}

.header-signin-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(27, 106, 245, 0.28);
}

/* =========================================================
   User Menu (logged-in state in header)
   ========================================================= */
.user-menu {
    position: relative;
}

.user-menu .header-signin-btn {
    border: none;
    cursor: pointer;
}

.user-menu__trigger {
    padding: 6px 16px 6px 8px;
}

.user-menu__trigger-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-menu__trigger-name {
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid rgba(5, 32, 92, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(5, 16, 54, 0.14), 0 2px 8px rgba(5, 16, 54, 0.06);
    overflow: hidden;
    z-index: 200;
}

.user-menu.is-open .user-menu__dropdown {
    display: block;
}

/* Header with avatar + name/email */
.user-menu__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 14px;
}

.user-menu__avatar {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2979ff 0%, #1B6AF5 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu__info {
    min-width: 0;
}

.user-menu__name {
    font-size: 13px;
    font-weight: 600;
    color: #051036;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu__email {
    font-size: 11px;
    color: #b0b9ce;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Menu items */
.user-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.user-menu__item i {
    font-size: 14px;
    opacity: 0.7;
}

.user-menu__item:hover {
    background: #f4f6fb;
    color: var(--color-blue-1);
}

.user-menu__item:hover i {
    opacity: 1;
}

.user-menu__item.is-logout {
    color: #9aa3b0;
}

.user-menu__item.is-logout:hover {
    background: #fff5f5;
    color: #e53935;
}

.user-menu__sep {
    height: 1px;
    background: #f0f3f8;
    margin: 2px 0;
}

/* =========================================================
   Hero Search Form
   ========================================================= */
.mainSearch {
    box-shadow: 0 20px 60px rgba(5, 32, 92, 0.18) !important;
}

/* Equal columns for 3-field tour search — desktop only */
@media (min-width: 992px) {
    .mainSearch .button-grid {
        grid-template-columns: 1fr 1fr 1fr auto !important;
    }
}

.searchMenu-loc h4,
.searchMenu-date h4,
.searchMenu-guests h4 {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--color-dark-1) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.searchMenu-loc .text-light-1,
.searchMenu-date .text-light-1,
.searchMenu-guests .text-light-1 {
    font-size: 13px !important;
    color: #9eabbe !important;
}

.searchMenu-loc input.js-search {
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    width: 100%;
    font-size: 13px;
    color: #9eabbe;
}

.searchMenu-loc input.js-search::placeholder {
    color: #9eabbe;
}

/* Search button: brand blue, green on hover */
.mainSearch__submit {
    background: var(--color-blue-1) !important;
    border-color: var(--color-blue-1) !important;
    box-shadow: 0 4px 16px rgba(27, 106, 245, 0.28) !important;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s !important;
}

.mainSearch__submit:hover {
    background: var(--color-green-2) !important;
    border-color: var(--color-green-2) !important;
    box-shadow: 0 6px 20px rgba(0, 196, 124, 0.32) !important;
    transform: translateY(-1px) !important;
    color: #fff !important;
}

/* =========================================================
   Mobile menu footer — sign-in + currency/language
   ========================================================= */

/* Fix: make the nav flex-shrink so footer is visible */
@media (max-width: 1199px) {
    .header .header-menu__content {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .header .header-menu .menu {
        flex: 1;
        height: auto !important;
        overflow-y: auto;
    }

    .header .header-menu .mobile-footer {
        flex-shrink: 0;
    }
}

.mobile-footer .header-signin-btn {
    flex: 1;
    justify-content: center;
    margin-right: 12px;
    height: 40px;
    font-size: 13px;
}

/* =========================================================
   Header Button Group (USD | AZ segmented control)
   ========================================================= */
.header-btn-group {
    display: flex;
    align-items: center;
    height: 38px;
    border: 1px solid #e2e6f0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(5, 32, 92, 0.07);
    /* overflow:hidden removed — it clips absolutely-positioned dropdowns */
    position: relative;
}

.header-btn-group__sep {
    width: 1px;
    height: 20px;
    background: #e2e6f0;
    flex-shrink: 0;
}

/* Remove individual border/bg when inside the group */
.header-btn-group .lang-switcher {
    display: flex;
    align-items: center;
}

/* Round outer corners of edge buttons to follow the group border-radius */
.header-btn-group > .currency-switcher:first-child .currency-switcher__btn {
    border-radius: 9px 0 0 9px;
}

.header-btn-group > .lang-switcher:last-child .lang-switcher__btn {
    border-radius: 0 9px 9px 0;
}

/* Shared style for both the currency button and language switcher button */
.header-btn-group__btn,
.header-btn-group .lang-switcher__btn {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 38px;
    padding: 0 14px;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #2d3a52;
    letter-spacing: 0.025em;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    box-shadow: none;
}

.header-btn-group__btn:hover,
.header-btn-group .lang-switcher__btn:hover {
    background: #f4f6fb;
    color: var(--color-blue-1);
}

.header-btn-group__btn i,
.header-btn-group .lang-switcher__arrow {
    font-size: 7px;
    color: #b0b9ce;
    transition: color 0.15s, transform 0.2s;
}

.header-btn-group__btn:hover i,
.header-btn-group .lang-switcher__btn:hover .lang-switcher__arrow {
    color: var(--color-blue-1);
}

/* =========================================================
   Language Switcher
   ========================================================= */
.lang-switcher {
    position: relative;
}

.lang-switcher__btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #e5e7ef;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #051036;
    letter-spacing: 0.04em;
    transition: border-color 0.2s, background 0.2s;
}

.lang-switcher__btn:hover {
    border-color: var(--color-blue-1);
    background: var(--color-blue-2);
}

.lang-switcher__arrow {
    font-size: 8px;
    color: #697488;
    transition: transform 0.2s;
}

.lang-switcher.is-open .lang-switcher__arrow {
    transform: rotate(180deg);
}

.lang-switcher__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid rgba(5, 32, 92, 0.08);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(5, 16, 54, 0.13), 0 2px 8px rgba(5, 16, 54, 0.06);
    overflow: hidden;
    z-index: 200;
    min-width: 80px;
}

.lang-switcher.is-open .lang-switcher__dropdown {
    display: block;
}

.lang-switcher__option {
    display: block;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #697488;
    text-align: center;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.lang-switcher__option:hover {
    background: var(--color-blue-2);
    color: var(--color-blue-1);
}

.lang-switcher__option.is-active {
    color: var(--color-blue-1);
    font-weight: 700;
    background: var(--color-blue-2);
}

/* =========================================================
   Currency Switcher
   ========================================================= */
.currency-switcher {
    position: relative;
}

.currency-switcher__btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #e5e7ef;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #051036;
    letter-spacing: 0.04em;
    transition: border-color 0.2s, background 0.2s;
}

.currency-switcher__btn:hover {
    border-color: var(--color-blue-1);
    background: var(--color-blue-2);
}

.currency-switcher__arrow {
    font-size: 8px;
    color: #697488;
    transition: transform 0.2s;
}

.currency-switcher.is-open .currency-switcher__arrow {
    transform: rotate(180deg);
}

.currency-switcher__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid rgba(5, 32, 92, 0.08);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(5, 16, 54, 0.13), 0 2px 8px rgba(5, 16, 54, 0.06);
    overflow: hidden;
    z-index: 200;
    min-width: 80px;
}

.currency-switcher.is-open .currency-switcher__dropdown {
    display: block;
}

.currency-switcher__option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #697488;
    text-align: center;
    letter-spacing: 0.04em;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.currency-switcher__option:hover {
    background: var(--color-blue-2);
    color: var(--color-blue-1);
}

.currency-switcher__option.is-active {
    color: var(--color-blue-1);
    font-weight: 700;
    background: var(--color-blue-2);
}

.currency-switcher__option-code {
    font-size: 13px;
    font-weight: 700;
    color: #2d3a52;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.currency-switcher__option:hover .currency-switcher__option-code,
.currency-switcher__option.is-active .currency-switcher__option-code {
    color: var(--color-blue-1);
}

.currency-switcher__option-name {
    font-size: 11px;
    font-weight: 400;
    color: #b0b9ce;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.currency-switcher__option:hover .currency-switcher__option-name,
.currency-switcher__option.is-active .currency-switcher__option-name {
    color: var(--color-blue-1);
}

/* Inside the header button group */
.header-btn-group .currency-switcher {
    display: flex;
    align-items: center;
}

.header-btn-group .currency-switcher__btn {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 38px;
    padding: 0 14px;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #2d3a52;
    letter-spacing: 0.025em;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    box-shadow: none;
}

.header-btn-group .currency-switcher__btn:hover {
    background: #f4f6fb;
    color: var(--color-blue-1);
}

.header-btn-group .currency-switcher__arrow {
    font-size: 7px;
    color: #b0b9ce;
    transition: color 0.15s, transform 0.2s;
}

.header-btn-group .currency-switcher__btn:hover .currency-switcher__arrow {
    color: var(--color-blue-1);
}

@media (max-width: 1199px) {
    .header .header-btn-group {
        height: 34px;
        margin-right: 8px;
    }

    .header-btn-group__sep {
        height: 16px;
    }

    .header-btn-group__btn,
    .header-btn-group .lang-switcher__btn,
    .header-btn-group .currency-switcher__btn {
        height: 34px;
        padding: 0 10px;
        font-size: 12px;
    }
}

@media (max-width: 575px) {
    .header .header-btn-group {
        margin-right: 4px;
    }

    .header-btn-group__btn,
    .header-btn-group .lang-switcher__btn,
    .header-btn-group .currency-switcher__btn {
        padding: 0 8px;
        gap: 3px;
    }
}

/* =========================================================
   Auth Pages — Floating Label Fix for Optional Fields
   ========================================================= */
.form-input input:valid:placeholder-shown:not(:focus) ~ label {
    transform: none !important;
    font-size: 14px !important;
    top: 26px !important;
}

/* Static label — always floated up (used for date/select) */
.form-input--static label {
    transform: translateY(-10px) !important;
    font-size: 11px !important;
}

/* Flatpickr altInput — inherit regular input look */
.form-input input.flatpickr-input:not([type="hidden"]) {
    cursor: pointer;
}

/* =========================================================
   Auth Pages — Flatpickr Overrides
   ========================================================= */
.flatpickr-calendar {
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, .12);
    font-family: inherit;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: var(--color-blue-1);
    border-color: var(--color-blue-1);
}
.flatpickr-day:hover {
    background: var(--color-blue-2);
    color: var(--color-blue-1);
}
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--color-blue-1);
}

/* =========================================================
   Auth Pages — Custom Select
   ========================================================= */
.js-custom-select {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.custom-select__trigger {
    flex: 1;
    min-height: 70px;
    padding: 28px 40px 0 15px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    transition: border 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.js-custom-select.is-open .custom-select__trigger {
    border: 2px solid var(--color-blue-1);
}

.custom-select__value {
    font-size: 14px;
    color: #051036;
    line-height: 1.2;
}

.custom-select__arrow {
    position: absolute;
    right: 19px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #84869a;
    border-bottom: 1.5px solid #84869a;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s;
    pointer-events: none;
}

.js-custom-select.is-open .custom-select__arrow {
    transform: translateY(-35%) rotate(-135deg);
}

/* Label stays down by default, goes up when open or has value */
.js-custom-select label {
    pointer-events: none;
}

.js-custom-select.is-open label,
.js-custom-select.has-value label {
    transform: translateY(-10px) !important;
    font-size: 11px !important;
}

/* Dropdown */
.custom-select__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(5, 16, 54, 0.10);
    z-index: 100;
    overflow: hidden;
}

.js-custom-select.is-open .custom-select__dropdown {
    display: block;
}

.custom-select__option {
    padding: 12px 15px;
    font-size: 14px;
    color: #051036;
    transition: background 0.15s;
    cursor: pointer;
}

.custom-select__option:hover {
    background: var(--color-blue-2);
    color: var(--color-blue-1);
}

.custom-select__option.is-selected {
    background: var(--color-blue-2);
    color: var(--color-blue-1);
    font-weight: 500;
}

.custom-select__option.is-placeholder {
    color: #84869a;
}

/* =========================================================
   Field error (universal)
   ========================================================= */
.field-error {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    padding: 6px 12px;
    background: #fff5f5;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #c62828;
}

.field-error::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e53935;
    flex-shrink: 0;
}

/* =========================================================
   Profile Form Fields (label above input)
   ========================================================= */
.pf-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pf-field__label {
    font-size: 11px;
    font-weight: 600;
    color: #9aa3b5;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pf-field__input {
    width: 100%;
    height: 50px;
    padding: 0 16px !important;
    border: 1px solid #c8d2e0 !important;
    border-radius: 8px !important;
    font-size: 14px;
    color: #051036;
    background: #fff !important;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
    -webkit-appearance: none;
}

.pf-field__input:focus {
    border-color: #1B6AF5 !important;
    box-shadow: 0 0 0 3px rgba(27, 106, 245, 0.08);
}

.pf-field__input--disabled {
    background: #f6f8fb !important;
    color: #b0b9ce !important;
    cursor: not-allowed;
    border-color: #e4e9f2 !important;
}

.pf-field textarea.pf-field__input {
    height: auto;
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.6;
    min-height: 110px;
}

.pf-field select.pf-field__input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa3b5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.pf-field.is-invalid .pf-field__input {
    border-color: #e53935;
}

/* Phone input inside pf-field */
.pf-field .phone-input {
    border-radius: 8px;
    border: 1px solid #c8d2e0 !important;
    min-height: 50px;
}

.pf-field .phone-input:focus-within {
    border-color: #1B6AF5 !important;
    box-shadow: 0 0 0 3px rgba(27, 106, 245, 0.08);
}

.pf-field .phone-input__number {
    min-height: 50px;
    padding: 0 14px;
    font-size: 14px;
}

.pf-field .phone-input__dial {
    padding: 0 10px 0 12px;
    align-self: stretch;
    display: flex;
    align-items: center;
}

/* =========================================================
   Phone Input
   ========================================================= */
.phone-input {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    min-height: 70px;
    overflow: visible;
    position: relative;
    transition: border 0.2s;
}

.phone-input:focus-within {
    border: 2px solid #051036;
}

.phone-input__dial {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 22px 12px 0 14px;
    border-right: 1px solid var(--color-border);
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    color: #051036;
    background: transparent;
    border-left: none;
    border-top: none;
    border-bottom: none;
    position: relative;
    user-select: none;
    flex-shrink: 0;
    align-self: stretch;
}

.phone-input__dial-flag {
    font-size: 18px;
    line-height: 1;
}

.phone-input__dial-code {
    font-size: 14px;
}

.phone-input__dial-arrow {
    font-size: 8px;
    opacity: 0.45;
    margin-left: 2px;
}

.phone-input__number {
    flex: 1;
    border: none !important;
    outline: none !important;
    min-height: 70px;
    padding: 25px 15px 0;
    font-size: 15px;
    color: #051036;
    background: transparent;
    border-radius: 0 4px 4px 0;
}

.phone-input__label {
    position: absolute;
    left: 15px;
    top: 12px;
    font-size: 11px;
    color: #697488;
    pointer-events: none;
}

/* Dropdown */
.phone-input__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 500;
    background: #fff;
    border: 1px solid rgba(5, 32, 92, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(5, 16, 54, 0.12);
    width: 260px;
    max-height: 280px;
    overflow-y: auto;
    padding: 6px 0;
}

.phone-input__dropdown.is-open {
    display: block;
}

.phone-input__search {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f3f8;
    margin-bottom: 4px;
}

.phone-input__search input {
    width: 100%;
    border: 1px solid #e8ecf2;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    color: #051036;
    outline: none;
}

.phone-input__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: background 0.1s;
}

.phone-input__option:hover,
.phone-input__option.is-selected {
    background: #f4f6fb;
    color: #1B6AF5;
}

.phone-input__option-flag { font-size: 16px; }
.phone-input__option-name { flex: 1; }
.phone-input__option-code { color: #9aa3b0; font-size: 12px; }

/* =========================================================
   Profile Pages
   ========================================================= */

/* Sidebar */
.profile-sidebar {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 4px 24px rgba(5, 16, 54, 0.07);
    text-align: center;
    position: sticky;
    top: 100px;
}

.profile-sidebar__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2979ff 0%, #1B6AF5 100%);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 6px 20px rgba(27, 106, 245, 0.35);
}

.profile-sidebar__name {
    font-size: 15px;
    font-weight: 600;
    color: #051036;
    line-height: 1.3;
}

.profile-sidebar__email {
    font-size: 12px;
    color: #b0b9ce;
    margin-top: 4px;
    word-break: break-all;
}

.profile-sidebar__nav {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.profile-sidebar__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #697488;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.profile-sidebar__link:hover {
    background: #f4f6fb;
    color: #1B6AF5;
}

.profile-sidebar__link.is-active {
    background: #eef2ff;
    color: #1B6AF5;
    font-weight: 600;
}

.profile-sidebar__link svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.profile-sidebar__link.is-active svg,
.profile-sidebar__link:hover svg {
    opacity: 1;
}

.profile-sidebar__sep {
    height: 1px;
    background: #f0f3f8;
    margin: 20px 0;
}

.profile-sidebar__logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #b0b9ce;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, color 0.15s;
}

.profile-sidebar__logout:hover {
    background: #fff5f5;
    color: #e53935;
}

/* Card */
.profile-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(5, 16, 54, 0.07);
    overflow: hidden;
}

.profile-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px;
    border-bottom: 1px solid #f0f3f8;
}

.profile-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #051036;
}

.profile-card__edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #1B6AF5;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 8px;
    background: #eef2ff;
    transition: background 0.15s;
}

.profile-card__edit-btn:hover {
    background: #dde6ff;
    color: #1457d4;
}

.profile-card__body {
    padding: 32px 36px;
}

/* Profile fields grid */
.profile-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.profile-field {
    padding: 16px 0;
    border-bottom: 1px solid #f5f7fb;
}

.profile-field:nth-child(odd) {
    padding-right: 30px;
    border-right: 1px solid #f5f7fb;
}

.profile-field:nth-child(even) {
    padding-left: 30px;
}

.profile-field--full {
    grid-column: 1 / -1;
    padding-right: 0;
    border-right: none;
    padding-left: 0;
}

.profile-field__label {
    font-size: 11px;
    font-weight: 500;
    color: #b0b9ce;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 5px;
}

.profile-field__value {
    font-size: 14px;
    font-weight: 500;
    color: #051036;
}

/* Alert */
.profile-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.profile-alert--success {
    background: #edfbf3;
    color: #1a8a4a;
}

.profile-alert--error {
    background: #fff5f5;
    color: #c62828;
}

.profile-alert svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* Cancel link */
.profile-cancel-btn {
    font-size: 13px;
    font-weight: 500;
    color: #697488;
    text-decoration: none;
    padding: 10px 0;
    transition: color 0.15s;
}

.profile-cancel-btn:hover {
    color: #051036;
}

/* Responsive */
@media (max-width: 767px) {
    .profile-card__head,
    .profile-card__body {
        padding: 20px;
    }

    .profile-fields {
        grid-template-columns: 1fr;
    }

    .profile-field:nth-child(odd) {
        padding-right: 0;
        border-right: none;
    }

    .profile-field:nth-child(even) {
        padding-left: 0;
    }
}

/* ── Select2 inside .pf-field ──────────────────────────────────────────── */
.pf-field .select2-container { width: 100% !important; }
.pf-field .select2-container--default .select2-selection--single {
    height: 50px;
    border: 1px solid #c8d2e0 !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 36px 0 16px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.pf-field .select2-container--default.select2-container--focus .select2-selection--single,
.pf-field .select2-container--open .select2-selection--single {
    border-color: #1B6AF5 !important;
    box-shadow: 0 0 0 3px rgba(27, 106, 245, 0.08) !important;
    outline: none;
}
.pf-field .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0;
    line-height: 1;
    font-size: 14px;
    color: #051036;
}
.pf-field .select2-container--default .select2-selection--single .select2-selection__placeholder { color: #b0b9ce; }
.pf-field .select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; top: 0; right: 12px; width: 20px; }
.select2-dropdown {
    border: 1px solid #c8d2e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(5, 16, 54, 0.1);
    font-size: 14px;
    overflow: hidden;
}
.select2-container--default .select2-results__option { padding: 10px 14px; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: #1B6AF5; }
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #c8d2e0;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 13px;
}

/* ── Vacancy cards ─────────────────────────────────────────────────────── */
.vacancy-card { transition: box-shadow .2s ease; }
.vacancy-card:hover { box-shadow: 0 8px 30px rgba(0, 0, 0, .10); }
.badge-outline-blue {
    border: 1px solid #3554D1;
    color: #3554D1;
}
.badge-outline-gray {
    border: 1px solid #DDDDDD;
    color: #51566D;
}
.x-gap-8 > * { margin-right: 8px; }
.x-gap-8 > *:last-child { margin-right: 0; }
.y-gap-8 > * { margin-bottom: 8px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mr-6  { margin-right: 6px; }
.mb-12 { margin-bottom: 12px; }
.x-gap-6 > * { margin-right: 6px; }
.x-gap-6 > *:last-child { margin-right: 0; }
.y-gap-6 > * { margin-bottom: 6px; }
.lh-14 { line-height: 1.4; }
.text-13 { font-size: 13px; }

