@font-face {
    font-family: Yekan;
    src: url(../fonts/IRANSansWeb.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Yekan;
}

body {
    background: url('../images/form-back.jpg') no-repeat center center fixed; /* تصویر پس‌زمینه */
    background-size: cover;
    padding: 30px;
    margin: 0;
    font-family: Yekan;
    position: relative;
    height: auto;
    overflow: auto;
}

.container {
    max-width: 350px; /* کاهش عرض فرم */
    margin: 0 auto;
    background-color: white;
    padding: 20px; /* کاهش پدینگ داخل فرم */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px; /* کاهش فاصله پایین */
    font-size: 25px; /* کاهش اندازه فونت */
}

.form-group {
    margin-bottom: 15px; /* کاهش فاصله بین گروه‌ها */
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-size: 14px; /* کاهش اندازه فونت */
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 8px; /* کاهش پدینگ داخلی فیلدها */
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px; /* کاهش اندازه متن داخل فیلدها */
}

textarea {
    height: 50px; /* کاهش ارتفاع تکست‌اریا */
    resize: vertical;
}

button {
    background-color: #d2b356;
    color: white;
    padding: 10px 15px; /* کاهش اندازه دکمه */
    border: none;
    border-radius: 5px;
    cursor:pointer;
    width: 100%;
    font-size: 14px;
    transition: background-color 0.3s ease;
}
    

button:hover{
    background-color: #8f7a3e;
}

.loading {
    display: none;
    text-align: center;
    margin-top: 20px;
}

button:hover{
    background-color: #8f7a3e;
}

/* استایل برای پس‌زمینه‌ی تیره */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

/* استایل برای دیالوگ */
.popup {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: scale(0);
    animation: scaleUp 0.3s ease-in-out forwards;
}

.popup h2 {
    margin-bottom: 10px;
    font-size: 1.5em;
}

.popup p {
    font-size: 1.1em;
}

.popup .success {
    color: green;
}

.popup .error {
    color: red;
}

.popup button {
    background: #d2b356;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.popup button:hover {
    background: #8f7a3e;
}

/* استایل برای آیکون‌ها */
.popup .icon {
    font-size: 3em;
    margin-bottom: 10px;
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}
