/* Wheels Up Redirect Modal Styles */

:root {
    --wu-primary: #173FC2;
    --wu-primary-hover: #122f94;
    --wu-text: #041C46;
    --wu-white: #ffffff;
    --wu-close-hover: #cccccc;
}

.wheels-up-modal__background {
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.73);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.wheels-up-modal {
    overflow: hidden;
    background-color: var(--wu-white);
    width: 100%;
    max-width: 800px;
    max-height: calc(100vh - 80px);
    border-radius: 16px;
    box-shadow: 0px -2px 4px 0px rgba(0, 0, 0, 0.08), 0px 4px 8px 2px rgba(0, 0, 0, 0.16);
    overflow-y: auto;
}

.wheels-up-modal__img-container {
    position: relative;
    width: 100%;
}

.wheels-up-modal__img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 800 / 450;
    object-fit: cover;
    object-position: center top;
}

.wheels-up-modal__close-icon {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 24px;
    right: 24px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.wheels-up-modal__close-icon::before,
.wheels-up-modal__close-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: var(--wu-white);
    width: 18px;
    height: 2px;
    border-radius: 1px;
    transition: background-color 0.2s ease;
}

.wheels-up-modal__close-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.wheels-up-modal__close-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.wheels-up-modal__close-icon:hover::before,
.wheels-up-modal__close-icon:hover::after {
    background-color: var(--wu-close-hover);
}

.wheels-up-modal__content {
    padding: 48px;
    text-align: left;
    background-color: var(--wu-white);
}

.wheels-up-modal__text-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.wheels-up-modal__title {
    font-family: "Mikro Regular", Arial, sans-serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--wu-text);
    margin: 0;
    line-height: 34px;
}

.wheels-up-modal__description {
    font-family: "aktiv-grotesk", "Gotham", sans-serif;
    font-size: 18px;
    line-height: 24px;
    color: var(--wu-text);
    margin: 0;
}

.wheels-up-modal__buttons {
    display: flex;
    flex-direction: row;
    gap: 24px;
}

.wheels-up-modal__btn {
    flex: 1;
    padding: 16px 32px;
    font-family: "Gotham", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 22px;
    text-transform: uppercase;
    border-radius: 100px;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wheels-up-modal__btn--primary {
    background-color: var(--wu-primary);
    border: 2px solid var(--wu-primary);
    color: var(--wu-white);
}

.wheels-up-modal__btn--primary:hover,
.wheels-up-modal__btn--primary:focus {
    background-color: var(--wu-primary-hover);
    border-color: var(--wu-primary-hover);
}

.wheels-up-modal__btn--secondary {
    background-color: var(--wu-white);
    border: 2px solid var(--wu-primary);
    color: var(--wu-primary);
}

.wheels-up-modal__btn--secondary:hover,
.wheels-up-modal__btn--secondary:focus {
    background-color: var(--wu-primary);
    color: var(--wu-white);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .wheels-up-modal__background {
        padding: 16px;
    }

    .wheels-up-modal {
        max-width: 343px;
    }

    .wheels-up-modal__img {
        aspect-ratio: 343 / 253;
    }

    .wheels-up-modal__content {
        padding: 24px 16px;
    }

    .wheels-up-modal__text-group {
        gap: 4px;
        margin-bottom: 16px;
    }

    .wheels-up-modal__title {
        font-size: 20px;
        line-height: 26px;
    }

    .wheels-up-modal__description {
        font-size: 14px;
        line-height: 20px;
    }

    .wheels-up-modal__buttons {
        flex-direction: column;
        gap: 24px;
    }

    /* Reverse button order on mobile: Primary (GO TO WHEELS UP) first */
    .wheels-up-modal__btn--primary {
        order: -1;
    }

    .wheels-up-modal__btn {
        width: 100%;
        padding: 16px 24px;
    }
}
