.demo-modal[hidden]{display:none!important}.demo-modal{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:22px}.demo-modal-backdrop{position:absolute;inset:0;background:rgba(3,7,12,.78);backdrop-filter:blur(10px)}.demo-modal-card{position:relative;width:min(920px,100%);max-height:min(880px,calc(100dvh - 32px));overflow:auto;border:1px solid rgba(255,255,255,.13);border-radius:26px;background:#fff;box-shadow:0 34px 120px rgba(0,0,0,.42)}.demo-modal-head{position:relative;padding:30px 34px 25px;background:radial-gradient(circle at 90% 20%,rgba(229,31,43,.25),transparent 34%),linear-gradient(145deg,#091018,#152230);color:#fff}.demo-modal-head .eyebrow{color:#ff6974}.demo-modal-head h2{margin:7px 52px 10px 0;font-size:clamp(2rem,4vw,3.2rem);line-height:1;letter-spacing:-.045em}.demo-modal-head p{max-width:680px;margin:0;color:#c4ced8}.demo-modal-close{position:absolute;right:18px;top:18px;width:42px;height:42px;border:1px solid rgba(255,255,255,.16);border-radius:50%;background:rgba(255,255,255,.08);color:#fff;font-size:25px;cursor:pointer}.demo-form{padding:28px 34px 34px}.demo-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.demo-field{display:flex;flex-direction:column;gap:7px}.demo-field.full{grid-column:1/-1}.demo-field label{font-size:.78rem;font-weight:850;color:#303a44}.demo-field input,.demo-field select,.demo-field textarea{width:100%;min-height:50px;border:1px solid #d4dbe2;border-radius:13px;background:#fff;padding:12px 14px;color:#111820;outline:none}.demo-field textarea{min-height:100px;resize:vertical}.demo-field input:focus,.demo-field select:focus,.demo-field textarea:focus{border-color:#e51f2b;box-shadow:0 0 0 3px rgba(229,31,43,.10)}.demo-slot-note{padding:13px 15px;border-radius:12px;background:#f5f7f9;color:#66717d;font-size:.85rem}.demo-privacy{display:flex;gap:10px;align-items:flex-start;margin:18px 0;color:#5d6873;font-size:.83rem}.demo-privacy input{margin-top:3px}.demo-form-actions{display:flex;align-items:center;gap:14px;justify-content:flex-end}.demo-form-msg{margin-right:auto;font-size:.88rem;color:#67727e}.demo-form-msg.error{color:#c11827}.demo-success{padding:44px 34px;text-align:center}.demo-success .ok{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;margin:0 auto 18px;background:#dcf7e7;color:#13834d;font-size:30px;font-weight:900}.demo-success h3{font-size:2rem;margin:0 0 10px}.demo-success p{color:#66717d;margin:0 auto 24px;max-width:560px}@media(max-width:700px){.demo-modal{padding:8px}.demo-modal-card{border-radius:20px;max-height:calc(100dvh - 16px)}.demo-modal-head,.demo-form{padding-left:20px;padding-right:20px}.demo-form-grid{grid-template-columns:1fr}.demo-field.full{grid-column:auto}.demo-form-actions{flex-direction:column;align-items:stretch}.demo-form-actions .btn{width:100%}.demo-form-msg{margin:0}.demo-modal-head h2{font-size:2.15rem}}


.demo-picker{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:14px;align-items:start}.demo-picker-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.demo-picker-head strong{font-size:.86rem;letter-spacing:.01em}.demo-picker-head span{font-size:.78rem;color:#6a7480}.demo-day-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.demo-day{min-height:96px;border:1px solid #d8dee6;border-radius:16px;background:#fff;padding:12px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;cursor:pointer;transition:all .18s ease;box-shadow:0 10px 22px rgba(15,23,42,.04)}.demo-day:hover{transform:translateY(-1px);border-color:#c8d0db}.demo-day small{font-size:.76rem;color:#7a8591;text-transform:uppercase}.demo-day strong{font-size:1.45rem;line-height:1;color:#111820}.demo-day span{font-size:.74rem;color:#586370}.demo-day.active{border-color:#e51f2b;background:linear-gradient(180deg,#fff,#fff5f6);box-shadow:0 14px 28px rgba(229,31,43,.10)}.demo-day.sold-out{opacity:1;background:#f6f8fa;border-style:dashed}.demo-day.sold-out strong{color:#8a93a0}.demo-day.sold-out span{color:#c11827;font-weight:800;letter-spacing:.04em}.demo-times{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.demo-time{min-height:48px;border:1px solid #d7dde5;border-radius:14px;background:#fff;padding:0 14px;font:inherit;font-weight:700;color:#16202a;cursor:pointer;transition:all .16s ease}.demo-time:hover{border-color:#c8d0db;transform:translateY(-1px)}.demo-time.active{background:#111820;color:#fff;border-color:#111820;box-shadow:0 14px 28px rgba(15,23,42,.18)}.demo-day-info{margin:0 0 10px;color:#596470;font-size:.84rem;font-weight:700}.demo-empty{min-height:72px;border:1px dashed #d3d9e1;border-radius:14px;background:#f8fafc;color:#62707d;display:grid;place-items:center;padding:14px;text-align:center;font-size:.9rem}.demo-empty.sold{border-color:#f1c7cd;background:#fff7f8;color:#a21c28}.demo-field .demo-slot-input{position:absolute!important;left:-9999px!important;opacity:0;pointer-events:none}@media(max-width:840px){.demo-picker{grid-template-columns:1fr}.demo-day-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:560px){.demo-day-grid,.demo-times{grid-template-columns:1fr 1fr}.demo-day{min-height:88px;padding:10px}.demo-day strong{font-size:1.2rem}}

.demo-calendar-shell{display:grid;grid-template-columns:minmax(330px,1.15fr) minmax(260px,.85fr);gap:18px;border:1px solid #e1e6ec;border-radius:18px;background:#f8fafc;padding:16px}.demo-calendar-panel{min-width:0}.demo-calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.demo-calendar-toolbar strong{text-transform:capitalize;font-size:1rem}.demo-cal-nav{width:36px;height:36px;border:1px solid #d7dde5;border-radius:10px;background:#fff;cursor:pointer;font-size:20px;line-height:1}.demo-cal-nav:disabled{opacity:.3;cursor:default}.demo-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.demo-cal-weekday{text-align:center;font-size:.7rem;font-weight:900;color:#7a8591;text-transform:uppercase;padding:2px 0 4px}.demo-cal-blank{min-height:62px}.demo-cal-day{min-height:66px;border:1px solid #dce2e9;border-radius:12px;background:#fff;padding:7px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;transition:.16s ease}.demo-cal-day:hover:not(:disabled){transform:translateY(-1px);border-color:#c4ccd6}.demo-cal-day .demo-cal-num{font-size:1rem;font-weight:900;color:#111820}.demo-cal-day small{font-size:.55rem;font-weight:800;color:#6b7682;text-align:center;line-height:1.05}.demo-cal-day.available{box-shadow:inset 0 -3px 0 #1ba967}.demo-cal-day.available small{color:#138651}.demo-cal-day.sold_out{background:#fff5f6;border-color:#efcfd3}.demo-cal-day.sold_out small{color:#c51c2b}.demo-cal-day.closed{background:#f1f3f5;border-color:#eceff2;cursor:default}.demo-cal-day.closed .demo-cal-num{color:#aab1b9}.demo-cal-day.active{background:#111820;border-color:#111820;box-shadow:0 12px 24px rgba(15,23,42,.18)}.demo-cal-day.active .demo-cal-num,.demo-cal-day.active small{color:#fff}.demo-time-panel{padding:2px}.demo-time-panel h4{margin:0 0 5px;font-size:1rem}.demo-time-panel .demo-day-info{margin-bottom:12px}.demo-times{display:grid;grid-template-columns:1fr 1fr;gap:9px}.demo-time{min-height:46px;border:1px solid #d7dde5;border-radius:12px;background:#fff;font:inherit;font-weight:800;cursor:pointer}.demo-time:hover{border-color:#bfc8d2}.demo-time.active{background:#e51f2b;border-color:#e51f2b;color:#fff;box-shadow:0 10px 22px rgba(229,31,43,.2)}@media(max-width:800px){.demo-calendar-shell{grid-template-columns:1fr}.demo-calendar{gap:5px}.demo-cal-day{min-height:60px}.demo-times{grid-template-columns:repeat(2,1fr)}}@media(max-width:480px){.demo-calendar-shell{padding:10px}.demo-cal-day{min-height:54px;border-radius:10px}.demo-cal-day small{font-size:.5rem}.demo-times{grid-template-columns:1fr 1fr}}


/* Mobile optimization patch */
.demo-modal-card{overscroll-behavior:contain}
.demo-form-actions{position:sticky;bottom:0;z-index:4;padding-top:14px;padding-bottom:2px;background:linear-gradient(to top,#fff 72%,rgba(255,255,255,0))}
.demo-form-msg{line-height:1.45}
.demo-slot-note{line-height:1.5}
@media(max-width:900px){
  .demo-modal-card{width:min(100%,980px)}
  .demo-calendar-shell{grid-template-columns:1fr;gap:14px}
  .demo-time-panel{padding-top:0}
}
@media(max-width:700px){
  .demo-modal{padding:0;place-items:end center}
  .demo-modal-card{width:100%;max-height:100dvh;height:100dvh;border-radius:20px 20px 0 0;border-left:none;border-right:none;border-bottom:none}
  .demo-modal-head{padding:18px 18px 16px}
  .demo-modal-head h2{margin:6px 44px 8px 0;font-size:clamp(1.95rem,9vw,2.55rem);line-height:.96}
  .demo-modal-head p{font-size:.97rem;line-height:1.55}
  .demo-modal-close{right:12px;top:12px;width:40px;height:40px}
  .demo-form{padding:16px 16px calc(18px + env(safe-area-inset-bottom))}
  .demo-form-grid{gap:12px}
  .demo-field label{font-size:.8rem}
  .demo-field input,.demo-field select,.demo-field textarea{min-height:52px;border-radius:14px;padding:12px 13px;font-size:16px}
  .demo-field textarea{min-height:110px}
  .demo-privacy{font-size:.86rem;line-height:1.45}
  .demo-calendar-shell{padding:12px;border-radius:16px}
  .demo-calendar-toolbar{margin-bottom:10px}
  .demo-calendar-toolbar strong{font-size:.95rem}
  .demo-cal-nav{width:38px;height:38px;border-radius:12px}
  .demo-calendar{gap:5px}
  .demo-cal-weekday{font-size:.66rem;padding-bottom:2px}
  .demo-cal-day{min-height:56px;padding:6px 4px;gap:4px}
  .demo-cal-day .demo-cal-num{font-size:.95rem}
  .demo-cal-day small{font-size:.5rem;line-height:1.02}
  .demo-time-panel h4{font-size:.95rem}
  .demo-day-info{font-size:.82rem;line-height:1.4}
  .demo-times{grid-template-columns:1fr 1fr;gap:8px}
  .demo-time{min-height:48px;border-radius:12px;font-size:.98rem}
  .demo-form-actions{margin-top:4px;gap:10px}
  .demo-form-actions .btn{min-height:50px;border-radius:14px;font-size:1rem}
}
@media(max-width:520px){
  .demo-modal-head .eyebrow{font-size:.76rem;letter-spacing:.12em}
  .demo-modal-head h2{font-size:clamp(1.85rem,10.5vw,2.35rem)}
  .demo-modal-head p{font-size:.92rem}
  .demo-calendar-shell{padding:10px}
  .demo-cal-day{min-height:52px}
  .demo-cal-day .demo-cal-num{font-size:.88rem}
  .demo-cal-day small{font-size:.46rem}
  .demo-times{grid-template-columns:1fr}
  .demo-time{min-height:50px}
  .demo-form-actions{padding-bottom:max(6px,env(safe-area-inset-bottom))}
}
@media(max-width:380px){
  .demo-modal-head,.demo-form{padding-left:12px;padding-right:12px}
  .demo-calendar{gap:4px}
  .demo-cal-day{border-radius:10px;min-height:48px;padding:5px 3px}
  .demo-cal-day .demo-cal-num{font-size:.82rem}
  .demo-cal-day small{font-size:.42rem}
}
