/* ===========================
   BOOK APPOINTMENT PAGE
   =========================== */

/* Booking Header */
.booking-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 3rem 0 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.booking-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 20s infinite;
}

.header-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.header-badge i {
    font-size: 1.25rem;
}

.help-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.25rem 1.5rem;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.help-box i {
    font-size: 2rem;
}

.help-box small {
    display: block;
    opacity: 0.9;
    font-size: 0.85rem;
}

.help-box strong {
    display: block;
    font-size: 1.125rem;
}

/* Booking Container */
.booking-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Progress Indicator */
.progress-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 1;
}

.step-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: white;
    border: 4px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #9CA3AF;
    transition: all 0.3s;
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3);
}

.progress-step.completed .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.step-label {
    font-weight: 600;
    color: #6B7280;
    font-size: 0.9rem;
    text-align: center;
}

.progress-step.active .step-label {
    color: var(--primary);
    font-weight: 700;
}

.progress-line {
    flex: 1;
    height: 4px;
    background: #E5E7EB;
    margin: 0 1rem;
    margin-bottom: 50px;
    position: relative;
}

.progress-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--primary);
    transition: width 0.5s ease;
}

.progress-step.completed ~ .progress-line::after {
    width: 100%;
}

/* Booking Card */
.booking-card {
    background: white;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 3rem;
}

/* Form Steps */
.form-step {
    padding: 3rem;
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid #F3F4F6;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3);
}

.step-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.step-subtitle {
    color: #6B7280;
    margin-bottom: 0;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #F3F4F6;
}

/* Doctor Selection */
.selected-doctor-card {
    background: linear-gradient(135deg, #F0FDFA, #E0F2FE);
    border: 3px solid var(--primary);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.doctor-avatar-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3);
}

.doctor-details {
    flex: 1;
}

.doctor-details h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.doctor-details .specialty {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.doctor-meta {
    display: flex;
    gap: 1.5rem;
    color: #6B7280;
}

.doctor-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doctor-meta i {
    color: var(--primary);
}

.doctor-pricing {
    text-align: center;
}

.free-badge {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.free-badge i {
    font-size: 1.5rem;
    color: #047857;
}

.free-badge small {
    display: block;
    color: #065F46;
    font-size: 0.8rem;
}

.free-badge strong {
    display: block;
    color: #047857;
    font-size: 1.25rem;
}

.regular-fee {
    color: #6B7280;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Doctor Search */
.doctor-search-section {
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 1.125rem;
}

.search-box input {
    padding-left: 3.5rem;
    padding: 1rem 1rem 1rem 3.5rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

.form-select {
    padding: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    transition: all 0.3s;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

/* Doctors Grid */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem 0;
}

.doctor-card-select {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.doctor-card-select:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(5, 150, 105, 0.15);
    transform: translateY(-3px);
}

.doctor-card-select.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #F0FDFA, #E0F2FE);
    box-shadow: 0 5px 20px rgba(5, 150, 105, 0.2);
}

.doctor-card-select.selected::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.doctor-card-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.doctor-card-select h6 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.doctor-card-select .specialty {
    color: var(--primary);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1rem;
}

.doctor-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
    font-size: 0.85rem;
}

.loading-spinner {
    text-align: center;
    padding: 3rem;
    color: var(--primary);
}

/* Date Selection */
.date-selection-section {
    margin-bottom: 2rem;
}

.date-picker-card,
.appointment-type-card {
    background: #F9FAFB;
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid #E5E7EB;
}

.form-control-lg,
.form-select-lg {
    padding: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1rem;
}

.form-control-lg:focus,
.form-select-lg:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

.quick-dates {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid #E5E7EB;
}

.quick-date-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.selected-date-preview {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid #10B981;
}

.selected-date-preview i {
    font-size: 2rem;
    color: #047857;
}

.selected-date-preview strong {
    display: block;
    color: #047857;
    font-size: 1.1rem;
}

.selected-date-preview p {
    color: #065F46;
    font-size: 0.95rem;
}

/* Appointment Type */
.appointment-type-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.type-option {
    position: relative;
}

.type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.type-option label {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.type-option input[type="radio"]:checked + label {
    border-color: var(--primary);
    background: linear-gradient(135deg, #F0FDFA, #E0F2FE);
    box-shadow: 0 5px 15px rgba(5, 150, 105, 0.15);
}

.type-option label i {
    font-size: 2rem;
    color: var(--primary);
}

.type-option label strong {
    display: block;
    color: var(--dark);
}

.type-option label small {
    display: block;
    color: #6B7280;
}

/* Patient Form */
.patient-form-section .form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.patient-form-section .form-label i {
    color: var(--primary);
}

.patient-form-section .form-control,
.patient-form-section .form-select {
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    transition: all 0.3s;
}

.patient-form-section .form-control:focus,
.patient-form-section .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

/* Appointment Summary */
.appointment-summary {
    background: linear-gradient(135deg, #F0FDFA, #E0F2FE);
    border: 3px solid var(--primary);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(5, 150, 105, 0.2);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.highlight {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 0.5rem;
}

.summary-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #065F46;
    font-weight: 600;
}

.summary-label i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.summary-value {
    font-weight: 700;
    color: var(--dark);
    text-align: right;
}

.badge-free {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* Info Alert */
.info-alert {
    background: #EFF6FF;
    border: 2px solid #BFDBFE;
    border-left: 5px solid #3B82F6;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.info-alert i {
    color: #3B82F6;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-alert ul {
    margin-top: 0.5rem;
    padding-left: 1.25rem;
}

.info-alert li {
    color: #1E40AF;
    margin-bottom: 0.25rem;
}

/* Trust Indicators */
.trust-indicators {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.trust-item {
    text-align: center;
    padding: 1.5rem;
    background: #F9FAFB;
    border-radius: 15px;
    transition: all 0.3s;
}

.trust-item:hover {
    background: linear-gradient(135deg, #F0FDFA, #E0F2FE);
    transform: translateY(-5px);
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.trust-item h6 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.trust-item p {
    color: #6B7280;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Help Banner */
.help-banner {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3);
}

.help-banner h5 {
    margin-bottom: 0.5rem;
}

.help-banner .btn-light {
    background: white;
    color: var(--primary);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
    .progress-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .progress-line {
        width: 4px;
        height: 50px;
        margin: 0;
        margin-left: 33px;
    }
    
    .step-label {
        margin-left: 1rem;
    }
    
    .selected-doctor-card {
        flex-direction: column;
        text-align: center;
    }
    
    .doctor-meta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .form-step {
        padding: 2rem 1.5rem;
    }
    
    .step-header {
        flex-direction: column;
        text-align: center;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-actions button,
    .step-actions a {
        width: 100%;
    }
    
    .doctors-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-indicators .row {
        gap: 1rem;
    }
}