/* =========== Logo Customization =========== */
.site-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 10px;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}

/* Update Nav container to align logo correctly */
.logo { display: flex; align-items: center; }

/* Further enhancing News Cards */
.news-card {
    transition: transform 0.3s ease;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.1);
}
.news-title { color: var(--primary-dark); font-size: 1.25rem; font-weight: 800; }
.news-meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 10px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.news-body { line-height: 1.7; }

/* Animated Skeletons */
.skeleton-card { background: #fff; padding: 25px; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.skel-img, .skel-title, .skel-text { background: #eee; border-radius: 8px; animation: pulseSkel 1.5s infinite; }
.skel-img { height: 200px; width: 100%; margin-bottom: 20px; }
.skel-title { height: 24px; width: 60%; margin-bottom: 15px; }
.skel-text { height: 12px; width: 100%; margin-bottom: 10px; }
@keyframes pulseSkel { 0% { opacity: 0.6; } 50% { opacity: 1; } 100% { opacity: 0.6; } }

/* Lightbox Modal */
.lightbox-modal { display:none; position:fixed; inset:0; z-index:9999; background:rgba(0,0,0,0.85); backdrop-filter:blur(5px); align-items:center; justify-content:center; }
.lightbox-modal.active { display:flex; animation: fadeInModal 0.3s forwards; }
.lightbox-img { max-width:90%; max-height:90vh; border-radius:12px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.lightbox-modal.active .lightbox-img { transform: scale(1); }
.lightbox-close { position:absolute; top:20px; right:30px; color:#fff; font-size:2.5rem; cursor:pointer; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.clickable-img { cursor: zoom-in; transition: opacity 0.2s; }
.clickable-img:hover { opacity: 0.85; }

/* Snap Slider for Pinned */
.snap-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; padding-bottom: 20px; margin-bottom: 20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.snap-slider::-webkit-scrollbar { display: none; }
.snap-slide { scroll-snap-align: center; flex: 0 0 85%; max-width: 400px; }
.pinned-section-title { font-size:1.3rem; margin-bottom:15px; color:var(--primary-dark); display:flex; align-items:center; gap:8px;}
.pinned-section-title i { color: #ef4444; }

/* New Badge Pulse */
.badge-new { background: #ef4444; color: white; padding: 3px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: bold; animation: pulseRed 2s infinite; display: inline-block; }
@keyframes pulseRed { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

/* Toast Notification */
.live-toast { position:fixed; bottom:-100px; left:50%; transform:translateX(-50%); background:#fff; border-radius:30px; padding:12px 25px; box-shadow:0 10px 30px rgba(0,0,0,0.15); display:flex; align-items:center; gap:12px; z-index:9000; transition:0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); font-weight:800; cursor:pointer; color:var(--text-main); border:2px solid var(--primary); white-space:nowrap; }
.live-toast.show { bottom: 40px; }
.live-toast i { color: var(--primary); font-size: 1.2rem; }
.bell-shake { animation: bellShake 2s infinite; align-origin: top center;}
@keyframes bellShake { 0%, 100% { transform: rotate(0); } 10%, 30%, 50%, 70%, 90% { transform: rotate(10deg); } 20%, 40%, 60%, 80% { transform: rotate(-10deg); } }

@keyframes fadeInModal { from { opacity:0; } to { opacity:1; } }

/* =========== Multi-Step Form UI =========== */
.step-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}
.step-content.active {
    display: block;
}

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

.progress-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
}

.progress-container::before {
    content: '';
    background: var(--border);
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    z-index: -1;
    border-radius: 4px;
}

.progress-bar-fill {
    background: var(--primary);
    position: absolute;
    top: 50%;
    right: 0; /* RTL Support */
    transform: translateY(-50%);
    height: 4px;
    width: 0%;
    z-index: -1;
    transition: 0.4s ease;
    border-radius: 4px;
}

.step-indicator {
    background: white;
    border: 3px solid var(--border);
    color: var(--text-muted);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: 0.4s ease;
}

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

.step-indicator.completed {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Room Options Selector */
.room-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}
.room-card {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}
.room-card h4 { color: var(--text-main); margin-bottom: 5px; }
.room-card p { color: var(--accent-dark); font-weight: bold; font-size: 1.1rem; }
.room-card.selected {
    border-color: var(--accent);
    background: rgba(250, 204, 21, 0.05);
}

/* Terms Box */
.terms-box {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

/* ============ Premium Aesthetic Additions ============ */

/* 1. Custom Elegant Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* 2. Sticky Glassmorphism Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s ease;
}

/* 3. Animated Gradient Banner (Hero Section) */
.banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(-45deg, #1e293b, #0f172a, #0ea5e9, #334155);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 4. Scroll Reveal Animations & Micro-interactions */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

/* ============ [FIX #4, #7] كلاسات مفقودة ============ */

/* [FIX #4] form-grid — شبكة لحقول النموذج */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* form-group select & textarea styling */
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: white;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s;
}
.form-group select:focus,
.form-group textarea:focus,
.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}
.form-group.full-width {
    grid-column: 1 / -1;
}

/* [FIX #7] btn-large — زر كبير للبانر الرئيسي */
.btn-large {
    padding: 16px 40px;
    font-size: 1.15rem;
    border-radius: 10px;
}

/* [FIX #7] loading-spinner — رسالة تحميل الأخبار */
.loading-spinner {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
    font-style: italic;
    font-size: 1rem;
    width: 100%;
    grid-column: 1 / -1;
}

/* ============ Footer / Contact Info ============ */
.contact-footer {
    background: #1e293b; 
    color: white; 
    padding: 50px 0; 
    text-align: center; 
    margin-top: 50px;
}
.contact-header { margin-bottom: 15px; font-weight: 800; font-size: 1.8rem; color: #fff; }
.contact-text { color: #cbd5e1; margin-bottom: 25px; font-size: 1.05rem; }
.contact-cards-container { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.contact-card { background: rgba(255,255,255,0.1); padding: 15px 25px; border-radius: 12px; }
.contact-card i { font-size: 1.5rem; color: #38bdf8; margin-bottom: 10px; display:block; }
.contact-card span { font-weight: 700; color: #fff; }
.footer-copyright { margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; color: #64748b; font-size: 0.9rem; }

/* ============ Mobile Responsiveness ============ */
@media (min-width: 769px) {
    .form-container {
        max-width: 800px;
    }
}
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .room-options {
        grid-template-columns: 1fr;
    }
    .nav-container {
        flex-direction: column;
        text-align: center;
    }
    .nav-links {
        margin-top: 15px;
        gap: 15px;
    }
    .banner h1 {
        font-size: 1.8rem;
    }
    .banner p {
        font-size: 1rem;
    }
    .btn-large {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .card {
        padding: 20px;
    }
    .step-indicator {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
/* Contact footer */
    .contact-cards-container {
        flex-direction: column;
        align-items: center;
    }
}

.nav-spacer { height: 60px; }
