.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%, 560px); max-height: calc(100vh - 40px); overflow: auto; box-sizing: border-box; border-radius: 18px; padding: 32px; 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-form > 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 { border: 1px solid #d8deea; border-radius: 8px; background: #fff; color: #26334c; font: inherit; cursor: pointer; }
.jc-calendar-grid > button:hover:not(:disabled), .jc-calendar-grid > button.is-selected { border-color: #3157d5; background: #3157d5; color: #fff; }
.jc-calendar-grid > button:disabled { border-color: transparent; background: #f5f6f8; color: #b3bac7; cursor: not-allowed; }
.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(3, 1fr); gap: 8px; 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 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-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 (max-width: 560px) { .jc-dialog { padding: 24px 18px; } .jc-time-grid { grid-template-columns: repeat(2, 1fr); } }
