@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #006C35;
    --primary-dark: #004D25;
    --primary-light: #00A550;
    --accent: #D4AF37;
    --accent-light: #F0D878;
    --text: #1a1a2e;
    --text-light: #6b7280;
    --bg: #f0f4f0;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --success: #10b981;
    --error: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Kufi Arabic', sans-serif;
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    overflow-x: hidden;
    min-height: 100vh;
}

/* === LOADER === */
#loader-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    display: flex; justify-content: center; align-items: center; flex-direction: column;
    transition: opacity 0.5s ease-out;
}
.loader-logo {
    width: 100px; height: 100px; background: white; border-radius: 50%;
    padding: 15px; margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(0,0,0,0.2); animation: pulse 2s infinite;
}
.loader-logo img { width: 100%; height: 100%; object-fit: contain; }
.loader-spinner {
    width: 40px; height: 40px; border: 4px solid rgba(255,255,255,0.3);
    border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite;
    margin-bottom: 15px;
}
.loader-text { color: white; font-weight: 500; letter-spacing: 1px; font-size: 14px; }

/* === HEADER === */
.site-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 0; position: sticky; top: 0; z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.header-top {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 30px; max-width: 1200px; margin: 0 auto;
}
.header-logo { height: 55px; object-fit: contain; filter: brightness(0) invert(1); transition: transform 0.3s; }
.header-logo:hover { transform: scale(1.05); }
.header-center {
    color: white; text-align: center; flex: 1; padding: 0 20px;
}
.header-center h1 { font-size: 1.1rem; font-weight: 700; margin-bottom: 2px; }
.header-center p { font-size: 0.75rem; opacity: 0.85; }
.header-nav {
    background: rgba(0,0,0,0.15); border-top: 1px solid rgba(255,255,255,0.1);
}
.header-nav ul {
    list-style: none; display: flex; justify-content: center; gap: 0;
    max-width: 1200px; margin: 0 auto; padding: 0;
}
.header-nav li a {
    color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.8rem;
    padding: 10px 20px; display: block; transition: all 0.3s;
    border-bottom: 2px solid transparent;
}
.header-nav li a:hover, .header-nav li a.active {
    background: rgba(255,255,255,0.1); color: white;
    border-bottom-color: var(--accent);
}

/* === BANNER === */
.banner-section { position: relative; overflow: hidden; }
.banner-img {
    width: 100%; height: 280px; object-fit: cover; display: block;
}
.banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,77,37,0.8), transparent 60%);
    display: flex; align-items: flex-end; padding: 30px;
}
.banner-text { color: white; max-width: 600px; }
.banner-text h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.banner-text p { font-size: 0.9rem; opacity: 0.9; }

/* === MAIN CONTAINER === */
.main-container {
    max-width: 1200px; margin: 0 auto; padding: 30px 20px;
}
.content-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
}

/* === CARDS === */
.card-box {
    background: var(--card-bg); border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden; border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card-box:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.card-header-bar {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 18px 25px; color: white;
}
.card-header-bar h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.card-header-bar p { font-size: 0.78rem; opacity: 0.85; margin: 4px 0 0; }
.card-body-content { padding: 25px; }

/* === FORM STYLES === */
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block; font-size: 0.85rem; font-weight: 600;
    color: var(--text); margin-bottom: 8px;
}
.input-wrapper {
    display: flex; align-items: center; background: #f8faf8;
    border: 2px solid var(--border); border-radius: 12px;
    padding: 0 15px; transition: all 0.3s;
}
.input-wrapper:focus-within {
    border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0,108,53,0.1);
    background: white;
}
.input-wrapper i {
    color: var(--primary); font-size: 1.1rem; margin-left: 12px; width: 22px; text-align: center;
}
.input-wrapper input {
    border: none; background: transparent; width: 100%; outline: none;
    font-size: 15px; padding: 14px 0; font-family: 'Noto Kufi Arabic', sans-serif;
    direction: rtl; text-align: right;
}
.input-wrapper input::placeholder { color: #aaa; }

.iti { width: 100% !important; direction: ltr; }
.iti input { direction: ltr; text-align: left; }

.submit-btn {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: white; border: none; width: 100%; padding: 15px;
    border-radius: 12px; font-weight: 700; font-size: 15px;
    font-family: 'Noto Kufi Arabic', sans-serif; cursor: pointer;
    transition: all 0.3s; box-shadow: 0 4px 15px rgba(0,108,53,0.3);
    letter-spacing: 0.5px;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,108,53,0.4); }
.submit-btn:disabled { background: #ccc; cursor: not-allowed; box-shadow: none; transform: none; }

.form-note {
    text-align: center; font-size: 0.75rem; color: var(--text-light);
    margin-top: 15px;
}
.form-note i { margin-left: 5px; }

/* === STEP SECTIONS === */
.step-section { display: none; animation: fadeIn 0.5s; }
.step-section.active { display: block; }

.alert-custom {
    padding: 12px 15px; border-radius: 10px; font-size: 13px;
    margin-bottom: 15px; display: none;
}
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* === STEP INDICATOR === */
.step-indicator {
    display: flex; justify-content: center; gap: 10px;
    margin-bottom: 25px;
}
.step-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--border); transition: all 0.3s;
}
.step-dot.active { background: var(--primary); transform: scale(1.3); }

/* === INFO SECTIONS === */
.info-card {
    background: var(--card-bg); border-radius: 16px; padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); border: 1px solid var(--border);
    margin-top: 30px;
}
.info-card h3 {
    font-size: 1.1rem; font-weight: 700; color: var(--primary-dark);
    margin-bottom: 20px; padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}
.benefit-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    margin-bottom: 25px;
}
.benefit-item {
    text-align: center; padding: 20px 15px;
    background: linear-gradient(135deg, #f0faf4, #e8f5e9);
    border-radius: 14px; border: 1px solid rgba(0,108,53,0.1);
    transition: transform 0.3s;
}
.benefit-item:hover { transform: translateY(-3px); }
.benefit-icon {
    width: 50px; height: 50px; background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px; color: white; font-size: 1.2rem;
}
.benefit-item h4 { font-size: 0.85rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 5px; }
.benefit-item p { font-size: 0.75rem; color: var(--text-light); }

.amount-highlight {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white; border-radius: 14px; padding: 25px; text-align: center;
    margin: 20px 0;
}
.amount-highlight .amount {
    font-size: 2.2rem; font-weight: 800; color: var(--accent-light);
    display: block; margin-bottom: 5px;
}
.amount-highlight .label { font-size: 0.9rem; opacity: 0.9; }

.eligibility-list {
    list-style: none; padding: 0;
}
.eligibility-list li {
    padding: 12px 15px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px; font-size: 0.85rem;
}
.eligibility-list li:last-child { border-bottom: none; }
.eligibility-list li i {
    color: var(--primary); font-size: 1rem; min-width: 20px; text-align: center;
}

.steps-flow {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px;
    margin-top: 15px;
}
.step-card {
    text-align: center; padding: 20px 10px;
    background: #f8faf8; border-radius: 12px;
    position: relative;
}
.step-num {
    width: 35px; height: 35px; background: var(--primary);
    color: white; border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    margin: 0 auto 10px; font-weight: 700; font-size: 0.9rem;
}
.step-card h5 { font-size: 0.8rem; font-weight: 600; margin-bottom: 5px; }
.step-card p { font-size: 0.7rem; color: var(--text-light); }

/* === FOOTER === */
.site-footer {
    background: linear-gradient(135deg, var(--primary-dark), #002815);
    color: white; margin-top: 50px;
}
.footer-main {
    max-width: 1200px; margin: 0 auto;
    padding: 40px 30px; display: grid;
    grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.footer-brand h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.footer-brand p { font-size: 0.8rem; opacity: 0.7; line-height: 1.8; }
.footer-links h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 15px; color: var(--accent-light); }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.8rem; transition: color 0.3s; }
.footer-links a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 15px 30px; text-align: center;
    font-size: 0.75rem; opacity: 0.6;
}

/* === NOTIFICATION === */
#notification-popup {
    position: fixed; top: 20px; left: -100%;
    background: white; padding: 15px 20px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex; align-items: center; gap: 15px;
    z-index: 9999; border-right: 4px solid var(--primary);
    transition: left 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 90%; width: 340px; direction: rtl;
}
.notif-icon {
    background: #e8f5e9; color: var(--primary);
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.notif-content h6 { margin: 0; font-size: 13px; font-weight: 700; color: var(--primary-dark); }
.notif-content p { margin: 3px 0 0; font-size: 11px; color: #666; }

/* === SUBMIT LOADER === */
#submit-loader {
    display: none; position: fixed; inset: 0;
    background: rgba(255,255,255,0.85); backdrop-filter: blur(3px);
    z-index: 10000; justify-content: center; align-items: center;
}
.loader-content { text-align: center; }
.loader-content .spinner {
    width: 50px; height: 50px; border: 4px solid var(--border);
    border-top-color: var(--primary); border-radius: 50%;
    animation: spin 1s linear infinite; margin: 0 auto 15px;
}
.loader-content p { font-weight: 600; color: var(--primary); }

/* === ANIMATIONS === */
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .content-grid { grid-template-columns: 1fr; }
    .benefit-grid { grid-template-columns: 1fr; }
    .steps-flow { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr; gap: 25px; }
    .header-top { padding: 10px 15px; }
    .header-logo { height: 40px; }
    .header-center h1 { font-size: 0.9rem; }
    .header-center p { font-size: 0.65rem; }
    .header-nav ul { flex-wrap: wrap; justify-content: center; }
    .header-nav li a { padding: 8px 12px; font-size: 0.7rem; }
    .banner-img { height: 180px; }
    .banner-text h2 { font-size: 1.1rem; }
    .amount-highlight .amount { font-size: 1.8rem; }
}
