/* --- وارد کردن استایل‌های پایه و متغیرها --- */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700;900&display=swap');

:root {
    --primary-color: #0077b6; /* آبی عمیق (اصلی) */
    --secondary-color: #00b4d8; /* آبی روشن‌تر (تاکید) */
    --accent-color: #90e0ef; /* آبی ملایم */
    --dark-color: #03045e; /* آبی تیره برای متن/عناوین */
    --light-color: #f0f8ff; /* سفید مایل به آبی برای پس‌زمینه */
    --success-color: #28a745; 
    --danger-color: #dc3545; 
    --border-radius: 8px;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 10px 20px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- استایل Header، Nav و Footer (برای یکپارچگی) --- */

header {
    background-color: var(--dark-color);
    color: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-heavy);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0;
    color: var(--accent-color);
}

nav a, .dropbtn {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    padding: 10px 0;
    transition: color 0.3s, border-bottom 0.3s;
    font-weight: 400;
}

nav a:hover, nav a.active, .dropbtn.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.dropdown {
    position: relative;
    display: inline-block;
    margin: 0 15px;
}

.dropbtn {
    background-color: transparent;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
}

.dropdown:hover .dropbtn {
    color: var(--secondary-color);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--dark-color);
    min-width: 160px;
    box-shadow: var(--shadow-light);
    z-index: 1;
    border-radius: var(--border-radius);
    top: 100%;
    right: 0;
    text-align: right;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    margin: 0;
}

.dropdown-content a.active {
    background-color: var(--primary-color);
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--primary-color);
    border-bottom: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

footer {
    background-color: var(--dark-color);
    color: var(--accent-color);
    padding: 20px 5%;
    text-align: center;
    border-top: 3px solid var(--secondary-color);
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
    font-weight: 400;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
}

.footer-links a:hover {
    color: var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
}

.footer-copy p {
    font-size: 0.9rem;
    color: var(--accent-color);
    opacity: 0.7;
}

/* --- استایل بخش اصلی (Main) و فرم شروع --- */
main {
    display: flex;
    justify-content: center;
    padding: 40px 5%;
    background-color: var(--light-color);
    min-height: calc(100vh - 180px); 
}

.request-container {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    max-width: 650px; /* تمرکز بر فرم */
    width: 100%;
}

.main-title {
    font-size: 2rem;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    font-weight: 900;
    border-bottom: 3px solid var(--primary-color);
}

.intro-text {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 30px;
    font-weight: 400;
}

/* --- استایل فرم --- */
.request-start-form {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: #f7f9fc;
}

.form-group {
    margin-bottom: 25px;
}

.request-start-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.05rem;
}

.request-start-form select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    background-color: white;
    appearance: none; /* حذف استایل پیش‌فرض مرورگر برای زیبایی بیشتر */
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%230077b6" d="M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z"/></svg>');
    background-repeat: no-repeat;
    background-position: left 15px center;
    cursor: pointer;
    transition: border-color 0.3s;
}

.request-start-form select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
    outline: none;
}

/* --- استایل ناحیه پیام‌ها (برای استفاده با JS) --- */
#message-area {
    margin-bottom: 20px;
    min-height: 20px;
    text-align: center;
}

/* کلاس‌های پیام‌های وضعیت */
.alert-warning {
    background-color: #fffbe6;
    border: 1px solid var(--warning-color);
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    font-weight: 700;
}

/* --- استایل دکمه ادامه --- */
.buttons {
    text-align: center;
    padding-top: 15px;
    border-top: 1px dashed #ccc;
}

.btn-primary {
    background-color: var(--success-color); /* استفاده از سبز برای دکمه اقدام اصلی */
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.btn-primary:hover {
    background-color: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* --- واکنش‌گرایی (Media Queries) --- */
@media (max-width: 768px) {
    /* Header/Nav responsive styles here (from previous files) */
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 5%;
    }
    
    nav {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    nav a, .dropdown {
        margin: 5px 0;
        width: 100%;
        text-align: right;
    }

    .dropbtn {
        width: 100%;
        text-align: right;
        padding: 10px 0;
    }
    
    /* Main Content adjustments */
    main {
        padding: 20px 3%;
    }
    
    .request-container {
        padding: 20px;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .intro-text {
        font-size: 1rem;
    }
    
    .request-start-form select {
        padding: 10px 15px;
        font-size: 0.95rem;
    }

    .btn-primary {
        font-size: 1rem;
        padding: 12px 20px;
    }
}