/* --- الإعدادات العامة --- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    background: #f7f0e3;
    color: #143d2f;
    line-height: 1.6;
}

/* --- الشريط العلوي --- */
.top-bar {
    background: #0f3428;
    color: white;
    display: flex;
    gap: 30px;
    padding: 12px 7%;
    font-size: 14px;
}

/* --- الهيدر الرئيسي واللوجو المدمج --- */
.main-header {
    background: rgba(255, 250, 240, 0.95);
    backdrop-filter: blur(10px);
    padding: 22px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 25px #00000015;
    position: sticky;
    top: 0;
    z-index: 50;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.bank-logo {
    width: 75px;
    height: 75px;
    object-fit: contain;
    display: block;
}

.logo-text h1 {
    margin: 0;
    line-height: 1.1;
    font-size: 32px;
}

.logo-text p {
    margin: 0;
    line-height: 1.1;
    color: #b39155;
    font-weight: bold;
}

/* --- التنقل والروابط --- */
nav {
    display: flex;
    gap: 28px;
}

nav a {
    color: #143d2f;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

/* --- الأزرار العامة --- */
button {
    border: none;
    border-radius: 35px;
    background: #b39155;
    color: white;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px #00000025;
}

/* --- قسم الهيرو (البداية) --- */
.hero {
    min-height: 600px;
    padding: 80px 7%;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    align-items: center;
    background:
        radial-gradient(circle at 15% 20%, #d9c49d55, transparent 30%),
        linear-gradient(135deg, #123d30, #1f6049 60%, #f1e3c9);
}

.hero-content { color: white; }

.badge {
    display: inline-block;
    background: #d9c49d;
    color: #143d2f;
    padding: 9px 18px;
    border-radius: 25px;
    font-weight: bold;
}

.hero h2 {
    font-size: 58px;
    line-height: 1.35;
    margin: 25px 0;
}

.hero p {
    font-size: 21px;
    line-height: 1.8;
    max-width: 650px;
}

.hero-actions { display: flex; gap: 15px; margin-top: 30px; }
.outline { background: transparent; border: 2px solid white; }

/* الكارت العائم */
.floating-card {
    background: rgba(255, 250, 240, 0.92);
    border-radius: 35px;
    padding: 35px;
    box-shadow: 0 25px 45px #00000030;
}

.floating-card h3 { font-size: 28px; }

.floating-card p {
    background: white;
    padding: 17px;
    border-radius: 18px;
    box-shadow: 0 8px 18px #00000012;
}

/* --- أقسام الحلول والخدمات --- */
.solutions, .digital, .loans-page, .farmer-page {
    padding: 85px 7%;
    text-align: center;
}

.solutions h2, .digital h2, .loans-page h2 {
    font-size: 44px;
    margin-bottom: 10px;
}

.sub-title {
    color: #6f766f;
    font-size: 19px;
    margin-bottom: 45px;
    text-align: center;
}

/* شبكة البطاقات (الحلول والقروض) */
.solution-grid, .loan-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    text-align: right; /* للعودة للتنسيق العربي */
}

.solution-card, .loan-card {
    background: white;
    padding: 35px 25px;
    border-radius: 28px;
    box-shadow: 0 12px 30px #00000012;
    transition: 0.3s;
    min-height: 240px;
}

.solution-card:hover, .loan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px #00000022;
}

.icon, .loan-card span { font-size: 45px; }
.solution-card h3, .loan-card h3 { font-size: 26px; }
.solution-card p, .loan-card p { color: #666; line-height: 1.8; }

/* التميز لقرض المزارعين والخدمات الخاصة */
.special, .loan-card.farmer {
    border: 3px solid #b39155;
    background: linear-gradient(180deg, #fff, #f2e5cc);
    cursor: pointer;
}

.loan-card small {
    background: #143d2f;
    color: white;
    padding: 7px 12px;
    border-radius: 18px;
    display: inline-block;
    margin-bottom: 14px;
}

/* --- النماذج وقرض المزارعين --- */
.hidden { display: none; }

.form-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 35px;
    align-items: start;
    text-align: right;
}

.form-info {
    background: linear-gradient(160deg, #143d2f, #23624b);
    color: white;
    padding: 45px;
    border-radius: 34px;
    min-height: 520px;
    box-shadow: 0 18px 40px #00000025;
}

.form-info h2 { font-size: 48px; }
.form-info p { font-size: 20px; line-height: 1.9; }

/* خطوات النموذج */
.steps-view {
    display: flex;
    align-items: center;
    margin-top: 55px;
}

.step-dot {
    width: 44px;
    height: 44px;
    background: white;
    color: #143d2f;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: bold;
}

.active-dot { background: #d9c49d; }
.line { height: 3px; background: #d9c49d; flex: 1; }

/* الفورم */
.farmer-form {
    background: white;
    padding: 35px;
    border-radius: 34px;
    box-shadow: 0 18px 40px #00000018;
    text-align: right;
}

.progress {
    height: 10px;
    background: #eee1c8;
    border-radius: 20px;
    margin-bottom: 30px;
    overflow: hidden;
}

#progressBar {
    height: 100%;
    width: 33%;
    background: #b39155;
    transition: 0.3s;
}

.form-step { display: none; }
.active-step { display: block; }
.farmer-form input, .farmer-form select {
    width: 100%;
    padding: 16px;
    border: 1px solid #d8c7a6;
    border-radius: 20px; /* نفس درجة الاستدارة اللي في صورتك */
    margin-top: 8px;
    background-color: white;
    font-size: 16px;
    color: #143d2f;
    appearance: none; /* لإزالة السهم الافتراضي للمتصفح إذا أردتِ */
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="%23b39155" d="M5 7l5 5 5-5z"/></svg>'); /* سهم ذهبي أنيق */
    background-repeat: no-repeat;
    background-position: left 15px center; /* وضع السهم جهة اليسار لأن الكتابة بالعربي */
}

/* --- لوحة التحكم (Dashboard) والنتائج --- */
.result-container {
    margin-top: 50px;
    background: #fff;
    border-radius: 34px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-top: 8px solid #b39155;
    animation: slideUp 0.5s ease-out;
    text-align: right;
}

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

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #f7f0e3;
    padding-bottom: 15px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 35px;
}

.stat-card {
    background: #fdfaf4;
    padding: 25px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid #efe2c8;
}

.stat-card.highlight { background: #143d2f; color: white; }

/* مؤشر المخاطر */
.risk-meter {
    height: 14px;
    background: #eee;
    border-radius: 10px;
    margin: 20px 0 10px;
    overflow: hidden;
}

.risk-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to left, #ff4b2b, #ffb75e);
    transition: width 1.5s cubic-bezier(0.1, 0.7, 1.0, 0.1);
}

.analysis-details {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 24px;
    border-right: 6px solid #b39155;
    text-align: right;
}

/* --- الفوتر والتجاوب --- */
footer {
    background: #143d2f;
    color: white;
    text-align: center;
    padding: 45px 7%;
    margin-top: 50px;
}

@media (max-width: 1000px) {
    .hero, .solution-grid, .loan-types, .form-layout, .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .main-header { flex-direction: column; gap: 18px; }
    .hero h2 { font-size: 38px; }
}

@media print {
    .top-bar, .main-header, .back-btn, .farmer-form, .print-btn, footer {
        display: none !important;
    }
}




/* --- قسم الحلول المصرفية (التنسيق المطابق للصورة) --- */
.solutions {
    padding: 80px 7%;
    text-align: center;
    background-color: #f7f0e3; /* لون الخلفية الكريمي الهادئ */
}

.solutions h2 {
    font-size: 42px;
    color: #143d2f;
    margin-bottom: 10px;
    font-weight: bold;
}

.sub-title {
    font-size: 18px;
    color: #6f766f;
    margin-bottom: 50px;
}

/* شبكة البطاقات */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* تصميم البطاقة الموحد */
.solution-card {
    background: #ffffff;
    border-radius: 30px; /* حواف مستديرة ناعمة */
    padding: 40px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* ظل خفيف جداً */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 320px;
    justify-content: center;
    border: 1px solid transparent;
}

/* تأثير عند تمرير الماوس */
.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* تمييز بطاقة القروض (الإطار الذهبي) */
.solution-card.special {
    border: 2px solid #b39155;
    background: linear-gradient(180deg, #ffffff 0%, #fff9ef 100%);
}

/* تنسيق الأيقونات (Emoji أو Image) */
.solution-card .icon {
    font-size: 50px;
    margin-bottom: 25px;
    display: block;
}

.solution-card h3 {
    font-size: 26px;
    color: #143d2f;
    margin-bottom: 15px;
    font-weight: bold;
}

.solution-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    max-width: 200px;
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 1024px) {
    .solution-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .solution-grid {
        grid-template-columns: 1fr;
    }
}
