/* Home LAB - Main Stylesheet */
:root {
    --primary: #C62828;
    --primary-dark: #b71c1c;
    --primary-light: #ffcdd2;
    --bg-light: #f8f9fa;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

* { font-family: 'Cairo', sans-serif; }
body { color: var(--text-dark); direction: rtl; text-align: right; background: #fff; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; color: var(--text-dark); }

/* Top Bar */
.top-bar {
    background: var(--primary);
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
}
.top-bar-item { color: #fff; white-space: nowrap; }
.top-bar-item i { margin-left: 4px; }

/* Navbar */
.navbar { padding: 12px 0; transition: var(--transition); }
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-link { color: var(--text-dark) !important; font-weight: 500; padding: 8px 16px !important; border-radius: 8px; transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--primary) !important; background: var(--primary-light); }
.brand-text { color: var(--text-dark); }
.cart-btn { border-radius: 12px; font-weight: 500; }
.cart-badge { font-size: 0.65rem; }

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 50%, #f8f9fa 100%);
    padding: 80px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}
.hero-title { font-size: 2.8rem; font-weight: 900; line-height: 1.4; color: var(--text-dark); }
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); line-height: 1.8; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-light); color: var(--primary); padding: 6px 16px; border-radius: 50px; font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; }
.hero-illustration { max-width: 100%; height: auto; }

/* Section Styles */
.section { padding: 80px 0; }
.section-light { background: var(--bg-light); }
.section-title { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 40px; }

/* Cards */
.card { border: none; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: var(--transition); overflow: hidden; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-img-top { height: 200px; object-fit: cover; background: var(--bg-light); display: flex; align-items: center; justify-content: center; }
.card-body { padding: 20px; }
.card-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }

/* Package Card */
.package-card .card-img-top { background: linear-gradient(135deg, var(--primary-light), #fff); }
.package-price { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.package-original-price { text-decoration: line-through; color: var(--text-muted); font-size: 0.9rem; }
.package-saving { background: #e8f5e9; color: #2e7d32; padding: 2px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.package-tests-count { color: var(--text-muted); font-size: 0.9rem; }

/* Test Card */
.test-card { cursor: default; }
.test-code { font-size: 0.8rem; color: var(--primary); font-weight: 600; background: var(--primary-light); padding: 2px 8px; border-radius: 4px; display: inline-block; }
.test-price { font-size: 1.2rem; font-weight: 700; color: var(--primary); }

/* Buttons */
.btn-primary { background: var(--primary); border-color: var(--primary); border-radius: 10px; font-weight: 600; padding: 10px 24px; transition: var(--transition); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); border-radius: 10px; font-weight: 600; }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }

/* How It Works */
.step-card { text-align: center; padding: 30px 20px; }
.step-number { width: 60px; height: 60px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; margin-bottom: 16px; }
.step-title { font-weight: 700; margin-bottom: 8px; }
.step-desc { color: var(--text-muted); font-size: 0.95rem; }

/* Why Us */
.why-card { text-align: center; padding: 24px 16px; }
.why-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 12px; }

/* Search */
.search-box { max-width: 600px; margin: 0 auto 40px; position: relative; }
.search-box input { border-radius: 50px; padding: 14px 24px; font-size: 1rem; border: 2px solid #e0e0e0; width: 100%; transition: var(--transition); }
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); outline: none; }
.search-results-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 400px; overflow-y: auto; z-index: 1000; display: none; }
.search-results-dropdown.show { display: block; }
.search-result-item { padding: 12px 20px; border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: var(--transition); display: flex; justify-content: space-between; align-items: center; }
.search-result-item:hover { background: #f8f9fa; }
.search-result-item:last-child { border-bottom: none; }

/* Cart */
.cart-table th { background: var(--bg-light); font-weight: 600; }
.cart-summary { background: var(--bg-light); border-radius: var(--radius); padding: 24px; }
.cart-summary .row { padding: 8px 0; border-bottom: 1px solid #e0e0e0; }
.cart-summary .row:last-child { border-bottom: none; font-weight: 700; font-size: 1.1rem; }

/* Booking Form */
.booking-form { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 32px; }
.order-summary-sidebar { background: var(--bg-light); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 100px; }

/* Success Page */
.success-section { min-height: 60vh; display: flex; align-items: center; }
.success-icon { width: 80px; height: 80px; border-radius: 50%; background: #e8f5e9; color: #2e7d32; display: inline-flex; align-items: center; justify-content: center; font-size: 2.5rem; margin-bottom: 20px; }
.booking-code-display { font-size: 1.5rem; font-weight: 800; color: var(--primary); background: var(--primary-light); padding: 8px 24px; border-radius: 12px; display: inline-block; direction: ltr; letter-spacing: 2px; }

/* WhatsApp Float */
.whatsapp-float { position: fixed; bottom: 24px; left: 24px; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: var(--shadow-lg); z-index: 9999; transition: var(--transition); text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

/* Back to Top */
.back-to-top { position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; border: none; display: none; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: var(--shadow-md); z-index: 9998; cursor: pointer; transition: var(--transition); }
.back-to-top.show { display: flex; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* FAQ */
.faq-item { border: 1px solid #e0e0e0; border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-question { padding: 16px 20px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: #fff; transition: var(--transition); }
.faq-question:hover { background: #f8f9fa; }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.active .faq-answer { max-height: 500px; padding: 16px 20px; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

/* Footer */
.site-footer { background: #1a1a2e; color: #fff; padding: 60px 0 20px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #adb5bd; text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-social { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: var(--transition); font-size: 1.1rem; }
.footer-social:hover { background: var(--primary); color: #fff; }

/* Contact */
.contact-card { text-align: center; padding: 30px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.contact-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 16px; }

/* Filter Pills */
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-pill { padding: 6px 16px; border-radius: 50px; border: 2px solid #e0e0e0; background: #fff; color: var(--text-dark); font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: var(--transition); }
.filter-pill:hover, .filter-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Detail Page */
.detail-hero { background: var(--bg-light); padding: 40px 0; }
.detail-image { max-width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.detail-info { padding: 24px 0; }
.detail-meta { color: var(--text-muted); margin-bottom: 16px; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade { animation: fadeInUp 0.6s ease forwards; }

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 1.8rem; }
    .hero-section { padding: 40px 0; min-height: auto; }
    .section { padding: 40px 0; }
    .section-title { font-size: 1.5rem; }
    .top-bar { font-size: 0.75rem; padding: 6px 0; }
    .navbar-brand span { display: none; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 1.5rem; bottom: 16px; left: 16px; }
    .back-to-top { bottom: 16px; right: 16px; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 1.5rem; }
    .btn-lg { padding: 10px 20px; font-size: 0.95rem; }
}

/* Package detail tests list */
.tests-list { list-style: none; padding: 0; }
.tests-list li { padding: 10px 0; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.tests-list li:last-child { border-bottom: none; }
.tests-list .test-name { font-weight: 500; }

/* Pagination */
.pagination .page-link { color: var(--primary); border-radius: 8px; margin: 0 2px; }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* Loading spinner */
.loading-spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid #e0e0e0; border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Slot buttons */
.slot-btn { padding: 8px 16px; border: 2px solid #e0e0e0; border-radius: 10px; background: #fff; cursor: pointer; font-weight: 500; transition: var(--transition); }
.slot-btn:hover { border-color: var(--primary); color: var(--primary); }
.slot-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.slot-btn.disabled { opacity: 0.4; cursor: not-allowed; }

/* Coverage section */
.coverage-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; }
.coverage-section .section-title, .coverage-section h2, .coverage-section h3 { color: #fff; }
