/* Booking Form Wrapper */
.booking-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.booking-step {
    animation: fadeIn 0.3s ease-in;
}

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

/* Calendar Styles */
.calendar-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #1f88c2;
    color: white;
}

.calendar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.cal-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.2s;
}

.cal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 15px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    border: 2px solid transparent;
}

.calendar-day:not(.disabled):not(.day-header):hover {
    background: #e0f2fe;
    border-color: #1f88c2;
    color: #1f88c2;
}

.calendar-day.disabled {
    color: #d1d5db;
    cursor: not-allowed;
    background: #f9fafb;
}

.calendar-day.day-header {
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    cursor: default;
    aspect-ratio: auto;
    padding: 8px 0;
}

.calendar-day.selected {
    background: #1f88c2;
    color: white;
    border-color: #1f88c2;
}

/* Step Header */
.step-header {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-header h3 {
    margin: 0;
    font-size: 20px;
    color: #1f2937;
    flex: 1;
}

.back-btn {
    background: none;
    border: none;
    color: #1f88c2;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.back-btn:hover {
    color: #166a9c;
}

/* Time Slots */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.time-slot-btn {
    padding: 15px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot-btn:hover {
    background: #1f88c2;
    border-color: #1f88c2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 136, 194, 0.3);
}

.time-slot-btn.disabled {
    background: #f9fafb;
    color: #d1d5db;
    cursor: not-allowed;
    border-color: #f3f4f6;
}

.time-slot-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Form Styles */
.booking-summary {
    background: #f0f9ff;
    border-left: 4px solid #1f88c2;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.booking-summary p {
    margin: 8px 0;
    color: #374151;
    font-size: 14px;
}

.booking-summary strong {
    color: #1f88c2;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1f88c2;
    box-shadow: 0 0 0 3px rgba(31, 136, 194, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #1f88c2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn:hover {
    background: #166a9c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 136, 194, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Success Message */
.booking-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.booking-success h3 {
    color: #1f88c2;
    font-size: 24px;
    margin: 0 0 15px 0;
}

.booking-success p {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

/* Loading State */
.submit-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 480px) {
    .booking-form-wrapper {
        padding: 15px;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calendar-header h3 {
        font-size: 16px;
    }
    
    .calendar-day {
        font-size: 12px;
    }
}

/* Popup Specific Styles */
.elementor-popup-modal .booking-form-wrapper {
    max-width: 100%;
}