*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
}

* {
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
}

/* Embla */
.embla {
    overflow: hidden;
}

.embla__container {
    display: flex;
    margin-left: -12px;
}

.embla__slide {
    flex: 0 0 100%;
    min-width: 0;
    padding-left: 12px;
}

/* Testimonial */
.avatar-nav img {
    --offset-y: -165px;
    width: 165px;
    height: 165px;
    border: 3px solid transparent;
    border-radius: 9999px;
    object-fit: cover;
    cursor: pointer;
    filter: grayscale(100%);
    background-color: #d6d6d6;
    transform: translateY(var(--offset-y));
    transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease,
        border-color 0.25s ease;
}

.avatar-nav img:nth-child(2),
.avatar-nav img:nth-child(4) {
    --offset-y: -60px;
}

.avatar-nav img:nth-child(3) {
    --offset-y: -30px;
    width: 216px;
    height: 216px;
}

.avatar-nav img.active {
    opacity: 1;
    filter: none;
    border-color: #19bc9d;
    transform: translateY(var(--offset-y)) scale(1.05);
}



.journey-section {
    background-image: url("../images/home/journey-bg.svg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
}

.site-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-dropdown-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    color: #2d2d2d;
}

.nav-dropdown-toggle .icon {
    display: inline-flex;
    transition: transform 0.25s ease;
}

.nav-dropdown .nav-dropdown-menu {
    z-index: 220;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown.open .nav-dropdown-toggle .icon {
    transform: rotate(180deg);
}

.hamburger-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    border-radius: 10px;
    padding: 10px 8px;
    cursor: pointer;
    margin-left: auto;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: #2d2d2d;
    border-radius: 9999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.menu-open .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.site-header.menu-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.site-header.menu-open .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 991px) {
    main {
        overflow-x: hidden;
    }

    .site-header {
        position: relative;
        z-index: 180;
    }

    .site-header-container {
        position: relative;
    }

    .hamburger-btn {
        display: flex;
    }

    .site-nav-wrap {
        position: absolute;
        top: calc(100% + 12px);
        left: 24px;
        right: 24px;
        margin-left: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px;
        background: #fff;
        border: 1px solid #ececec;
        border-radius: 16px;
        box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, visibility 0.25s ease,
            transform 0.25s ease;
        pointer-events: none;
    }

    .site-header.menu-open .site-nav-wrap {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .site-nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown .nav-dropdown-menu {
        position: static;
        top: auto;
        min-width: 100%;
        margin-top: 10px;
        border-radius: 14px;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        max-height: 0;
        overflow: hidden;
        border-width: 0;
        padding: 0 8px;
        transition: max-height 0.25s ease, padding 0.25s ease,
            border-width 0.25s ease;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        max-height: 320px;
        border-width: 1px;
        padding: 8px;
    }

    .site-contact-btn {
        width: 100%;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

@media (max-width: 767px) {
    .site-nav-wrap {
        left: 16px;
        right: 16px;
    }

    .avatar-nav img {
        --offset-y: -30px;
        width: 52px;
        height: 52px;
    }

    .avatar-nav img:nth-child(2),
    .avatar-nav img:nth-child(4) {
        --offset-y: -15px;
    }

    .avatar-nav img:nth-child(3) {
        --offset-y: -20px;
        width: 70px;
        height: 70px;
    }

    .nav-dropdown.open #studyDestinationMenu {
        margin-top: 10px !important;
    }
}

@media (min-width: 992px) {

    .nav-dropdown:focus-within .nav-dropdown-menu,
    .nav-dropdown:hover .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-dropdown:focus-within .nav-dropdown-toggle .icon,
    .nav-dropdown:hover .nav-dropdown-toggle .icon {
        transform: rotate(180deg);
    }

    .site-nav-wrap {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
}


.wizard-step {
    display: none;
    opacity: 0;
    transform: translateY(28px);
}

.wizard-step.is-active {
    display: block;
}

.wizard-step.is-animating {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 0.34s ease;
}

.wizard-step.from-above {
    transform: translateY(-28px);
}

.wizard-step.to-below {
    transform: translateY(28px);
}

.wizard-step.is-fading {
    opacity: 0;
}

.wizard-step-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    overflow: hidden;
    background-image: linear-gradient(rgba(9, 20, 30, 0.28), rgba(9, 20, 30, 0.28)),
        url("../images/popup/popup-bg.jpg");
    background-size: cover;
    background-position: center;
    min-height: clamp(520px, calc(100vh - 120px), 860px);
    padding: clamp(18px, 3.5vw, 52px) clamp(14px, 4.5vw, 72px);
}

.wizard-step.wizard-step-hero {
    display: none;
}

.wizard-step.wizard-step-hero.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-step-hero__wrap {
    width: min(100%, 820px);
    margin-left: auto;
    margin-right: auto;
    border-radius: 22px;
    padding: clamp(20px, 2.8vw, 34px);
    background: linear-gradient(180deg, rgba(34, 46, 59, 0.82), rgba(19, 26, 35, 0.84));
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.wizard-step-hero__headline {
    color: #ffffff;
    font-size: clamp(24px, 3.1vw, 40px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.wizard-step-hero__headline strong {
    color: #19bc9d;
    font-weight: 700;
}

.wizard-step-hero__subcopy {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(16px, 1.45vw, 22px);
    line-height: 1.3;
}

.wizard-step-hero__phone {
    color: #ffffff;
    font-size: clamp(16px, 1.3vw, 22px);
    font-weight: 600;
}

.wizard-step-hero__phone svg {
    color: #ffffff;
}

.wizard-step-hero__wrap .action-btn {
    border-radius: 999px;
    min-height: 52px;
    padding-left: 26px;
    padding-right: 26px;
}

@media (max-width: 767px) {
    .wizard-step-hero {
        min-height: clamp(460px, calc(100vh - 96px), 640px);
        padding: 12px 10px;
    }

    .wizard-step-hero__wrap {
        border-radius: 16px;
        padding: 18px 14px 20px;
    }

    .wizard-step-hero__headline {
        font-size: clamp(22px, 7vw, 30px);
    }

    .wizard-step-hero__subcopy {
        font-size: clamp(15px, 4.3vw, 18px);
    }

    .wizard-step-hero__phone {
        font-size: clamp(16px, 4.6vw, 20px);
    }
}

.option-btn.is-selected {
    border-color: #2d2d31;
    background: #e6e6e6;
}

.option-btn.is-selected .option-key {
    background: #2d2d31;
    border-color: #2d2d31;
    color: #ffffff;
}

.other-input {
    display: none;
}

.other-input.show {
    display: block;
}

.action-btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.15);
    transform: none;
}

body.popup-open {
    overflow: hidden;
    touch-action: none;
}

.journey-popup {
    position: fixed;
    inset: 0;
    z-index: 520;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(14px, 2.8vw, 36px);
    background: rgba(18, 18, 18, 0.66);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s ease, visibility 0.32s ease;
}

.journey-popup.is-open {
    opacity: 1;
    visibility: visible;
}

.journey-popup__card {
    position: relative;
    width: min(1160px, 100%);
    display: grid;
    grid-template-columns: minmax(340px, 1fr) minmax(340px, 1fr);
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 34px 72px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(20px) scale(0.975);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.24s ease;
}

.journey-popup.is-open .journey-popup__card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.journey-popup__content {
    background: #d7d7d7;
    padding: clamp(28px, 3.3vw, 56px) clamp(20px, 2.8vw, 42px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.journey-popup__title {
    color: #202124;
    font-size: clamp(24px, 1.95vw, 36px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.journey-popup__description {
    margin-top: clamp(10px, 1.2vw, 16px);
    max-width: 360px;
    color: #33363a;
    font-size: clamp(13px, 0.95vw, 17px);
    font-weight: 400;
    line-height: 1.34;
}

.journey-popup__form {
    margin-top: clamp(20px, 1.8vw, 28px);
    width: min(430px, 100%);
}

.journey-popup__form-row {
    display: flex;
    align-items: stretch;
    border: 1px solid #838383;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    min-height: clamp(46px, 3.4vw, 58px);
}

.journey-popup__input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0 clamp(14px, 1.35vw, 20px);
    color: #25272a;
    font-size: clamp(13px, 0.9vw, 16px);
    font-weight: 500;
    line-height: 1.2;
}

.journey-popup__input:focus {
    outline: 2px solid #19bc9d;
    outline-offset: 0;
}

.journey-popup__submit {
    width: clamp(68px, 5.8vw, 96px);
    min-height: 100%;
    border: 0;
    background: #2a2b2e;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, filter 0.2s ease;
}

.journey-popup__submit:hover {
    background: #1e1f22;
    filter: brightness(1.03);
}

.journey-popup__submit svg {
    width: clamp(20px, 1.2vw, 30px);
    height: clamp(20px, 1.2vw, 30px);
}

.journey-popup__status {
    min-height: 18px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
}

.journey-popup__status.is-error {
    color: #c62828;
}

.journey-popup__status.is-success {
    color: #14826d;
}

.journey-popup__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: clamp(16px, 1.6vw, 24px);
    min-height: clamp(46px, 3.6vw, 60px);
    padding: 0 clamp(26px, 3.1vw, 56px);
    border-radius: 999px;
    background: #2b2c2f;
    color: #ffffff;
    font-size: clamp(12px, 0.84vw, 16px);
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.journey-popup__cta:hover {
    background: #161616;
    transform: translateY(-1px);
}

.journey-popup__media {
    min-height: 100%;
    background: #d2d2d2;
}

.journey-popup__media img {
    width: 100%;
    height: 100%;
    min-height: clamp(300px, 33vw, 460px);
    object-fit: cover;
    object-position: center center;
    filter: grayscale(100%);
    display: block;
}

.journey-popup__close {
    position: absolute;
    top: clamp(10px, 0.9vw, 16px);
    right: clamp(10px, 0.9vw, 16px);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #111315;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.journey-popup__close:hover {
    transform: scale(1.06);
    opacity: 1;
    background: #ffffff;
}

.journey-popup__close svg {
    width: clamp(20px, 1.45vw, 26px);
    height: clamp(20px, 1.45vw, 26px);
}

@media (max-width: 980px) {
    .journey-popup__card {
        width: min(920px, 100%);
        grid-template-columns: minmax(300px, 45%) minmax(300px, 55%);
    }

    .journey-popup__title {
        font-size: clamp(24px, 2.8vw, 32px);
    }

    .journey-popup__description {
        font-size: clamp(13px, 1.45vw, 15px);
    }
}

@media (max-width: 760px) {
    .journey-popup {
        padding: 12px;
    }

    .journey-popup__card {
        grid-template-columns: 1fr;
        width: min(560px, 100%);
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
    }

    .journey-popup__media img {
        min-height: 210px;
        max-height: 280px;
    }

    .journey-popup__content {
        min-height: auto;
        padding: 24px 18px 24px;
    }

    .journey-popup__title {
        font-size: clamp(22px, 6.2vw, 30px);
    }

    .journey-popup__description {
        font-size: clamp(13px, 3.8vw, 15px);
    }

    .journey-popup__submit {
        width: 64px;
    }

    .journey-popup__input {
        font-size: 14px;
    }

    .journey-popup__cta {
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .journey-popup__cta {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .wizard-step,
    .wizard-step.is-animating,
    .wizard-step.from-above,
    .wizard-step.to-below,
    .wizard-step.is-fading {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .journey-popup,
    .journey-popup__card,
    .journey-popup__submit,
    .journey-popup__cta {
        transition: none !important;
    }
}