/* ==========================
   فرم پیش‌ثبت‌نام Mazmotor
   ========================== */

/* فرم اصلی */
#mazmotor-registration-form {
    max-width: 800px;
    margin: 30px auto;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: "Tahoma", sans-serif;
}

/* عنوان مرحله */
#mazmotor-registration-form h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #222;
}

/* هر مرحله مخفی پیش‌فرض */
.mazmotor-step {
    display: none;
}

/* مرحله فعال */
.mazmotor-step.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

/* Row برای چینش فیلدها */
.mazmotor-step .row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

/* Input و select و textarea */
.mazmotor-step input[type="text"],
.mazmotor-step input[type="email"],
.mazmotor-step input[type="tel"],
.mazmotor-step input[type="date"],
.mazmotor-step select,
.mazmotor-step textarea {
    flex: 1 1 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.mazmotor-step textarea {
    min-height: 80px;
}

/* دو ستون برای Row */
.mazmotor-step .row input,
.mazmotor-step .row select {
    flex: 1 1 calc(50% - 10px);
}

/* دکمه‌ها */
.mazmotor-step button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.mazmotor-step button:hover {
    background: #005177;
}

/* دکمه قبلی */
.mazmotor-step button.mazmotor-prev {
    background: #aaa;
    margin-right: 10px;
}

.mazmotor-step button.mazmotor-prev:hover {
    background: #888;
}

/* خطای اعتبارسنجی */
.mazmotor-error {
    border-color: red !important;
}

/* پیام موفقیت */
.mazmotor-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px;
    margin: 15px 0;
    border-radius: 5px;
    font-size: 15px;
}

/* توافق‌نامه */
.agreement-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.agreement-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

/* انیمیشن fade-in */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive برای موبایل */
@media (max-width: 768px) {
    .mazmotor-step .row input,
    .mazmotor-step .row select {
        flex: 1 1 100%;
    }
}
