/* booking.css - تنسيقات صفحة حجز العميل (Final Neon Version) */

/* 1. الخطوط */
@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/Tajawal-Regular.ttf') format('truetype');
    font-weight: 400; font-display: swap;
}
@font-face {
    font-family: 'Tajawal';
    src: url('../fonts/Tajawal-Bold.ttf') format('truetype');
    font-weight: 700; font-display: swap;
}

:root {
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(17, 24, 39, 0.95);
    --neon-blue: #38bdf8;
    --primary-glow: rgba(14, 165, 233, 0.3);
    --secondary-glow: rgba(20, 184, 166, 0.3);
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #020617;
    color: #f1f5f9;
    overflow-x: hidden;
    min-height: 100vh;
}

/* =========================================
   2. تخصيص مكون اختيار الدولة (Custom Searchable)
   ========================================= */

/* الحاوية الخارجية (لتثبيت الاتجاه) */
.phone-input-group { direction: ltr; }

/* الحقل المرئي (الزر الذي يفتح القائمة) */
.country-display-input {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(71, 85, 105, 0.6);
    cursor: pointer;
    text-align: left;
    height: 52px;
    padding-right: 15px !important;
    padding-left: 15px !important;
    font-size: 16px;
    font-weight: 700;
    border-radius: 0.75rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center; /* عشان الكود يكون في وسط الزر */
    position: relative;
}

/* النص داخل زر كود الدولة (+966) */
#selected-country-display {
    color: var(--neon-blue);
    font-size: 18px;
    letter-spacing: 0.08em;
    font-weight: 800;
}

/* السهم الصغير في يمين الزر */
.country-arrow {
    position: absolute;
    inset-inline-end: 14px;
    font-size: 11px;
    color: #94a3b8;
    opacity: 0.9;
}

/* قائمة البحث المنسدلة (الجزء الذي يظهر عند الضغط) */
.country-search-list-container {
    position: absolute;
    top: 55px; /* تحت الحقل الظاهر */
    left: 0;
    width: 350px; /* عرض ثابت لسهولة القراءة */
    max-width: 95vw;
    max-height: 300px;
    z-index: 1000;
    overflow-y: auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* حقل البحث داخل القائمة */
.country-search-list-container input {
    width: 90%;
    margin: 10px auto;
    display: block;
    padding: 8px;
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid #38bdf8;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    direction: ltr;
}

/* عناصر القائمة (الدول) */
.country-list-option {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: ltr; 
}
.country-list-option:hover, .country-list-option.selected {
    background: rgba(56, 189, 248, 0.15); /* لون الإضاءة */
    color: var(--neon-blue);
}
.country-list-option span.code {
    font-weight: bold;
    color: #94a3b8;
}

/* =========================================
   3. مكونات الواجهة (العامة)
   ========================================= */

.ambient-glow {
    position: fixed; width: 400px; height: 400px; border-radius: 50%;
    filter: blur(120px); z-index: -1; animation: float 10s infinite ease-in-out; opacity: 0.4;
}
.glow-1 { top: -10%; left: -10%; background: var(--primary-glow); }
.glow-2 { bottom: -10%; right: -10%; background: var(--secondary-glow); animation-delay: -5s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, 30px) scale(1.1); } }

.glass-card {
    background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.input-modern {
    background: rgba(30, 41, 59, 0.6); border: 1px solid rgba(71, 85, 105, 0.5); 
    color: white; transition: all 0.3s ease; font-weight: 500;
}
.input-modern:focus {
    background: rgba(30, 41, 59, 0.9); border-color: #38bdf8; outline: none; box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

select.input-modern { 
    appearance: none; 
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); 
    background-repeat: no-repeat; 
    background-size: 1.5em 1.5em; 
}
html[dir="rtl"] select.input-modern { background-position: left 0.5rem center; padding-left: 2.5rem; }
html[dir="ltr"] select.input-modern { background-position: right 0.5rem center; padding-right: 2.5rem; }

/* زر تغيير اللغة – ثابت أعلى يمين الشاشة دائماً */
.lang-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 50;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    font-weight: bold;
    color: #e2e2e0;
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.3);
    transition: box-shadow 0.25s ease, transform 0.15s ease, background 0.25s ease;
}
.lang-btn:hover {
    background: rgba(15, 23, 42, 1);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.6);
    transform: translateY(-1px);
}

.hidden { display: none !important; }
.fade-enter { animation: fadeIn 0.5s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   4. الإضاءات المحيطية للأزرار
   ========================================= */

.btn-neon {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.6);
    transition: box-shadow 0.25s ease, transform 0.15s ease;
}
.btn-neon:hover {
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.9);
    transform: translateY(-1px);
}
.btn-neon:active {
    transform: scale(0.97);
}

/* زر الواتساب في قسم المساعدة */
.help-section a {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    transition: box-shadow 0.25s ease, transform 0.15s ease;
}
.help-section a:hover {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.9);
    transform: translateY(-1px);
}

/* تنويه هام – وميض نيون */
.disclaimer-pulse {
    font-size: 10px;
    margin-top: 8px;
    color: #e0f2fe;
    text-shadow: 0 0 6px rgba(56, 189, 248, 0.8);
    animation: disclaimerPulse 2.5s ease-in-out infinite;
}
@keyframes disclaimerPulse {
    0%, 100% {
        opacity: 0.6;
        text-shadow: 0 0 4px rgba(56, 189, 248, 0.5);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 16px rgba(56, 189, 248, 1);
    }
}

/* =========================================
   5. مودال تأكيد الحجز (نيون زجاجي)
   ========================================= */

.confirm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 80;
}

.confirm-modal-card {
    position: relative;
    width: 90%;
    max-width: 380px;
    border-radius: 1.5rem;
    padding: 18px 18px 16px;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.9);
    text-align: center;
    overflow: hidden;
}
.confirm-modal-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.3), transparent 60%);
    opacity: 0.3;
    z-index: -1;
}

.confirm-modal-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.confirm-modal-title {
    font-size: 1rem;
    font-weight: 800;
    color: #e0f2fe;
    margin-bottom: 6px;
}
.confirm-modal-msg {
    font-size: 11px;
    color: #cbd5f5;
    margin-bottom: 14px;
    line-height: 1.5;
}

.confirm-modal-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.modal-primary-btn,
.modal-secondary-btn {
    border-radius: 999px;
    font-size: 11px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.modal-primary-btn {
    background: linear-gradient(to right, #0ea5e9, #1d4ed8);
    color: #f9fafb;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.8);
}
.modal-primary-btn:hover {
    box-shadow: 0 0 22px rgba(56, 189, 248, 1);
    transform: translateY(-1px);
}
.modal-secondary-btn {
    background: rgba(15, 23, 42, 0.9);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.6);
}
.modal-secondary-btn:hover {
    background: rgba(30, 41, 59, 1);
    box-shadow: 0 0 10px rgba(148, 163, 184, 0.8);
    transform: translateY(-1px);
}
