/* =====================
   Call Booking Form Styles
   ===================== */

.cb-booking-container {
    max-width: 600px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.cb-booking-header {
    text-align: center;
    margin-bottom: 30px;
}

.cb-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.cb-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Steps */
.cb-step {
    display: none;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
}

.cb-step-active {
    display: block;
    animation: cbFadeIn 0.3s ease;
}

@keyframes cbFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cb-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
}

.cb-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--cb-primary, #2563eb);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.cb-step-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Form Groups */
.cb-form-group {
    margin-bottom: 18px;
}

.cb-form-group label,
.cb-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.cb-required {
    color: #dc3545;
}

.cb-form-group input[type="text"],
.cb-form-group input[type="email"],
.cb-form-group input[type="tel"],
.cb-form-group input[type="date"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.cb-form-group input:focus {
    outline: none;
    border-color: var(--cb-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.cb-form-group input.cb-error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.cb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 480px) {
    .cb-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .cb-booking-container {
        margin: 15px auto;
        padding: 0 10px;
    }
    .cb-step {
        padding: 20px;
    }
}

/* Time Slots Grid */
.cb-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.cb-time-slot {
    padding: 10px 8px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    user-select: none;
}

.cb-time-slot:hover:not(.cb-slot-unavailable) {
    border-color: var(--cb-primary, #2563eb);
    background: rgba(37, 99, 235, 0.04);
}

.cb-time-slot.cb-slot-selected {
    background: var(--cb-primary, #2563eb);
    color: #fff;
    border-color: var(--cb-primary, #2563eb);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.cb-time-slot.cb-slot-unavailable {
    background: #f9fafb;
    color: #c4c9d1;
    border-color: #e5e7eb;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Loading */
.cb-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 25px;
    color: #6b7280;
    font-size: 14px;
}

.cb-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--cb-primary, #2563eb);
    border-radius: 50%;
    animation: cbSpin 0.7s linear infinite;
}

@keyframes cbSpin {
    to { transform: rotate(360deg); }
}

/* No Slots */
.cb-no-slots-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    color: #c53030;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Buttons */
.cb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.cb-btn-next,
.cb-btn-submit {
    background: var(--cb-primary, #2563eb);
    color: #fff;
    width: 100%;
}

.cb-btn-next:hover,
.cb-btn-submit:hover:not(:disabled) {
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.cb-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cb-btn-back {
    background: #f3f4f6;
    color: #374151;
}

.cb-btn-back:hover {
    background: #e5e7eb;
}

.cb-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.cb-btn-group .cb-btn-back {
    flex: 0 0 auto;
}

.cb-btn-group .cb-btn-submit {
    flex: 1;
}

/* Success */
.cb-success-container {
    text-align: center;
    padding: 20px 0;
}

.cb-success-icon {
    margin-bottom: 15px;
}

.cb-success-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.cb-success-msg {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 20px;
}

.cb-booking-summary {
    background: #f0f7ff;
    border: 1.5px solid var(--cb-primary, #2563eb);
    border-radius: 10px;
    padding: 18px;
    margin: 0 auto 25px;
    max-width: 320px;
    text-align: center;
}

.cb-summary-date {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.cb-summary-time {
    font-size: 16px;
    font-weight: 600;
    color: var(--cb-primary, #2563eb);
}

.cb-summary-id {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
}

.cb-btn-new {
    background: #f3f4f6;
    color: #374151;
    margin-top: 10px;
}

.cb-btn-new:hover {
    background: #e5e7eb;
}

/* Messages */
#cb-form-messages {
    margin-top: 15px;
}

.cb-error-message {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}
