/* ================================================================== */
/* Online appointment booking: /Schedule and /Schedule/Manage          */
/* A Calendly-style picker (month grid, time list, details form) in    */
/* the site's design language. Bootstrap 3 sets html to 62.5%, so      */
/* sizes here are in px.                                               */
/* ================================================================== */

.sched-page {
    margin-top: 48px;
    margin-bottom: 72px;
}

    .sched-page [hidden] {
        display: none !important;
    }

.sched-card {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--ac-line);
    border-top: 5px solid var(--ac-gold);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 48px -28px rgba(6, 10, 28, 0.45);
    scroll-margin-top: calc(var(--ac-header-h) + 20px);
}

.sched-card-manage {
    grid-template-columns: minmax(0, 1fr);
    max-width: 780px;
    margin: 0 auto;
}

/* ---- Left panel: what the appointment is ---- */
.sched-side {
    padding: 30px 28px 32px 28px;
    border-right: 1px solid var(--ac-line);
    background: #f8f9fc;
}

.sched-side-logo {
    display: block;
    width: 190px;
    height: auto;
    margin: 0 0 18px 0;
}

.sched-side-eyebrow {
    margin: 0;
    color: var(--ac-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sched-side-title {
    margin: 4px 0 16px 0;
    color: var(--ac-navy);
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.sched-meta {
    list-style: none;
    margin: 0 0 14px 0;
    padding: 0;
    color: var(--ac-ink);
    font-size: 14.5px;
}

    .sched-meta li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin: 0 0 8px 0;
    }

    .sched-meta .fa {
        width: 16px;
        margin-top: 3px;
        color: var(--ac-navy);
        text-align: center;
    }

    .sched-meta a {
        color: var(--ac-navy);
        font-weight: 700;
    }

.sched-side-text {
    margin: 0;
    color: var(--ac-muted);
    font-size: 14px;
    line-height: 1.55;
}

.sched-side-summary {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--ac-line);
}

.sched-side-label {
    margin: 0 0 4px 0;
    color: var(--ac-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sched-side-when {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: var(--ac-navy);
    font-weight: 700;
}

    .sched-side-when .fa {
        margin-top: 3px;
    }

/* ---- Main panel ---- */
.sched-main {
    min-width: 0;
    padding: 30px 32px 36px 32px;
}

.sched-title {
    margin: 0 0 16px 0;
    color: var(--ac-navy);
    font-size: 28px;
    font-weight: 800;
}

.sched-current {
    margin: -8px 0 16px 0;
    color: var(--ac-muted);
    font-size: 14px;
}

.sched-notice {
    margin: 0 0 18px 0;
    padding: 12px 16px;
    border: 1px solid #f1c3c3;
    border-radius: 10px;
    background: #fdeeee;
    color: #8a1c1c;
    font-weight: 600;
}

    .sched-notice.is-info {
        border-color: #cdd9f3;
        background: #eef3fc;
        color: var(--ac-navy);
    }

.sched-loading {
    margin: 0;
    color: var(--ac-muted);
}

.sched-empty p {
    font-size: 16px;
}

/* ---- Picker: calendar on the left, times on the right ---- */
.sched-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 32px;
}

.sched-month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 364px;
    margin: 0 auto 8px auto;
}

.sched-month {
    color: var(--ac-ink);
    font-family: var(--ac-display);
    font-size: 23px;
    font-weight: 700;
}

.sched-nav {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(39, 54, 106, 0.08);
    color: var(--ac-navy);
    font-size: 24px;
    line-height: 40px;
    cursor: pointer;
    transition: background 0.15s ease;
}

    .sched-nav:hover:not(:disabled) {
        background: rgba(39, 54, 106, 0.18);
    }

    .sched-nav:disabled {
        opacity: 0.3;
        cursor: default;
    }

.sched-weekdays,
.sched-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    max-width: 364px;
    margin: 0 auto;
}

.sched-weekdays span {
    padding: 8px 0 6px 0;
    color: var(--ac-muted);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.sched-days {
    row-gap: 4px;
}

.sched-day {
    position: relative;
    display: block;
    width: 44px;
    height: 44px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #9aa4b4;
    font-family: var(--ac-body);
    font-size: 15px;
    font-weight: 600;
    cursor: default;
    transition: background 0.15s ease, color 0.15s ease;
}

    .sched-day.is-available {
        background: rgba(39, 54, 106, 0.09);
        color: var(--ac-navy);
        font-weight: 800;
        cursor: pointer;
    }

        .sched-day.is-available:hover {
            background: rgba(39, 54, 106, 0.2);
        }

    .sched-day.is-selected,
    .sched-day.is-selected:hover {
        background: var(--ac-navy);
        color: #fff;
    }

    /* a dot under today */
    .sched-day.is-today::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 5px;
        width: 4px;
        height: 4px;
        margin-left: -2px;
        border-radius: 50%;
        background: currentColor;
    }

    .sched-day:focus-visible,
    .sched-nav:focus-visible,
    .sched-time:focus-visible,
    .sched-confirm:focus-visible {
        outline: 3px solid rgba(240, 180, 41, 0.75);
        outline-offset: 2px;
    }

.sched-tz {
    max-width: 364px;
    margin: 18px auto 0 auto;
    color: var(--ac-ink);
    font-size: 14px;
}

.sched-tz-label {
    display: block;
    margin-bottom: 2px;
    font-weight: 800;
}

.sched-tz .fa {
    color: var(--ac-muted);
}

/* the time list */
.sched-day-label {
    margin: 10px 0 12px 0;
    color: var(--ac-ink);
    font-family: var(--ac-body);
    font-size: 15px;
    font-weight: 700;
}

.sched-slots {
    max-height: 460px;
    overflow-y: auto;
    padding-right: 4px;
}

.sched-slot {
    display: flex;
    gap: 8px;
    margin: 0 0 10px 0;
}

.sched-time {
    flex: 1 1 50%;
    min-width: 0;
    padding: 12px 8px;
    border: 1px solid rgba(39, 54, 106, 0.55);
    border-radius: 8px;
    background: #fff;
    color: var(--ac-navy);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

    .sched-time:hover {
        box-shadow: inset 0 0 0 1px var(--ac-navy);
    }

.sched-slot.is-selected .sched-time {
    border-color: #4a5468;
    background: #4a5468;
    color: #fff;
    cursor: default;
}

.sched-confirm {
    flex: 1 1 50%;
    min-width: 0;
    padding: 12px 8px;
    border: 1px solid var(--ac-gold);
    border-radius: 8px;
    background: var(--ac-gold);
    color: var(--ac-navy);
    font-family: var(--ac-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease;
}

    .sched-confirm:hover:not(:disabled) {
        background: var(--ac-gold-hi);
        border-color: var(--ac-gold-hi);
    }

    .sched-confirm:disabled {
        opacity: 0.6;
        cursor: wait;
    }

/* ---- Details step ---- */
.sched-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px 0;
    color: var(--ac-navy);
    font-weight: 700;
}

    .sched-back:hover {
        color: var(--ac-red);
        text-decoration: none;
    }

.sched-chosen {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: -6px 0 18px 0;
    color: var(--ac-ink);
    font-size: 16px;
    font-weight: 700;
}

    .sched-chosen .fa {
        margin-top: 4px;
        color: var(--ac-navy);
    }

.sched-form label {
    margin-bottom: 4px;
    color: var(--ac-ink);
    font-weight: 700;
}

/* Site.css caps inputs at 280px; these fill their column */
.sched-form input,
.sched-form select,
.sched-form textarea {
    max-width: 100%;
}

.sched-form .form-control {
    border-color: #cfd5e1;
    border-radius: 8px;
    box-shadow: none;
}

    .sched-form .form-control:focus {
        border-color: var(--ac-navy);
        box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.45);
    }

    .sched-form .form-control.is-invalid {
        border-color: var(--ac-red);
    }

.sched-form textarea.form-control {
    resize: vertical;
}

.sched-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.sched-row-zip {
    grid-template-columns: 2fr 1fr;
}

.sched-error {
    display: block;
    margin-top: 4px;
    color: var(--ac-red);
    font-size: 13px;
    font-weight: 600;
}

    .sched-error:empty {
        display: none;
    }

.sched-form .btn-submit {
    margin-top: 6px;
}

.sched-form-phone {
    margin: 14px 0 0 0;
    color: var(--ac-muted);
    text-align: center;
}

/* ---- Confirmation and the Manage page ---- */
.sched-when,
.sched-where,
.sched-late {
    font-size: 17px;
    line-height: 1.55;
}

.sched-late {
    color: var(--ac-ink);
}

.sched-cal-links {
    margin: 20px 0 6px 0;
}

.sched-cal-label {
    margin: 0 0 8px 0;
    color: var(--ac-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sched-cal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 8px 8px 0;
    padding: 9px 14px;
    border: 1px solid rgba(39, 54, 106, 0.4);
    border-radius: 8px;
    background: #fff;
    color: var(--ac-navy);
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease;
}

    .sched-cal-btn:hover,
    .sched-cal-btn:focus {
        background: rgba(39, 54, 106, 0.07);
        color: var(--ac-navy);
        text-decoration: none;
    }

.sched-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.sched-done-manage {
    margin: 18px 0 0 0;
    color: var(--ac-muted);
}

.btn-cancel-appt {
    background: var(--ac-red);
    border-color: var(--ac-red);
}

    .btn-cancel-appt:hover,
    .btn-cancel-appt:focus {
        background: #a91113;
        border-color: #a91113;
    }

    .btn-cancel-appt:disabled {
        opacity: 0.6;
        cursor: wait;
    }

/* ---- Phones and tablets: everything in one column ---- */
@media (max-width: 991px) {
    .sched-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .sched-side {
        padding: 24px 24px 22px 24px;
        border-right: 0;
        border-bottom: 1px solid var(--ac-line);
    }

    .sched-side-logo {
        width: 160px;
    }

    .sched-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .sched-slots {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .sched-page {
        margin-top: 28px;
    }

    .sched-main {
        padding: 22px 16px 28px 16px;
    }

    .sched-row,
    .sched-row-zip {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sched-day {
        width: 40px;
        height: 40px;
    }

    .sched-title {
        font-size: 25px;
    }
}
