@import url(fontiran.css); /* Developed By ParsMehan.com Digital Marketing Agency */
/* four breakpoints with a mobile-first design strategy */
/* default style is for the smallest screen group */
/* Default: Extra-small devices such as small phones (less than 640px) */

/* استایل کلی برای کل صفحه */
body {
	font-family: IRANSans, Arial, sans-serif !important;
    background-color: #cfae8d;
	font-weight: 500;
	direction: rtl;
    margin: 0;
    padding: 20px;
    color: #333;
    line-height: 1.6;
}

/* استایل کانتینر اصلی */
.container {
    background-color: #fff;
    max-width: 90%;
    padding: 15px;
    border-radius: 10px;
    margin: 10px auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);

}

/* استایل هدر صفحه */
h2 {
    text-align: center;
    color: #131313;
	font-weight: bold;
	font-size: 28px;
    margin-bottom: 15px;
}

/* استایل کلی برای فرم */
form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* استایل برچسب‌های فیلدهای ورودی */
label {
    font-size: 14px;
    margin-bottom: 5px;
    color: #555;
}

/* استایل فیلدهای ورودی (نام، شماره تلفن و دراپ‌دان‌ها) */
input[type="text"], input[type="tel"], select {
    font-family: IRANSans !important;
    margin-bottom: 10px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* استایل دکمه ارسال */
button, input[type="submit"] {
    background-color: #306B49;
    font-family: IRANSans !important;
    font-size: 18px;
    color: #fff;
    border: 2px solid #bca168;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover, input[type="submit"]:hover {
    background-color: #0F4C38;
}

/* استایل جدول نمایش داده‌ها برای results.php */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 12px;
    font-size: 16px;
    text-align: center;
    vertical-align: middle;

}

/* جلوگیری از شکستن متن در سلول‌ها */
table td {
    white-space: nowrap;
}

/* استایل برای تیترهای جدول */
table th {
    background-color: #f8f8f8;
    font-weight: bold;
    color: #333;
}

/* استایل هاور برای ردیف‌های جدول */
table tr:hover {
    background-color: #f1f1f1;
}

/* تنظیم عرض ستون‌ها برای صفحه نتایج */
table th:nth-child(1), table td:nth-child(1) {
    width: 20%;
}

table th:nth-child(2), table td:nth-child(2) {
    width: 20%;
}

table th:nth-child(3), table td:nth-child(3) {
    width: 20%;
}

table th:nth-child(4), table td:nth-child(4) {
    width: 20%;
}

table th:nth-child(5), table td:nth-child(5) {
    width: 20%;
}

/* استایل پیام خطا یا خالی بودن جدول */
.empty-message {
    text-align: center;
    font-size: 18px;
    color: #666;
    padding: 20px;
}

/* استایل برای صفحات موفقیت (success.html) */
.success-message {
    text-align: center;
    color: #28a745;
    font-size: 20px;
    padding: 20px;
}

/* طراحی ریسپانسیو برای دستگاه‌های بزرگ‌تر */
@media (min-width: 768px) {
    .container {
        max-width: 600px;
        min-width: 60%;
    }

    h2 {
        font-size: 28px;
    }

    input[type="text"], input[type="tel"], select {
        font-size: 18px;
    }

    input[type="submit"] {
        font-size: 20px;
    }
}

/* استایل‌های اضافی برای صفحه success و تغییر سایز‌ها */
@media (min-width: 1200) {
    .container {
        max-width: 700px;

    }

    h2 {
        font-size: 32px;
    }

    input[type="text"], input[type="tel"], select {
        font-size: 20px;
    }

    input[type="submit"] {
        font-size: 22px;
    }
}

