/* Modern Single-Page Booking Form Styles */
* {
    box-sizing: border-box;
}

#booking-form-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: -webkit-linear-gradient(-6deg, #296ad4, #1fc5b6);
    background: linear-gradient(-6deg, #296ad4, #1fc5b6);
    background-image: url(https://old.softmed.com.au/wp-content/uploads/2019/08/1920x554.jpg?id=4739) !important;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

#booking-form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

/* Header Section */
.booking-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.booking-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.booking-header p {
    font-size: 18px;
    margin: 0;
    opacity: 0.9;
    font-weight: 300;
}

/* Main Layout */
.booking-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* Section Headers */
.section-header {
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Calendar Section */
.booking-calendar-section {
    position: relative;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.calendar-nav {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.calendar-nav:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.calendar-nav:active {
    transform: translateY(0) scale(0.95);
}

.calendar-month-year {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.calendar-grid {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 2px solid #f8f9fa;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.weekday {
    padding: 16px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #f8f9fa;
}

.calendar-day {
    padding: 16px 8px;
    text-align: center;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    position: relative;
    border-radius: 8px;
    margin: 2px;
}

.calendar-day:hover:not(.disabled) {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: scale(1.1);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.calendar-day.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 700;
    transform: scale(1.1);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.calendar-day.today {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    font-weight: 700;
}

.calendar-day.disabled {
    background: #f8f9fa;
    color: #dee2e6;
    cursor: not-allowed;
}

.calendar-day.weekend {
    background: #fff5f5;
    color: #e53e3e;
}

.calendar-day.other-month {
    color: #ced4da;
    background: #fafafa;
}

/* Time Slots Section */
.time-slots-section {
    margin-bottom: 30px;
}

.selected-date-info {
    font-size: 16px;
    color: #667eea;
    font-weight: 600;
    margin-top: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.no-date-selected, .no-slots-available, .loading-slots, .error-message {
    text-align: center;
    padding: 40px 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.no-date-selected {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #6c757d;
}

.calendar-icon, .no-slots-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.no-slots-available {
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
    color: #e53e3e;
}

.loading-slots {
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
    color: #667eea;
}

.error-message {
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
    color: #e53e3e;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.time-slot-btn {
    background: white;
    border: 2px solid #e9ecef;
    color: #495057;
    padding: 14px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.time-slot-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    z-index: -1;
}

.time-slot-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.time-slot-btn:hover::before {
    left: 0;
}

.time-slot-btn:hover .time-text {
    color: white;
}

.time-slot-btn.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.time-slot-btn.selected::before {
    left: 0;
}

.time-text {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.spinner-small {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

/* Booking Form Section */
.booking-form-section {
    position: relative;
}

.booking-summary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.booking-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.summary-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.summary-icon {
    font-size: 32px;
    color: #667eea;
}

.summary-details {
    flex: 1;
}

.summary-date, .summary-time {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.summary-date {
    font-size: 16px;
}

.summary-time {
    font-size: 18px;
    color: #667eea;
}

/* Form Fields */
.form-fields {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.required {
    color: #e53e3e;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* Form Actions */
.form-actions {
    margin-top: 30px;
}

.btn-submit {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-submit:disabled {
    background: linear-gradient(135deg, #adb5bd, #6c757d);
    cursor: not-allowed;
    transform: none;
}

.btn-submit.enabled {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.btn-submit.enabled:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

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

.btn-submit.submitting {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    cursor: not-allowed;
    animation: submitPulse 1.5s ease-in-out infinite;
}

@keyframes submitPulse {
    0%, 100% { 
        box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
    }
    50% { 
        box-shadow: 0 8px 25px rgba(255, 193, 7, 0.5);
        transform: translateY(-1px);
    }
}

.btn-submit.success {
    background: linear-gradient(135deg, #28a745, #20c997);
    cursor: default;
    animation: none;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-icon {
    font-size: 20px;
}

.btn-new-booking {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-new-booking:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateY(-2px);
}

/* Success Modal */
.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.5s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-animation {
    margin-bottom: 20px;
}

.success-icon {
    font-size: 64px;
    color: #28a745;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: successPulse 1s ease-in-out;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.modal-content h3 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 24px;
}

.modal-content p {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 25px;
}

.modal-actions {
    margin-top: 25px;
}

/* Loading Overlay */
.booking-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.booking-loader {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.booking-loader p {
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    #booking-form-container {
        margin: 10px;
        padding: 20px;
        border-radius: 16px;
    }
    
    .booking-header h2 {
        font-size: 24px;
    }
    
    .booking-header p {
        font-size: 16px;
    }
    
    .booking-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
    
    .calendar-day {
        padding: 12px 6px;
        min-height: 40px;
        font-size: 14px;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 10px;
    }
    
    .time-slot-btn {
        padding: 12px 6px;
        font-size: 13px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .btn-submit {
        font-size: 16px;
        padding: 14px 20px;
    }
    
    .modal-content {
        margin: 20px;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .section-header h3 {
        font-size: 18px;
    }
    
    .calendar-header {
        padding: 0 5px;
    }
    
    .calendar-month-year {
        font-size: 16px;
    }
    
    .calendar-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .weekday {
        padding: 12px 4px;
        font-size: 12px;
    }
    
    .calendar-day {
        padding: 10px 4px;
        min-height: 35px;
        font-size: 12px;
    }
    
    .summary-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .success-icon {
        width: 80px;
        height: 80px;
        font-size: 48px;
    }
}