.sc-modal[hidden] {
    display: none !important;
}

.sc-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.sc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
}

.sc-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}

.sc-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #64748b;
}

.sc-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 520px;
}

.sc-layout.is-details {
    grid-template-columns: 250px 1fr;
}

.sc-aside {
    padding: 32px 24px;
    background: #f8fafc;
    border-right: 1px solid #e6eaf2;
}

.sc-eyebrow {
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
}

.sc-aside h2 {
    font-size: 26px;
    margin-bottom: 16px;
    color: #0f172a;
}

.sc-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    color: #64748b;
}

.sc-meta li {
    margin-bottom: 8px;
}

.sc-meta i {
    width: 18px;
    color: var(--main-color-two, #5580ff);
}

.sc-summary {
    display: none;
    background: #fff;
    border: 1px solid #e6eaf2;
    border-radius: 12px;
    padding: 12px;
}

.sc-summary.is-visible {
    display: block;
}

.sc-summary .label {
    font-size: 12px;
    color: #64748b;
}

.sc-summary strong {
    display: block;
    color: #0f172a;
}

.sc-picker,
.sc-details {
    padding: 28px 32px 32px;
}

.sc-layout.is-details .sc-picker {
    display: none;
}

.sc-details[hidden] {
    display: none !important;
}

.sc-back {
    border: 0;
    background: transparent;
    color: var(--main-color-two, #5580ff);
    font-weight: 600;
    padding: 0;
    margin-bottom: 12px;
}

.sc-picker-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.sc-layout.has-times .sc-picker-body {
    grid-template-columns: 1.15fr .85fr;
}

.sc-month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sc-month-nav button {
    width: 36px;
    height: 36px;
    border: 1px solid #e6eaf2;
    background: #fff;
    border-radius: 50%;
}

.sc-weekdays,
.sc-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.sc-weekdays span {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    padding: 6px 0;
}

.sc-day {
    height: 40px;
    border: 0;
    background: transparent;
    border-radius: 50%;
    font-weight: 600;
}

.sc-day.is-muted,
.sc-day.is-disabled {
    color: #cbd5e1;
    pointer-events: none;
}

.sc-day.is-available:hover {
    background: #eef2ff;
}

.sc-day.is-selected {
    background: var(--main-color-two, #5580ff);
    color: #fff;
}

.sc-times-list {
    display: none;
    flex-direction: column;
    gap: 8px;
    max-height: 340px;
    overflow: auto;
}

.sc-time {
    border: 1px solid var(--main-color-two, #5580ff);
    color: var(--main-color-two, #5580ff);
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 700;
}

.sc-time:hover,
.sc-time.is-selected {
    background: var(--main-color-two, #5580ff);
    color: #fff;
}

.sc-times-empty {
    color: #64748b;
}

.sc-honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.sc-field {
    margin-bottom: 14px;
}

.sc-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #0f172a;
}

.sc-field label span {
    font-weight: 400;
    color: #64748b;
    font-size: 12px;
}

.sc-field input,
.sc-field textarea {
    width: 100%;
    border: 1px solid #e6eaf2;
    border-radius: 10px;
    min-height: 46px;
    padding: 10px 12px;
}

.sc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sc-submit {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: var(--main-color-two, #5580ff);
    color: #fff;
    font-weight: 700;
}

.sc-form-error {
    color: #b42318;
    margin-bottom: 10px;
}

.sc-success {
    text-align: center;
    padding: 24px 8px;
}

.sc-success__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #ecfdf3;
    color: #027a48;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

body.sc-modal-open .xlab-whatsapp-sticky,
body.sc-modal-open .xlab-whatsapp-float,
body.sc-modal-open .back-to-top {
    display: none !important;
}

@media (max-width: 991px) {
    .sc-layout,
    .sc-layout.is-details,
    .sc-layout.has-times .sc-picker-body,
    .sc-grid {
        grid-template-columns: 1fr;
    }
    .sc-aside {
        border-right: 0;
        border-bottom: 1px solid #e6eaf2;
    }
}
