/* Scheduler styles — layered on top of style.css, uses the same tokens */

.scheduler-banner {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md, 14px);
    border: 1px solid rgba(31, 109, 111, 0.22);
    background: rgba(83, 211, 202, 0.12);
    color: var(--brand-strong);
    font-size: 0.98rem;
}
.scheduler-banner[data-kind="error"] {
    border-color: rgba(196, 74, 70, 0.4);
    background: rgba(220, 115, 110, 0.12);
    color: #7a1d1a;
}
.scheduler-banner[data-kind="warn"] {
    border-color: rgba(200, 140, 20, 0.45);
    background: rgba(255, 205, 80, 0.18);
    color: #5a3d00;
}

.scheduler-fieldset {
    margin: 0 0 1.1rem;
    padding: 0;
    border: 0;
}

.scheduler-fieldset legend {
    padding: 0;
}

.scheduler-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.55rem;
}

.scheduler-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 109, 111, 0.22);
    background: rgba(255, 255, 255, 0.62);
    color: var(--brand-strong);
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.scheduler-radio:hover {
    transform: translateY(-1px);
}
.scheduler-radio input[type="radio"] {
    accent-color: var(--brand);
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
}
.scheduler-radio:has(input:checked) {
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    color: #fffdf9;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(24, 79, 84, 0.22);
}
.scheduler-radio:focus-within {
    outline: 2px solid var(--brand-strong);
    outline-offset: 3px;
}

.scheduler-tz-line {
    margin: 0.4rem 0 1rem;
    font-size: 0.95rem;
    color: var(--ink-muted);
}
.scheduler-tz-line strong {
    color: var(--brand-strong);
}

.scheduler-slots {
    display: grid;
    gap: 1.3rem;
    padding: 0;
    margin: 0 0 1.2rem;
}

.scheduler-slots[aria-busy="true"] {
    opacity: 0.72;
}

.scheduler-status-line,
.scheduler-empty {
    margin: 0;
    padding: 1rem;
    border-radius: var(--radius-md, 14px);
    background: rgba(255, 255, 255, 0.58);
    border: 1px dashed rgba(31, 109, 111, 0.22);
    color: var(--ink-muted);
    font-size: 0.98rem;
}

.scheduler-slot-day {
    display: grid;
    gap: 0.55rem;
}

.scheduler-slot-day h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--brand-strong);
    letter-spacing: -0.01em;
}

.scheduler-slot-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.scheduler-slot-button {
    min-height: 2.7rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 109, 111, 0.22);
    background: rgba(255, 255, 255, 0.68);
    color: var(--brand-strong);
    font-family: inherit;
    font-size: 0.96rem;
    font-weight: 700;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.scheduler-slot-button:hover,
.scheduler-slot-button:focus-visible {
    background: rgba(83, 211, 202, 0.18);
    transform: none;
    box-shadow: none;
    outline: 2px solid var(--brand-strong);
    outline-offset: 2px;
}
.scheduler-slot-button[aria-pressed="true"] {
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    color: #fffdf9;
    border-color: transparent;
    box-shadow: 0 14px 26px rgba(24, 79, 84, 0.24);
}

.scheduler-form {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.2rem;
    padding: 1.3rem;
    border-radius: var(--radius-md, 14px);
    border: 1px solid rgba(31, 109, 111, 0.2);
    background: rgba(255, 255, 255, 0.72);
}

.scheduler-form[hidden] {
    display: none;
}

.scheduler-form h3 {
    margin: 0 0 0.3rem;
    color: var(--brand-strong);
}

.scheduler-selected {
    margin: 0 0 0.65rem;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-md, 14px);
    background: rgba(83, 211, 202, 0.16);
    border: 1px solid rgba(31, 109, 111, 0.2);
    font-weight: 700;
    color: var(--brand-strong);
}

.scheduler-form label {
    display: block;
    margin: 0.45rem 0 0.3rem;
    font-weight: 700;
    color: var(--brand-strong);
    font-size: 0.96rem;
}

.label-hint {
    font-weight: 500;
    color: var(--ink-muted);
    font-size: 0.9rem;
}

.scheduler-form input[type="text"],
.scheduler-form input[type="email"],
.scheduler-form textarea {
    width: 100%;
    padding: 0.72rem 0.9rem;
    border-radius: var(--radius-md, 14px);
    border: 1px solid rgba(31, 109, 111, 0.28);
    background: #fffdf9;
    color: var(--ink, #1a1a2e);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
}
.scheduler-form input:focus-visible,
.scheduler-form textarea:focus-visible {
    outline: 2px solid var(--brand-strong);
    outline-offset: 2px;
    border-color: transparent;
}

.scheduler-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.7rem;
}

/* Honeypot: visually hidden without display:none (which some bots check for) */
.hp-wrap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 560px) {
    .scheduler-slot-buttons {
        gap: 0.4rem;
    }
    .scheduler-slot-button {
        flex: 1 1 calc(50% - 0.4rem);
        min-width: 0;
    }
    .scheduler-form-actions {
        flex-direction: column;
    }
    .scheduler-form-actions .button-link {
        width: 100%;
    }
}
