/* --- فرم اصلی --- */
#solar-form-wrap {
    max-width: 700px;
    margin: 40px auto;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
    background: #fff;
    padding: 30px 35px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: height 0.3s ease; /* اضافه شده برای تغییر ارتفاع نرم */
}
/* --- تیتر مرحله --- */
#solar-form h3 {
    margin-bottom: 20px;
    color: #222;
    font-size: 1.4em;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 8px;
    font-weight: 600;
}

/* --- لیبل‌ها --- */
#solar-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

/* --- فیلدها --- */
#solar-form input,
#solar-form select,
#solar-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.1s;
}

#solar-form input:focus,
#solar-form select:focus,
#solar-form textarea:focus {
    border-color: #ff8800;
    box-shadow: 0 0 6px rgba(255, 136, 0, 0.3);
    outline: none;
    transform: scale(1.01);
}

/* --- دکمه‌ها نارنجی --- */
.solar-buttons {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.solar-buttons button {
    flex: 1;
    padding: 12px 18px;
    background: linear-gradient(135deg, #ff9800, #e67e22);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.solar-buttons button:hover {
    background: linear-gradient(135deg, #ffa726, #fb8c00);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.35);
}

/* --- مراحل فرم با انیمیشن نرم --- */
.solar-step {
    width: 100%;
    /* فقط برای مراحل غیر فعال */
    display: none;
    position: relative;
}

.solar-step.active {
    display: block;
    position: relative;
    transform: none;
    opacity: 1;
}

/* --- پاسخ فرم --- */
/* --- پاسخ فرم --- */
#solar-response {
    display: block;
    margin-bottom: 20px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

/* موفقیت */
#solar-response .msf-success {
    background: #e8f5e9;     /* سبز ملایم */
    color: #2e7d32;          /* سبز تیره */
    border: 1px solid #a5d6a7; /* حاشیه نرم */
        padding: 7px;
    border-radius: 10px;
}

/* خطا */
#solar-response .msf-error {
    background: #ffebee;     /* قرمز ملایم */
    color: #c62828;          /* قرمز تیره */
    border: 1px solid #ef9a9a; /* حاشیه روشن */
        padding: 7px;
    border-radius: 10px;
}


/* --- پیش‌نمایش تصاویر --- */
#solar-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

#solar-image-preview img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

#solar-image-preview img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

/* --- انیمیشن fade-in هنگام لود فرم --- */
#solar-form-wrap {
    animation: formFadeIn 0.7s ease both;
}

@keyframes formFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}