/* =========================
   AFLAAK | Contact Page UI
   Same Style as Products Page
========================= */

:root {
    --blue: #0d6efd;
    --blue2: #0a4cc8;
    --yellow: #f6c10e;
    --ink: #071225;
    --muted: #97a8c5;

    --glass: rgba(255, 255, 255, 0.08);
    --glass2: rgba(255, 255, 255, 0.12);
    --stroke: rgba(255, 255, 255, 0.14);

    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    --radius: 22px;
}

/* =========================
   AFLAAK CONTACT (No duplicates)
   ========================= */

.contact-bg {
    position: relative;
    direction: rtl;
    padding: clamp(36px, 5vw, 70px) 0;
    overflow: hidden;

    /* ✅ نفس الصورة بالخلفية (بدّلي المسار حسب مكان الصورة عندك) */
    background: radial-gradient(
            900px 420px at 15% 15%,
            rgba(246, 193, 14, 0.25),
            transparent 60%
        ),
        radial-gradient(
            900px 420px at 85% 10%,
            rgba(13, 110, 253, 0.25),
            transparent 60%
        ),
        linear-gradient(
            120deg,
            rgba(7, 18, 37, 0.7),
            rgba(7, 18, 37, 0.55) 40%,
            rgba(7, 18, 37, 0.72)
        ),
        url("/assets/images/contact.png") center/cover no-repeat;
    padding-top: 200px;
}

.contact-bg__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
            600px 260px at 20% 20%,
            rgba(246, 193, 14, 0.1),
            transparent 70%
        ),
        radial-gradient(
            700px 280px at 80% 25%,
            rgba(13, 110, 253, 0.12),
            transparent 70%
        );
    pointer-events: none;
}

.contact-bg__wrap {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 18px;
    align-items: stretch;
}

.af-card {
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.06)
    );
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
}

.af-form-card {
    padding: 22px 22px 18px;
}

.af-info-card {
    padding: 22px;
    position: relative;
}

.af-title {
    margin: 0 0 8px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.2px;
    font-size: clamp(22px, 2.2vw, 30px);
}

.af-sub {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.9;
    font-size: 14.5px;
}

.af-form {
    display: grid;
    gap: 12px;
}

.af-field label {
    display: flex;
    margin-bottom: 6px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
}

.af-field input,
.af-field textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    text-align: right;
    color: #fff;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease,
        background 0.2s ease;
}

.af-field input::placeholder,
.af-field textarea::placeholder {
    color: rgba(151, 168, 197, 0.85);
}

.af-field input:focus,
.af-field textarea:focus {
    border-color: rgba(246, 193, 14, 0.55);
    box-shadow: 0 0 0 4px rgba(246, 193, 14, 0.12);
    background: rgba(255, 255, 255, 0.1);
}

.af-btn {
    margin-top: 4px;
    border: 0;
    border-radius: 18px;
    padding: 12px 16px;
    font-weight: 900;
    cursor: pointer;
    color: #0b1020;
    background: linear-gradient(90deg, var(--yellow), var(--yellow2));
    box-shadow: 0 14px 30px rgba(246, 193, 14, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.af-btn:hover {
    transform: translateY(-2px);
    filter: saturate(1.05);
}

.af-btn__dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--blue);
    box-shadow: 0 0 0 6px rgba(13, 110, 253, 0.18);
}

/* Info side */
.af-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(
        90deg,
        rgba(13, 110, 253, 0.45),
        rgba(10, 76, 200, 0.35)
    );
    border: 1px solid rgba(255, 255, 255, 0.14);
    margin-bottom: 10px;
}

.af-info-title {
    margin: 0 0 8px;
    color: #fff;
    font-weight: 900;
    font-size: 18px;
}

.af-info-sub {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.9;
    font-size: 14.5px;
}

.af-info-grid {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.af-info-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.af-ico {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(
        135deg,
        rgba(246, 193, 14, 0.2),
        rgba(13, 110, 253, 0.16)
    );
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 18px;
}

.af-k {
    color: rgba(151, 168, 197, 0.95);
    font-weight: 800;
    font-size: 12.5px;
    margin-bottom: 2px;
}

.af-v,
.af-v a {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 900;
    text-decoration: none;
}

.af-info-footer {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.af-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(90deg, var(--blue), var(--blue2));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 30px rgba(13, 110, 253, 0.2);
    transition: transform 0.2s ease;
}

.af-pill:hover {
    transform: translateY(-2px);
}

.af-hint {
    color: rgba(151, 168, 197, 0.9);
    font-weight: 700;
    font-size: 12.5px;
}

/* ===== AFLAK SOCIAL ICONS ===== */

.aflak-social {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.aflak-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--background-color), #0f1b2d);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f6c10e; /* الأصفر */
    font-size: 15px;
    text-decoration: none;
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.05),
        0 6px 14px rgba(0, 0, 0, 0.35);
    transition: all 0.35s ease;
}

/* ===== Hover Effect ===== */
.aflak-social a:hover {
    background: linear-gradient(145deg, #f6c10e, #ffda4a);
    color: #071225;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 0 12px rgba(246, 193, 14, 0.8),
        0 10px 25px rgba(0, 0, 0, 0.45);
}

/* أيقونة تتحرك شوي */
.aflak-social a i {
    transition: transform 0.35s ease;
}

.aflak-social a:hover i {
    transform: rotate(-8deg) scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
    .contact-bg__wrap {
        grid-template-columns: 1fr;
    }
}

.fa,
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-style: normal !important;
    font-weight: 900;
}
.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* ---------------- From Submit ---------------- */
/* Erorrs */
.af-error {
    margin-top: 4px;
    font-size: 13px;
    color: #ff6b6b;
}

.is-invalid {
    border-color: #ff6b6b;
}

.af-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.af-loading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Success */
.af-success {
    color: #22c55e; /* أخضر أنيق */
    font-size: 14px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================= */
/* Map Half Screen Layout        */
/* ============================= */

.af-map-section {
    display: grid;
    grid-template-columns: 1fr 1fr; /* نصف / نصف */
    gap: 2.5rem;
    align-items: center;
    margin-top: 4rem;
}

/* ---------- Text side ---------- */
.af-map-text {
    text-align: center;
    padding: 2rem;
}

.af-map-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #facc15;
    margin-bottom: 0.75rem;
}

.af-map-sub {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 420px;
    margin: 0 auto 1.25rem;
}

.af-map-link {
    color: #38bdf8;
    font-weight: 500;
    text-decoration: underline;
}

/* ---------- Map side ---------- */
.af-map-frame {
    position: relative;
    padding: 2px;
    border-radius: 24px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb, #facc15, #f59e0b);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
}

.af-map-inner {
    border-radius: 22px;
    overflow: hidden;
    background: #050c1a;
}

.af-map-inner iframe {
    width: 100%;
    height: 420px;
    border: 0;
}

/* =========================
   Submit + Upload Inline
========================= */

.af-submit-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    justify-content: space-between;
}


/* Upload button */
.af-upload-inline {
    position: relative;
}

.af-file-input {
    display: none;
}

.af-upload {
    width: 61%;
}

.af-upload-box {
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 800;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed rgba(255, 255, 255, 0.35);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.af-upload-box i {
    color: var(--yellow);
}

.af-upload-box:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--yellow);
    transform: translateY(-1px);
}

/* File name */
.af-file-name {
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

/* Responsive */
@media (max-width: 576px) {
    .af-submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .af-upload-box,
    .af-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .af-map-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .af-map-inner iframe {
        height: 320px;
    }
}
