/* RMPAC — public meeting scheduler widget */
.sched-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 90px 24px;
}
.sched-head { text-align: center; margin-bottom: 40px; }
.sched-eyebrow {
    display: inline-block;
    font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--red); margin-bottom: 14px;
}
.sched-head h2 {
    font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.03em;
    color: var(--black); margin: 0 0 12px;
}
.sched-head p { font-size: 16px; line-height: 1.6; color: var(--gray-mid); max-width: 560px; margin: 0 auto; }

.sched-card {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    background: #fff; border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 18px;
    overflow: hidden; box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.35);
}

/* calendar side */
.sched-cal { padding: 26px 28px; border-right: 1px solid rgba(0, 0, 0, 0.07); }
.sched-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sched-cal-head span { font-size: 16px; font-weight: 700; color: var(--black); }
.sched-nav {
    width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff; color: var(--gray-dark); font-size: 18px; cursor: pointer; line-height: 1;
    display: flex; align-items: center; justify-content: center; transition: 0.15s;
}
.sched-nav:hover { border-color: var(--red); color: var(--red); }
.sched-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.sched-dow span { text-align: center; font-size: 11px; font-weight: 700; color: var(--gray-light); text-transform: uppercase; letter-spacing: 0.05em; }
.sched-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.sched-day {
    aspect-ratio: 1; border: none; background: transparent; border-radius: 10px;
    font-family: inherit; font-size: 14px; font-weight: 600; color: var(--black); cursor: pointer;
    position: relative; transition: background 0.15s, color 0.15s;
}
.sched-day:hover:not(:disabled) { background: var(--red-alpha); color: var(--red); }
.sched-day:disabled { color: #cfcfcf; cursor: default; }
.sched-day.is-holiday { color: var(--red); }
.sched-day.is-holiday::after {
    content: ""; position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px; border-radius: 50%; background: var(--red);
}
.sched-day.is-selected { background: var(--red); color: #fff; }
.sched-day.is-selected:hover { background: var(--red); color: #fff; }
.sched-legend { margin-top: 16px; display: flex; gap: 16px; font-size: 12px; color: var(--gray-mid); }
.sched-legend i { font-style: normal; display: inline-flex; align-items: center; gap: 6px; }
.sched-legend .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; }

/* panel side */
.sched-panel { padding: 26px 28px; display: flex; flex-direction: column; min-height: 360px; }
.sched-panel-title { font-size: 15px; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.sched-panel-date { font-size: 13px; color: var(--gray-mid); margin-bottom: 18px; }
.sched-prompt { margin: auto; text-align: center; color: var(--gray-light); font-size: 14px; padding: 0 20px; }
.sched-closed { margin: auto; text-align: center; color: var(--gray-mid); font-size: 14px; }
.sched-closed b { color: var(--red); }

.sched-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.sched-slot {
    padding: 11px 8px; border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 10px; background: #fff;
    font-family: inherit; font-size: 13px; font-weight: 600; color: var(--black); cursor: pointer;
    transition: 0.15s;
}
.sched-slot:hover:not(:disabled) { border-color: var(--red); color: var(--red); background: var(--red-alpha); }
.sched-slot:disabled { color: #c7c7c7; background: #f6f6f6; cursor: default; text-decoration: line-through; }
.sched-slot.is-selected { background: var(--red); border-color: var(--red); color: #fff; }

.sched-form { display: flex; flex-direction: column; gap: 10px; }
.sched-form-title { font-size: 14px; font-weight: 700; color: var(--black); }
.sched-form-slot { font-size: 13px; color: var(--red); font-weight: 600; margin-bottom: 4px; }
.sched-form input, .sched-form textarea {
    width: 100%; padding: 10px 12px; font-family: inherit; font-size: 14px; color: var(--black);
    background: #fff; border: 1px solid rgba(0, 0, 0, 0.14); border-radius: 9px; outline: none;
}
.sched-form input:focus, .sched-form textarea:focus { border-color: var(--red); }
.sched-form textarea { min-height: 64px; resize: vertical; }
.sched-row { display: flex; gap: 10px; }
.sched-row > * { flex: 1; }
.sched-actions { display: flex; gap: 10px; margin-top: 4px; }
.sched-submit {
    flex: 1; padding: 12px; background: var(--red); color: #fff; border: none; border-radius: 10px;
    font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: filter 0.15s;
}
.sched-submit:hover { filter: brightness(1.08); }
.sched-submit:disabled { opacity: 0.6; cursor: default; }
.sched-back { padding: 12px 16px; background: transparent; border: 1px solid rgba(0, 0, 0, 0.14); border-radius: 10px; color: var(--gray-dark); font-family: inherit; font-size: 13px; cursor: pointer; }
.sched-err { color: var(--red); font-size: 13px; }

.sched-done { margin: auto; text-align: center; }
.sched-done-check {
    width: 62px; height: 62px; border-radius: 50%; background: rgba(34, 192, 122, 0.12);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: #17a862;
}
.sched-done h3 { font-size: 20px; font-weight: 800; color: var(--black); margin: 0 0 8px; }
.sched-done p { font-size: 14px; color: var(--gray-mid); margin: 0 0 18px; }
.sched-done button { padding: 10px 18px; background: transparent; border: 1px solid rgba(0, 0, 0, 0.14); border-radius: 9px; color: var(--gray-dark); font-family: inherit; font-size: 13px; cursor: pointer; }

@media (max-width: 760px) {
    .sched-card { grid-template-columns: 1fr; }
    .sched-cal { border-right: none; border-bottom: 1px solid rgba(0, 0, 0, 0.07); }
    .sched-slots { grid-template-columns: 1fr 1fr; }
}
