:root {
    --primary: #10b981;
    --primary-dark: #047857;
    --primary-light: #d1fae5;
    --primary-soft: #ecfdf5;
    --accent: #f59e0b;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-body: #f9fafb;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    -webkit-tap-highlight-color: transparent; 
}

body {
    font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 16px;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: var(--transition); 
}

ul { list-style: none; }
img, svg { max-width: 100%; display: block; }

button, .btn, .accordion-header, .btn-nav, .footer-btn { 
    cursor: pointer; 
    touch-action: manipulation; 
    user-select: none;
    -webkit-user-select: none;
    font-family: 'Tajawal', sans-serif;
}

button > *, .btn > * { pointer-events: none; }

@media screen and (max-width: 768px) { 
    input, select, textarea { 
        font-size: 16px !important; 
    } 
}

.navbar {
    height: 70px;
    backdrop-filter: blur(10px);
}

.navbar-collapse {
    background-color: transparent;
}

@media (max-width: 991.98px) {
    .navbar {
        background-color: rgba(255, 255, 255, 0.95) !important;
    }
    
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 0.5rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        align-items: flex-end !important;
    }
    
    .nav-item {
        text-align: right;
        width: 100%;
    }
    
    .btn-nav {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 1.05rem;
    margin: 0 0.5rem;
}

.nav-link:hover {
    color: var(--primary-dark) !important;
}

.btn-nav { 
    background: var(--primary); 
    color: white !important; 
    padding: 0.7rem 1.8rem; 
    border-radius: var(--radius-full); 
    border: none; 
    font-weight: 700; 
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.btn-nav:hover { 
    background: var(--primary-dark); 
    transform: translateY(-2px); 
    box-shadow: var(--shadow-md); 
}

.btn-nav:active { 
    transform: translateY(0); 
}

.grid { 
    display: grid; 
    gap: 2rem; 
}

.grid-cols-1 { 
    grid-template-columns: 1fr; 
}

@media (min-width: 768px) {
    .md-grid-cols-2 { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .md-grid-cols-4 { 
        grid-template-columns: repeat(4, 1fr); 
    }
}

.hero { 
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    color: white; 
    padding: 6rem 1rem 8rem; 
    position: relative; 
    overflow: hidden; 
    text-align: center;
}

.hero::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 24px 24px; 
    opacity: 0.5;
}

.hero-content { 
    position: relative; 
    z-index: 1; 
}

.hero-badge { 
    background: rgba(255,255,255,0.15); 
    border: 1px solid rgba(255,255,255,0.25); 
    padding: 0.5rem 1.5rem; 
    border-radius: var(--radius-full); 
    font-size: 0.95rem; 
    font-weight: 700; 
    margin-bottom: 2rem; 
    display: inline-block;
    backdrop-filter: blur(8px);
}

.hero h1 { 
    font-size: 2.75rem; 
    margin-bottom: 1.5rem; 
    line-height: 1.2; 
    font-weight: 800; 
    text-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.hero h1 span { 
    color: #6ee7b7; 
    display: inline-block; 
}

.hero p { 
    font-size: 1.25rem; 
    color: #d1fae5; 
    margin-bottom: 3rem; 
    max-width: 700px; 
    margin-left: auto; 
    margin-right: auto; 
    line-height: 1.6;
}

.btn { 
    display: inline-block; 
    padding: 1rem 2.5rem; 
    border-radius: var(--radius-full); 
    font-weight: 800; 
    border: none; 
    font-size: 1.1rem; 
    margin: 0.5rem; 
    transition: var(--transition); 
    min-width: 180px;
}

.btn:active { 
    transform: scale(0.96); 
}

.btn-white { 
    background: white; 
    color: #064e3b; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
}

.btn-white:hover { 
    background: #f0fdf4; 
    transform: translateY(-3px); 
}

.btn-outline { 
    background: rgba(255,255,255,0.1); 
    border: 2px solid rgba(255,255,255,0.3); 
    color: white; 
}

.btn-outline:hover { 
    background: rgba(255,255,255,0.2); 
    border-color: white; 
    transform: translateY(-3px); 
}

.hero-fade { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 100px; 
    background: linear-gradient(to top, var(--bg-body), transparent); 
    pointer-events: none;
}

.section { 
    padding: 6rem 1rem; 
}

.section-title { 
    font-size: 2.25rem; 
    font-weight: 800; 
    margin-bottom: 1rem; 
    text-align: center; 
    color: #111827; 
    position: relative; 
    display: inline-block;
}

.section-title::after {
    content: ''; 
    display: block; 
    width: 60px; 
    height: 4px; 
    background: var(--primary); 
    margin: 0.5rem auto 0; 
    border-radius: 2px;
}

.section-desc { 
    font-size: 1.15rem; 
    color: var(--text-muted); 
    max-width: 750px; 
    margin: 1rem auto 4rem; 
    text-align: center; 
}

.card { 
    background: white; 
    padding: 2.5rem 2rem; 
    border-radius: var(--radius-lg); 
    text-align: center; 
    box-shadow: var(--shadow-sm); 
    transition: var(--transition); 
    border: 1px solid rgba(0,0,0,0.05); 
    height: 100%;
}

.card:hover { 
    transform: translateY(-10px); 
    box-shadow: var(--shadow-lg); 
    border-color: var(--primary-light); 
}

.icon-box { 
    width: 80px; 
    height: 80px; 
    margin: 0 auto 1.5rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 20px;
}

.icon-box i {
    display: block;
}

.bg-green-soft { 
    background: #d1fae5; 
    color: #059669; 
}

.bg-blue-soft { 
    background: #dbeafe; 
    color: #2563eb; 
}

.bg-yellow-soft { 
    background: #fef3c7; 
    color: #d97706; 
}

.bg-purple-soft { 
    background: #f3e8ff; 
    color: #7c3aed; 
}

.notice-bar { 
    background: linear-gradient(135deg, #059669 0%, #10b981 100%); 
    color: white; 
    padding: 3rem 1rem; 
    border-radius: var(--radius-lg);
    margin: 2rem auto; 
    max-width: 1200px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.notice-content { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 1.5rem; 
    text-align: center; 
}

@media (min-width: 768px) { 
    .notice-content { 
        flex-direction: row; 
        text-align: right; 
        justify-content: space-between; 
        padding: 0 2rem; 
    } 
}

.notice-icon svg { 
    width: 48px; 
    height: 48px; 
    fill: rgba(255,255,255,0.9); 
    flex-shrink: 0; 
}

.notice-icon i {
    color: rgba(255,255,255,0.9);
    display: block;
}

.btn-small-white { 
    background: white; 
    color: #059669; 
    padding: 0.8rem 2.5rem; 
    border-radius: var(--radius-full); 
    font-weight: 800; 
    font-size: 1rem; 
    border: none; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    transition: var(--transition);
}

.btn-small-white:hover { 
    transform: scale(1.05); 
    background: #f0fdf4; 
}

/* --- Timeline --- */
.timeline-container { 
    position: relative; 
    max-width: 900px; 
    margin: 0 auto; 
    padding-top: 1rem; 
}

.timeline-line { 
    position: absolute; 
    top: 0; 
    bottom: 0; 
    width: 4px; 
    background: #e5e7eb; 
    border-radius: 4px; 
    right: 28px;
}

.step-item { 
    display: flex; 
    margin-bottom: 3rem; 
    align-items: flex-start; 
    position: relative; 
    justify-content: flex-start; 
}

.step-number { 
    width: 60px; 
    height: 60px; 
    background: var(--primary); 
    color: white; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 800; 
    font-size: 1.5rem; 
    border: 5px solid white; 
    box-shadow: var(--shadow-md); 
    z-index: 10; 
    flex-shrink: 0;
    position: absolute; 
    right: 0; 
    top: 0;
}

.step-content { 
    width: 100%; 
    margin-right: 5rem;
    position: relative;
}

.step-card { 
    background: white; 
    padding: 2rem; 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-sm); 
    border-top: 4px solid var(--primary); 
    transition: var(--transition); 
    position: relative;
}

.step-card:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow-lg); 
}

.step-card h3 { 
    font-weight: 800; 
    font-size: 1.25rem; 
    color: var(--text-main); 
    margin-bottom: 0.75rem; 
}

.step-card::after { 
    content: ''; 
    position: absolute; 
    top: 20px; 
    right: -10px; 
    width: 20px; 
    height: 20px; 
    background: white; 
    transform: rotate(45deg); 
}

@media (min-width: 768px) {
    .timeline-line { 
        right: 50%; 
        transform: translateX(50%);
    }

    .step-item { 
        align-items: center; 
        width: 100%; 
        padding-bottom: 2rem; 
        margin-bottom: 0;
    }

    .step-number { 
        right: auto; 
        left: 50%; 
        transform: translateX(-50%); 
        top: 0; 
    }

    .step-content { 
        width: 45%; 
        margin-right: 0; 
    }

    .step-item:nth-child(odd) { 
        justify-content: flex-start; 
    }
    
    .step-item:nth-child(odd) .step-content { 
        margin-left: auto; 
        text-align: right; 
    }
    
    .step-item:nth-child(odd) .step-card::after { 
        right: auto; 
        left: -10px; 
    }

    .step-item:nth-child(even) { 
        justify-content: flex-end; 
    }
    
    .step-item:nth-child(even) .step-content { 
        text-align: right; 
    }
    
    .step-item:nth-child(even) .step-card::after { 
        left: auto; 
        right: -10px; 
    }
}

.bg-blue-step { 
    background: #2563eb; 
}

.border-blue-step { 
    border-top-color: #2563eb; 
}

.bg-yellow-step { 
    background: #d97706; 
}

.border-yellow-step { 
    border-top-color: #d97706; 
}

.table-wrapper { 
    overflow-x: auto; 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-md); 
    background: white; 
    border: 1px solid #e5e7eb; 
}

table { 
    width: 100%; 
    border-collapse: collapse; 
    min-width: 600px; 
}

th { 
    background: #111827; 
    color: white; 
    padding: 1.5rem; 
    text-align: right; 
    font-weight: 700; 
    letter-spacing: 0.5px; 
}

td { 
    padding: 1.5rem; 
    border-bottom: 1px solid #f3f4f6; 
    font-weight: 500; 
    color: #374151; 
}

tr:last-child td { 
    border-bottom: none; 
}

tbody tr:hover { 
    background-color: #f9fafb; 
    transition: background 0.2s; 
}

.amount { 
    color: var(--primary-dark); 
    font-weight: 800; 
    font-size: 1.15rem; 
}

.highlight-row { 
    background: #ecfdf5; 
}

.highlight-row td { 
    color: #047857; 
}

.conditions { 
    background: #f0fdf4; 
    padding: 2rem; 
    border: 1px solid #bbf7d0; 
    border-radius: var(--radius-lg); 
    margin-top: 2rem; 
}

.conditions h3 { 
    margin-bottom: 1.5rem; 
    font-weight: 800; 
    color: #065f46; 
    display: flex; 
    align-items: center; 
}

.conditions li { 
    margin-bottom: 1rem; 
    display: flex; 
    align-items: flex-start; 
    font-size: 1rem; 
    line-height: 1.6; 
    color: #374151;
}

.check-icon i { 
    color: var(--primary);
    margin-left: 0.8rem; 
    margin-top: 4px; 
}

/* --- FAQ Section --- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    text-align: right;
}

.faq-answer {
    color: var(--text-muted);
    line-height: 1.8;
    text-align: right;
    padding-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
}

footer { 
    background: #111827; 
    color: white; 
    padding: 6rem 1rem; 
    text-align: center; 
}

footer h2 { 
    font-size: 2.2rem; 
    margin-bottom: 1rem; 
    font-weight: 800; 
}

.footer-btn { 
    background: var(--primary); 
    color: white; 
    padding: 1.2rem 4rem; 
    border-radius: var(--radius-full); 
    font-weight: 800; 
    font-size: 1.2rem; 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem;
    border: none; 
    cursor: pointer; 
    transition: all 0.3s; 
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3);
    margin-top: 2.5rem;
}

.footer-btn:hover { 
    background: var(--primary-dark); 
    transform: translateY(-3px); 
}

.copyright { 
    margin-top: 5rem; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 2rem; 
    color: #9ca3af; 
    font-size: 0.9rem; 
}

.form-section-title { 
    color: var(--primary-dark); 
    font-weight: 800; 
    font-size: 1.1rem; 
    margin-bottom: 1.5rem; 
    padding-bottom: 0.5rem; 
    border-bottom: 2px solid #f3f4f6; 
    display: flex; 
    align-items: center; 
    gap: 0.5rem;
}

.form-section-title svg { 
    width: 20px; 
    height: 20px; 
    fill: var(--primary); 
}

.form-section-title i {
    color: var(--primary);
    font-size: 20px;
}

.form-grid { 
    display: grid; 
    gap: 1.5rem; 
    margin-bottom: 2.5rem; 
}

@media (min-width: 640px) { 
    .form-grid { 
        grid-template-columns: 1fr 1fr; 
    } 
    .col-span-2 { 
        grid-column: span 2; 
    } 
}

.col-span-2 { 
    grid-column: span 1; 
}

.form-group { 
    text-align: right; 
}

.form-label { 
    display: block; 
    margin-bottom: 0.6rem; 
    font-weight: 700; 
    font-size: 0.95rem; 
    color: #374151; 
}

.form-input, .form-select, .form-textarea { 
    width: 100%; 
    padding: 0.9rem; 
    border: 1px solid #d1d5db; 
    border-radius: var(--radius-md); 
    font-family: inherit; 
    font-size: 1rem; 
    background: #fff;
}

.form-textarea { 
    resize: vertical; 
    min-height: 120px; 
}

.form-footer { 
    padding: 1.5rem 2rem; 
    background: #f9fafb; 
    border-top: 1px solid #e5e7eb; 
    text-align: left; 
    border-bottom-left-radius: var(--radius-lg); 
    border-bottom-right-radius: var(--radius-lg);
}

.submit-form-btn { 
    background: var(--primary); 
    color: white; 
    width: 100%; 
    padding: 1.1rem; 
    border: none; 
    border-radius: var(--radius-md); 
    font-weight: 800; 
    font-size: 1.1rem; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.25);
    transition: var(--transition);
}

.submit-form-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

@media (min-width: 640px) { 
    .submit-form-btn { 
        width: auto; 
        padding: 1rem 3rem; 
        margin-right: auto; 
    } 
}

.success-icon { 
    width: 100px; 
    height: 100px; 
    background: #d1fae5; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.success-icon svg { 
    width: 50px; 
    height: 50px; 
    fill: var(--primary); 
}

.success-icon i {
    color: var(--primary);
    display: block;
}