/* ظرف اصلی فرم - سفید و مینیمال با پدینگ اصلاح شده */
.simple-form {
    max-width: 500px !important;
    width: 100% !important;
    margin: 20px auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    background: #ffffff !important; /* سفید شد */
    padding: 35px 35px 20px 35px !important; /* کاهش پدینگ پایین */
    border-radius: 20px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04) !important;
    border: 1px solid #f0f0f0 !important;
}

.simple-form-container {
    max-width: 500px;
    margin: 20px auto;
}

/* فاصله بین هر فیلد */
.form-group {
    margin-bottom: 15px !important;
    text-align: right;
}

/* استایل برچسب (Label) */
.form-group label {
    display: block;
    margin-bottom: 8px !important;
    font-weight: 600;
    font-size: 14px;
    color: #555;
}

/* استایل کادرهای ورودی - مدرن و تمیز */
.simple-form input[type="text"],
.simple-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f9fbff; /* خاکستری-آبی بسیار روشن */
    font-size: 15px;
}

.simple-form input:focus, 
.simple-form textarea:focus {
    border-color: #007cba;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 124, 186, 0.1);
    outline: none;
}

/* دکمه ارسال - رنگ مینیمال و شیک (Indigo Subtle) */
/* دکمه ارسال - مینیمال با وزن بصری متعادل */
.simple-form button {
    width: 100%;
    padding: 15px;
    background-color: #e2e8f0; /* خاکستری-آبی ملایم (کمی تیره‌تر و مشخص‌تر) */
    color: #334155; /* متن تیره برای خوانایی بهتر */
    border: none; /* حذف حاشیه برای یکدست شدن */
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    margin-top: 5px;
}

/* هاور دکمه - تغییر به حالتی با اعتمادبه‌نفس‌تر */
.simple-form button:hover {
    background-color: #cbd5e1; /* یک درجه تیره‌تر می‌شود */
    color: #1e293b; /* متن تیره‌تر و بولدتر */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(51, 65, 85, 0.15); /* سایه نرم و عمیق‌تر */
}

.simple-form button:active {
    transform: translateY(0);
}

/* --- بخش پیام‌ها (بدون تغییر در ساختار، فقط کمی خوشگل‌تر) --- */
#dyn-msg-res {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: bold;
    display: none;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.form-success-style {
    background-color: #ecfdf5 !important;
    color: #059669 !important;
    border-color: #10b981 !important;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.1);
}

.form-error-style {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
    border-color: #f87171 !important;
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.1);
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.form-error-style {
    animation: shake 0.4s ease-in-out;
}

.simple-form textarea {
    min-height: 120px;
    max-width: 100%;
    resize: vertical;
    overflow: auto;
}

/* غیرفعال کردن قابلیت کشیدن و تغییر سایز باکس متن */
.simple-form textarea {
    min-height: 120px;
    max-height: 120px; /* برای اطمینان بیشتر ارتفاع را قفل می‌کنیم */
    max-width: 100%;
    resize: none !important; /* این خط جادویی است که دستگیره را حذف می‌کند */
    overflow: auto;
}
