/* CSS الخاص بصفحة book-appointment (بدون الهيدر والفوتر والأساس المشترك) */

.hero-section-wrapper {
            height: 70vh;
            min-height: 600px;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: var(--brand-header-dark);
            z-index: 1;
        }
        .hero-slides-images-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -2;
        }
        .hero-slide-item-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            opacity: 0;
            transition: opacity 1.5s ease-in-out;
            transform: scale(1.05);
           
        }
        .hero-slide-item-image.active {
            opacity: 1;
        }
        @keyframes zoomEffect {
            0% { transform: scale(1.02); }
            100% { transform: scale(1.08); }
        }
        .hero-overlay-shadow-shield {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(180deg, 
                rgba(var(--rq-rgb-dark), 0.8) 0%, 
                rgba(var(--rq-rgb-primary), 0.4) 40%, 
                rgba(var(--rq-rgb-dark), 0.75) 100%
            );
            z-index: -1;
        }
        .about-us-badge-container {
            position: absolute;
            top: 50%; /* تموضع مثالي في المنتصف الرأسي */
            right: 11%; /* محاذاة متناسقة لليمين */
            transform: translateY(-50%); /* لضمان التوسيط الرأسي الدقيق */
            z-index: 10;
            display: inline-block;
        }
        .about-us-badge-link {
            color: var(--brand-header-white);
            text-decoration: none;
            font-size: 2.2rem; /* حجم خط بارز وأنيق يناسب الواجهة المفتوحة */
            font-weight: 800;
            letter-spacing: 0.5px;
            cursor: pointer;
            transition: var(--transition-header-fast);
            display: block; 
        }
        .about-us-reveal-up {
            opacity: 0;
            transform: translateY(60px);
            transition: opacity 1.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                        transform 1.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            will-change: transform, opacity;
        }
        .about-us-active {
            opacity: 1 !important;
            transform: translateY(0) !important;
        }
        @keyframes about-us-bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-10px); }
            60% { transform: translateY(-5px); }
        }
        .hero-bottom-curve {
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            line-height: 0;
            z-index: 3;
        }
        .hero-bottom-curve svg {
            width: 100%;
            height: 100px;
        }
        @media (max-width: 768px) {
    .about-us-badge-container {
                top: 50%;
                right: 6%;
                transform: translateY(-50%);
            }

    .about-us-badge-link {
                font-size: 1.6rem; /* حجم أصغر متجاوب مع الجوال */
            }
}
     @font-face {
            font-family: 'IWAN ZAZA';
            src: local('IWAN ZAZA'), local('IwanZaza'), url('/fonts/IWAN-ZAZA.woff2') format('woff2');
            font-weight: normal;
            font-style: normal;
            font-display: swap;
        }
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'IWAN ZAZA', 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        body {
            background-color: var(--rq-tint-fafdfd, #fafdfd);
            overflow-x: hidden;
            color: #333;
        }
        .booking-section-wrapper {
            width: 100%;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 60px 20px;
            
            position: relative;
        }
        .booking-section-container {
            max-width: 1200px;
            width: 100%;
            display: flex;
            flex-direction: column;
        }
        .booking-section-header-block {
            margin-bottom: 25px;
            width: 100%;
            /* تأثير تلاشي البداية قبل تفعيل الأنميشن */
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s cubic-bezier(0.215, 0.610, 0.355, 1);
        }
        .booking-section-main-title {
            font-size: 2.3rem;
            color: var(--brand-header-secondary-1);
            font-weight: 700;
            margin-bottom: 12px;
            position: relative;
            display: inline-block;
        }
        .booking-section-main-title::after {
            content: '';
            position: absolute;
            bottom: -5px;
            right: 0;
            width: 45px;
            height: 3px;
            background-color: var(--brand-header-teal-green);
            border-radius: 2px;
        }
        .booking-section-main-subtitle {
            font-size: 1.05rem;
            color: #666;
            line-height: 1.8;
            max-width: 90%;
        }
        .booking-section-content-grid {
            width: 100%;
        }
        .booking-section-form-side {
            display: flex;
            flex-direction: column;
            width: 100%;
        }
        .booking-section-form-body-grid {
            display: grid;
            grid-template-columns: 1.2fr 1fr;
            gap: 50px;
            align-items: stretch;
        }
        .booking-section-fields-column {
            display: flex;
            flex-direction: column;
        }
        .booking-section-banner-card {
            position: relative;
            height: 100%;
            min-height: auto;
            border-radius: 35px;
            overflow: hidden;
            box-shadow: 0 25px 50px rgba(var(--rq-rgb-primary), 0.15);
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 40px;
            /* صورة خلفية افتراضية بجودة عالية لعيادة طبية راقية مع تأثيرات رونق */
            background: url('/images/booking-section.png') center center / cover no-repeat;

            /* تأثير تلاشي البداية قبل تفعيل الأنميشن */
            opacity: 0;
            transform: translateY(50px);
            transition: all 1s cubic-bezier(0.215, 0.610, 0.355, 1);
        }
        .booking-section-banner-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, rgba(var(--rq-rgb-primary), 0.2) 0%, rgba(var(--rq-rgb-primary), 0.75) 50%, var(--brand-header-secondary-1) 100%);
            z-index: 1;
        }
        .booking-section-banner-content {
            position: relative;
            z-index: 2;
            color: #ffffff;
            text-align: center;
        }
        .booking-section-banner-title {
            font-size: 2.2rem;
            font-weight: 700;
            margin-bottom: 15px;
            line-height: 1.4;
            letter-spacing: 0.5px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
        .booking-section-banner-desc {
            font-size: 1.1rem;
            line-height: 1.7;
            opacity: 0.95;
            font-weight: 400;
            max-width: 90%;
            margin: 0 auto;
        }
        .booking-section-banner-dots {
            position: absolute;
            bottom: 25px;
            right: 25px;
            display: grid;
            grid-template-columns: repeat(5, 6px);
            gap: 6px;
            z-index: 2;
            opacity: 0.5;
        }
        .booking-section-banner-dot {
            width: 6px;
            height: 6px;
            background-color: #ffffff;
            border-radius: 50%;
        }
        .booking-section-banner-logo-float {
            position: absolute;
            top: 15%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 2;
            text-align: center;
        }
        .booking-section-banner-logo-text {
            font-size: 3rem;
            font-weight: 800;
            color: rgba(255, 255, 255, 0.9);
            letter-spacing: 1px;
            line-height: 1;
            text-shadow: 0 4px 10px rgba(0,0,0,0.15);
        }
        .booking-section-banner-logo-subtext {
            font-size: 1.3rem;
            color: rgba(255, 255, 255, 0.85);
            margin-top: 5px;
            letter-spacing: 2px;
        }
        .booking-section-group-header {
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--brand-header-secondary-1);
            font-size: 1.25rem;
            font-weight: 600;
            margin-top: 10px;
            margin-bottom: 18px;
            /* تأثير تلاشي البداية */
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s cubic-bezier(0.215, 0.610, 0.355, 1);
        }
        .booking-section-group-header.booking-section-group-2 {
            margin-top: 25px;
        }
        .booking-section-group-icon {
            width: 24px;
            height: 24px;
            fill: var(--brand-header-secondary-1);
        }
        .booking-section-fields-grid {
            display: flex;
            flex-direction: column;
            gap: 15px;
            /* تأثير تلاشي البداية */
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s cubic-bezier(0.215, 0.610, 0.355, 1);
        }
        .booking-section-field-container {
            background-color: var(--rq-tint-f0f7f6, #f0f7f6);
            border: 1.5px solid transparent;
            border-radius: 18px;
            padding: 10px 22px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: all 0.3s ease;
            position: relative;
            cursor: pointer;
            min-height: 64px;
        }
        .booking-section-field-container:hover {
            background-color: var(--rq-tint-e5f1ef, #e5f1ef);
            border-color: rgba(var(--rq-rgb-teal), 0.3);
        }
        .booking-section-field-container:focus-within {
            background-color: #ffffff;
            border-color: var(--brand-header-secondary-2);
            box-shadow: 0 8px 20px rgba(var(--rq-rgb-secondary), 0.08);
        }
        .booking-section-field-texts {
            display: flex;
            flex-direction: column;
            flex-grow: 1;
            min-width: 0; /* يمنع تمدد النص الطويل للطبيب خارج الصندوق */
        }
        .booking-section-field-label {
            font-size: 0.75rem;
            color: #7a9c95;
            font-weight: 500;
            margin-bottom: 2px;
        }
        .booking-section-select,
        .booking-section-input {
            width: 100%;
            border: none;
            background: transparent;
            outline: none;
            font-size: 1rem;
            color: var(--brand-header-secondary-1);
            font-weight: 600;
            padding: 0;
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            text-overflow: ellipsis; /* اختصار أسماء الأطباء الطويلة عند العرض */
        }
        .booking-section-input::placeholder {
            color: #a0c2bc;
            font-weight: 500;
        }
        .booking-section-select:disabled {
            cursor: not-allowed;
            opacity: 0.75;
        }
        .booking-section-field-arrow-icon {
            width: 16px;
            height: 16px;
            fill: #7a9c95;
            transition: transform 0.3s ease;
            pointer-events: none;
            flex-shrink: 0;
        }
        .booking-section-field-container:focus-within .booking-section-field-arrow-icon {
            fill: var(--brand-header-secondary-2);
            transform: rotate(180deg);
        }
        .booking-section-btn-wrapper {
            margin-top: 35px;
            display: flex;
            justify-content: right;
            /* تأثير تلاشي البداية */
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s cubic-bezier(0.215, 0.610, 0.355, 1);
        }
        .booking-section-submit-btn {
            background-color: var(--brand-header-secondary-2);
            color: #ffffff;
            border: none;
            padding: 16px 45px;
            font-size: 1.15rem;
            font-weight: 700;
            border-radius: 50px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 10px 25px rgba(var(--rq-rgb-secondary), 0.25);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .booking-section-submit-btn:hover {
            background-color: var(--brand-header-secondary-1);
            transform: translateY(-3px);
            box-shadow: 0 15px 30px rgba(var(--rq-rgb-primary), 0.35);
        }
        .booking-section-submit-btn:active {
            transform: translateY(1px);
        }
        .booking-section-btn-icon {
            width: 20px;
            height: 20px;
            fill: #ffffff;
        }
        .booking-section-success-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(11, 44, 37, 0.6);
            backdrop-filter: blur(8px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            pointer-events: none;
            transition: all 0.5s ease;
        }
        .booking-section-success-modal.booking-section-active {
            opacity: 1;
            pointer-events: auto;
        }
        .booking-section-modal-box {
            background-color: #ffffff;
            border-radius: 30px;
            padding: 40px;
            max-width: 500px;
            width: 90%;
            text-align: center;
            box-shadow: 0 25px 60px rgba(0,0,0,0.15);
            transform: scale(0.8) translateY(50px);
            transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .booking-section-success-modal.booking-section-active .booking-section-modal-box {
            transform: scale(1) translateY(0);
        }
        .booking-section-modal-icon-circle {
            width: 80px;
            height: 80px;
            background-color: var(--rq-tint-e5f5f2, #e5f5f2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px auto;
        }
        .booking-section-modal-icon {
            width: 40px;
            height: 40px;
            fill: var(--brand-header-secondary-2);
        }
        .booking-section-modal-title {
            font-size: 1.6rem;
            color: var(--brand-header-secondary-1);
            font-weight: 700;
            margin-bottom: 12px;
        }
        .booking-section-modal-text {
            font-size: 1rem;
            color: #666;
            line-height: 1.6;
            margin-bottom: 25px;
        }
        .booking-section-modal-close-btn {
            background-color: var(--brand-header-secondary-1);
            color: #ffffff;
            border: none;
            padding: 12px 35px;
            border-radius: 25px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s;
        }
        .booking-section-modal-close-btn:hover {
            background-color: var(--brand-header-secondary-2);
        }
        .booking-section-visible .booking-section-banner-card {
            opacity: 1;
            transform: translateY(0);
        }
        .booking-section-visible .booking-section-header-block {
            opacity: 1;
            transform: translateY(0);
            transition-delay: 0.15s;
        }
        .booking-section-visible .booking-section-group-1 {
            opacity: 1;
            transform: translateY(0);
            transition-delay: 0.3s;
        }
        .booking-section-visible .booking-section-fields-1 {
            opacity: 1;
            transform: translateY(0);
            transition-delay: 0.4s;
        }
        .booking-section-visible .booking-section-group-2 {
            opacity: 1;
            transform: translateY(0);
            transition-delay: 0.5s;
        }
        .booking-section-visible .booking-section-fields-2 {
            opacity: 1;
            transform: translateY(0);
            transition-delay: 0.6s;
        }
        .booking-section-visible .booking-section-btn-wrapper {
            opacity: 1;
            transform: translateY(0);
            transition-delay: 0.75s;
        }
        @media (max-width: 1024px) {
            /* نحوّل الفورم نفسه إلى عمود مرن ونُخرج الشبكة من التدفق عبر display:contents
               حتى نتمكن من ترتيب: (الحقول) ثم (زر الحجز) ثم (الصورة) بالترتيب */
            #booking-section-form-element {
                display: flex;
                flex-direction: column;
                gap: 35px;
            }

            .booking-section-form-body-grid {
                display: contents;
            }

            .booking-section-fields-column {
                order: 1;
            }

            .booking-section-btn-wrapper {
                order: 2;
                margin-top: 0; /* الاعتماد على فراغ الفورم بدل الهامش */
            }

            .booking-section-banner-card {
                order: 3; /* الصورة تنزل أسفل زر الحجز */
                height: 350px; /* ارتفاع متناسق ومريح للعين على الأجهزة اللوحية */
                min-height: auto;
            }

            .booking-section-banner-logo-float {
                top: 25%;
            }
        }
        @media (max-width: 768px) {
            #booking-section-form-element {
                gap: 30px;
            }

            .booking-section-banner-card {
                height: 320px;
            }

            .booking-section-main-title {
                font-size: 2.05rem;
            }

            .booking-section-banner-title {
                font-size: 1.9rem;
            }
        }
        @media (max-width: 640px) {
            .booking-section-wrapper {
                padding: 40px 15px;
            }

            .booking-section-banner-card {
                height: 280px; /* حجم طبيعي ومناسب جداً لشاشات الجوال */
                padding: 25px;
                border-radius: 25px;
            }

            .booking-section-banner-title {
                font-size: 1.6rem;
            }

            .booking-section-banner-desc {
                font-size: 0.95rem;
            }

            .booking-section-main-title {
                font-size: 1.9rem;
            }

            .booking-section-field-container {
                padding: 8px 16px;
                min-height: 58px;
            }

            .booking-section-submit-btn {
                width: 100%;
                justify-content: center;
            }
        }
        @media (max-width: 400px) {
            .booking-section-wrapper {
                padding: 32px 12px;
            }

            .booking-section-banner-card {
                height: 240px;
                padding: 20px;
            }

            .booking-section-main-title {
                font-size: 1.7rem;
            }

            .booking-section-main-subtitle {
                font-size: 0.95rem;
                max-width: 100%;
            }

            .booking-section-banner-title {
                font-size: 1.4rem;
            }

            .booking-section-group-header {
                font-size: 1.1rem;
            }

            .booking-section-field-label {
                font-size: 0.72rem;
            }

            .booking-section-select,
            .booking-section-input {
                font-size: 0.95rem;
            }
        }
