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

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

.booking-step h3 {
    font-size: 20px !important;
}

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

/* Calendar Styles */
.calendar-container {
    border-radius: 12px;
    background-color: transparent;
    overflow: hidden;
    text-align: center !important;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #19317c;
    color: white;
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
}

.calendar-container h3 {
    margin:  10px 0  !important;
    font-size: 20px !important;
    font-weight: 600 !important;
}

.cal-nav-btn {
    background: #fff !important;
    border: 2px dashed #E8F7FF !important;
    border-radius: 8px !important;
    width: 36px !important;
    height: 36px;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.2s;
}

.cal-nav-btn:hover {
    background: #19317c !important;
}

.cal-nav-btn svg {
    color: #19317c  !important;
}

.cal-nav-btn:hover svg {
    color: #fff !important;
}

#month-label {
    color: #fff !important;
}

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

.calendar-day {
    aspect-ratio: 1.5;
    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 !important;
}

.calendar-day:not(.disabled):not(.day-header):hover {
    background: #e2e9ff !important;
    border-color: #19317c !important;
    color: #19317c !important;
}

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

.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: #19317c;
    color: white;
    border-color: #19317c;
}

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

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

.back-btn {
    background: #19317c !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: all 0.2s !important;
    padding: 20px 25px !important;
    border-radius: 10px !important;
    color: #fff !important;
    border: 1px dashed #fff !important  ;
}

.back-btn:hover {
    background-color: #419df2;
}

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

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

.time-slot-btn:hover {
    background: #19317c !important;
    border-color: #19317c !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px #5b75c554;
}

.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 #19317c;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

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

.booking-summary strong {
    color: #19317c;
}

.form-group {
    margin-bottom: 15px;
    display: flex !important;
    justify-content: space-between !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
}

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

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

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

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

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

.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;
}

.success-icon svg {
    width: 100% !important;
    max-width: 64px !important; 
    fill: transparent !important;
}

.booking-success h3 {
    color: #19317c;
    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 !important;
    color: transparent !important;
    pointer-events: none !important;
}

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

.time-slot-btn.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

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

@media (max-width: 767px) { 
    .booking-step {
        padding-bottom: 20px !important;
    }
}

@media (max-width: 600px) {
    .booking-step h3,
    .step-header h3 {
        font-size: 17px !important;
    }


}

@media (max-width: 600px) {
    .time-slots-grid {
        grid-template-columns: repeat(3, 1fr)  !important;
    }
}

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

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