/* public/css/site/contact.css */

/* ===== Hero ===== */
.contact-hero {
    padding-block: clamp(40px, 14vh, 110px);
    background: radial-gradient(
            900px 320px at 10% -20%,
            rgba(201, 165, 82, 0.16),
            transparent 60%
        ),
        linear-gradient(135deg, #050814, #0b0d10 60%, #020617 100%);
    color: #f9fafb;
    border-bottom: 1px solid rgba(15, 23, 42, 0.7);
    position: relative;
    isolation: isolate;
    overflow: clip;
}

.contact-hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    margin-inline: auto;
}

.contact-hero__title {
    margin: 0;
    font-size: clamp(26px, 5.6vw, 40px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0.2px;
}

.contact-hero__line {
    display: block;
}

.contact-hero__lead {
    margin: 14px 0 0;
    font-weight: 600;
    color: #e5e7eb;
    line-height: 1.9;
}

.contact-hero__lead--soft {
    opacity: 0.9;
}

/* ===== Sections ===== */
.contact-section {
    padding-block: clamp(28px, 9vh, 80px);
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-section__head {
    text-align: center;
    margin-bottom: clamp(16px, 3.5vw, 24px);
}

.contact-section__title {
    margin: 0;
    font-size: clamp(20px, 4vw, 30px);
    font-weight: 900;
    color: var(--black, #0b0f19);
}

.contact-section__subtitle {
    margin: 6px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted, #6b6f76);
}

/* ===== Channels grid ===== */
.contact-channels {
    background: #f9fafb;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.4vw, 22px);
}

.contact-card {
    border-radius: 18px;
    border: 1px solid var(--line, #e5e7eb);
    background: #ffffff;
    padding: 14px 14px 16px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
    color: var(--black, #0b0f19);
}

.contact-card__body {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted, #4b5563);
    line-height: 1.9;
}

/* ===== Lists ===== */
.contact-list {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.contact-list li {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted, #4b5563);
    line-height: 1.8;
}

.contact-list__label {
    font-weight: 700;
    color: var(--black, #0b0f19);
    margin-inline-start: 4px;
}

.contact-list--bullets li {
    position: relative;
    padding-inline-start: 18px;
}

[dir="rtl"] .contact-list--bullets li {
    padding-inline-start: 0;
    padding-inline-end: 18px;
}

.contact-list--bullets li::before {
    content: "";
    position: absolute;
    inset-block-start: 0.85em;
    inset-inline-start: 0;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: radial-gradient(
        circle at 30% 30%,
        var(--accent-2, #e2c777),
        var(--accent, #c9a552)
    );
    transform: translateY(-50%);
}

[dir="rtl"] .contact-list--bullets li::before {
    inset-inline-start: auto;
    inset-inline-end: 0;
}

/* Social icons */
.contact-list--social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.contact-list--social li {
    font-size: 0; /* نخفي أي نص، الأيقونة فقط */
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(201, 165, 82, 0.55);
    background: #f9fafb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease,
        background-color 0.16s ease, border-color 0.16s ease;
    color: #0b0f19;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

/* تأثير الهوفر */
.social-icon:hover,
.social-icon:focus-visible {
    transform: translateY(-1px);
    background: radial-gradient(
        circle at 30% 30%,
        rgba(226, 199, 119, 0.18),
        #ffffff
    );
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
    border-color: rgba(201, 165, 82, 0.9);
}

/* لو حبيت تدرّجات بسيطة لكل منصة – اختياري */
.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;

    /* توحيد الهوية الذهبية */
    border: 1px solid rgba(201, 165, 82, 0.55);
    background: #ffffff;
    color: var(--accent, #c9a552);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;

    transition: transform 0.16s ease, box-shadow 0.16s ease,
        background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

/* تأثير الهوفر (ذهبي) */
.social-icon:hover,
.social-icon:focus-visible {
    transform: translateY(-1px);
    background: radial-gradient(
        circle at 30% 30%,
        rgba(226, 199, 119, 0.2),
        #ffffff
    );
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
    border-color: rgba(201, 165, 82, 0.95);
    color: var(--accent, #c9a552);
}

/* ===== Forms (مشترك) ===== */
.contact-form-section,
.contact-feedback {
    background: #ffffff;
}

.contact-service {
    background: var(--section-background-color);
}

.contact-form__layout,
.contact-service__layout,
.contact-feedback__layout {
    /* max-width: 980px; */
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 18px;
    align-items: flex-start;
}

.contact-form__content,
.contact-service__content,
.contact-feedback__content {
    text-align: start;
}

.contact-form__content .contact-section__title,
.contact-service__content .contact-section__title,
.contact-feedback__content .contact-section__title {
    font-size: clamp(20px, 3.4vw, 28px);
}

.contact-form__card {
    border-radius: 18px;
    border: 1px solid var(--line, #e5e7eb);
    background: #f9fafb;
    padding: 16px 16px 18px;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.06);
}

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

.contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-field--full {
    grid-column: 1 / -1;
}

.contact-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--black, #0b0f19);
}

.contact-input {
    border-radius: 10px;
    border: 1px solid var(--line, #d1d5db);
    padding: 9px 11px;
    font-size: 13px;
    font-family: inherit;
    background: #ffffff;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease,
        background-color 0.16s ease;
}

.contact-input:focus {
    border-color: var(--accent, #c9a552);
    box-shadow: 0 0 0 1px rgba(201, 165, 82, 0.22);
    background-color: #fefcf6;
}

.contact-input--textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit {
    margin-top: 10px;
    width: 100%;
}

@media (min-width: 640px) {
    .contact-submit {
        width: auto;
        align-self: flex-end;
        padding-inline: 28px;
    }
}

/* ===== Feedback closing text ===== */
.contact-feedback__closing {
    margin: 14px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--black, #0b0f19);
    text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 900px) {
    .contact-form__layout,
    .contact-service__layout,
    .contact-feedback__layout {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .contact-hero {
        padding-block: clamp(28px, 11vh, 70px);
    }

    .contact-card__title {
        font-size: 14px;
    }

    .contact-card__body,
    .contact-list li {
        font-size: 13px;
    }

    .contact-section__subtitle {
        font-size: 13px;
    }
}

/* ===== Alerts (Success / Error) - Same as Careers ===== */
.careers-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line, #e5e7eb);
    background: #ffffff;
    box-shadow: none;
    margin: 10px 0 12px;
}

.careers-alert__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    border: 1px solid var(--line, #e5e7eb);
    background: #f9fafb;
    color: #0b0f19;
}

.careers-alert__content {
    min-width: 0;
}

.careers-alert__title {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    color: var(--black, #0b0f19);
    line-height: 1.55;
}

.careers-alert__text {
    margin: 3px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted, #4b5563);
    line-height: 1.85;
}

.careers-alert--success {
    border-color: #bfe6d3;
    background: #ecfdf5;
}

.careers-alert--success .careers-alert__icon {
    border-color: #bfe6d3;
    background: #d1fae5;
    color: #0f766e;
}
