/* ====== APPOINTMENTS PAGE SPECIFIC STYLES ====== */

/* Appointments Hero Section */
.appointments-hero {
    background: linear-gradient(rgba(0, 77, 64, 0.9), rgba(0, 121, 107, 0.9)), url('https://jessekayhospital.com/wp-content/uploads/elementor/thumbs/Consultation_11zon-qwq0ex9lorndpw6rbe20x6kgnzvcfvv060tafenyq0.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 5% 60px;
    text-align: center;
}

.appointments-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.appointments-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Main Booking Container */
.appointment-booking {
    padding: 80px 5%;
    background: var(--gray-light);
}

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

/* Booking Form Section */
.booking-form-section {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.form-header p {
    color: var(--text-light);
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #e0e0e0;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
    transition: var(--transition);
    border: 3px solid #e0e0e0;
}

.step.active .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.step span {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    transition: var(--transition);
}

.step.active span {
    color: var(--primary-color);
    font-weight: 500;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

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

/* Form Styles */
.appointment-form .form-group {
    margin-bottom: 25px;
}

.appointment-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

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

.appointment-form input[readonly] {
    background: #f9f9f9;
    cursor: pointer;
}

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

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

/* Confirmation Section */
.confirmation-section {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: #e8f5f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.confirmation-details {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    text-align: left;
}

.detail-row {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

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

.detail-label {
    flex: 1;
    color: var(--text-light);
    font-weight: 500;
}

.detail-value {
    flex: 2;
    color: var(--dark-color);
    font-weight: 500;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 25px 0;
}

.terms-checkbox input {
    width: auto;
    margin-top: 5px;
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 15px;
}

.btn-prev, .btn-next, .btn-submit {
    min-width: 150px;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.success-modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.5s ease;
}

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

.modal-icon {
    width: 100px;
    height: 100px;
    background: #e8f5f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 3rem;
    color: var(--primary-color);
    animation: bounce 1s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.modal-content h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.appointment-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
    text-align: left;
}

.appointment-summary p {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.appointment-summary p:last-child {
    margin-bottom: 0;
}

.modal-note {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 20px 0;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Booking Sidebar */
.booking-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-card h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Doctor Preview */
.doctor-preview {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.default-preview {
    text-align: center;
    color: var(--text-light);
}

.default-preview i {
    font-size: 3rem;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.doctor-details {
    text-align: center;
}

.doctor-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 4px solid var(--light-color);
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-specialization {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.doctor-experience {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.doctor-rating {
    color: #ffc107;
    margin-bottom: 15px;
}

/* Availability Calendar */
.calendar-placeholder {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.availability-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
}

.legend-color.available {
    background: #4CAF50;
}

.legend-color.booked {
    background: #f44336;
}

.legend-color.emergency {
    background: #FF9800;
}

/* Help Card */
.help-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.help-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.help-option:hover {
    background: var(--light-color);
    transform: translateX(5px);
}

.help-option i {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 30px;
}

.help-option div {
    flex: 1;
}

.help-option strong {
    display: block;
    color: var(--dark-color);
    margin-bottom: 3px;
}

.help-option span {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Available Doctors Section */
.available-doctors {
    padding: 80px 5%;
    background: var(--white);
}

.doctors-filter {
    background: var(--gray-light);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
}

.filter-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group label {
    color: var(--dark-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    background: var(--white);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.doctor-grid-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 2px solid transparent;
}

.doctor-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 150, 136, 0.15);
    border-color: var(--primary-color);
}

.doctor-grid-image {
    height: 200px;
    overflow: hidden;
}

.doctor-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.doctor-grid-card:hover .doctor-grid-image img {
    transform: scale(1.1);
}

.doctor-grid-info {
    padding: 25px;
}

.doctor-grid-name {
    color: var(--dark-color);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.doctor-grid-specialty {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

.doctor-grid-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.detail-item {
    text-align: center;
}

.detail-value {
    display: block;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.detail-label {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 5px;
}

.doctor-grid-actions {
    display: flex;
    gap: 10px;
}

.view-all-container {
    text-align: center;
    margin-top: 40px;
}

/* Appointment Instructions */
.appointment-instructions {
    padding: 80px 5%;
    background: var(--gray-light);
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.instruction-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.instruction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 150, 136, 0.15);
}

.instruction-icon {
    width: 70px;
    height: 70px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.instruction-card h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.instruction-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Appointment CTA */
.appointment-cta {
    padding: 60px 5%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.cta-text h2 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 2rem;
}

.cta-text p {
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Footer Hours List */
.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hours-list li span:first-child {
    color: rgba(255, 255, 255, 0.8);
}

.hours-list li span:last-child {
    color: var(--white);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .booking-container {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
    
    .booking-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .appointments-hero h1 {
        font-size: 2.5rem;
    }
    
    .booking-form-section {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .progress-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .progress-steps::before {
        display: none;
    }
    
    .step {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }
    
    .step-circle {
        margin-bottom: 0;
        width: 40px;
        height: 40px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-prev, .btn-next, .btn-submit {
        width: 100%;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .appointments-hero h1 {
        font-size: 2rem;
    }
    
    .sidebar-card {
        padding: 20px;
    }
    
    .doctors-grid {
        grid-template-columns: 1fr;
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-options {
        grid-template-columns: 1fr;
    }
}