﻿/* ====== Consultation Page Styles ====== */
:root {
    --primary-color: #FEC800;
    --primary-dark: #E6B300;
    --primary-light: #FFD700;
    --secondary-color: #1a1a1a;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --background: #fafbfc;
    --surface: #ffffff;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.consultation-page {
    background: var(--background);
    font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif;
    direction: rtl;
    line-height: 1.7;
}

/* رأس الصفحة */
.consultation-header {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--surface) 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--border-light);
}

.consultation-header-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.consultation-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.consultation-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.consultation-description {
    max-width: 800px;
    margin: 0 auto 40px;
}

.consultation-description p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

.consultation-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.benefit-item i {
    font-size: 24px;
    color: var(--primary-color);
    min-width: 24px;
}

.benefit-item span {
    font-weight: 500;
    color: var(--text-primary);
}

/* قسم الحجز */
.booking-section {
    padding: 80px 0;
}

.booking-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .booking-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* التقويم */
.calendar-container {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #1b6ec2;
    color: white;
}

.calendar-nav {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.calendar-month {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8fafc;
    border-bottom: 1px solid var(--border-light);
}

.weekday {
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    border-left: 1px solid var(--border-light);
}

.weekday:last-child {
    border-left: none;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border-left: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.calendar-day:nth-child(7n) {
    border-left: none;
}

.calendar-day:hover:not(.disabled):not(.other-month) {
    background: rgba(254, 200, 0, 0.1);
    color: black;
}

    .calendar-day.selected {
        background: #1b6ec2;
        color: white;
        font-weight: 600;
    }

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #f9f9f9;
}

.calendar-day.other-month {
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day.today {
    background: var(--primary-light);
    color: var(--text-primary);
    font-weight: 600;
}

.calendar-day.today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
}
#confirmAppointmentBtn {

    margin-top: 20px;
    width: 100%;
    display: block;
    animation: 0.3s ease-out 0s 1 normal none running fadeInUp;
    background: green;
}

/* الأوقات المتاحة */
.time-slots-section {
    position: sticky;
    top: 100px;
}

.selected-date-display {
    background: linear-gradient(135deg, rgba(254, 200, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    text-align: center;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid rgba(254, 200, 0, 0.2);
}

.time-slots-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.time-slot {
    padding: 12px 16px;
    text-align: center;
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    background: var(--surface);
    font-weight: 500;
}

.time-slot:hover:not(.disabled) {
    border-color: var(--primary-color);
    background: rgba(254, 200, 0, 0.05);
    color: var(--primary-dark);
}

.time-slot.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.time-slot.disabled {
    background: #f9f9f9;
    color: #ccc;
    cursor: not-allowed;
    border-color: #eee;
}

/* تحذير */
.warning-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.1) 0%, rgba(237, 137, 54, 0.05) 100%);
    border: 1px solid rgba(237, 137, 54, 0.2);
    border-radius: var(--radius);
    margin-top: 24px;
}

.warning-notice i {
    color: #ed8936;
    font-size: 20px;
    margin-top: 2px;
}

.warning-notice span {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* خطوات الحجز */
.booking-steps {
    padding: 80px 0;
    background: var(--surface);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 40px 0;
}

.step-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.steps-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.steps-footer p {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* نموذج المعلومات */
.booking-form-section {
    padding: 80px 0;
    background: var(--background);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.selected-appointment {
    background: #1b6ec2;
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius);
    margin-top: 16px;
    font-weight: 500;
}

.consultation-form {
    direction: rtl;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
    background: var(--surface);
    color: var(--text-primary);
    font-family: inherit;
}

.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(254, 200, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.btn-primary,
.btn-secondary {
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    min-width: 150px;
}

.btn-primary {
    background: green;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
    background-color:gold;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-secondary);
    border: 2px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--background);
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.form-footer p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* رسالة التأكيد */
.confirmation-section {
    padding: 80px 0;
    background: var(--surface);
}

.confirmation-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--surface);
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
}

.confirmation-icon {
    margin-bottom: 24px;
}

.confirmation-icon i {
    font-size: 80px;
    color: #38a169;
}

.confirmation-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.confirmation-details {
    background: linear-gradient(135deg, rgba(56, 161, 105, 0.1) 0%, rgba(56, 161, 105, 0.05) 100%);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    border: 1px solid rgba(56, 161, 105, 0.2);
}

.confirmation-message {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.confirmation-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .consultation-header {
        padding: 60px 0 40px;
    }
    
    .booking-section,
    .booking-steps,
    .booking-form-section,
    .confirmation-section {
        padding: 60px 0;
    }
    
    .consultation-benefits {
        grid-template-columns: 1fr;
    }
    
    .benefit-item {
        padding: 16px;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .step-item {
        gap: 16px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .form-container {
        padding: 24px;
        margin: 0 16px;
    }
    
    .confirmation-container {
        padding: 40px 24px;
        margin: 0 16px;
    }
    
    .time-slots-container {
        grid-template-columns: 1fr;
    }
    
    .form-actions,
    .confirmation-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 250px;
    }
}

/* تأثيرات الرسوم المتحركة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.booking-container > * {
    animation: fadeInUp 0.6s ease-out;
}

.time-slot {
    animation: slideInRight 0.3s ease-out;
}

.step-item {
    animation: fadeInUp 0.6s ease-out;
}

.step-item:nth-child(1) { animation-delay: 0.1s; }
.step-item:nth-child(2) { animation-delay: 0.2s; }
.step-item:nth-child(3) { animation-delay: 0.3s; }
.step-item:nth-child(4) { animation-delay: 0.4s; }
.step-item:nth-child(5) { animation-delay: 0.5s; }