/* WebGen Call Booking Modal */
.wg-call-modal[hidden] { display: none !important; }

.wg-call-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    font-family: 'Inter', sans-serif;
}

.wg-call-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 26, 43, .72);
    backdrop-filter: blur(5px);
}

.wg-call-modal__content {
    position: relative;
    width: min(100%, 720px);
    max-height: min(90vh, 900px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .25);
}

.wg-call-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 30px;
    border-bottom: 1px solid #e4ebf5;
}

.wg-call-modal__header h2 {
    font-family: 'Rubik', sans-serif;
    font-size: 23px;
    font-weight: 700;
    color: #0e1a2b;
    line-height: 1.3;
    margin: 0;
}

.wg-call-modal__close {
    border: 1px solid #e4ebf5;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: #fff;
    color: #516079;
    font-size: 26px;
    cursor: pointer;
}

.wg-call-modal__close:hover {
    background: #f1f5f9;
}

.wg-call-modal__body {
    overflow-y: auto;
    padding: 28px 30px;
    overscroll-behavior: contain;
}

.wg-call-modal__body > p {
    color: #516079;
    margin-bottom: 20px;
}

.wg-call-section-title {
    font-family: 'Rubik', sans-serif;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #0e1a2b;
}

.wg-call-date-grid,
.wg-call-slot-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.wg-call-date,
.wg-call-slot {
    border: 1.5px solid #e4ebf5;
    border-radius: 12px;
    background: #fff;
    padding: 13px 8px;
    text-align: center;
    cursor: pointer;
    color: #0e1a2b;
    transition: .2s ease;
    font-size: 14px;
}

.wg-call-date:hover,
.wg-call-slot:hover {
    border-color: #2563eb;
    background: #eff5ff;
}

.wg-call-date.is-selected,
.wg-call-slot.is-selected {
    border-color: #2563eb;
    background: #eff5ff;
    color: #1749c4;
    font-weight: 700;
}

.wg-call-date:disabled,
.wg-call-slot:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.wg-call-date__day {
    display: block;
    font-size: 12px;
    color: #516079;
}

.wg-call-date__number {
    display: block;
    font-weight: 700;
    margin-top: 4px;
}

.wg-call-field {
    margin-bottom: 16px;
}

.wg-call-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 7px;
    color: #0e1a2b;
}

.wg-call-field input,
.wg-call-field select,
.wg-call-field textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid #e4ebf5;
    border-radius: 11px;
    background: #fff;
    color: #0e1a2b;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.wg-call-field input:focus,
.wg-call-field select:focus,
.wg-call-field textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.wg-call-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.wg-call-submit {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    background: #ff6a3d;
    color: #fff;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.wg-call-submit:hover {
    background: #e8521e;
}

.wg-call-submit:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.wg-call-message {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}

.wg-call-message--error {
    background: #fff0f0;
    color: #b91c1c;
}

.wg-call-message--success {
    background: #eafbF4;
    color: #087f5b;
}

@media (max-width: 600px) {
    .wg-call-modal {
        padding: 8px;
    }

    .wg-call-modal__content {
        max-height: 94dvh;
        border-radius: 16px;
    }

    .wg-call-modal__header {
        padding: 18px;
    }

    .wg-call-modal__header h2 {
        font-size: 18px;
    }

    .wg-call-modal__body {
        padding: 20px 18px;
    }

    .wg-call-date-grid,
    .wg-call-slot-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wg-call-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wg-call-date,
    .wg-call-slot {
        transition: none;
    }
}


/* Center the empty availability message */
.wg-call-slot-grid:not(:has(.wg-call-slot)) {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-height: 110px;
    line-height: 1.6;
}


/* Keep booking time ranges on a single line */
.wg-call-slot {
    white-space: nowrap;
    font-size: 13px;
    padding-left: 8px;
    padding-right: 8px;
}
