/* ============================================
   Contact Us — Page-specific styles
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 59px;
    align-items: start;
}

/* ── عمود المعلومات ── */
.contact-intro {
    display: flex;
    flex-direction: column;
}

/* heading group → info list = 24 ، info list → social = 32 */
.contact-intro__heading-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-intro__heading-group .body-text {
    color: var(--n500);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-info-row {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 48px;
}

.contact-info-row__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 13px;
    border: 1px solid var(--n200);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-row__icon svg {
    width: 28px;
    height: 28px;
}

.contact-info-row__text {
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    color: var(--text-black);
}

.contact-info-row__label {
    font-weight: 500;
    margin-inline-end: 12px;
}

.contact-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-divider {
    border: none;
    border-top: 1px solid var(--n200);
    margin: 0;
}

.contact-social__label {
    display: block;
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    color: var(--text-black);
}

.contact-social__icons {
    display: flex;
    align-items: center;
    gap: 24px;
}

.contact-social__icons a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--n600);
    transition: color .2s;
}

.contact-social__icons svg {
    width: 26px;
    height: 26px;
}

.contact-social__icons a:hover {
    color: var(--primary-600);
}

/* ── كارت الفورم ── */
.contact-card {
    border: 1px solid #F4F3FD;
    border-radius: 24px;
    padding: 24px;
    background: var(--white);
    box-shadow: 0px 6px 14.9px 1px rgba(64, 17, 60, 0.05);
    box-sizing: border-box;
}

.contact-card__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.contact-card__field--textarea {
    margin-bottom: 24px;
}

.contact-card__field label {
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    color: #0D121C;
}

.contact-card__input {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding-inline: 12px 16px;
    border: 1px solid #E8EAED;
    border-radius: 12px;
    background: var(--white);
    box-sizing: border-box;
}

.contact-card__input:focus-within {
    border-color: var(--primary-500);
}

.contact-card__input svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--icon-placeholder);
}

.contact-card__input input,
.contact-card__input textarea {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 16px;
    line-height: 24px;
    color: var(--text-black);
}

.contact-card__input input::placeholder,
.contact-card__input textarea::placeholder {
    color: var(--n500);
    opacity: 1;
}

.contact-card__field--textarea .contact-card__input {
    height: 137px;
    align-items: flex-start;
    border-radius: 8px;
    padding: 12px 16px;
    gap: 10px;
}

.contact-card__field--textarea textarea {
    resize: none;
}

.contact-card__submit {
    width: 100%;
    height: 48px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.contact-card__submit-arrow {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

html[dir="rtl"] .contact-card__submit-arrow {
    transform: scaleX(-1);
}

/* ── Badge لو جاي من صفحة Solutions ── */
.solution-badge {
    background: var(--primary-50);
    color: var(--primary-700);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

/* ── رسائل النجاح / الخطأ ── */
.form-alert {
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 24px;
}

.form-alert--success {
    background: var(--primary-50);
    color: var(--primary-700);
    border: 1px solid var(--primary-300);
}

.form-alert--error {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

/* ── قسم الموقع على الخريطة ── */
/* آخر الجريد → عنوان Location = 97px */
.contact-location {
    padding-top: 0;
}

.contact-section {
    padding-bottom: 97px;
}

.contact-location__title {
    font-size: 32px;
    font-weight: 600;
    line-height: 48px;
    margin-bottom: 24px;
}

.contact-map {
    aspect-ratio: 1232 / 517;
    border-radius: 20px;
    overflow: hidden;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
    .contact-map {
        aspect-ratio: 4 / 3;
    }
    .contact-section {
        padding-bottom: 56px;
    }
}
