/* اتصل بنا — مطابقة تخطيط المرجع (شبكة 50/50، بطاقة فورم، عمود أيمن صورة كبيرة) */

body.contact-page {
    font-family: var(--font-family, "Tajawal", "Cairo", sans-serif);
    background: linear-gradient(180deg, var(--off-white, #f6fcf9) 0%, #f0faf6 42%, #eef5f2 100%);
}

.contact-page-main {
    font-family: "Tajawal", "Cairo", sans-serif;
    min-height: calc(100vh - 120px);
    overflow-x: hidden;
    padding-block: clamp(2rem, 5vw, 3.75rem);
    padding-inline: clamp(22px, 4vw, 50px);
    box-sizing: border-box;
    background: transparent;

    --gov-green: #0b5d4b;
    --gov-green-deep: #08382e;
    --accent-green: #4fa36c;
    --btn-mid: #1b7a63;
    --gov-muted: #5c6f6b;
    --field-border: #e0e0e0;
    --gov-ring: rgba(11, 93, 75, 0.28);
    --vivid-green: #3e7b44;
}

/* ——— الحاوية الرئيسية: عمود للنموذج + عمود للنص والصورة ——— */
.contact-wrapper {
    max-width: 1400px;
    margin-inline: auto;
    padding-block: clamp(44px, 6vw, 60px);
    padding-inline: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 4vw, 40px);
    align-items: stretch;
    align-content: stretch;
    box-sizing: border-box;
}

.contact-form-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* بطاقة النموذج (الجانب الفيزيائي الأيسر عند dir=ltr على الـ wrapper) */
.contact-form {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    background: #fff;
    border-radius: 28px;
    padding: clamp(36px, 5vw, 50px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    min-height: 760px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.contact-form__title {
    margin: 0 0 clamp(0.72rem, 2vw, 1.05rem);
    font-family: inherit;
    font-size: clamp(1.875rem, 3.85vw, 2rem);
    font-weight: 700;
    color: #0b5d4b;
    letter-spacing: -0.02em;
    line-height: 1.28;
    text-align: center;
}

.contact-form__intro {
    margin: 0 auto clamp(1.85rem, 3.2vw, 2.65rem);
    max-width: 100%;
    padding-inline: clamp(0.15rem, 1.5vw, 0.5rem);
    text-align: center;
    box-sizing: border-box;
}

.contact-form__intro-line {
    margin: 0;
    font-family: inherit;
    font-size: clamp(14.5px, 1.38vw, 16.25px);
    font-weight: 700;
    line-height: 1.78;
    letter-spacing: 0.01em;
    color: #1a1d1c;
    white-space: nowrap;
}

.contact-form__intro-line + .contact-form__intro-line {
    margin-top: clamp(0.32rem, 1.1vw, 0.52rem);
}

@media (max-width: 559px) {
    .contact-form__intro {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .contact-form__intro-line {
        font-size: clamp(12.5px, 3.15vw, 14.5px);
    }
}

.contact-msg {
    display: none;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 1.25rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-msg.is-visible {
    display: flex;
}

.contact-msg i {
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-msg--success {
    background: #e9f6f3;
    color: var(--gov-green-deep);
    border: 1px solid rgba(11, 93, 75, 0.18);
}

.contact-msg--local {
    align-items: stretch;
    padding: clamp(16px, 2.5vw, 20px) clamp(16px, 2.5vw, 22px);
    border-inline-start: 4px solid var(--gov-green, #0b5d4b);
    border-radius: 14px;
    margin-inline: 0;
}

.contact-msg__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(11, 93, 75, 0.1);
    color: var(--gov-green-deep);
    font-size: 18px;
}

.contact-msg__body {
    flex: 1;
    min-width: 0;
}

.contact-msg__title {
    display: block;
    font-size: clamp(15px, 1.45vw, 17px);
    font-weight: 800;
    margin: 0 0 0.45rem;
    color: var(--gov-green-deep);
}

.contact-msg__text {
    margin: 0 0 0.75rem;
    font-size: clamp(13.5px, 1.28vw, 14.75px);
    font-weight: 600;
    line-height: 1.68;
    color: #2a3432;
}

.contact-msg__email {
    font-weight: 800;
    color: var(--gov-green);
    unicode-bidi: plaintext;
}

.contact-msg__row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
}

.contact-msg__btn-mailto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(90deg, #0b5d4b, #1b7a63);
    box-shadow: 0 4px 14px rgba(11, 93, 75, 0.22);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-msg__btn-mailto:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(11, 93, 75, 0.18);
}

.contact-msg__hint {
    font-size: clamp(12px, 1.15vw, 13px);
    font-weight: 600;
    line-height: 1.65;
    color: #4a5754;
}

.contact-msg__hint kbd {
    font-family: ui-monospace, monospace;
    font-size: 0.92em;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(11, 93, 75, 0.08);
    border: 1px solid rgba(11, 93, 75, 0.15);
}

.contact-msg__text--setup {
    background: rgba(11, 93, 75, 0.06);
    border: 1px dashed rgba(11, 93, 75, 0.22);
    border-radius: 10px;
    padding: 10px 12px;
}

.contact-msg__btn-mailto--secondary {
    background: #fff;
    color: var(--gov-green-deep);
    border: 1px solid rgba(11, 93, 75, 0.28);
    box-shadow: none;
}

.contact-msg--warn {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fcd34d;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.contact-msg--warn a {
    color: var(--gov-green-deep);
    font-weight: 800;
}

.contact-smtp-setup {
    display: block;
    text-align: start;
}

.contact-smtp-setup__title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 800;
}

.contact-smtp-setup__lead,
.contact-smtp-setup__hint {
    margin: 0 0 10px;
    line-height: 1.6;
    font-size: 0.92rem;
}

.contact-smtp-setup__ok {
    margin: 0 0 8px;
    color: #166534;
    font-weight: 700;
}

.contact-smtp-setup__err {
    margin: 0 0 8px;
    color: #991b1b;
    font-weight: 700;
}

.contact-smtp-setup__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.contact-smtp-setup__field {
    display: grid;
    gap: 4px;
    font-size: 0.88rem;
    font-weight: 700;
}

.contact-smtp-setup__field input {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #e5c76b;
    border-radius: 8px;
    font: inherit;
    box-sizing: border-box;
    background: #fff;
}

@media (max-width: 640px) {
    .contact-smtp-setup__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .contact-msg--local {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-msg__icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .contact-msg__btn-mailto {
        align-self: stretch;
        text-align: center;
    }
}

.contact-msg--error {
    background: #fef2f2;
    color: #a41e1e;
    border: 1px solid #f7caca;
}

/* ——— حقول النموذج ——— */
.gov-contact-form {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.gov-form-row {
    margin-bottom: clamp(1.35rem, 2.5vw, 1.6rem);
}

.gov-form-row--2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.9rem, 2vw, 1.35rem);
    align-items: start;
}

.gov-form-row--2 .gov-field {
    margin-bottom: 0;
}

.gov-field {
    margin-bottom: 1.5rem;
}

.gov-field:last-of-type {
    margin-bottom: clamp(1.5rem, 2.8vw, 2rem);
}

.gov-field--hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.gov-label {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 0.55rem;
    text-align: start;
}

.gov-req {
    color: #c62828;
    font-weight: 900;
}

.gov-input-wrap,
.gov-textarea-wrap {
    position: relative;
}

.gov-input-wrap--select .gov-select {
    cursor: pointer;
}

.gov-input-icon {
    position: absolute;
    inset-inline-start: 18px;
    top: 50%;
    translate: 0 -50%;
    pointer-events: none;
    width: 22px;
    text-align: center;
    font-size: 18px;
    color: rgba(11, 93, 75, 0.38);
    transition: color 0.2s ease;
}

.gov-input-wrap:focus-within .gov-input-icon,
.gov-textarea-wrap:focus-within .gov-textarea-pen {
    color: rgba(11, 93, 75, 0.72);
}

.gov-input,
.gov-textarea {
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--field-border);
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    color: #1f2423;
    background: #fff;
    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.gov-input,
.gov-select.gov-input {
    height: 60px;
    min-height: 60px;
    padding: 0 20px;
    padding-inline-start: 54px;
}

.gov-input-wrap--select .gov-input {
    appearance: none;
    padding-inline-end: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%230B5D4B' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 18px center;
}

.gov-textarea {
    display: block;
    border-radius: 20px;
    min-height: 180px;
    padding: 20px;
    padding-bottom: 48px;
    padding-inline-start: 20px;
    padding-inline-end: 48px;
    resize: vertical;
    line-height: 1.75;
    text-align: start;
}

.gov-input::placeholder,
.gov-textarea::placeholder {
    color: #9aa8a5;
    font-weight: 500;
}

.gov-input:hover,
.gov-textarea:hover {
    border-color: rgba(11, 93, 75, 0.22);
}

.gov-input:focus,
.gov-textarea:focus {
    outline: none;
    border-color: var(--gov-green);
    box-shadow: 0 0 0 4px var(--gov-ring);
}

.gov-textarea-pen {
    position: absolute;
    inset-inline-end: 16px;
    bottom: 16px;
    font-size: 16px;
    color: rgba(11, 93, 75, 0.34);
    pointer-events: none;
}

.gov-textarea-count {
    position: absolute;
    inset-inline-start: 16px;
    bottom: 16px;
    font-size: 12.5px;
    font-weight: 700;
    color: #9aa8a5;
}

.gov-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 220px;
    max-width: 100%;
    height: 58px;
    margin-top: auto;
    align-self: flex-end;
    padding: 0 22px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    border: none;
    border-radius: 18px;
    background: linear-gradient(90deg, #0b5d4b, #1b7a63);
    box-shadow:
        0 4px 14px rgba(11, 93, 75, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.gov-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(11, 93, 75, 0.2);
}

.gov-submit:active {
    transform: translateY(0);
}

.gov-submit.is-loading {
    opacity: 0.88;
    cursor: wait;
}

.gov-submit:disabled {
    cursor: wait;
    opacity: 0.88;
}

.gov-submit.is-loading i {
    opacity: 0.85;
}

.gov-submit i {
    font-size: 17px;
    transform: scaleX(-1);
}

/* ——— العمود الأيمن: بطاقة بيضاء — ترتيب مرجعي (نص مُجمّع فوق ثم الصورة)، متناغم مع منصات الجهات ——— */
.right-side {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-self: stretch;
    min-height: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.contact-hero-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: min(560px, 82vh);
    isolation: isolate;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 254, 251, 0.99) 40%, rgba(255, 255, 255, 1) 100%);
    border-radius: var(--radius-xl, 28px);
    overflow: hidden;
    border: 2px solid #d2f0e5;
    border: 2px solid color-mix(in srgb, var(--primary-teal-light, #7dd3b2) 72%, #ffffff);
    box-shadow:
        var(--shadow-lg, 0 10px 30px rgba(0, 0, 0, 0.12)),
        0 22px 48px rgba(30, 90, 65, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition:
        transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
        border-color 0.35s ease;
}

.contact-hero-card:hover {
    transform: translateY(-3px);
    border-color: #a8dfc8;
    border-color: color-mix(in srgb, var(--primary-teal, #3d9b78) 38%, var(--primary-teal-light, #7dd3b2));
    box-shadow:
        var(--shadow-xl, 0 20px 50px rgba(0, 0, 0, 0.15)),
        0 28px 52px rgba(30, 100, 75, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.contact-hero-card__copy {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(0.42rem, 1.12vw, 0.68rem);
    padding: clamp(2.25rem, 5vw, 3.15rem) clamp(1.6rem, 3.75vw, 2.85rem)
        clamp(1.35rem, 3.4vw, 1.95rem);
    text-align: center;
    font-family: inherit;
    background: linear-gradient(
        168deg,
        var(--hero-panel-start, #f2fcf8) 0%,
        rgba(255, 255, 255, 0.94) 48%,
        #ffffff 100%
    );
    position: relative;
}

.contact-hero-card__copy::after {
    content: "";
    position: absolute;
    inset-inline: clamp(14%, 18vw, 22%);
    bottom: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(61, 155, 120, 0.16),
        transparent
    );
    pointer-events: none;
}

.contact-hero-card__media {
    flex: 1 1 auto;
    position: relative;
    width: 100%;
    min-height: clamp(300px, 38vw, 420px);
    background: linear-gradient(180deg, #f4fbf8 0%, #e8f4ee 62%, #dff0ea 100%);
}

.contact-hero-card__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.38) 0%,
        rgba(255, 255, 255, 0.06) 26%,
        transparent 46%
    );
}

.contact-hero-card__img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    /* لقطة دعم: مساحة للأيقونات في الأعلى، الشخص/اللابتوب يظهران بتوازن */
    object-position: 56% 24%;
    display: block;
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-hero-card:hover .contact-hero-card__img {
    transform: scale(1.03);
}

.contact-charm--typing {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(
        148deg,
        var(--primary-teal, #3d9b78) 0%,
        var(--primary-teal-dark, #1f6b52) 100%
    );
    box-shadow:
        0 8px 22px rgba(31, 107, 82, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.25) inset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
}

.contact-charm--typing span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
}

.contact-charm--headset-cluster {
    position: relative;
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}

.contact-charm--headset-cluster::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px dashed rgba(61, 155, 120, 0.55);
    box-sizing: border-box;
}

.contact-charm--headset-inner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.98);
    color: var(--primary-teal, #3d9b78);
    display: grid;
    place-items: center;
    box-shadow:
        0 8px 24px rgba(11, 93, 75, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.contact-charm--headset-inner svg {
    width: 24px;
    height: 24px;
}

.contact-charm--message {
    width: 54px;
    height: 40px;
    padding: 9px 11px;
    border-radius: 14px;
    background: #fff;
    box-shadow:
        0 8px 22px rgba(15, 34, 30, 0.1),
        0 0 0 1px rgba(61, 155, 120, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-charm--message-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    align-items: flex-start;
}

.contact-charm--message-lines span {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #c5d4cf 0%, #e8eeec 100%);
    width: 100%;
}

.contact-charm--message-lines span:nth-child(2) {
    width: 72%;
}

.contact-charm--message-lines span:nth-child(3) {
    width: 52%;
}

.contact-hero-charms {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: clamp(10%, 2.75rem, 20%);
    padding-inline: clamp(8px, 3vw, 20px);
    box-sizing: border-box;
    pointer-events: none;
}

.contact-hero-charms__cluster {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2.8vw, 22px);
}

@media (max-width: 640px) {
    .contact-hero-charms {
        padding-top: clamp(7%, 1.25rem, 14%);
    }

    .contact-hero-charms__cluster {
        gap: 9px;
        transform: scale(0.88);
        transform-origin: top center;
    }

    .contact-charm--headset-cluster {
        width: 68px;
        height: 68px;
    }

    .contact-charm--headset-inner {
        width: 50px;
        height: 50px;
    }

    .contact-charm--typing {
        width: 42px;
        height: 42px;
    }

    .contact-charm--message {
        width: 48px;
        height: 36px;
        padding: 7px 9px;
        border-radius: 12px;
    }
}

.contact-hero-eyebrow {
    margin: 0;
    padding: 0.35em 0.95em;
    border: none;
    background: rgba(61, 155, 120, 0.08);
    border-radius: 999px;
    font-family: inherit;
    font-size: clamp(14.75px, 1.42vw, 17px);
    font-weight: 800;
    line-height: 1.35;
    color: var(--primary-teal-dark, #1f6b52);
    letter-spacing: 0.05em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.contact-hero-impact {
    margin: clamp(0.28rem, 1.2vw, 0.62rem) 0 clamp(0.45rem, 2vw, 0.85rem);
    padding: 0.16em 0 0.24em;
    border: none;
    box-sizing: border-box;
    font-family: inherit;
    font-size: clamp(2.05rem, 5.15vw, 3.25rem);
    font-weight: var(--font-weight-extrabold, 900);
    line-height: 1.34;
    letter-spacing: -0.02em;
    /* أخضر داكن متدرّج عمقاً دون انتقال للنعناع الفاتح */
    background: linear-gradient(
        128deg,
        #031f19 0%,
        #05332a 34%,
        var(--deep-blue, #0d3d2e) 56%,
        #0b5d4b 82%,
        #0f5c47 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    overflow: visible;
    filter: drop-shadow(0 2px 10px rgba(5, 40, 32, 0.22));
}

.contact-hero-lead {
    margin: 0;
    max-width: min(100%, 46rem);
    font-family: inherit;
    font-size: clamp(13.75px, 1.32vw, 16px);
    font-weight: 600;
    line-height: 1.72;
    color: var(--dark-gray, #1e3d34);
    white-space: nowrap;
    opacity: 0.95;
}

@media (max-width: 520px) {
    .contact-hero-lead {
        font-size: clamp(11.5px, 2.85vw, 13.5px);
    }

    .contact-hero-card__copy {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.contact-hero-rule {
    align-self: center;
    flex-shrink: 0;
    display: block;
    width: clamp(84px, 16vw, 108px);
    height: 5px;
    margin-top: clamp(0.55rem, 1.8vw, 0.95rem);
    border-radius: 999px;
    background: var(--gradient-primary, linear-gradient(135deg, #4db892 0%, #7dd3b2 55%, #3d9b78 100%));
    box-shadow:
        0 2px 8px rgba(61, 155, 120, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ——— شريط المزايا ——— */
.contact-trust-strip {
    max-width: 1400px;
    margin-inline: auto;
    margin-top: clamp(28px, 4vw, 44px);
    padding: clamp(1.35rem, 2.5vw, 1.85rem);
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    background: #fff;
    border-radius: 26px;
    border: 1px solid rgba(11, 93, 75, 0.08);
    box-shadow:
        0 2px 14px rgba(0, 0, 0, 0.04),
        0 12px 36px rgba(11, 93, 75, 0.06);
    overflow: hidden;
}

.contact-trust-item {
    display: flex;
    align-items: flex-start;
    gap: clamp(12px, 2vw, 16px);
    padding: clamp(1rem, 2vw, 1.35rem) clamp(1rem, 2vw, 1.5rem);
    border-inline-start: 1px solid rgba(11, 93, 75, 0.1);
    transition: background 0.22s ease;
}

.contact-trust-item:first-child {
    border-inline-start: none;
}

.contact-trust-item:hover {
    background: rgba(11, 93, 75, 0.03);
}

.contact-trust-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid rgba(11, 93, 75, 0.18);
    background: rgba(255, 255, 255, 1);
    color: var(--gov-green);
    font-size: 20px;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.contact-trust-item:hover .contact-trust-icon {
    transform: translateY(-2px);
    border-color: rgba(11, 93, 75, 0.32);
    background: rgba(11, 93, 75, 0.04);
}

.contact-trust-item strong {
    display: block;
    font-weight: 800;
    font-size: clamp(14px, 1.35vw, 15.5px);
    color: #111827;
    margin-bottom: 5px;
}

.contact-trust-item p {
    margin: 0;
    font-size: clamp(12.5px, 1.2vw, 14px);
    font-weight: 500;
    line-height: 1.62;
    color: var(--gov-muted);
}

/* ——— تكيّف ——— */
@media (max-width: 1100px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-form {
        min-height: 0;
    }

    .contact-hero-card {
        min-height: 0;
        height: auto;
    }

    .contact-hero-card__media {
        min-height: min(340px, 52vw);
    }

    .contact-hero-card__img {
        object-position: 54% 26%;
    }
}

@media (max-width: 640px) {
    .gov-form-row--2 {
        grid-template-columns: 1fr;
    }

    .contact-hero-card__media {
        min-height: clamp(260px, 56vw, 360px);
    }

    .contact-hero-card__img {
        object-position: 52% 22%;
    }
}

@media (max-width: 900px) {
    .contact-trust-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-trust-item {
        border-inline-start: none;
        border-block-start: 1px solid rgba(11, 93, 75, 0.1);
    }

    .contact-trust-item:nth-child(-n + 2) {
        border-block-start: none;
    }

    .contact-trust-item:nth-child(odd) {
        border-inline-end: 1px solid rgba(11, 93, 75, 0.1);
    }
}

@media (max-width: 520px) {
    .gov-input,
    .gov-select.gov-input {
        height: 56px;
        min-height: 56px;
    }

    .contact-form {
        padding: clamp(1.65rem, 6vw, 2rem);
    }

    .contact-trust-strip {
        grid-template-columns: 1fr;
    }

    .contact-trust-item {
        border-inline-end: none !important;
    }

    .contact-trust-item + .contact-trust-item {
        border-block-start: 1px solid rgba(11, 93, 75, 0.1);
    }

    .gov-submit {
        width: 100%;
        align-self: stretch;
        max-width: none;
    }
}

body.contact-page .platform-footer {
    margin-top: 2.75rem;
}

@media (prefers-reduced-motion: reduce) {
    .gov-submit,
    .gov-submit:hover,
    .contact-trust-icon,
    .contact-trust-item:hover .contact-trust-icon {
        transition-duration: 0.01ms;
        transform: none;
    }

    .gov-submit:hover {
        transform: none;
    }

    .contact-hero-card,
    .contact-hero-card:hover {
        transition-duration: 0.01ms;
        transform: none;
    }

    .contact-hero-card__img,
    .contact-hero-card:hover .contact-hero-card__img {
        transition-duration: 0.01ms;
        transform: none;
    }

    .contact-hero-charms__cluster {
        transform: none;
    }

    .contact-hero-impact {
        filter: none;
    }
}
