
.contact-main-title {
    text-align: center;
    font-size: 2rem;
    color: #1a365d;
    margin-bottom: 2rem;
    font-weight: 700;
    direction: rtl;
}

/* MAIN WRAPPER */
.contact-wrapper {
    width: 100%;
    max-width: 850px;
    background: #ffffffdd;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

    display: block;
    padding: 2rem;
    position: relative;
    direction: rtl;
    margin: 100px auto 60px auto;
}


/*.contact-wrapper::before {*/
/*    content: "";*/
/*    position: absolute;*/
/*    width: 2px;*/
/*    height: 84%;*/
/*    background: #cbd5e0;*/
/*    right: 51%;*/
/*    top: 13%;*/
/*}*/

/* FORM LEFT */
.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.input-group label {
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    background: white;
    font-family: "Bahij Halvetica";
    transition: 0.3s;
    font-size: 0.9rem;
    direction: rtl; /* ← اضافه شد */
    text-align: right; /* ← اضافه شد */
}

textarea {
    height: 80px;
    resize: none;
}


.contact-submit {
    margin-top: 4.5rem;
    width: 200px;
    padding: 14px;
    border: none;
    background: #1a365d;
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-family: "Bahij Halvetica";
}



.info-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #1a365d;
    font-weight: 600;
    text-align: center;
    direction: rtl;
}

.info-item i {
    font-size: 1.2rem;
    margin-left: 10px;
    color: #1a365d;
    margin-right: 0;
}



.django-messages {
    position: fixed;
    top: 90px;
    right: 50%;
    transform: translateX(50%);
    z-index: 9999;
    width: 92%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    direction: rtl;
}

/* BASE MESSAGE */
.message {
    position: relative;
    padding: 16px 42px 16px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.8;
    text-align: right;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    animation: messageFadeIn 0.4s ease;
    background: #fff;
    margin-top: 42px;
}

/* CLOSE (×) BUTTON */
.close-message {
    position: absolute;
    top: 12px;
    left: 12px;     /* RTL */
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.2s ease;
    user-select: none;
}

.close-message:hover {
    opacity: 1;
    transform: scale(1.2);
}


/* SUCCESS */
.message.success {
    background: #ecfdf5;
    color: #065f46;
    border-right: 6px solid #2ecc71;
}

/* ERROR */
.message.error {
    background: #fee2e2;
    color: #7f1d1d;
    border-right: 6px solid #ef4444;
}

/* WARNING */
.message.warning {
    background: #fffbeb;
    color: #92400e;
    border-right: 6px solid #f59e0b;
}

/* INFO */
.message.info {
    background: #eff6ff;
    color: #1e3a8a;
    border-right: 6px solid #3b82f6;
}

/* ==========================
   ANIMATION
========================== */
@keyframes messageFadeIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .django-messages {
        top: 70px;
        max-width: 95%;
    }

    .message {
        font-size: 0.85rem;
        padding: 14px 40px 14px 16px;
        margin-top: 60px;
    }

    .close-message {
        top: 6px;
        left: 10px;
    }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-wrapper::before {
        display: none;
    }

    .contact-info {
        padding-left: 0;
        padding-right: 0;
        text-align: right;
    }
}



.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 70px 0 40px;
    color: #1a365d;
    font-size: 24px;
    font-weight: 700;
    white-space: nowrap;
}

.section-title::before,
.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #1a365d;
}



/* فقط مرحله فعال نمایش داده شود */
#marriageCertificateForm .form-step {
    display: none !important;
    width: 100%;
}

#marriageCertificateForm .form-step.active {
    display: block !important;
}

/* نوار پیشرفت */
.wizard-progress {
    display: block;
    width: 100%;
    height: 7px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
}

.wizard-progress-bar {
    display: block;
    height: 100%;
    width: 20%;
    background: #1a365d;
    transition: width 0.3s ease;
}

/* مراحل افقی */
.wizard-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-bottom: 30px;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    min-width: 0;
}

.wizard-step span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    background: #fff;
}

.wizard-step.active span,
.wizard-step.completed span {
    background: #1a365d;
    border-color: #1a365d;
    color: #fff;
}

@media (max-width: 600px) {
    .wizard-step small {
        font-size: 11px;
    }
}


/* چیدمان عمومی دکمه‌ها */
#marriageCertificateForm .wizard-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    direction: rtl;
}

/* اندازه یکسان تمام دکمه‌ها */
#marriageCertificateForm .wizard-navigation button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    min-width: 150px;
    height: 44px;
    padding: 10px 16px;
    margin: 0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* دکمه مرحله قبل */
#marriageCertificateForm .wizard-navigation .wizard-button {
    background-color: #e5e7eb;
    color: #1f2937;
    border: 1px solid #d1d5db;
}

#marriageCertificateForm .wizard-navigation .wizard-button:hover {
    background-color: #d1d5db;
}

/* دکمه مرحله بعد و ثبت نهایی */
#marriageCertificateForm .wizard-navigation .contact-submit {
    background-color: #1a365d;
    color: #fff;
    border: 1px solid #1a365d;
}

#marriageCertificateForm .wizard-navigation .contact-submit:hover {
    background-color: #2c5282;
}

/* مرحله اول: دکمه دقیقاً وسط فرم */
#marriageCertificateForm .first-step-navigation {
    justify-content: center;
}

#marriageCertificateForm .first-step-navigation .next-btn {
    flex: 0 0 150px;
}

/* موبایل */
@media (max-width: 480px) {
    #marriageCertificateForm .wizard-navigation button {
        width: auto;
        min-width: 0;
        flex: 1 1 0;
        padding: 10px 8px;
        font-size: 13px;
    }

    #marriageCertificateForm .first-step-navigation .next-btn {
        flex: 0 0 150px;
    }
}

/* گروه فیلدهای انگلیسی */
#marriageCertificateForm .input-group.english-group {
    direction: ltr;
    text-align: left;
    align-items: stretch;
}

/* لیبل فیلدهای انگلیسی */
#marriageCertificateForm .input-group.english-group label {
    direction: ltr;
    text-align: left;
    align-self: flex-start;
    width: 100%;
}

/* متن داخل ورودی‌های انگلیسی */
#marriageCertificateForm .input-group.english-group input,
#marriageCertificateForm .input-group.english-group textarea,
#marriageCertificateForm .input-group.english-group select {
    direction: ltr;
    text-align: left;
}

/* پیام خطای فیلدهای انگلیسی */
#marriageCertificateForm .input-group.english-group .errorlist {
    direction: ltr;
    text-align: left;
}
