/* --- 1. SETTINGS & VARIABLES --- */
:root {
    --gold-dark: #b88a4d;
    --gold-light: #e6c88a;
    --gold-gradient: linear-gradient(135deg, #b88a4d 0%, #e6c88a 100%);
    --black: #0f172a;
    --dark-grey: #334155;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--light-bg);
    color: var(--dark-grey);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex-space {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- 2. TOP BAR & NAVBAR --- */
.top-bar {
    background-color: var(--black);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.lang-switch a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.lang-switch a:hover {
    color: var(--gold-light);
}

.navbar {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.emblem {
    height: 55px;
}

.logo-text h1 {
    font-size: 1.1rem;
    color: var(--black);
    letter-spacing: 1px;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--gold-dark);
    font-weight: 700;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-item:hover, .nav-item.active {
    color: var(--gold-dark);
}

.btn-login {
    padding: 10px 25px;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

.btn-login:hover {
    background: var(--gold-gradient);
    color: var(--black);
    box-shadow: 0 5px 15px rgba(184, 138, 77, 0.4);
}

/* --- 3. HERO SECTION (GLASS EFFECT) --- */
.hero {
    height: 80vh;
    background: url('https://images.unsplash.com/photo-1546412414-e1885259563a?q=80&w=1920') center/cover no-repeat fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    /* Glass Effect */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.badge {
    background: var(--gold-gradient);
    color: var(--black);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin: 20px 0;
    font-weight: 700;
}

.hero p {
    color: #e2e8f0;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary {
    padding: 15px 35px;
    background: var(--gold-gradient);
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(184, 138, 77, 0.4);
}

.btn-secondary {
    padding: 15px 35px;
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--black);
}

/* --- 4. SERVICES GRID --- */
.services {
    padding: 80px 20px;
    margin-top: -60px; /* Thoda upar le gaye overlap ke liye */
    position: relative;
    z-index: 3;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--black);
}

.gold-line {
    width: 60px;
    height: 4px;
    background: var(--gold-gradient);
    margin: 10px auto;
    border-radius: 2px;
}

.grid-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.4s ease;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--gold-dark);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--gold-dark);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--black);
}

.service-card p {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

.link-arrow {
    text-decoration: none;
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
}

.link-arrow:hover {
    color: var(--black);
    letter-spacing: 0.5px;
}

/* --- 5. FOOTER --- */
footer {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    font-size: 0.9rem;
    border-top: 4px solid var(--gold-dark);
}

/* --- 6. STATISTICS STRIP --- */
.stats-section {
    background-color: var(--black);
    padding: 60px 0;
    margin-top: 50px;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png'); /* Pattern Effect */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-box h2 {
    font-size: 3rem;
    color: var(--gold-light);
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-box p {
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* --- 7. MOBILE APP SECTION --- */
.app-section {
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap; /* Mobile friendly */
}

.app-content {
    flex: 1;
    max-width: 600px;
}

.app-content h2 {
    font-size: 2.5rem;
    color: var(--black);
    margin: 15px 0;
}

.app-content p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.app-buttons {
    display: flex;
    gap: 15px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--black);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.store-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-3px);
}

.store-btn i {
    font-size: 1.8rem;
}

.store-btn small {
    font-size: 0.7rem;
    display: block;
}

.app-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.app-image img {
    max-width: 100%;
    width: 350px; /* Phone size limit */
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
    transition: 0.5s;
}

.app-image img:hover {
    transform: scale(1.05) rotate(-2deg);
}

/* --- 8. MEGA FOOTER --- */
.main-footer {
    background-color: #0f172a; /* Deep Dark Blue */
    color: #cbd5e1;
    padding-top: 70px;
    border-top: 5px solid var(--gold-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 50px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Logo ko white kar dega */
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--gold-light);
    padding-left: 5px;
}

.footer-col ul li i {
    color: var(--gold-dark);
    margin-right: 10px;
    width: 20px;
}

/* Newsletter Input */
.newsletter-form {
    display: flex;
    margin-bottom: 20px;
}

.newsletter-form input {
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    width: 100%;
    outline: none;
}

.newsletter-form button {
    background: var(--gold-dark);
    border: none;
    color: white;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 1.2rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--white);
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    background: #020617; /* Blackest Blue */
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    border-top: 1px solid #1e293b;
}

.footer-bottom a {
    color: var(--gold-dark);
    text-decoration: none;
}
/* --- 9. AUDIENCE CATEGORIES --- */
.audience-section {
    padding: 60px 20px;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.audience-box {
    background: white;
    padding: 30px;
    border-left: 5px solid var(--gold-dark);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.audience-box h3 {
    margin-bottom: 20px;
    color: var(--black);
}

.audience-box ul {
    list-style: none;
}

.audience-box ul li {
    margin-bottom: 10px;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 5px;
}

.audience-box a {
    text-decoration: none;
    color: #64748b;
    font-size: 0.95rem;
    transition: 0.3s;
}

.audience-box a:hover {
    color: var(--gold-dark);
    padding-left: 5px;
}

/* --- 10. PROCESS STEPS --- */
.process-section {
    background-color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.steps-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.step-num {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(184, 138, 77, 0.15); /* Faded Gold Number */
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.step-card h4 {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    color: var(--black);
    margin-bottom: 10px;
}

.step-card p {
    position: relative;
    z-index: 1;
    color: #64748b;
    font-size: 0.9rem;
}

/* --- 11. NEWS SECTION --- */
.news-section {
    padding: 80px 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 0.75rem;
    color: var(--gold-dark);
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.news-content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--black);
}

.news-content p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 15px;
}

.news-content a {
    color: var(--black);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
}

/* --- 12. PARTNERS SECTION --- */
.partners-section {
    background: #f1f5f9;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.partners-section p {
    font-weight: bold;
    color: #94a3b8;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logos-flex {
    display: flex;
    justify-content: center;
    gap: 50px;
    color: #cbd5e1; /* Grey logos initially */
    flex-wrap: wrap;
}

.logos-flex i:hover {
    color: var(--black); /* Black on hover */
    transition: 0.3s;
}
/* --- 13. ARABIC VISION STRIP --- */
.vision-strip {
    background: linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9)), url('https://www.transparenttextures.com/patterns/arabesque.png');
    padding: 60px 20px;
    color: var(--white);
    border-top: 5px solid var(--gold-dark);
    border-bottom: 5px solid var(--gold-dark);
    margin: 50px 0;
}

.vision-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    text-align: center;
}

.arabic-text h2 {
    font-family: 'Cairo', sans-serif;
    font-size: 2.5rem;
    color: var(--gold-light);
    margin-bottom: 10px;
}

.arabic-text p {
    font-family: 'Cairo', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.english-text h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.english-text span {
    color: var(--gold-dark);
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 10px;
    display: block;
}

/* --- 14. FAQ SECTION --- */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.faq-box {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #cbd5e1;
    transition: 0.3s;
}

.faq-box:hover {
    border-left: 4px solid var(--gold-dark);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.faq-box h4 {
    color: var(--black);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-box h4 i {
    color: var(--gold-dark);
}

.faq-box p {
    color: #64748b;
    font-size: 0.95rem;
    padding-left: 28px;
}

/* --- 15. HAPPINESS METER --- */
.happiness-section {
    background: #f8fafc;
    padding: 50px 20px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    margin-top: 50px;
}

.happiness-section h3 {
    color: var(--black);
    margin-bottom: 10px;
}

.happiness-section p {
    color: #64748b;
    margin-bottom: 30px;
}

.faces-container {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.face-btn {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 15px 25px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    min-width: 120px;
}

.face-btn i {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
    color: #94a3b8; /* Default grey */
}

.face-btn span {
    font-weight: bold;
    color: #64748b;
    font-size: 0.9rem;
}

/* Hover Colors */
.face-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.face-btn.happy:hover { border-color: #22c55e; }
.face-btn.happy:hover i { color: #22c55e; } /* Green */

.face-btn.neutral:hover { border-color: #eab308; }
.face-btn.neutral:hover i { color: #eab308; } /* Yellow */

.face-btn.sad:hover { border-color: #ef4444; }
.face-btn.sad:hover i { color: #ef4444; } /* Red */
/* --- CONTACT PAGE STYLES --- */

/* Page Header (Small Hero) */
.page-header {
    height: 40vh; /* Chota height */
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1578895101408-1a36b834405b?w=1600&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.header-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Info Boxes */
.contact-info {
    margin-top: -50px; /* Overlap effect */
    position: relative;
    z-index: 2;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-box {
    background: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-bottom: 5px solid var(--gold-dark);
    transition: 0.3s;
}

.info-box:hover {
    transform: translateY(-10px);
}

.icon-gold {
    font-size: 2.5rem;
    color: var(--gold-dark);
    margin-bottom: 20px;
}

.big-text {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--black);
    margin: 10px 0;
    text-decoration: none;
}

.sub-text {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Map & Form */
.map-form-section {
    padding: 80px 20px;
}

.mf-grid {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.form-wrapper, .map-wrapper {
    flex: 1;
    min-width: 300px;
}

.form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-wrapper h3 {
    font-size: 1.8rem;
    color: var(--black);
    margin-bottom: 10px;
}

.input-group {
    display: flex;
    gap: 20px;
}

.form-wrapper input, .form-wrapper textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    outline: none;
    font-size: 1rem;
    background: #f8fafc;
}

.form-wrapper input:focus, .form-wrapper textarea:focus {
    border-color: var(--gold-dark);
    background: white;
}

.map-wrapper iframe {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 100%;
    min-height: 400px;
}
/* =========================================
   MOBILE RESPONSIVENESS (HAMBURGER MENU)
   ========================================= */

/* 1. Desktop par Hamburger Button CHUPA rahe */
.hamburger {
    display: none; 
}

/* 2. Jab screen Mobile jitni choti ho (768px se kam) */
@media (max-width: 768px) {
    
    /* Hamburger Button ko DIKHAO */
    .hamburger {
        display: block !important;
        font-size: 2.5rem;
        cursor: pointer;
        color: var(--black);
        position: absolute;
        top: 25px;
        right: 20px;
        z-index: 2000;
    }

    /* Menu Links ko CHUPA DO aur Vertical kar do */
    .nav-links {
        display: none; /* By default chupa rahega */
        flex-direction: column; /* Line me nahi, ek ke neeche ek */
        width: 100%;
        background-color: white;
        position: absolute;
        top: 100%; /* Navbar ke theek neeche chipak jaye */
        left: 0;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        border-top: 3px solid var(--gold-dark);
        z-index: 999;
    }

    /* Jab button dabega, JS ye class lagayegi aur Menu DIKHEGA */
    .nav-links.show {
        display: flex !important;
    }

    /* Links ke beech thoda gap */
    .nav-links li {
        margin: 15px 0;
        text-align: center;
        width: 100%;
    }
    
    .nav-links li a {
        display: block;
        width: 100%;
    }

    /* Mobile par Hero Text thoda chota karo taaki phone me fit aaye */
    .hero h1 {
        font-size: 2rem;
    }
    
    /* Mobile par search/contact box sahi se fit ho */
    .search-box, .app-section {
        flex-direction: column;
        padding: 40px 20px;
    }
}
/* --- MOVING PARTNERS SLIDER CSS --- */

.partners-section {
    background: #f8fafc;
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    overflow: hidden; /* Bahar jane wali cheezein chupa do */
}

.partner-title {
    font-weight: bold;
    color: #94a3b8;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* Khidki (Window) jiske andar slider chalega */
.slider-window {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Patri (Track) jo chalegi */
.slider-track {
    display: flex;
    /* Width ko adjust kar sakte hain agar logos kat rahe ho */
    width: calc(200px * 12); 
    animation: scroll 30s linear infinite; /* 30s speed hai */
}

.slider-track img {
    height: 80px; /* Logo ki height thodi badi ki hai HD ke liye */
    width: auto;
    margin: 0 50px; /* Logos ke beech gap */
    filter: grayscale(100%); /* Pehle Black & White dikhega */
    opacity: 0.7;
    transition: 0.3s;
}

/* Mouse le jane par Color aa jaye */
.slider-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* ANIMATION LOGIC (Right to Left) */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Aadha chalne ke baad wapas 0 par jump */
        /* Note: Ye value half honi chahiye total width ki */
        transform: translateX(calc(-200px * 6)); 
    }
}

/* Mobile Fix */
@media (max-width: 768px) {
    .slider-track img {
        height: 50px; /* Mobile par logo chota */
        margin: 0 20px;
    }
}
/* =======================================================
   FINAL CLEAN CSS FOR STATUS PAGE
   ======================================================= */

/* --- SEARCH FORM (Box Style) --- */
.form-section {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    min-height: 60vh;
    flex-direction: column; /* Allows switching between form and result */
}

.form-box {
    width: 100%;
    max-width: 800px;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-top: 5px solid #b88a4d;
    animation: fadeIn 0.5s ease;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.input-wrapper label { font-weight: 700; color: #334155; font-size: 0.95rem; display: block; margin-bottom: 8px; }
.input-wrapper input, .input-wrapper select {
    width: 100%; padding: 14px; border: 1px solid #cbd5e1; border-radius: 8px; background: #f8fafc;
}
.full-width { width: 100%; padding: 15px; font-size: 1.1rem; border-radius: 8px; background: #b88a4d; color: white; border: none; cursor: pointer; }

/* --- A4 PAPER (Separate Container) --- */
.paper-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: slideUp 0.5s ease;
}

.a4-paper {
    background: white;
    width: 210mm;
    min-height: 297mm;
    padding: 15mm;
    box-shadow: 0 0 40px rgba(0,0,0,0.2);
    border: 1px solid #e2e8f0;
    font-family: 'Times New Roman', serif;
    position: relative;
    box-sizing: border-box; /* Fix for right shift */
}

/* Action Bar */
.action-bar {
    width: 100%; max-width: 210mm; display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 20px;
}
.btn-download { background: #b91c1c; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; }
.btn-reset { background: white; border: 1px solid #64748b; padding: 10px 20px; border-radius: 5px; cursor: pointer; }

/* Internal Design */
.doc-header { display: flex; justify-content: space-between; border-bottom: 3px double #b88a4d; padding-bottom: 15px; margin-bottom: 20px; }
.dh-left, .dh-right { width: 35%; text-align: center; } .dh-center { width: 30%; text-align: center; } .dh-center img { width: 80px; }
.arabic-title { font-family: 'Cairo', sans-serif; font-weight: bold; font-size: 1.1rem; margin: 0; }
.eng-title { font-weight: bold; font-size: 0.9rem; margin: 2px 0; }
.qr-img { width: 60px; margin-top: 5px; }

.green-strip { background: #f0fdf4; border: 2px solid #16a34a; color: #15803d; padding: 8px 15px; display: flex; justify-content: space-between; font-weight: bold; margin-bottom: 25px; }

.content-grid { display: flex; gap: 20px; margin-bottom: 20px; }
.photo-section { width: 25%; text-align: center; }
.photo-box { width: 130px; height: 160px; border: 1px solid #000; padding: 4px; display: inline-block; }
.photo-box img { width: 100%; height: 100%; object-fit: cover; }
.details-section { width: 75%; }
.details-table { width: 100%; border-collapse: collapse; }
.details-table td { padding: 6px 5px; border-bottom: 1px solid #eee; vertical-align: top; font-size: 0.95rem; }
.lbl { font-weight: bold; color: #555; width: 40%; font-family: sans-serif; }
.val { font-weight: bold; text-transform: uppercase; font-family: 'Courier New', monospace; }

.legal-text { margin-top: 15px; border-top: 2px solid #000; padding-top: 10px; }
.arabic-block { text-align: right; font-family: 'Cairo', sans-serif; border-bottom: 1px dashed #ccc; padding-bottom: 10px; margin-bottom: 10px; }
.english-block p, .arabic-block p { font-size: 0.75rem; margin-bottom: 5px; line-height: 1.3; }
.doc-footer { text-align: center; font-size: 0.7rem; color: #999; margin-top: 20px; border-top: 1px solid #eee; padding-top: 5px; }

/* Mobile Fix */
@media (max-width: 768px) {
    .form-box { padding: 25px; }
    .a4-paper { width: 95%; padding: 10px; min-height: auto; }
    .content-grid { flex-direction: column; }
    .photo-section, .details-section { width: 100%; }
    .dh-left, .dh-right { display: none; }
}

/* --- PRINT SETTINGS (MAGIC FIX) --- */
/* =================================================
   FINAL PRINT FIX (Blank Page Problem Solved)
   ================================================= */

/* =================================================
   FINAL PRINT FIX (Blank Page Solved 100%)
   ================================================= */

@media print {
    
    @page { 
        size: A4; 
        margin: 0; 
    }

    /* 1. Sab faaltu cheezein GAYAB kar do */
    body * {
        visibility: hidden; /* Sabko invisible karo */
    }

    /* 2. Sirf RESULT wale hisse ko VISIBLE karo */
    #result-area, 
    #result-area * {
        visibility: visible; /* Result aur uske andar ka sab dikhao */
    }

    /* 3. Result Area ko page ke top par set karo */
    #result-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        display: block !important; /* Zabardasti show karo */
    }

    /* 4. A4 Paper ki styling print ke liye */
    .a4-paper {
        width: 100% !important;
        max-width: 210mm !important;
        margin: 0 auto !important;
        padding: 10mm !important;
        border: none !important;
        box-shadow: none !important;
        position: absolute;
        top: 0;
        left: 0;
    }

    /* 5. Inko specifically chupa do (Double Safety) */
    .no-print, 
    .navbar, 
    .top-bar, 
    footer, 
    .page-header, 
    #search-container {
        display: none !important;
    }

    /* 6. Form Section ko dikhao (Kyunki Result iske andar hai) */
    .form-section {
        visibility: visible !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        padding: 0 !important;
        margin: 0 !important;
    }
}