.jc-modal[hidden] { display: none !important; }
.jc-modal { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 20px; }
.jc-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .62); backdrop-filter: blur(3px); }
.jc-dialog { position: relative; width: min(100%, 900px); max-height: calc(100vh - 40px); overflow: auto; box-sizing: border-box; border-radius: 18px; padding: 30px; background: #fff; color: #172033; box-shadow: 0 24px 80px rgba(0, 0, 0, .25); }
.jc-dialog h2 { margin: 0 40px 24px 0; font-size: 27px; color: inherit; }
.jc-close { position: absolute; top: 14px; right: 14px; border: 0; background: transparent; font-size: 30px; line-height: 1; cursor: pointer; color: #536078; }
.jc-form { display: grid; gap: 18px; }
.jc-booking-layout { display: grid; grid-template-columns: minmax(390px, 1.15fr) minmax(290px, .85fr); gap: 0; border: 1px solid #e2e7ef; border-radius: 14px; overflow: hidden; }
.jc-calendar-wrap { padding: 24px; }
.jc-details-pane { display: grid; align-content: start; gap: 17px; padding: 24px; border-left: 1px solid #e2e7ef; background: #fbfcfe; }
.jc-details-pane > label, .jc-times { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; font-weight: 650; }
.jc-field-label { display: block; margin-bottom: 7px; font-weight: 650; }
.jc-calendar-head { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; margin-bottom: 10px; text-align: center; }
.jc-calendar-head button { height: 36px; border: 1px solid #d8deea; border-radius: 8px; background: #fff; color: #26334c; font-size: 23px; cursor: pointer; }
.jc-month-title { text-transform: capitalize; }
.jc-weekdays, .jc-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.jc-weekdays { margin-bottom: 5px; color: #667085; font-size: 12px; text-align: center; }
.jc-calendar-grid { min-height: 210px; align-content: start; }
.jc-calendar-grid > span, .jc-calendar-grid > button { aspect-ratio: 1; }
.jc-calendar-grid > button { position: relative; border: 1px solid #add3ef; border-radius: 8px; background: #edf7ff; color: #174e78; font: inherit; font-weight: 700; cursor: pointer; }
.jc-calendar-grid > button::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; transform: translateX(-50%); border-radius: 50%; background: #3b82b8; }
.jc-calendar-grid > button:hover:not(:disabled), .jc-calendar-grid > button.is-selected { border-color: #3157d5; background: #3157d5; color: #fff; }
.jc-calendar-grid > button.is-selected::after { background: #fff; }
.jc-calendar-grid > button.is-today:not(.is-selected) { box-shadow: inset 0 0 0 2px #3157d5; }
.jc-calendar-grid > button:disabled { border-color: transparent; background: #f7f8fa; color: #b3bac7; font-weight: 400; cursor: not-allowed; }
.jc-calendar-grid > button:disabled::after { display: none; }
.jc-form input[type="date"], .jc-form input[type="text"], .jc-form input[type="email"] { width: 100%; box-sizing: border-box; border: 1px solid #ccd3df; border-radius: 9px; padding: 12px 13px; background: #fff; color: #172033; font: inherit; }
.jc-time-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; min-height: 42px; font-weight: 400; }
.jc-time { position: relative; text-align: center; border: 1px solid #ccd3df; border-radius: 8px; padding: 9px; cursor: pointer; }
.jc-time:has(input:checked) { border-color: #3157d5; background: #eef2ff; color: #2343ac; }
.jc-time.is-occupied { border-color: #dce0e7; background: #f1f3f6; color: #535e70; cursor: not-allowed; }
.jc-time input { position: absolute; opacity: 0; pointer-events: none; }
.jc-check { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 400 !important; font-size: 14px; }
.jc-check input { margin-top: 3px; }
.jc-submit { border: 0; border-radius: 9px; padding: 13px 18px; background: #3157d5; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.jc-submit:disabled { opacity: .6; cursor: wait; }
.jc-message { min-height: 1.4em; color: #b42318; }
.jc-message.jc-success { color: #087443; }
.jc-submit-progress { display: none; position: relative; width: 100%; height: 5px; overflow: hidden; background: rgba(49, 87, 213, .14); border-radius: 999px; }
.jc-submit-progress.is-active { display: block; }
.jc-submit-progress span { position: absolute; inset: 0 auto 0 0; width: 38%; height: 100%; background: linear-gradient(90deg, #4b9ad5, #fff, #ea9200); border-radius: inherit; animation: jc-submit-progress-slide 1.05s ease-in-out infinite; }
@keyframes jc-submit-progress-slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(290%); } }
.jc-result-modal .jc-dialog { max-width: 430px; text-align: center; }
.jc-result-modal .jc-dialog h2 { margin: 10px 30px 10px; }
.jc-result-modal .jc-dialog p { margin: 0 0 24px; }
.jc-result-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto; border-radius: 50%; background: #e8f7ef; color: #087443; font-size: 30px; font-weight: 700; }
.jc-result-modal .jc-submit { min-width: 110px; }
.jc-modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
    .jc-submit-progress span { width: 100%; animation: none; }
}
@media (max-width: 760px) {
    .jc-modal { padding: 10px; }
    .jc-dialog { max-height: calc(100vh - 20px); padding: 24px 16px; }
    .jc-booking-layout { grid-template-columns: 1fr; }
    .jc-calendar-wrap, .jc-details-pane { padding: 18px; }
    .jc-details-pane { border-top: 1px solid #e2e7ef; border-left: 0; }
    .jc-time-grid { grid-template-columns: repeat(2, 1fr); }
}
