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

body {
    display: flex;
    justify-content: center;
    flex-flow: column;
    align-items: center;
}

.contact-section {
    width: 100%;
    max-width: 1400px;
    margin: 20px 0 80px 0;
    padding: 16px;

}

.header-titles {
    margin-bottom: 25px;
}

.header-titles h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #000;
    font-weight: 600;
}

.header-titles p {
    font-size: 16px;
    color: #000;
    font-weight: 500;
}

.content-wrapper {
    display: flex;
    flex-direction: row;
    /* در حالت دسکتاپ فرم سمت راست و نقشه سمت چپ (به دلیل RTL) */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid #eaeaea;
}

/* تنظیمات بخش فرم */
.form-container {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 500;
}

.form-group label span {
    color: #d32f2f;
    margin-right: 4px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 12px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b5b5b5;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0c2a4d;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.submit-btn {
    background-color: #0c2a4d;
    color: white;
    border: none;
    padding: 14px 29px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
    margin-top: 10px;
    width: 247px;
    align-self: flex-start;
}

.submit-btn:hover {
    opacity: 0.9;
}

/* تنظیمات بخش نقشه */
.map-container {
    flex: 1;
    position: relative;
    min-height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    min-height: 400px;
    /* حداقل ارتفاع برای زمانی که محتوا کم است */
}

.maps-actions {
    position: absolute;
    bottom: 45px;
    left: 0;
    display: flex;
    flex-flow: column;
    gap: 0;
}
.maps-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0 0 50px 0;
    position: absolute;
    left: 0;
    bottom: 0;
}
/* استایل‌های ریسپانسیو برای موبایل (عرض کمتر از 768px) */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        /* در موبایل فرم بالا و نقشه پایین قرار می‌گیرد */
    }

    .form-container {
        padding: 25px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 0;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .submit-btn {
        width: 100%;
        /* دکمه در موبایل تمام عرض می‌شود */
        align-self: center;
    }

    .map-container iframe {
        height: 350px;
        /* ارتفاع ثابت برای نقشه در موبایل */
    }
    .header-titles h2 {
        font-size: 16px;
    }
    .header-titles p {
        font-size: 14px;
    }
}