/* =========================================
   تنظیمات پایه و متغیرهای رنگی
   ========================================= */
:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --green-100: #d1fae5;
    --green-500: #10b981;
    --green-800: #065f46;
    --red-100: #fee2e2;
    --red-500: #ef4444;
    --red-800: #991b1b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden { display: none !important; }
.text-center { text-align: center; }
.font-bold { font-weight: bold; }
.text-red { color: var(--red-500); }

/* =========================================
   نوار ناوبری (Header)
   ========================================= */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--blue-800);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.nav-logo-icon svg { width: 24px; height: 24px; }
.nav-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--blue-900);
}

/* =========================================
   دکمه‌ها
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: none;
    font-family: inherit;
}
.btn-primary {
    background-color: var(--blue-700);
    color: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.btn-primary:hover {
    background-color: var(--blue-800);
}
.btn-outline {
    background-color: white;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}
.btn-outline:hover {
    background-color: var(--gray-50);
}
.btn-lg {
    padding: 12px 32px;
    font-size: 1.125rem;
}
.btn-animated:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

/* =========================================
   بخش هیرو (Hero)
   ========================================= */
.hero {
    background-color: #ffffff;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}
.hero-badge {
    display: inline-block;
    background-color: var(--blue-50);
    color: var(--blue-600);
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 24px;
}
.hero-title span { color: var(--blue-800); }
.hero-desc {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 40px;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================
   بخش مزایا
   ========================================= */
.section { padding: 80px 0; }
.bg-white { background-color: #ffffff; }
.section-header { margin-bottom: 60px; }
.section-title { font-size: 2rem; font-weight: 800; color: var(--gray-900); }
.section-subtitle { font-size: 1.125rem; color: var(--gray-500); margin-top: 10px; }

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.benefit-card {
    background-color: var(--gray-50);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--gray-100);
    transition: box-shadow 0.3s ease;
}
.benefit-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.benefit-icon {
    width: 48px;
    height: 48px;
    background-color: var(--blue-100);
    color: var(--blue-700);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.benefit-icon svg { width: 24px; height: 24px; }
.benefit-title { font-size: 1.25rem; font-weight: bold; margin-bottom: 8px; color: var(--gray-900); }
.benefit-desc { font-size: 0.875rem; color: var(--gray-600); }

/* =========================================
   بخش شرایط احراز
   ========================================= */
.bg-blue-50 { background-color: var(--blue-50); }
.req-box {
    background-color: white;
    border-radius: 24px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}
.req-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gray-900);
    margin-bottom: 24px;
    border-right: 4px solid var(--blue-600);
    padding-right: 16px;
}
.req-list { list-style: none; }
.req-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    color: var(--gray-700);
}
.req-list svg {
    width: 24px;
    height: 24px;
    color: var(--green-500);
    margin-left: 12px;
    flex-shrink: 0;
}

/* =========================================
   بخش فرم و کپچا
   ========================================= */
.form-section { background-color: var(--gray-100); padding: 80px 0; }
.form-wrapper {
    background-color: white;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--gray-100);
}
.form-header {
    background-color: var(--blue-800);
    padding: 30px;
    text-align: center;
}
.form-header h2 { color: white; font-size: 1.5rem; margin-bottom: 8px; }
.form-header p { color: var(--blue-100); font-size: 0.875rem; }
.form-body { padding: 40px; }

.form-group { margin-bottom: 24px; }

/* استایل‌های مربوط به بخش کپچا */
.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.captcha-wrapper canvas {
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background-color: var(--gray-100);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    background-color: white;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-icon:hover {
    background-color: var(--gray-100);
    color: var(--gray-900);
}
/* پایان استایل‌های کپچا */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}
.input-field {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
    color: var(--gray-800);
}
.input-field:focus {
    outline: none;
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
    background-color: white;
}
textarea.input-field { resize: vertical; min-height: 100px; }
input[type="file"].input-field { padding: 9px 16px; background-color: white; }

.btn-submit { width: 100%; padding: 16px; font-size: 1.125rem; }

.status-message {
    border-radius: 12px;
    padding: 16px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 24px;
}
.status-success { background-color: var(--green-100); color: var(--green-800); border: 1px solid var(--green-500); }
.status-error { background-color: var(--red-100); color: var(--red-800); border: 1px solid var(--red-500); }

.spinner {
    animation: spin 1s linear infinite;
    margin-right: 12px;
    width: 20px;
    height: 20px;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* =========================================
   فوتر
   ========================================= */
.footer {
    background-color: var(--gray-900);
    color: white;
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 20px;
}
.footer-col p, .footer-col ul {
    color: var(--gray-400);
    font-size: 0.875rem;
    line-height: 1.8;
}
.footer-list { list-style: none; }
.footer-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}
.footer-list a:hover { color: var(--blue-400); }
.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 30px;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* =========================================
   مدیا کوئری‌ها (طراحی واکنش‌گرا)
   ========================================= */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    .btn-lg { width: 100%; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .req-box { padding: 24px; }
    .form-body { padding: 24px; }
    .footer-col { text-align: center; }
    .footer-list li { justify-content: center; }
}
```