:root {
    --fcs-red: #c9292f;
    --fcs-red-dark: #9f1f28;
    --fcs-red-deep: #6f1119;
    --fcs-red-soft: #f06a70;
    --fcs-red-pale: #fff2f2;
    --fcs-ink: #302426;
    --fcs-muted: #667085;
    --fcs-line: #dfe3ea;
    --fcs-paper: #ffffff;
}

.fcs-admissions-tabs,
.fcs-tour-modal {
    font-family: "Nunito", "Heebo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fcs-admissions-tabs {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 1045;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    transform: translateY(-50%);
    filter: drop-shadow(0 9px 18px rgba(92, 15, 22, 0.2));
}

.fcs-admissions-tab {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 228px;
    min-width: 228px;
    height: 58px;
    margin: 0;
    padding: 0 17px;
    overflow: hidden;
    color: #fff;
    background: var(--fcs-red-dark);
    border: 0;
    border-right: 4px solid var(--fcs-red-soft);
    border-radius: 7px 0 0 7px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: width 220ms ease, min-width 220ms ease, background-color 180ms ease, box-shadow 180ms ease;
    appearance: none;
}

.fcs-admissions-tab:nth-child(2) {
    background: var(--fcs-red);
}

.fcs-admissions-tab:nth-child(3) {
    background: var(--fcs-red-deep);
}

.fcs-admissions-tab svg {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #ffe4e5;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fcs-admissions-tab span {
    width: auto;
    margin-left: 12px;
    overflow: visible;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    opacity: 1;
}

.fcs-admissions-tab:hover,
.fcs-admissions-tab:focus-visible {
    color: #fff;
    width: 258px;
    min-width: 258px;
    background: #7f171f;
    box-shadow: inset 5px 0 0 rgba(255, 255, 255, 0.12);
    text-decoration: none;
}

.fcs-admissions-tab:hover span,
.fcs-admissions-tab:focus-visible span {
    color: #fff;
}

.fcs-admissions-tab:focus-visible,
.fcs-tour-close:focus-visible,
.fcs-tour-submit:focus-visible,
.fcs-tour-date-card:focus-within,
.fcs-tour-form input:focus-visible,
.fcs-tour-form textarea:focus-visible {
    outline: 3px solid #ffb6ba;
    outline-offset: 2px;
}

.fcs-tour-modal[hidden] {
    display: none;
}

.fcs-tour-success-alert[hidden] {
    display: none;
}

.fcs-tour-success-alert {
    position: fixed;
    top: 24px;
    left: 50%;
    z-index: 2200;
    width: min(520px, calc(100% - 32px));
    padding: 15px 20px;
    color: #155f37;
    background: #e9f8ef;
    border: 1px solid #9ed4b1;
    border-left: 5px solid #24804b;
    border-radius: 9px;
    box-shadow: 0 12px 30px rgba(20, 83, 48, 0.18);
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    opacity: 0;
    transform: translate(-50%, -12px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.fcs-tour-success-alert.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.fcs-tour-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.fcs-tour-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(47, 9, 13, 0.76);
    backdrop-filter: blur(3px);
}

.fcs-tour-dialog {
    position: relative;
    width: min(1080px, 100%);
    max-height: min(860px, calc(100vh - 48px));
    overflow: auto;
    color: var(--fcs-ink);
    background: var(--fcs-paper);
    border-radius: 16px;
    box-shadow: 0 28px 80px rgba(66, 10, 16, 0.34);
}

.fcs-tour-heading {
    padding: 30px 72px 25px 34px;
    color: #fff;
    background: linear-gradient(120deg, var(--fcs-red-deep), var(--fcs-red-dark) 68%, var(--fcs-red));
    border-bottom: 4px solid var(--fcs-red-soft);
}

.fcs-tour-eyebrow {
    margin: 0 0 5px;
    color: #ffd7d9;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.fcs-tour-heading h2 {
    margin: 0 0 7px;
    color: #fff;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.15;
}

.fcs-tour-heading p:last-child {
    max-width: 800px;
    margin: 0;
    color: #fff1f2;
    font: 400 15px/1.6 "Heebo", system-ui, sans-serif;
}

.fcs-tour-close {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    font: 300 29px/1 sans-serif;
    cursor: pointer;
}

.fcs-tour-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.fcs-tour-form {
    display: grid;
    grid-template-columns: minmax(390px, 0.95fr) minmax(430px, 1.05fr);
}

.fcs-tour-form fieldset {
    min-width: 0;
    margin: 0;
    padding: 29px 32px 34px;
    border: 0;
}

.fcs-tour-form legend {
    float: none;
    width: auto;
    margin: 0 0 18px;
    padding: 0;
    color: var(--fcs-red-deep);
    font-size: 19px;
    font-weight: 800;
}

.fcs-tour-options {
    background: #fff8f8;
    border-right: 1px solid var(--fcs-line) !important;
}

.fcs-tour-date-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-height: 315px;
    padding: 3px;
    overflow: auto;
}

.fcs-tour-date-card {
    position: relative;
    display: grid;
    min-height: 118px;
    margin: 0;
    padding: 12px 9px;
    align-content: center;
    justify-items: center;
    color: var(--fcs-ink);
    background: #fff;
    border: 1px solid var(--fcs-line);
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 2px 7px rgba(111, 17, 25, 0.05);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.fcs-tour-date-card:hover {
    border-color: #dc8e93;
    box-shadow: 0 5px 13px rgba(111, 17, 25, 0.12);
    transform: translateY(-1px);
}

.fcs-tour-date-card:has(input:checked) {
    color: #fff;
    background: var(--fcs-red-dark);
    border-color: var(--fcs-red-dark);
    box-shadow: 0 6px 15px rgba(111, 17, 25, 0.24);
}

.fcs-tour-date-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.fcs-tour-date-month {
    color: #a8212a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.fcs-tour-date-card:has(input:checked) .fcs-tour-date-month,
.fcs-tour-date-card:has(input:checked) .fcs-tour-date-meta {
    color: #ffdadd;
}

.fcs-tour-date-day {
    margin: 3px 0;
    font-size: 31px;
    font-weight: 800;
    line-height: 1;
}

.fcs-tour-date-meta {
    color: var(--fcs-muted);
    font: 600 11px/1.3 "Heebo", system-ui, sans-serif;
}

.fcs-tour-private-icon {
    display: grid;
    width: 31px;
    height: 31px;
    margin-bottom: 4px;
    place-items: center;
    color: var(--fcs-red-deep);
    background: #f5b5b8;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
}

.fcs-tour-private-title {
    font-size: 14px;
    font-weight: 800;
}

.fcs-tour-private-fields {
    grid-template-columns: 1fr 1.25fr;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--fcs-line);
}

.fcs-tour-private-fields:not([hidden]) {
    display: grid;
}

.fcs-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.fcs-field-wide {
    grid-column: 1 / -1;
}

.fcs-field label {
    display: block;
    margin-bottom: 5px;
    color: #34394c;
    font-size: 13px;
    font-weight: 800;
}

.fcs-field input,
.fcs-field textarea {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 10px 11px;
    color: var(--fcs-ink);
    background: #fff;
    border: 1px solid #cbd0da;
    border-radius: 7px;
    font: 400 15px/1.35 "Heebo", system-ui, sans-serif;
}

.fcs-field textarea {
    min-height: 76px;
    resize: vertical;
}

.fcs-tour-acknowledgement {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 9px;
    margin-top: 17px;
    color: #40465a;
    font: 400 13px/1.45 "Heebo", system-ui, sans-serif;
}

.fcs-tour-acknowledgement input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--fcs-red);
}

.fcs-tour-privacy {
    margin: 10px 0 0;
    color: var(--fcs-muted);
    font: 400 12px/1.45 "Heebo", system-ui, sans-serif;
}

.fcs-tour-actions {
    display: flex;
    gap: 15px;
    margin-top: 18px;
    align-items: center;
    justify-content: flex-end;
}

.fcs-tour-status {
    flex: 1;
    margin: 0;
    color: #3d4559;
    font: 600 13px/1.35 "Heebo", system-ui, sans-serif;
}

.fcs-tour-status.is-error {
    color: #a1262d;
}

.fcs-tour-status.is-success {
    color: #176b3a;
}

.fcs-tour-submit {
    flex: 0 0 auto;
    min-width: 175px;
    padding: 12px 18px;
    color: #fff;
    background: var(--fcs-red-dark);
    border: 0;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15);
}

.fcs-tour-submit:hover {
    background: var(--fcs-red-deep);
}

.fcs-tour-submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

.fcs-tour-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.fcs-tour-setup-message {
    margin: 30px;
    padding: 20px;
    color: #721c24;
    background: var(--fcs-red-pale);
    border: 1px solid #eab8bc;
    border-radius: 8px;
}

body.fcs-tour-modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .fcs-tour-form {
        grid-template-columns: 1fr;
    }

    .fcs-tour-options {
        border-right: 0 !important;
        border-bottom: 1px solid var(--fcs-line) !important;
    }

    .fcs-tour-date-grid {
        grid-template-columns: repeat(4, minmax(100px, 1fr));
        max-height: none;
    }
}

@media (max-width: 700px) {
    .fcs-admissions-tabs {
        top: auto;
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        left: 10px;
        flex-direction: row;
        align-items: stretch;
        gap: 4px;
        transform: none;
        filter: drop-shadow(0 7px 14px rgba(92, 15, 22, 0.28));
    }

    .fcs-admissions-tab,
    .fcs-admissions-tab:hover,
    .fcs-admissions-tab:focus-visible {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        height: 54px;
        padding: 0 7px;
        flex-direction: column;
        justify-content: center;
        border-right: 0;
        border-bottom: 3px solid var(--fcs-red-soft);
        border-radius: 7px;
    }

    .fcs-admissions-tab svg {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }

    .fcs-admissions-tab span,
    .fcs-admissions-tab:hover span,
    .fcs-admissions-tab:focus-visible span {
        width: auto;
        max-width: 100%;
        margin: 2px 0 0;
        overflow: visible;
        font-size: 9px;
        line-height: 1.1;
        opacity: 1;
        text-align: center;
        white-space: normal;
    }

    .fcs-tour-success-alert {
        top: 12px;
    }

    .fcs-tour-modal {
        padding: 0;
        place-items: end stretch;
    }

    .fcs-tour-dialog {
        width: 100%;
        max-height: 94vh;
        border-radius: 16px 16px 0 0;
    }

    .fcs-tour-heading {
        padding: 24px 58px 20px 20px;
    }

    .fcs-tour-form fieldset {
        padding: 23px 18px 27px;
    }

    .fcs-tour-date-grid {
        display: flex;
        padding: 2px 2px 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .fcs-tour-date-card {
        flex: 0 0 108px;
        scroll-snap-align: start;
    }

    .fcs-field-grid,
    .fcs-tour-private-fields:not([hidden]) {
        grid-template-columns: 1fr;
    }

    .fcs-field-wide {
        grid-column: auto;
    }

    .fcs-tour-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .fcs-tour-submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fcs-admissions-tab,
    .fcs-admissions-tab span,
    .fcs-tour-date-card,
    .fcs-tour-success-alert {
        transition: none;
    }
}
