/* Schedule transition components, shared with horaire-planetarium-new. */
.schedule-site-banner,
.visit-date-modal {
    --font-body: 'Figtree', sans-serif;
    font-family: var(--font-body);
}

.schedule-site-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 8px 56px;
    background: #0d3563;
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}

.schedule-site-banner .schedule-site-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 5px 18px;
    border-radius: 999px;
    background: #a4a9ff;
    color: #080b39;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.schedule-site-banner .schedule-site-cta:hover {
    background: #bec2ff;
    color: #080b39;
}

.schedule-site-banner .schedule-site-cta:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.schedule-site-close {
    position: absolute;
    top: 2px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.schedule-site-close:hover {
    color: #a4a9ff;
}

.schedule-site-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

/* Visit date selection modal */
.visit-date-modal .visit-date-modal-dialog {
    width: min(816px, calc(100% - 32px));
    max-width: none;
    margin: 1rem auto;
}

.visit-date-modal .modal-content {
    position: relative;
    min-height: 568px;
    overflow: hidden;
    border: 2px solid #a9b7ff !important;
    border-radius: 14px;
    background: #0a1828;
}

.visit-date-modal-image {
    position: absolute;
    inset: 0 0 0 auto;
    width: 26%;
    background: url('../img/backgrounds/interception-modal-bg.png') center / cover no-repeat;
}

.visit-date-modal-body {
    position: relative;
    z-index: 1;
    width: 91%;
    min-height: 564px;
    margin: 0;
    padding: 80px 80px 76px !important;
    border: 0;
    /* Fit the entire decorative shape as the panel's proportions change. */
    background: url('../img/backgrounds/interception-bg.svg') top left / 100% 100% no-repeat;
    color: #fff;
}

.visit-date-modal-body h2 {
    max-width: 455px;
    margin: 0 0 46px;
    color: #fff !important;
    font-family: var(--font-body);
    font-size: clamp(1.7rem, 3vw, 2rem) !important;
    font-weight: 700;
    line-height: 1.17;
    text-align: left;
    text-transform: none;
}

.visit-date-modal-choices {
    width: min(100%, 317px);
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.visit-date-modal-choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 73px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    background: transparent;
    color: #fff;
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 300;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
}

.visit-date-modal-choice span {
    transition: all 0.3s ease;
    margin-top: 0px;
    color: #fff;
}

.visit-date-modal-choice strong {
    font-weight: 700;
}

.visit-date-modal-choice:hover,
.visit-date-modal-choice:focus {
    color: #fff;
    text-decoration: none;
}

.visit-date-modal-choice:focus-visible {
    outline: 2px solid #a9b7ff;
    outline-offset: 4px;
}

.visit-date-modal-arrow {
    display: block;
    flex: 0 0 auto;
    width: 29px;
    height: 29px;
    margin-left: 16px;
    transform: rotate(90deg);
}

.visit-date-modal-explanation {
    max-width: 455px;
    margin-top: 61px;
    color: #fff;
    font-family: var(--font-body);
}

.visit-date-modal-explanation h3 {
    margin: 0 0 4px;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    text-transform: none;
}

.visit-date-modal-explanation p {
    margin: 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.45;
}

@media only screen and (max-width : 575px) {
    .visit-date-modal .visit-date-modal-dialog {
        width: calc(100% - 24px);
    }

    .visit-date-modal .modal-content {
        min-height: 0;
    }

    .visit-date-modal-image {
        width: 38%;
        opacity: .45;
    }

    .visit-date-modal-body {
        min-height: 0;
        padding: 48px 32px !important;
        border-bottom-right-radius: 120px 100px;
    }

    .visit-date-modal-body h2 {
        margin-bottom: 32px;
        font-size: 1.7rem !important;
    }

    .visit-date-modal-choice {
        min-height: 64px;
        font-size: 17px;
    }

    .visit-date-modal-explanation {
        margin-top: 48px;
        max-width: 290px;
    }
}


.schedule-site-banner[hidden] {
    display: none;
}

body.visit-date-modal-open {
    overflow: hidden !important;
}

.visit-date-modal .visit-date-modal-choice {
    color: #fff;
}

.visit-date-modal .visit-date-modal-choice span {
    text-align: left;
}

.schedule-site-cta,
.schedule-site-close,
.visit-date-modal-choice {
    transition: background-color 300ms ease, color 300ms ease;
}
