/* فرم‌ها - استایل عمومی */
body {
    font-family: 'Vazir', Tahoma, Arial, sans-serif;
    background-color: #c6d2ff;
    margin: 0;
    padding: 0;
    direction: rtl;
}

h2, h3 {
    color: #2c3e50;
    text-align: center;
    margin: 20px 0;
    font-size: 25.67px;
    font-weight: bold;
}

form {
    width: 80%;
    margin: 0 auto;
    background-color: #fff;
    padding: 33.33px;
    border-radius: 13.33px;
    box-shadow: 0 0 16.67px rgba(0, 0, 0, 0.1);
}

label {
    display: block;
    margin: 16.67px 0 8.33px;
    color: #34495e;
    text-align: center;
    font-size: 20.33px;
    font-weight: bold;
}

input[type="text"], select, textarea {
    display: block;
    width: 100%;
    padding: 10.67px;
    margin: 16.67px 0 33.33px 0;
    border: 1.67px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    font-size: 25.67px;
    text-align: center;
    box-sizing: border-box;
}

input[type="text"]:focus, select:focus, textarea:focus {
    border-color: #0a0591;
    background-color: #e9f1fa;
}

button {
    background-color: #0a0591;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 25.67px;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    margin-top: 33.33px;
}

button:hover {
    background-color: #2006d7;
}

.btn-container {
    display: flex;
    justify-content: space-between;
    margin-top: 33.33px;
}

.btn-container button {
    width: 48%;
}



/* فرم‌ها - تاریخ‌ها */
input[type="text"][id="date"],
input[type="text"][id="datefa"],
input[type="text"][id="datefa2"], 
input[type="text"][id="date2"] {
    direction: ltr;
    text-align: center;
}

/* پیام‌ها - بارگذاری و پاسخ */
.loading-message, .response-message {
    margin-top: 20px;
    text-align: center;
    font-size: 40px; /* تغییر اندازه فونت برای بزرگ شدن متن */
    color: blue;
    width: 100%;
}

.loading-message {
    display: none; /* مخفی بودن هنگام بارگذاری */
}

.response-message {
    display: none; /* مخفی بودن پاسخ تا زمانی که اطلاعات دریافت شود */
    padding: 20px;
    border: 1px solid #ccc;
    white-space: pre-wrap; /* برای نمایش متن با فاصله‌های جدید */
    background-color: #f4f7f6; /* رنگ پس‌زمینه */
}

/* فرم‌ها - استایل ورودی‌ها */
input[type="text"], 
input[type="password"], 
select, 
textarea {
    display: block;
    width: 100%;
    padding: 10.67px;
    margin: 16.67px 0 33.33px 0;
    border: 1.67px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    font-size: 25.67px;
    text-align: center;
    box-sizing: border-box;
}

input[type="text"]:focus, 
input[type="password"]:focus, 
select:focus, 
textarea:focus {
    border-color: #0a0591;
    background-color: #e9f1fa;
}

/* فرم‌ها - تغییر کلمه عبور */
#password-strength {
    width: 100%;
    height: 30px;
    background: #ddd;
    margin-top: 5px;
    border-radius: 5px;
}

#password-strength div {
    height: 100%;
    width: 0%;
    text-align: center;
    line-height: 25px;
    color: white;
    border-radius: 5px;
}

.error-message {
    color: white;
    background: red;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    width: 50%;
    margin: 20px auto;
    border-radius: 5px;
}

.success-message {
    color: white;
    background: green;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    width: 50%;
    margin: 20px auto;
    border-radius: 5px;
}

/* فرم‌ها - ردیف‌ها و گروه‌ها */
.form-row {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* فاصله بین فیلدها */
}

.form-group {
    flex: 1; /* فیلدها عرض مساوی بگیرند */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
}

/* استایل برای موبایل */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column; /* تغییر جهت فیلدها به صورت ستونی */
        gap: 10px; /* کاهش فاصله بین فیلدها */
    }

    .form-group {
        flex: none; /* از حالت تقسیم عرض مساوی خارج می‌شود */
        width: 100%; /* هر فیلد تمام عرض را می‌گیرد */
    }
}


