/* ==========================================================================
   AFAQ OWNER SUBMIT PROJECT — ISOLATED EXACT MOBILE + FULL DESKTOP
   Path: assets/css/project-owner/submit-project.css
   Scope: .afaq-owner-submit-page.afaq-owner-submit-replica
   ========================================================================== */

html body .afaq-owner-submit-page.afaq-owner-submit-replica,
html body .afaq-owner-submit-page.afaq-owner-submit-replica *,
html body .afaq-owner-submit-page.afaq-owner-submit-replica *::before,
html body .afaq-owner-submit-page.afaq-owner-submit-replica *::after {
    box-sizing: border-box !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica {
    --afaq-submit-ink: #172A47;
    --afaq-submit-ink-2: #071F3F;
    --afaq-submit-muted: #6B7788;
    --afaq-submit-soft: #F6F8FB;
    --afaq-submit-card: #FFFFFF;
    --afaq-submit-gold: #C2A061;
    --afaq-submit-line: rgba(23,42,71,.105);
    --afaq-submit-line-gold: rgba(194,160,97,.18);
    --afaq-submit-shadow: 0 12px 30px rgba(7,31,63,.070);
    --afaq-submit-font: "Tajawal", "Cairo", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
    direction: rtl !important;
    width: 100% !important;
    min-height: 100svh !important;
    overflow-x: hidden !important;
    color: var(--afaq-submit-ink) !important;
    font-family: var(--afaq-submit-font) !important;
    background: #FFFFFF !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica :where(h1,h2,h3,p,a,button,span,strong,small,label,input,textarea,div) {
    font-family: var(--afaq-submit-font) !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica svg {
    width: 1em !important;
    height: 1em !important;
    display: block !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .dashicons {
    display: none !important;
}

/* Safe layout */
html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-main,
html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-main--standalone {
    width: 100% !important;
    min-height: 100svh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    overflow: visible !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-content,
html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-content--dashboard {
    width: 100% !important;
    max-width: none !important;
    min-height: 100svh !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    place-items: start center !important;
    background: #FFFFFF !important;
    overflow: visible !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-owner-intake-card {
    position: relative !important;
    width: min(380px, 100%) !important;
    min-height: 100svh !important;
    margin: 0 auto !important;
    padding: 12px 15px 90px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background:
        radial-gradient(circle at 4% 20%, rgba(194,160,97,.055), transparent 120px),
        radial-gradient(circle at 96% 6%, rgba(23,42,71,.035), transparent 170px),
        #FFFFFF !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-owner-intake-card::before {
    content: "←" !important;
    position: absolute !important;
    left: 6px !important;
    top: 158px !important;
    z-index: 0 !important;
    color: var(--afaq-submit-gold) !important;
    -webkit-text-fill-color: var(--afaq-submit-gold) !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    opacity: .9 !important;
    pointer-events: none !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-owner-intake-card::after {
    content: "" !important;
    position: absolute !important;
    left: -19px !important;
    top: 135px !important;
    width: 72px !important;
    height: 74px !important;
    border-inline-start: 1.5px solid rgba(194,160,97,.42) !important;
    border-radius: 999px 0 0 999px !important;
    opacity: .52 !important;
    pointer-events: none !important;
}

/* Hero */
html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-section-head {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    display: block !important;
    text-align: center !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-section-head > div {
    width: 100% !important;
    text-align: center !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-section-head h2 {
    width: 100% !important;
    margin: 0 0 6px !important;
    color: var(--afaq-submit-ink) !important;
    -webkit-text-fill-color: var(--afaq-submit-ink) !important;
    font-size: 31px !important;
    line-height: 1.05 !important;
    font-weight: 950 !important;
    letter-spacing: -.055em !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-section-head p {
    width: min(300px, 100%) !important;
    margin: 0 auto !important;
    color: var(--afaq-submit-muted) !important;
    -webkit-text-fill-color: var(--afaq-submit-muted) !important;
    font-size: 11.5px !important;
    line-height: 1.62 !important;
    font-weight: 750 !important;
}

/* Form */
html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-project-form,
html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 11px !important;
    padding: 0 !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-section {
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 15px 13px 12px !important;
    border-radius: 20px !important;
    border: 1px solid var(--afaq-submit-line) !important;
    background:
        radial-gradient(circle at 100% 0, rgba(194,160,97,.052), transparent 34%),
        #FFFFFF !important;
    box-shadow: 0 9px 24px rgba(7,31,63,.050) !important;
    overflow: hidden !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-section__head {
    position: relative !important;
    min-height: 49px !important;
    margin: 0 0 13px !important;
    padding: 0 56px 0 0 !important;
    display: block !important;
    text-align: center !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-section__number {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 46px !important;
    height: 46px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 14px !important;
    border: 1px solid var(--afaq-submit-line-gold) !important;
    background:
        radial-gradient(circle at 28% 18%, rgba(255,255,255,.70), transparent 34%),
        rgba(194,160,97,.105) !important;
    color: var(--afaq-submit-ink) !important;
    -webkit-text-fill-color: var(--afaq-submit-ink) !important;
    box-shadow: 0 9px 18px rgba(7,31,63,.040) !important;
    font-size: 16px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-section__head h3 {
    margin: 0 0 4px !important;
    color: var(--afaq-submit-ink) !important;
    -webkit-text-fill-color: var(--afaq-submit-ink) !important;
    font-size: 20px !important;
    line-height: 1.22 !important;
    font-weight: 950 !important;
    letter-spacing: -.025em !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-section__head p {
    width: 100% !important;
    margin: 0 auto !important;
    color: var(--afaq-submit-muted) !important;
    -webkit-text-fill-color: var(--afaq-submit-muted) !important;
    font-size: 10.6px !important;
    line-height: 1.55 !important;
    font-weight: 740 !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-field {
    display: grid !important;
    gap: 6px !important;
    width: 100% !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-field label {
    width: fit-content !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    color: var(--afaq-submit-ink) !important;
    -webkit-text-fill-color: var(--afaq-submit-ink) !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    font-weight: 950 !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-field label span {
    color: var(--afaq-submit-gold) !important;
    -webkit-text-fill-color: var(--afaq-submit-gold) !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-input-icon {
    position: relative !important;
    width: 100% !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-field-icon {
    position: absolute !important;
    left: 11px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 21px !important;
    height: 21px !important;
    display: grid !important;
    place-items: center !important;
    color: var(--afaq-submit-ink) !important;
    -webkit-text-fill-color: var(--afaq-submit-ink) !important;
    opacity: .75 !important;
    font-size: 21px !important;
    pointer-events: none !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-field input,
html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-field textarea,
html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-field select {
    width: 100% !important;
    min-height: 47px !important;
    padding: 12px 13px !important;
    border-radius: 13px !important;
    border: 1px solid rgba(23,42,71,.105) !important;
    background: #FFFFFF !important;
    color: var(--afaq-submit-ink) !important;
    -webkit-text-fill-color: var(--afaq-submit-ink) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 7px 15px rgba(7,31,63,.020) !important;
    outline: none !important;
    font-size: 12.3px !important;
    line-height: 1.55 !important;
    font-weight: 760 !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-input-icon input {
    padding-left: 39px !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-field textarea {
    min-height: 132px !important;
    resize: vertical !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-field input::placeholder,
html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-field textarea::placeholder {
    color: rgba(107,119,136,.62) !important;
    -webkit-text-fill-color: rgba(107,119,136,.62) !important;
    font-weight: 720 !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-field input:focus,
html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-field textarea:focus,
html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-field select:focus {
    border-color: rgba(23,42,71,.24) !important;
    box-shadow: 0 0 0 4px rgba(23,42,71,.055), 0 10px 22px rgba(7,31,63,.040) !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-help-text {
    display: block !important;
    margin: 0 !important;
    text-align: left !important;
    color: var(--afaq-submit-muted) !important;
    -webkit-text-fill-color: var(--afaq-submit-muted) !important;
    font-size: 9.8px !important;
    line-height: 1.45 !important;
    font-weight: 760 !important;
}

/* Action cards */
html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-section--next {
    padding-bottom: 13px !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-list {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-card {
    position: relative !important;
    min-height: 112px !important;
    padding: 10px 6px 8px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(23,42,71,.08) !important;
    background: #FFFFFF !important;
    box-shadow: 0 7px 16px rgba(7,31,63,.030) !important;
    display: grid !important;
    align-content: start !important;
    justify-items: center !important;
    gap: 5px !important;
    text-align: center !important;
    overflow: visible !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-card:not(:last-child)::after {
    content: "←" !important;
    position: absolute !important;
    top: 40px !important;
    left: -9px !important;
    z-index: 5 !important;
    color: rgba(107,119,136,.56) !important;
    -webkit-text-fill-color: rgba(107,119,136,.56) !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-card__number {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    color: var(--afaq-submit-gold) !important;
    -webkit-text-fill-color: var(--afaq-submit-gold) !important;
    font-size: 9.2px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-card__icon {
    width: 30px !important;
    height: 30px !important;
    margin: 19px auto 1px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 10px !important;
    background: rgba(23,42,71,.055) !important;
    color: var(--afaq-submit-ink) !important;
    -webkit-text-fill-color: var(--afaq-submit-ink) !important;
    font-size: 20px !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-card div {
    display: grid !important;
    gap: 3px !important;
    width: 100% !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-card strong {
    color: var(--afaq-submit-ink) !important;
    -webkit-text-fill-color: var(--afaq-submit-ink) !important;
    font-size: 9.8px !important;
    line-height: 1.35 !important;
    font-weight: 950 !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-card small {
    color: var(--afaq-submit-muted) !important;
    -webkit-text-fill-color: var(--afaq-submit-muted) !important;
    font-size: 7.8px !important;
    line-height: 1.42 !important;
    font-weight: 740 !important;
}

/* Privacy + Button */
html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-submit-privacy {
    position: relative !important;
    width: 100% !important;
    min-height: 61px !important;
    margin: 0 !important;
    padding: 11px 53px 11px 12px !important;
    border-radius: 15px !important;
    border: 1px solid var(--afaq-submit-line-gold) !important;
    background:
        radial-gradient(circle at 100% 0, rgba(194,160,97,.090), transparent 34%),
        rgba(194,160,97,.055) !important;
    display: grid !important;
    align-items: center !important;
    text-align: right !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-submit-privacy__icon {
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 26px !important;
    height: 26px !important;
    display: grid !important;
    place-items: center !important;
    color: var(--afaq-submit-ink) !important;
    -webkit-text-fill-color: var(--afaq-submit-ink) !important;
    font-size: 24px !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-submit-privacy div {
    display: grid !important;
    gap: 2px !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-submit-privacy strong {
    color: var(--afaq-submit-ink) !important;
    -webkit-text-fill-color: var(--afaq-submit-ink) !important;
    font-size: 11.6px !important;
    line-height: 1.35 !important;
    font-weight: 950 !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-submit-privacy small {
    color: var(--afaq-submit-muted) !important;
    -webkit-text-fill-color: var(--afaq-submit-muted) !important;
    font-size: 9.5px !important;
    line-height: 1.46 !important;
    font-weight: 740 !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-actions {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
}

/* VERY STRONG PRIMARY BUTTON FIX */
html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-actions .afaq-btn.afaq-btn--primary,
html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-actions button.afaq-btn.afaq-btn--primary,
html body .afaq-owner-submit-page.afaq-owner-submit-replica button[type="submit"].afaq-btn.afaq-btn--primary {
    width: 100% !important;
    min-height: 55px !important;
    padding: 12px 16px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(7,31,63,.18) !important;
    background: #172A47 !important;
    background-image:
        radial-gradient(circle at 24% 16%, rgba(255,255,255,.18), transparent 34%),
        linear-gradient(135deg, #172A47, #071F3F) !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    display: inline-flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    box-shadow: 0 15px 30px rgba(7,31,63,.20) !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-actions .afaq-btn.afaq-btn--primary *,
html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-actions button.afaq-btn.afaq-btn--primary *,
html body .afaq-owner-submit-page.afaq-owner-submit-replica button[type="submit"].afaq-btn.afaq-btn--primary * {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    opacity: 1 !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-btn__icon {
    width: 20px !important;
    height: 20px !important;
    display: grid !important;
    place-items: center !important;
    font-size: 20px !important;
}

/* Notices isolated */
html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-notices {
    width: min(380px, 100%) !important;
    margin: 10px auto !important;
    display: grid !important;
    gap: 8px !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-notice,
html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-empty-state {
    border: 1px solid var(--afaq-submit-line) !important;
    border-radius: 18px !important;
    background: #FFFFFF !important;
    box-shadow: var(--afaq-submit-shadow) !important;
    padding: 14px !important;
}

/* Desktop full-width screen */
@media (min-width: 768px) {
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-content,
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-content--dashboard {
        background: #F6F8FB !important;
        padding: 18px !important;
        place-items: start stretch !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-owner-intake-card {
        width: 100% !important;
        max-width: none !important;
        min-height: calc(100svh - 36px) !important;
        margin: 0 !important;
        padding: 28px 28px 96px !important;
        border-radius: 28px !important;
        box-shadow: 0 20px 60px rgba(7,31,63,.10) !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-main:not(.afaq-main--standalone) {
        padding-right: 300px !important;
        padding-left: 18px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-section-head h2 {
        font-size: clamp(34px, 3.2vw, 54px) !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-section-head p {
        width: min(680px, 100%) !important;
        font-size: 14px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-project-form,
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form {
        grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr) !important;
        grid-template-areas:
            "idea next"
            "privacy privacy"
            "actions actions" !important;
        align-items: stretch !important;
        gap: 16px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-section--idea {
        grid-area: idea !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-section--next {
        grid-area: next !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-submit-privacy {
        grid-area: privacy !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-actions {
        grid-area: actions !important;
        width: min(430px, 100%) !important;
        justify-self: center !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-section {
        min-height: 100% !important;
    }
}

/* Mobile exact */
@media (max-width: 767.98px) {
    html,
    html body {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica {
        background: #FFFFFF !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-owner-intake-card {
        width: 100% !important;
        max-width: 390px !important;
        min-height: 100svh !important;
        padding: 11px 15px 88px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-section-head h2 {
        font-size: clamp(28px, 8.7vw, 32px) !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-section-head p {
        font-size: 11.2px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-section {
        border-radius: 20px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-list {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-actions {
        position: fixed !important;
        left: 15px !important;
        right: 15px !important;
        bottom: max(10px, env(safe-area-inset-bottom)) !important;
        z-index: 9995 !important;
        width: auto !important;
        max-width: 360px !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 370px) {
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-owner-intake-card {
        padding-inline: 12px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-section-head h2 {
        font-size: 29px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-section__head h3 {
        font-size: 18px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-card {
        min-height: 106px !important;
        padding-inline: 5px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-card strong {
        font-size: 9.1px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-card small {
        font-size: 7.3px !important;
    }
}

/* Safe toggle shape only */
@media (max-width: 1024px) {
    html body .afaq-owner-submit-page.afaq-owner-submit-replica button.afaq-mobile-menu-toggle {
        background:
            linear-gradient(#FFFFFF,#FFFFFF),
            linear-gradient(#FFFFFF,#FFFFFF),
            linear-gradient(#FFFFFF,#FFFFFF),
            linear-gradient(135deg,#172A47,#071F3F) !important;
        background-size: 18px 2px, 13px 2px, 18px 2px, 100% 100% !important;
        background-position: center calc(50% - 7px), center center, center calc(50% + 7px), center center !important;
        background-repeat: no-repeat !important;
        border-color: rgba(23,42,71,.16) !important;
        color: transparent !important;
        -webkit-text-fill-color: transparent !important;
        font-size: 0 !important;
        -webkit-tap-highlight-color: transparent !important;
        outline: 0 !important;
        filter: none !important;
    }

    html body.afaq-sidebar-open .afaq-owner-submit-page.afaq-owner-submit-replica,
    html body.afaq-sidebar-open .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-main,
    html body.afaq-sidebar-open .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-content,
    html body .afaq-owner-submit-page.afaq-owner-submit-replica.is-sidebar-open,
    html body .afaq-owner-submit-page.afaq-owner-submit-replica.is-sidebar-open .afaq-main,
    html body .afaq-owner-submit-page.afaq-owner-submit-replica.is-sidebar-open .afaq-content {
        filter: none !important;
        opacity: 1 !important;
    }

    html body.afaq-sidebar-open .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-sidebar-overlay,
    html body .afaq-owner-submit-page.afaq-owner-submit-replica.is-sidebar-open .afaq-sidebar-overlay {
        background: transparent !important;
        background-color: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        filter: none !important;
    }
}

/* ==========================================================================
   V3 FINAL FIX — FULL DESKTOP WIDTH + SAFE FIXED MOBILE CTA
   ========================================================================== */

/* الكمبيوتر: الصفحة بعرض الشاشة بالكامل، بدون كارت موبايل صغير */
@media (min-width: 768px) {
    html body .afaq-owner-submit-page.afaq-owner-submit-replica {
        width: 100% !important;
        max-width: 100% !important;
        background: #F6F8FB !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-main,
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-main--standalone {
        width: 100% !important;
        max-width: none !important;
        min-height: 100svh !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #F6F8FB !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-content,
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-content--dashboard {
        width: 100% !important;
        max-width: none !important;
        min-height: 100svh !important;
        margin: 0 !important;
        padding: 18px !important;
        display: block !important;
        background: #F6F8FB !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-owner-intake-card {
        width: 100% !important;
        max-width: none !important;
        min-height: calc(100svh - 36px) !important;
        margin: 0 !important;
        padding: 34px 34px 110px !important;
        border-radius: 28px !important;
        background:
            radial-gradient(circle at 4% 20%, rgba(194,160,97,.045), transparent 220px),
            radial-gradient(circle at 96% 6%, rgba(23,42,71,.035), transparent 260px),
            #FFFFFF !important;
        box-shadow: 0 20px 60px rgba(7,31,63,.08) !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-section-head {
        margin-bottom: 22px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-section-head h2 {
        font-size: clamp(38px, 3.4vw, 58px) !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-section-head p {
        width: min(760px, 100%) !important;
        font-size: 14px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-project-form,
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr) !important;
        grid-template-areas:
            "idea next"
            "privacy privacy"
            "actions actions" !important;
        gap: 18px !important;
        align-items: stretch !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-section--idea {
        grid-area: idea !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-section--next {
        grid-area: next !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-submit-privacy {
        grid-area: privacy !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-actions {
        grid-area: actions !important;
        position: static !important;
        width: min(440px, 100%) !important;
        max-width: 440px !important;
        justify-self: center !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-section {
        min-height: 100% !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-card {
        min-height: 128px !important;
    }

    /* لو الصفحة داخل لوحة وفيها سايدبار */
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-main:not(.afaq-main--standalone) {
        padding-right: 300px !important;
        padding-left: 18px !important;
        padding-top: 18px !important;
        padding-bottom: 18px !important;
        background: #F6F8FB !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-main:not(.afaq-main--standalone) .afaq-content,
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-main:not(.afaq-main--standalone) .afaq-content--dashboard {
        padding: 0 !important;
    }
}

/* الجوال: الزر ثابت في آخر الشاشة لكن لا يغطي على النص */
@media (max-width: 767.98px) {
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-owner-intake-card {
        padding-bottom: 132px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-project-form,
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form {
        padding-bottom: 22px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-submit-privacy {
        margin-bottom: 18px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-actions {
        position: fixed !important;
        left: 15px !important;
        right: 15px !important;
        bottom: max(12px, env(safe-area-inset-bottom)) !important;
        z-index: 9995 !important;
        width: auto !important;
        max-width: 360px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        pointer-events: none !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-actions .afaq-btn {
        pointer-events: auto !important;
    }
}

/* إصلاح نهائي للزر: كحلي والنص أبيض مهما كان فيه كود قالب */
html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-actions .afaq-btn.afaq-btn--primary,
html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-actions button.afaq-btn.afaq-btn--primary,
html body .afaq-owner-submit-page.afaq-owner-submit-replica button[type="submit"].afaq-btn.afaq-btn--primary {
    background: #172A47 !important;
    background-image:
        radial-gradient(circle at 24% 16%, rgba(255,255,255,.18), transparent 34%),
        linear-gradient(135deg, #172A47, #071F3F) !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    border-color: rgba(7,31,63,.18) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-actions .afaq-btn.afaq-btn--primary span,
html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-actions .afaq-btn.afaq-btn--primary svg,
html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-actions .afaq-btn.afaq-btn--primary path,
html body .afaq-owner-submit-page.afaq-owner-submit-replica button[type="submit"].afaq-btn.afaq-btn--primary span,
html body .afaq-owner-submit-page.afaq-owner-submit-replica button[type="submit"].afaq-btn.afaq-btn--primary svg,
html body .afaq-owner-submit-page.afaq-owner-submit-replica button[type="submit"].afaq-btn.afaq-btn--primary path {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    stroke: #FFFFFF !important;
}

/* ==========================================================================
   V4 MOBILE WIDTH BREATHING FIX — FULL SCREEN, NOT CRAMPED, NOT STICKY TO EDGES
   ========================================================================== */

@media (max-width: 767.98px) {
    html,
    html body {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        background: #FFFFFF !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica,
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-main,
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-main--standalone,
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-content,
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-content--dashboard {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #FFFFFF !important;
        overflow-x: hidden !important;
    }

    /* ياخد عرض الشاشة مع مسطرة نفس من اليمين والشمال */
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-owner-intake-card {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        min-height: 100svh !important;
        margin: 0 !important;
        padding: 14px clamp(14px, 4.4vw, 22px) 138px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background:
            radial-gradient(circle at 5% 20%, rgba(194,160,97,.050), transparent 135px),
            radial-gradient(circle at 96% 6%, rgba(23,42,71,.032), transparent 180px),
            #FFFFFF !important;
        overflow: hidden !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-section-head {
        width: 100% !important;
        margin: 0 0 18px !important;
        padding: 0 clamp(4px, 1vw, 8px) !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-section-head h2 {
        font-size: clamp(29px, 8.9vw, 38px) !important;
        line-height: 1.08 !important;
        margin: 0 0 7px !important;
        letter-spacing: -.045em !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-section-head p {
        width: min(100%, 350px) !important;
        max-width: 100% !important;
        font-size: clamp(11.2px, 3.15vw, 13px) !important;
        line-height: 1.65 !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-project-form,
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form {
        width: 100% !important;
        max-width: 100% !important;
        gap: 13px !important;
        padding: 0 0 28px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-section {
        width: 100% !important;
        max-width: 100% !important;
        padding: 17px clamp(13px, 3.8vw, 18px) 14px !important;
        border-radius: 21px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-section__head {
        padding-right: 54px !important;
        min-height: 48px !important;
        margin-bottom: 14px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-section__number {
        width: 44px !important;
        height: 44px !important;
        border-radius: 13px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-section__head h3 {
        font-size: clamp(18px, 5.6vw, 22px) !important;
        line-height: 1.22 !important;
        margin-bottom: 5px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-section__head p {
        font-size: clamp(10.2px, 2.9vw, 11.5px) !important;
        line-height: 1.55 !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-grid {
        gap: 13px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-field label {
        font-size: clamp(11px, 3vw, 12px) !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-field input,
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-field textarea,
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-field select {
        min-height: 48px !important;
        border-radius: 14px !important;
        font-size: clamp(11.5px, 3vw, 12.5px) !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-field textarea {
        min-height: 134px !important;
    }

    /* الكروت الثلاثة تبقى جوة الشاشة ومش ملزقة */
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-list {
        width: 100% !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: clamp(5px, 1.9vw, 8px) !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-card {
        min-width: 0 !important;
        min-height: clamp(106px, 30vw, 120px) !important;
        padding: 10px 5px 8px !important;
        border-radius: 15px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-card__icon {
        width: 29px !important;
        height: 29px !important;
        margin-top: 18px !important;
        font-size: 19px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-card strong {
        font-size: clamp(8.7px, 2.55vw, 10px) !important;
        line-height: 1.35 !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-card small {
        font-size: clamp(7px, 2.1vw, 8px) !important;
        line-height: 1.42 !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-submit-privacy {
        min-height: 62px !important;
        margin-bottom: 24px !important;
        padding: 11px 52px 11px 12px !important;
        border-radius: 16px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-submit-privacy strong {
        font-size: clamp(11px, 3vw, 12px) !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-submit-privacy small {
        font-size: clamp(9px, 2.55vw, 10px) !important;
    }

    /* الزر ثابت تحت، وبين المحتوى وبينه مساحة كافية */
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-actions {
        position: fixed !important;
        left: clamp(14px, 4vw, 18px) !important;
        right: clamp(14px, 4vw, 18px) !important;
        bottom: max(12px, env(safe-area-inset-bottom)) !important;
        z-index: 9995 !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
        pointer-events: none !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-actions .afaq-btn.afaq-btn--primary,
    html body .afaq-owner-submit-page.afaq-owner-submit-replica button[type="submit"].afaq-btn.afaq-btn--primary {
        pointer-events: auto !important;
        width: 100% !important;
        min-height: 54px !important;
        border-radius: 14px !important;
    }
}

/* شاشات صغيرة جدًا: حافظ على الشكل بدون كسر */
@media (max-width: 360px) {
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-owner-intake-card {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-list {
        gap: 5px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-card {
        min-height: 102px !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-card strong {
        font-size: 8.4px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-card small {
        font-size: 6.8px !important;
    }
}

/* ==========================================================================
   V5 MOBILE FINAL — TITLE BREATHING + CTA AT END OF DESIGN, NOT FIXED
   ========================================================================== */

@media (max-width: 767.98px) {
    html body .afaq-owner-submit-page.afaq-owner-submit-replica,
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-main,
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-main--standalone,
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-content,
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-content--dashboard {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #FFFFFF !important;
        overflow-x: hidden !important;
    }

    /* الصفحة تاخد نفس الموبايل كله مع نفس محترم فوق وتحت */
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-owner-intake-card {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        min-height: 100svh !important;
        margin: 0 !important;
        padding:
            max(28px, env(safe-area-inset-top))
            clamp(14px, 4.2vw, 20px)
            max(34px, env(safe-area-inset-bottom))
            !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: hidden !important;
        background:
            radial-gradient(circle at 6% 16%, rgba(194,160,97,.050), transparent 140px),
            radial-gradient(circle at 96% 4%, rgba(23,42,71,.035), transparent 180px),
            #FFFFFF !important;
    }

    /* العنوان كان لازق فوق */
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-section-head {
        width: 100% !important;
        margin: 0 0 20px !important;
        padding: 6px 6px 0 !important;
        text-align: center !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-section-head h2 {
        font-size: clamp(30px, 8.8vw, 38px) !important;
        line-height: 1.12 !important;
        margin: 0 0 8px !important;
        letter-spacing: -.045em !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-section-head p {
        width: min(100%, 350px) !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        font-size: clamp(11.5px, 3.1vw, 13px) !important;
        line-height: 1.68 !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-project-form,
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form {
        width: 100% !important;
        max-width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 13px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-section {
        width: 100% !important;
        max-width: 100% !important;
        padding: 17px clamp(13px, 3.8vw, 18px) 14px !important;
        border-radius: 21px !important;
    }

    /* الكروت الثلاثة تبقى متجاوبة داخل الشاشة */
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-list {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: clamp(5px, 1.8vw, 8px) !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-card {
        min-width: 0 !important;
        min-height: clamp(106px, 30vw, 120px) !important;
        padding: 10px 5px 8px !important;
        border-radius: 15px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-card strong {
        font-size: clamp(8.6px, 2.55vw, 10px) !important;
        line-height: 1.35 !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-card small {
        font-size: clamp(6.9px, 2.1vw, 8px) !important;
        line-height: 1.42 !important;
    }

    /* الخصوصية قبل الزر بمسافة طبيعية */
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-submit-privacy {
        margin: 0 0 4px !important;
    }

    /* الزر في آخر التصميم خالص، مش fixed ومش مغطي أي كلام */
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-actions {
        position: static !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        z-index: auto !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 2px 0 0 !important;
        pointer-events: auto !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-form-actions .afaq-btn.afaq-btn--primary,
    html body .afaq-owner-submit-page.afaq-owner-submit-replica button[type="submit"].afaq-btn.afaq-btn--primary {
        position: static !important;
        width: 100% !important;
        min-height: 55px !important;
        border-radius: 14px !important;
        pointer-events: auto !important;
    }
}

@media (max-width: 360px) {
    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-owner-intake-card {
        padding-top: max(24px, env(safe-area-inset-top)) !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-section-head h2 {
        font-size: 29px !important;
    }

    html body .afaq-owner-submit-page.afaq-owner-submit-replica .afaq-action-list {
        gap: 5px !important;
    }
}
