*{box-sizing:border-box}body{margin:0;background:#f5f4f7;color:#202026;font-family:Arial,sans-serif}main{max-width:1180px;margin:42px auto;padding:0 18px}.brand{font-weight:800;letter-spacing:.14em;color:#ec7123}h1{font-size:42px;margin:10px 0}.intro{font-size:18px;color:#555}.status{border-radius:10px;padding:12px 14px;margin:18px 0;background:#eee}.status.ready{background:#e9f7e8}.card{background:#fff;border:1px solid #ddd8e5;border-radius:14px;padding:20px;box-shadow:0 5px 18px #0000000c}label{display:block;font-weight:700;margin:0 0 7px}select,input,button{font:inherit;border-radius:8px;border:1px solid #c9c3d1;padding:11px 13px}select,input{width:100%;margin:5px 0 14px;background:#fff}.actions{display:flex;gap:9px}#go{background:#ec7123;color:#fff;border-color:#ec7123;font-weight:700}#refresh{background:#fff;color:#ec7123;border-color:#ec7123}button:disabled{opacity:.5}.small{font-size:13px;color:#777}.results-head{margin:32px 0 15px}.results-head h2{font-size:28px;margin-bottom:6px}.results-head p{margin-top:0;color:#555}.calendar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-left:1px solid #cfcbd6;border-top:1px solid #cfcbd6;background:#fff}.day{min-height:230px;border-right:1px solid #cfcbd6;border-bottom:1px solid #cfcbd6;padding:0 12px 14px}.day-date{background:#d8d8dc;margin:0 -12px 12px;padding:10px 12px;font-weight:800;font-size:17px}.day.available .day-date{background:#f8d8c3}.day.unavailable{background:#f2f2f3;color:#666}.day.unavailable .day-date{background:#dedee1;color:#333}.slot{padding:8px 0 12px;border-bottom:1px solid #e6e2ea}.slot:last-child{border-bottom:0}.slot-period{font-weight:800;font-size:17px}.slot-time{font-weight:800;margin-top:2px}.slot-pref{font-size:13px;margin-top:4px}.nearby{font-size:13px;line-height:1.4;margin-top:10px}.request{margin-top:10px;background:#ec7123;color:white;border-color:#ec7123;font-weight:700;padding:8px 11px}.unavailable-label{font-weight:800;font-size:18px;margin:10px 0}.booked-school{font-size:14px;line-height:1.4;margin:8px 0}.outside,.notice{background:#fff;border:1px solid #ddd8e5;border-radius:12px;padding:18px;line-height:1.5}.request-other{margin:16px 0 40px}.request-other b{color:#ec7123}@media(max-width:850px){.calendar{grid-template-columns:1fr 1fr}.day{min-height:0}}@media(max-width:560px){main{margin-top:24px}h1{font-size:34px}.calendar{grid-template-columns:1fr}.actions{flex-direction:column}.day{min-height:0}}



.modal{display:none;position:fixed;inset:0;background:#0008;z-index:20;padding:24px;overflow:auto}.modal.open{display:flex;align-items:flex-start;justify-content:center}.modal-card{position:relative;width:min(720px,100%);margin:40px auto;background:#fff;border-radius:14px;padding:24px;box-shadow:0 20px 60px #0004}.modal-card h2{margin-top:0}.x{position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:28px;padding:4px 8px}.request-summary{background:#fff4ed;border:1px solid #f3c5a7;border-radius:10px;padding:13px;margin:0 0 18px;line-height:1.5}.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}textarea{width:100%;font:inherit;border-radius:8px;border:1px solid #c9c3d1;padding:11px 13px;margin:5px 0 14px;resize:vertical}.primary{background:#ec7123;color:#fff;border-color:#ec7123;font-weight:700}.preview-card pre{white-space:pre-wrap;word-break:break-word;background:#f6f5f8;border:1px solid #ddd8e5;border-radius:10px;padding:16px;max-height:55vh;overflow:auto;font-size:13px;line-height:1.45}@media(max-width:560px){.two{grid-template-columns:1fr}.modal{padding:10px}.modal-card{margin:10px auto}}

.optional{font-weight:400;color:#777;font-size:.9em}input[readonly]{background:#f3f2f5;color:#666}
.school-picker{position:relative}.school-results{position:absolute;z-index:10;left:0;right:0;top:100%;background:#fff;border-radius:9px;box-shadow:0 10px 28px #0002;overflow:hidden}.school-results:empty{display:none}.school-result{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #eee;border-radius:0;background:#fff;padding:11px 13px}.school-result:hover{background:#fff4ed}.school-result span{display:block;font-size:13px;color:#666;margin-top:3px}.school-result.muted{color:#666}.selected-school,.school-confirm{display:none;background:#fff4ed;border:1px solid #f3c5a7;border-radius:10px;padding:12px 14px;margin:-5px 0 10px;line-height:1.45}.selected-school.open,.school-confirm{display:block}.selected-school span{font-size:13px;color:#666}.link-button{border:0;background:transparent;color:#ec7123;padding:0;margin:0 0 14px;font-weight:700}.fallback-school{display:none}.fallback-school.open{display:block}
.eoi-box{margin:18px 0;padding:18px;border:1px solid #d7d7d7;border-radius:12px;background:#fff}.eoi-box p{margin:6px 0 14px}

.minimum-charge{display:none;margin:-6px 0 14px;padding:10px 12px;border-radius:8px;background:#fff4ed;border:1px solid #f3c5a7;color:#7a3511;font-size:14px}.minimum-charge.show{display:block}.unlisted-address{display:none;background:#fff8f3;border:1px solid #f3c5a7;border-radius:10px;padding:14px;margin:0 0 18px}.unlisted-address.open{display:block}.address-note{margin-top:0}.eoi-box{margin:16px 0 40px;background:#fff;border:1px solid #ddd8e5;border-radius:12px;padding:18px}.no-availability-eoi{margin-top:0}.primary,#go,.request{background:#ec7123!important;border-color:#ec7123!important;color:#fff!important}.link-button,#refresh,.brand,.request-other b{color:#ec7123!important}
/* v30 collapsible school terms */
.public-term-section{margin:16px 0}.public-term-toggle{width:100%;display:flex;justify-content:space-between;align-items:center;background:#26242b;color:#fff;border:0;border-radius:10px;padding:13px 15px;font-weight:900;letter-spacing:.06em;text-align:left}.public-term-toggle .arrow{transition:transform .18s}.public-term-section.open .public-term-toggle .arrow{transform:rotate(90deg)}.public-term-content{display:none}.public-term-section.open .public-term-content{display:block}.public-show-all{background:transparent;border:0;text-decoration:underline;padding:5px 0;margin:4px 0 8px}
.confirmation-summary{margin:18px 0;padding:16px 18px;border-radius:10px;background:#f6f3ef;line-height:1.55}

/* WordPress-embedded teacher-facing layout */
body{background:#fff}main{max-width:1080px;margin:18px auto;padding:0 18px}h1{font-size:32px}.card{box-shadow:none;border-color:#e9e5e1}.program-logos{display:flex;align-items:center;justify-content:center;gap:40px;flex-wrap:wrap;padding:8px 0 24px;border-bottom:1px solid #eee;margin-bottom:22px}.program-logos img{max-width:200px;max-height:90px;width:auto;height:auto;object-fit:contain}@media(max-width:560px){.program-logos{gap:20px}.program-logos img{max-width:135px;max-height:65px}}

.reserve-section{border:1px solid #efb783;background:#fffaf5;padding:20px;margin:20px 0;border-radius:10px}.reserve-card{border-top:1px solid #efd8c4;padding:16px 0}.reserve-card p{margin:8px 0}.reserve-card button{background:#e87623;color:white;border:0;border-radius:6px;padding:10px 16px;cursor:pointer}

/* v30.6.2 teacher first-screen design only; existing forms and availability logic retained */
.teacher-step{font-size:12px;font-weight:800;letter-spacing:.12em;color:#ed6c20;margin:0 0 8px}
.teacher-program-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:24px}
.teacher-program{background:#fff;border:2px solid #dfe4eb;border-radius:12px;padding:18px;display:flex;align-items:center;flex-direction:column;gap:6px;cursor:pointer;min-height:180px;color:#243045;text-align:center}
.teacher-program:hover{border-color:#f4a46f}
.teacher-program.selected{border-color:#f47423;background:#fffaf5;box-shadow:0 0 0 2px #f4742322}
.teacher-program img{width:auto;max-width:100%;height:85px;object-fit:contain;margin-bottom:5px}
.teacher-program strong{font-size:17px}
.teacher-program span{font-size:13px;color:#647083}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:560px){.teacher-program-grid{gap:10px}.teacher-program{padding:12px;min-height:145px}.teacher-program img{height:65px}.teacher-program strong{font-size:15px}}

/* Step 2 visual refresh; no change to availability eligibility */
#results:not(:empty){margin-top:30px}
.results-head{background:white;border:1px solid #e7e2e7;border-radius:16px;padding:24px;margin:0 0 18px;box-shadow:0 4px 14px #00000008}
.results-head h2{margin:15px 0 8px;font-size:29px}.results-head p{line-height:1.5}
.results-context{display:flex;gap:8px;flex-wrap:wrap}.results-context span{border-radius:999px;padding:7px 11px;font-size:13px;background:#f3f3f5;color:#43424a;font-weight:700}
.results-context .results-program{background:#fff1e7;color:#9d480c}
.change-search{border:0;background:transparent;color:#b45312;font-weight:700;padding:5px 0;margin-top:4px;cursor:pointer}
.public-show-all{border:1px solid #dfd9e1;border-radius:8px;background:white;color:#9b4c18;font-weight:700;margin-bottom:10px;padding:10px 15px}
.public-term-section{border:1px solid #e2dce4;border-radius:14px;overflow:hidden;background:white;margin-bottom:13px}
.public-term-toggle{border:0;border-radius:0;width:100%;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:18px 20px;font-weight:800;color:#2e2930;cursor:pointer}
.public-term-toggle:hover{background:#fff8f2}.public-term-content{padding:0 14px 14px}
.public-term-section:not(.open) .public-term-content{display:none}
.public-term-section .calendar{border:0;gap:9px;background:transparent}
.public-term-section .day{border:1px solid #e5e0e7;border-radius:10px;overflow:hidden;padding:0 11px 12px;min-width:0;background:#fff}
.public-term-section .day-date{margin:0 -11px 12px;background:#f7f3f7;padding:11px 12px;font-size:14px}
.public-term-section .day.available{border-color:#f3d3b8}.public-term-section .day.available .day-date{background:#fff0e5;color:#8b4213}
.public-term-section .day.unavailable{background:#f9f9fa;color:#777}.public-term-section .day.unavailable .day-date{background:#f1f0f2}
.slot{padding:8px 0 14px}.slot-period{display:flex;align-items:center;gap:6px;font-size:15px}
.slot-available-dot{height:8px;width:8px;border-radius:50%;background:#2d9a65;display:inline-block;flex-shrink:0}
.slot-time{font-size:13px;font-weight:600;margin-top:8px;line-height:1.5}.slot-pref{font-size:12px;color:#666;line-height:1.4}
.slot .request{font-size:13px;width:100%;padding:9px 7px}.unavailable-label{font-size:14px;color:#75717b}
@media(max-width:850px){.public-term-section .calendar{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.results-head{padding:17px}.public-term-content{padding:0 9px 9px}.public-term-section .calendar{grid-template-columns:1fr}.public-term-section .day{min-height:0}}

/* 30.6.5 full-week morning/afternoon booking grid */
body.teacher-show-dates main > .card{display:none}
body.teacher-show-dates #results{margin-top:8px}
.week-label{font-weight:800;font-size:15px;margin:18px 0 10px;color:#49424b}
.week-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;border:1px solid #e1dce3;border-radius:12px;overflow:hidden;background:#fff}
.week-day-title{font-size:13px;font-weight:800;padding:14px 9px;background:#fff1e7;color:#753b17;border-right:1px solid #e7dde1;text-align:center}
.week-day-title:nth-child(5){border-right:0}
.period-cell{min-width:0;display:flex;flex-direction:column;padding:10px;border-top:1px solid #e5e1e6;border-right:1px solid #e5e1e6;min-height:190px}
.period-cell:nth-child(5n){border-right:0}
.period-cell.is-closed{background:#f3f3f5;color:#777}
.period-cell.is-open{background:#fff}
.period-label{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#777;margin-bottom:8px}
.period-cell .slot{display:flex;flex:1;flex-direction:column;border:0;padding:0}
.period-cell .slot-time{font-size:12px;font-weight:500;margin-top:7px}
.period-cell .slot-period{font-size:14px}
.period-cell .slot .request{margin-top:auto;min-height:40px;padding:8px 4px;font-size:12px}
.period-cell .slot-unavailable{font-size:13px;line-height:1.5;color:#74717a;overflow-wrap:anywhere}
.period-cell .booked-school{font-size:13px;margin:0}
.period-cell .nearby{font-size:11px;margin:8px 0}
@media(max-width:750px){.week-grid{display:block;border:0;background:transparent}.week-day-title{display:none}.period-cell{border:1px solid #e5e1e6;min-height:0;margin-bottom:9px;border-radius:9px;padding:13px}.period-cell:before{content:attr(data-day)}.period-cell .slot .request{margin-top:14px}.period-label{font-size:13px}.period-cell.is-closed{min-height:65px}}
@media(max-width:750px){.period-cell:before{display:block;font-weight:800;color:#332d38;font-size:14px;margin-bottom:8px}.week-grid{display:grid;grid-template-columns:1fr}.period-cell{grid-column:1}.week-grid .period-cell:nth-child(5n+6){margin-top:13px}}

/* Mobile day ordering */
@media(max-width:750px){.week-grid .period-cell:nth-child(6){order:0}.week-grid .period-cell:nth-child(7){order:4}.week-grid .period-cell:nth-child(8){order:8}.week-grid .period-cell:nth-child(9){order:12}.week-grid .period-cell:nth-child(10){order:16}.week-grid .period-cell:nth-child(11){order:1}.week-grid .period-cell:nth-child(12){order:5}.week-grid .period-cell:nth-child(13){order:9}.week-grid .period-cell:nth-child(14){order:13}.week-grid .period-cell:nth-child(15){order:17}.week-grid .period-cell:nth-child(16){order:2}.week-grid .period-cell:nth-child(17){order:6}.week-grid .period-cell:nth-child(18){order:10}.week-grid .period-cell:nth-child(19){order:14}.week-grid .period-cell:nth-child(20){order:18}.week-grid .period-cell:nth-child(21){order:3}.week-grid .period-cell:nth-child(22){order:7}.week-grid .period-cell:nth-child(23){order:11}.week-grid .period-cell:nth-child(24){order:15}.week-grid .period-cell:nth-child(25){order:19}}

.additional-performances{margin:18px 0;padding:16px;border:1px solid #e5dce4;border-radius:12px}.additional-performances h3{margin:0 0 8px}.additional-performances p{font-size:13px}.multi-row{display:grid;grid-template-columns:1.1fr 1fr 1fr .7fr auto;gap:8px;align-items:end;border-top:1px solid #eee;padding:12px 0}.multi-row label{font-size:12px}.multi-row input,.multi-row select{width:100%}.multi-add,.multi-remove{background:#fff;color:#b45312;border:1px solid #e8b98e;border-radius:8px;padding:8px;cursor:pointer}@media(max-width:700px){.multi-row{grid-template-columns:1fr 1fr}.multi-remove{grid-column:1/-1}}
