/* Booking Page Styles */

.page-header {
    background: linear-gradient(to right, rgba(153, 0, 0, 0.9), rgba(153, 0, 0, 0.7)), url('assets/booking-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 8rem 0 3rem;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-secondary);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.booking-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.booking-content {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

/* Info Cards */
.booking-info {
    flex: 0 0 350px;
}

.info-card {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.info-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item > i {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
    width: 25px;
}

.info-item h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--dark-color);
}

.info-item p {
    color: var(--gray-color);
    margin: 0;
    font-size: 0.95rem;
}

.appointment-types ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.appointment-types li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--dark-color);
}

.appointment-types li:last-child {
    border-bottom: none;
}

.appointment-types li i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Form Card */
.booking-form {
    flex: 1;
}

.form-card {
    background-color: var(--white-color);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light-color);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1.5rem;
}

.form-section h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(153, 0, 0, 0.1);
}

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

.form-group select {
    cursor: pointer;
    background-color: white;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 1.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
    cursor: pointer;
}

.radio-label span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + span {
    border-color: var(--primary-color);
    background-color: rgba(153, 0, 0, 0.05);
    color: var(--primary-color);
}

.radio-label span i {
    font-size: 1rem;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), #b30000);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(153, 0, 0, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 3rem 2rem;
}

.success-message i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1.5rem;
}

.success-message h3 {
    font-size: 1.75rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    justify-content: center;
}

.success-message p {
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.reset-btn {
    padding: 0.875rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.reset-btn:hover {
    background-color: #b30000;
}

.hidden {
    display: none !important;
}

/* Slots Grid Layout */
.slots-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
}

.slots-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.slots-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.slots-header p {
    color: var(--gray-color);
}

.slots-info-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.slots-info-bar .info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.slots-info-bar .info-item i {
    color: var(--primary-color);
}

.slots-grid {
    min-height: 200px;
}

/* Date Row */
.date-row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid #eee;
}

.date-row:last-child {
    border-bottom: none;
}

.date-label {
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--dark-color);
    padding-top: 0.5rem;
}

.date-label i {
    color: var(--primary-color);
}

.time-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
}

.time-btn {
    padding: 0.6rem 1.2rem;
    background: #e8f5e9;
    border: 2px solid #c8e6c9;
    border-radius: 6px;
    color: #2e7d32;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.time-btn:hover {
    background: #c8e6c9;
    border-color: #2e7d32;
}

.time-btn.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* No Slots Message */
.no-slots {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray-color);
}

.no-slots i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.no-slots h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.no-slots a {
    color: var(--primary-color);
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-color);
    border-radius: 8px;
    z-index: 10;
}

/* Step 2: Form Container */
.form-container {
    max-width: 700px;
    margin: 0 auto;
}

.selected-slot-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--primary-color), #b30000);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.back-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
}

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

.slot-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.slot-info i {
    font-size: 1.2rem;
}

/* Step 3: Success */
.success-container {
    max-width: 600px;
    margin: 0 auto;
}

.success-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.success-card > i {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 1.5rem;
}

.success-card h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.success-card > p {
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.confirmation-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.confirmation-details p {
    margin: 0.5rem 0;
    display: flex;
    gap: 0.75rem;
}

.confirmation-details i {
    color: var(--primary-color);
    width: 20px;
}

.email-note {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

/* Add to Calendar Buttons */
.add-to-calendar {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
}

.add-to-calendar p {
    margin-bottom: 1rem;
    justify-content: center;
}

.calendar-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.calendar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.calendar-btn.google-btn {
    background: #4285f4;
    color: white;
}

.calendar-btn.google-btn:hover {
    background: #3367d6;
}

.calendar-btn.outlook-btn {
    background: #0078d4;
    color: white;
}

.calendar-btn.outlook-btn:hover {
    background: #005a9e;
}

.calendar-btn.ics-btn {
    background: #6c757d;
    color: white;
}

.calendar-btn.ics-btn:hover {
    background: #545b62;
}

/* Responsive */
@media (max-width: 992px) {
    .booking-content {
        flex-direction: column;
    }

    .booking-info {
        flex: auto;
        display: flex;
        gap: 1rem;
    }

    .booking-info .info-card,
    .booking-info .legend-card {
        flex: 1;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .booking-section {
        padding: 3rem 0;
    }

    .booking-info {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }

    .form-card,
    .calendar-card {
        padding: 1.5rem;
    }

    .calendar-day {
        font-size: 0.85rem;
    }

    .time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .selected-slot-display {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .success-card {
        padding: 2rem;
    }
}
