/* Appointment Booking Page Styles */

.appointment-hero {
    height: 40vh;
    background: linear-gradient(rgba(10, 25, 47, 0.75), rgba(10, 25, 47, 0.85)),
                url('https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=2069&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    width: 100%;
}

.appointment-hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    color: var(--gold);
    display: block;
    margin-bottom: 15px;
}

.appointment-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.appointment-hero h1 .gold-text {
    color: var(--gold);
}

.appointment-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
.appointment-content {
    padding: 60px 0;
    background: #f8fafc;
}

.booking-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Slots Section */
.slots-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: fit-content;
}

.slots-section h3 {
    color: var(--navy);
    margin-bottom: 25px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.slots-section h3 i {
    color: var(--gold);
}

.slots-container {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.date-group {
    margin-bottom: 25px;
}

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

.date-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.date-day {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
}

.date-full {
    font-size: 0.9rem;
    color: #6b7280;
}

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

.slot-option {
    cursor: pointer;
    display: block;
}

.slot-option input {
    display: none;
}

.slot-time {
    display: block;
    padding: 10px 8px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 0.85rem;
    text-align: center;
    color: #374151;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.slot-option:hover .slot-time {
    background: #e5e7eb;
}

.slot-option.selected .slot-time {
    background: var(--navy);
    color: white;
    border-color: var(--gold);
}

.slot-option input:checked + .slot-time {
    background: var(--navy);
    color: white;
    border-color: var(--gold);
}

.no-slots {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.no-slots i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 15px;
}

.no-slots p {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--navy);
}

.no-slots span {
    font-size: 0.9rem;
}

.slot-error {
    margin-top: 15px;
    text-align: center;
}

/* Form Section */
.form-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: fit-content;
}

.form-section h3 {
    color: var(--navy);
    margin-bottom: 25px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3 i {
    color: var(--gold);
}

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

.booking-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.booking-form .form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: white;
}

.booking-form .form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 165, 92, 0.15);
}

.booking-form select.form-control {
    cursor: pointer;
}

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

.form-error {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 5px;
}

.form-error.non-field {
    padding: 12px;
    background: #fef2f2;
    border-radius: 6px;
    margin-bottom: 15px;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--navy);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover:not(:disabled) {
    background: var(--gold);
    color: var(--navy);
}

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

/* Success Card */
.success-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: #22c55e;
    margin-bottom: 20px;
}

.success-card h2 {
    color: var(--navy);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.booking-details {
    background: #f9fafb;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: left;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row i {
    color: var(--gold);
    font-size: 1.1rem;
    margin-top: 3px;
}

.detail-row div {
    flex: 1;
}

.detail-row strong {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 2px;
}

.detail-row span {
    font-size: 1rem;
    color: var(--navy);
    font-weight: 500;
}

.confirmation-note {
    color: #6b7280;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    background: var(--navy);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--gold);
    color: var(--navy);
}

/* Info Section */
.appointment-info {
    padding: 60px 0;
    background: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.info-card {
    text-align: center;
    padding: 30px;
}

.info-card i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.info-card h4 {
    color: var(--navy);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.info-card p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Scrollbar Styling */
.slots-container::-webkit-scrollbar {
    width: 6px;
}

.slots-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.slots-container::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .booking-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .time-slots {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .slots-container {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .appointment-hero {
        height: 35vh;
    }
    
    .appointment-hero h1 {
        font-size: 2rem;
    }
    
    .appointment-hero p {
        font-size: 0.95rem;
    }
    
    .appointment-content {
        padding: 40px 0;
    }
    
    .slots-section,
    .form-section {
        padding: 20px;
    }
    
    .time-slots {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .success-card {
        padding: 30px 20px;
    }
    
    .booking-details {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .appointment-hero h1 {
        font-size: 1.6rem;
    }
    
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slot-time {
        padding: 8px 5px;
        font-size: 0.8rem;
    }
    
    .btn-submit {
        padding: 12px;
        font-size: 0.9rem;
    }
}
