:root {
  --green-950: #062f22;
  --green-900: #0a3f2d;
  --green-800: #0e4d35;
  --green-700: #126142;
  --red-700: #982025;
  --red-600: #b42227;
  --red-500: #c92c31;
  --gold-500: #d69a3a;
  --cream-100: #fbf7ef;
  --cream-200: #f4eadb;
  --surface: #ffffff;
  --ink: #173027;
  --muted: #66766f;
  --line: #e8e0d4;
  --success: #17714d;
  --danger: #b4232c;
  --shadow-sm: 0 8px 24px rgba(20, 48, 39, .08);
  --shadow-lg: 0 24px 65px rgba(20, 48, 39, .14);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --container: 1180px;
  --font-latin: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-arabic: Tahoma, Arial, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream-100);
  font-family: var(--font-latin);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: var(--font-arabic); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
svg { display: block; width: 1.25em; height: 1.25em; fill: currentColor; }

.skip-link { position: fixed; inset-inline-start: 16px; top: -80px; z-index: 1000; background: var(--green-900); color: white; padding: 10px 16px; border-radius: 0 0 10px 10px; transition: top .2s ease; }
.skip-link:focus { top: 0; }
.container { width: min(calc(100% - 36px), var(--container)); margin-inline: auto; }
.section { padding: 88px 0; position: relative; }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(232,224,212,.8); background: rgba(255,255,255,.9); backdrop-filter: blur(18px); }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; min-width: 132px; }
.brand img { width: 146px; height: 62px; object-fit: contain; object-position: left center; }
.desktop-nav { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.desktop-nav a { padding: 10px 14px; border-radius: 10px; font-weight: 650; font-size: .93rem; transition: .2s ease; }
.desktop-nav a:hover { background: var(--cream-100); color: var(--red-600); }
.desktop-nav .nav-cta { background: var(--red-600); color: #fff; padding-inline: 20px; }
.desktop-nav .nav-cta:hover { background: var(--red-700); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-switch { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #c8d5cf; background: #fff; border-radius: 12px; padding: 7px 12px; color: var(--green-900); font-weight: 750; cursor: pointer; }
.language-switch:hover { border-color: var(--green-700); background: #f7fbf8; }
.language-switch svg { width: 19px; height: 19px; }
.menu-toggle { width: 44px; height: 42px; border: 1px solid #d7dfda; border-radius: 12px; background: #fff; display: none; place-items: center; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--green-900); border-radius: 5px; margin: 2px 0; transition: .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--line); background: #fff; padding: 10px 18px 18px; }
.mobile-nav a { display: block; padding: 12px 14px; border-radius: 10px; font-weight: 700; }
.mobile-nav a:last-child { background: var(--red-600); color: #fff; text-align: center; margin-top: 5px; }

.hero { min-height: calc(100vh - 80px); display: grid; align-items: center; overflow: hidden; background: linear-gradient(135deg,#fff 0%,#fffaf2 58%,#f4e3ca 100%); }
.hero-pattern { position: absolute; inset: 0; opacity: .34; pointer-events: none; background-image: radial-gradient(circle at 15% 10%, rgba(214,154,58,.16) 0 1px, transparent 2px), radial-gradient(circle at 70% 35%, rgba(14,77,53,.1) 0 1px, transparent 2px); background-size: 31px 31px, 43px 43px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(44px,7vw,92px); position: relative; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--red-600); font-size: .82rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow { background: #fff1ef; border: 1px solid #f3c8c4; padding: 8px 12px; border-radius: 999px; }
.hero h1 { margin: 20px 0 18px; font-size: clamp(2.9rem,6vw,5.5rem); line-height: .98; letter-spacing: -.055em; max-width: 780px; color: var(--green-950); }
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.12; }
.hero h1 strong { color: var(--red-600); font-weight: 850; }
.hero-copy > p { margin: 0; max-width: 600px; font-size: clamp(1.05rem,1.7vw,1.22rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 20px; border-radius: 13px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--red-600); color: #fff; box-shadow: 0 14px 30px rgba(180,34,39,.22); }
.button-primary:hover { background: var(--red-700); box-shadow: 0 18px 40px rgba(180,34,39,.27); }
.button-secondary { border: 1.5px solid var(--green-800); color: var(--green-900); background: rgba(255,255,255,.7); }
.button-secondary:hover { background: #fff; }
html[dir="rtl"] .button-primary svg, html[dir="rtl"] .text-link svg { transform: rotate(180deg); }
.hero-trust { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 20px; color: var(--green-800); font-size: .9rem; font-weight: 650; }
.hero-trust > span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--gold-500); }
.image-frame { position: relative; max-width: 570px; margin-inline: auto; border-radius: 38px; padding: 12px; background: #fff; box-shadow: var(--shadow-lg); transform: rotate(1deg); }
.image-frame::before { content: ""; position: absolute; inset: 25% -22px -22px 25%; z-index: -1; border-radius: 35px; background: var(--green-800); }
.image-frame picture img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 28px; }
.floating-card { position: absolute; display: flex; align-items: center; gap: 10px; min-width: 205px; background: rgba(255,255,255,.95); border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow-sm); border-radius: 16px; padding: 12px 14px; backdrop-filter: blur(12px); }
.floating-card svg { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: #e8f4ee; color: var(--green-700); }
.floating-card strong, .floating-card span { display: block; }
.floating-card strong { font-size: .86rem; }
.floating-card span { color: var(--muted); font-size: .72rem; }
.floating-card-top { top: 12%; inset-inline-start: -50px; }
.floating-card-bottom { bottom: 10%; inset-inline-end: -36px; }

.section-heading { max-width: 710px; text-align: center; margin: 0 auto 44px; }
.section-heading.align-start { text-align: start; margin: 0; }
.section-heading h2, .requirements-copy h2, .apply-intro h2 { margin: 10px 0 14px; color: var(--green-950); font-size: clamp(2rem,4vw,3.2rem); line-height: 1.1; letter-spacing: -.035em; }
html[lang="ar"] .section-heading h2, html[lang="ar"] .requirements-copy h2, html[lang="ar"] .apply-intro h2 { letter-spacing: 0; }
.section-heading p, .requirements-copy > p, .apply-intro > p { color: var(--muted); margin: 0; }
.benefits-section { background: #fff; }
.card-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.feature-card { background: linear-gradient(180deg,#fff,#fffcf7); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px; box-shadow: 0 6px 25px rgba(20,48,39,.045); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: #ddc9aa; }
.icon-box { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: var(--green-800); box-shadow: 0 10px 20px rgba(14,77,53,.16); }
.feature-card:nth-child(even) .icon-box { background: var(--red-600); box-shadow: 0 10px 20px rgba(180,34,39,.16); }
.feature-card h3 { margin: 20px 0 8px; font-size: 1.05rem; }
.feature-card p { color: var(--muted); margin: 0; font-size: .93rem; }

.requirements-section { background: linear-gradient(135deg,#f8efe2,#fff 55%); overflow: hidden; }
.requirements-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(42px,8vw,100px); }
.requirements-media { position: relative; }
.requirements-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.requirements-media::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: var(--gold-500); opacity: .16; inset-inline-start: -60px; bottom: -55px; z-index: -1; }
.image-badge { position: absolute; inset-inline-end: 20px; bottom: -22px; display: flex; align-items: center; gap: 9px; background: #fff; border-radius: 14px; padding: 12px 15px; box-shadow: var(--shadow-sm); font-weight: 750; }
.image-badge svg { color: var(--green-700); }
.check-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 15px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 650; }
.check { flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--red-600); margin-top: 1px; }
.check svg { width: 16px; height: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--red-600); font-weight: 850; }
.text-link:hover { color: var(--red-700); }

.process-section { background: var(--green-950); color: #fff; }
.process-section .section-heading h2 { color: #fff; }
.process-section .section-kicker { color: #f4bd66; }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.step-card { position: relative; overflow: hidden; min-height: 230px; padding: 32px; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius-md); background: rgba(255,255,255,.06); }
.step-card::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(214,154,58,.12); inset-inline-end: -55px; bottom: -55px; }
.step-number { display: inline-block; color: var(--gold-500); font-weight: 900; font-size: 2.3rem; line-height: 1; }
.step-card h3 { margin: 24px 0 8px; font-size: 1.2rem; }
.step-card p { margin: 0; color: #c6d3ce; }

.apply-section { background: #fff; }
.apply-grid { display: grid; grid-template-columns: .68fr 1.32fr; align-items: start; gap: clamp(28px,4.5vw,58px); }
.apply-intro { position: sticky; top: 112px; }
.privacy-card { margin-top: 24px; display: flex; gap: 12px; align-items: flex-start; padding: 15px; border-radius: 16px; color: var(--green-900); background: #edf7f1; border: 1px solid #cfe8da; }
.privacy-card > svg { flex: 0 0 auto; width: 30px; height: 30px; }
.privacy-card strong { display: block; }
.privacy-card p { margin: 5px 0 0; color: #536f64; font-size: .9rem; }
.application-form { width: 100%; max-width: 860px; justify-self: end; font-family: var(--font-arabic); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); padding: clamp(18px,2.5vw,30px); }
.form-header { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.form-header img { width: 44px; height: 44px; object-fit: contain; }
.form-header h2 { margin: 0; font-size: clamp(1.2rem,2.2vw,1.55rem); color: var(--green-950); }
.form-header p { margin: 2px 0 0; color: var(--muted); font-size: .82rem; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 14px; }
.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { display: block; margin-bottom: 5px; color: var(--ink); font-size: .86rem; font-weight: 750; }
.field label span[aria-hidden="true"], .field legend span[aria-hidden="true"] { color: var(--red-600); }
.fieldset, fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.input-wrap { display: flex; align-items: center; min-height: 44px; border: 1.5px solid #dcdedb; border-radius: 13px; background: #fff; transition: .2s ease; overflow: hidden; }
.input-wrap:focus-within { border-color: var(--green-700); box-shadow: 0 0 0 4px rgba(18,97,66,.1); }
.input-wrap > svg { flex: 0 0 auto; margin-inline: 10px 0; color: var(--green-700); }
.input-wrap input, .input-wrap select { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 10px 10px; font-size: .88rem; }
.input-wrap select { cursor: pointer; appearance: auto; }
.input-wrap input::placeholder { color: #9ca7a2; }
.ltr-input input { direction: ltr; text-align: right; }
.choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.choice-grid.compact { max-width: 340px; }
.choice-card { margin: 0 !important; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-ui { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 11px; border: 1.5px solid #dcdedb; border-radius: 13px; background: #fff; transition: .2s ease; }
.choice-ui svg { color: var(--green-700); font-size: 1.25rem; }
.choice-card input:checked + .choice-ui { border-color: var(--red-600); color: var(--red-600); background: #fff5f4; box-shadow: 0 0 0 3px rgba(180,34,39,.08); }
.choice-card input:focus-visible + .choice-ui { outline: 3px solid rgba(18,97,66,.2); }
.upload-field > label:first-child { min-height: 36px; display: flex; align-items: flex-end; }
.drop-zone { position: relative; min-height: 126px; display: flex !important; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 5px; padding: 14px; margin: 0 !important; border: 1.5px dashed #bac8c1; border-radius: 16px; background: #fbfdfc; cursor: pointer; transition: .2s ease; }
.drop-zone:hover, .drop-zone.dragover { border-color: var(--green-700); background: #f2f9f5; }
.drop-zone.has-file { border-style: solid; border-color: var(--green-700); background: #f4fbf7; }
.drop-zone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #e9f5ef; color: var(--green-700); }
.drop-zone strong { font-size: .84rem; }
.drop-zone small { color: var(--muted); font-size: .72rem; }
.file-preview { width: 100%; margin-top: 3px; }
.preview-card { display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid #d6e5dc; border-radius: 9px; padding: 6px; text-align: right; }
.preview-thumb { width: 38px; height: 34px; flex: 0 0 auto; border-radius: 7px; object-fit: cover; background: var(--cream-200); }
.preview-file-icon { width: 38px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; background: #fff0ef; color: var(--red-600); }
.preview-meta { min-width: 0; }
.preview-meta b { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .7rem; }
.preview-meta span { color: var(--muted); font-size: .7rem; }
.checkbox-label { display: flex !important; align-items: flex-start; gap: 9px; margin: 0 !important; cursor: pointer; line-height: 1.5; font-size: .82rem; font-weight: 500 !important; }
.checkbox-label input { position: absolute; opacity: 0; }
.custom-checkbox { width: 19px; height: 19px; flex: 0 0 auto; margin-top: 2px; border: 1.5px solid #bfc9c4; border-radius: 6px; display: grid; place-items: center; color: transparent; background: #fff; }
.checkbox-label input:checked + .custom-checkbox { color: #fff; border-color: var(--green-700); background: var(--green-700); }
.checkbox-label input:focus-visible + .custom-checkbox { outline: 3px solid rgba(18,97,66,.2); }
.error { min-height: 14px; display: block; margin-top: 3px; color: var(--danger); font-size: .7rem; }
.field.invalid .input-wrap, .field.invalid .drop-zone, .choice-field.invalid .choice-ui { border-color: var(--danger); }
.submit-button { width: 100%; min-height: 48px; margin-top: 15px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 11px; background: var(--red-600); color: #fff; font-weight: 850; cursor: pointer; box-shadow: 0 14px 30px rgba(180,34,39,.2); transition: .2s ease; }
.submit-button:hover { background: var(--red-700); transform: translateY(-1px); }
.submit-button:disabled { opacity: .7; cursor: wait; }
.spinner { display: none; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.submit-button.loading .spinner { display: block; }
.submit-button.loading > svg { display: none; }
.form-note { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin: 10px 0 0; color: var(--muted); font-size: .78rem; text-align: center; }
.form-note svg { flex: 0 0 auto; color: var(--green-700); margin-top: 2px; }
.form-status { display: none; margin-top: 10px; border-radius: 11px; padding: 10px; text-align: center; font-weight: 750; }
.form-status.success { display: block; background: #e9f7ef; color: #12613f; border: 1px solid #bde2cc; }
.form-status.error-status { display: block; background: #fff0ef; color: #9b2027; border: 1px solid #f0c5c2; }

.faq-section { background: linear-gradient(180deg,#fbf7ef,#f5eadb); }
.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(30px,7vw,90px); align-items: start; }
.accordion { display: grid; gap: 10px; }
.accordion details { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 0 18px; }
.accordion summary { list-style: none; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 15px; cursor: pointer; font-weight: 800; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary svg { transition: transform .2s ease; }
.accordion details[open] summary svg { transform: rotate(180deg); }
.accordion p { margin: -2px 0 16px; color: var(--muted); }

.site-footer { background: var(--green-950); color: #d6e4de; padding: 54px 0 20px; }
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 34px; }
.footer-brand img { width: 145px; height: 82px; object-fit: contain; object-position: left center; filter: drop-shadow(0 6px 12px rgba(0,0,0,.15)); }
.footer-brand p { max-width: 430px; color: #afc2ba; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-links a { padding: 9px 12px; border-radius: 9px; }
.footer-links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 18px; color: #91a99f; font-size: .85rem; }
.back-to-top { position: fixed; inset-inline-end: 18px; bottom: 18px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--red-600); color: #fff; box-shadow: var(--shadow-sm); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s ease; z-index: 50; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1220px) {
  .apply-grid { grid-template-columns: .62fr 1.38fr; gap: 30px; }
  .application-form { padding: 20px; }
  .form-grid { gap: 10px 12px; }
  .drop-zone { min-height: 116px; }
}

@media (max-width: 1050px) {
  .card-grid { grid-template-columns: repeat(2,1fr); }
  .apply-grid { grid-template-columns: 1fr; gap: 24px; }
  .apply-intro { position: static; max-width: 760px; }
  .application-form { justify-self: center; max-width: 820px; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 74px; }
  .header-inner { min-height: 72px; }
  .brand img { width: 118px; height: 52px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; }
  .hero { min-height: auto; padding-top: 58px; }
  .hero-grid, .requirements-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-media { width: min(100%,600px); margin-inline: auto; }
  .requirements-copy { order: -1; }
  .steps-grid { grid-template-columns: 1fr; }
  .section-heading.align-start { text-align: center; margin-inline: auto; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .section { padding: 64px 0; }
  .header-inner { gap: 8px; }
  .brand { min-width: auto; }
  .brand img { width: 104px; height: 48px; }
  .header-actions { gap: 7px; }
  .language-switch { min-height: 40px; padding: 6px 9px; border-radius: 11px; font-size: .82rem; }
  .language-switch svg { width: 17px; height: 17px; }
  .menu-toggle { width: 40px; height: 40px; }
  .hero h1 { font-size: clamp(2.65rem,15vw,4.3rem); }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-trust { display: grid; justify-content: start; width: fit-content; margin-inline: auto; text-align: start; }
  .image-frame { padding: 8px; border-radius: 25px; }
  .image-frame picture img { border-radius: 19px; }
  .floating-card { min-width: 170px; padding: 9px 10px; }
  .floating-card-top { top: 8%; inset-inline-start: -5px; }
  .floating-card-bottom { bottom: 8%; inset-inline-end: -5px; }
  .floating-card span { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .feature-card { display: grid; grid-template-columns: 48px 1fr; column-gap: 15px; align-items: center; padding: 20px; }
  .feature-card h3 { margin: 0 0 4px; }
  .feature-card p { grid-column: 2; }
  .requirements-media { margin-bottom: 18px; }
  .image-badge { inset-inline-end: 10px; bottom: -16px; font-size: .83rem; }
  .step-card { min-height: 190px; }
  .application-form { border-radius: 20px; padding: 16px; }
  .form-header { margin-bottom: 13px; padding-bottom: 12px; }
  .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .field-full { grid-column: 1 / -1; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .drop-zone { min-height: 104px; padding: 11px 8px; }
  .upload-icon { width: 34px; height: 34px; }
  .checkbox-label { font-size: .78rem; }
  .submit-button { min-height: 46px; margin-top: 12px; }
  .footer-grid, .footer-bottom { flex-direction: column; }
  .footer-bottom { gap: 6px; }
}

@media (max-width: 430px) {
  .application-form { padding: 14px 12px; border-radius: 17px; }
  .form-header img { width: 38px; height: 38px; }
  .form-header h2 { font-size: 1.08rem; }
  .form-header p { font-size: .75rem; }
  .form-grid { grid-template-columns: 1fr; gap: 8px; }
  .field-full { grid-column: auto; }
  .field label, .field legend { font-size: .81rem; }
  .choice-ui { min-height: 41px; padding: 7px 8px; }
  .upload-field > label:first-child { min-height: auto; }
  .drop-zone { min-height: 94px; }
  .drop-zone strong { font-size: .78rem; }
  .drop-zone small { font-size: .67rem; }
  .form-note { font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* Compact form and hero sizing revision */
.hero {
  min-height: auto;
  padding: 48px 0;
}
.hero-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 58px);
}
.hero-media {
  width: 250px;
  max-width: 25vw;
}
.image-frame {
  width: 100%;
  max-width: 250px;
  border-radius: 24px;
  padding: 7px;
}
.image-frame::before { inset: 25% -12px -12px 25%; border-radius: 22px; }
.image-frame picture img { border-radius: 18px; }
.floating-card {
  min-width: 145px;
  gap: 7px;
  padding: 8px 9px;
  border-radius: 12px;
}
.floating-card svg { width: 25px; height: 25px; padding: 5px; }
.floating-card strong { font-size: .7rem; }
.floating-card span { font-size: .61rem; }
.floating-card-top { inset-inline-start: -54px; }
.floating-card-bottom { inset-inline-end: -42px; }

.apply-grid {
  grid-template-columns: minmax(230px, .82fr) minmax(460px, 1.18fr);
  gap: clamp(24px, 4vw, 44px);
}
.application-form {
  max-width: 540px;
  padding: 13px;
  border-radius: 18px;
  box-shadow: 0 14px 38px rgba(20,48,39,.11);
}
.form-header {
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 9px;
}
.form-header img { width: 32px; height: 32px; }
.form-header h2 { font-size: 1rem; line-height: 1.25; }
.form-header p { margin-top: 1px; font-size: .66rem; line-height: 1.35; }
.form-grid { gap: 5px 8px; }
.field label, .field legend { margin-bottom: 2px; font-size: .68rem; line-height: 1.25; }
.input-wrap { min-height: 32px; border-radius: 9px; }
.input-wrap > svg { margin-inline: 7px 0; font-size: .9rem; }
.input-wrap input, .input-wrap select { padding: 6px 7px; font-size: .72rem; }
.choice-grid { gap: 6px; }
.choice-grid.compact { max-width: 240px; }
.choice-ui { min-height: 32px; gap: 5px; padding: 5px 7px; border-radius: 9px; font-size: .72rem; }
.choice-ui svg { font-size: 1rem; }
.upload-field > label:first-child { min-height: 0; align-items: initial; }
.upload-help { margin: -1px 0 5px; color: var(--muted); font-size: .58rem; line-height: 1.35; }
.upload-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 5px; }
.upload-action {
  position: relative;
  min-height: 58px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: 0 !important;
  padding: 6px 4px;
  border: 1.5px dashed #bac8c1;
  border-radius: 10px;
  background: #fbfdfc;
  color: var(--green-900);
  text-align: center;
  cursor: pointer;
  transition: .2s ease;
}
.upload-action:hover { border-color: var(--green-700); background: #f2f9f5; }
.upload-action input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload-action-icon {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #e9f5ef;
  color: var(--green-700);
  font-size: .86rem;
}
.upload-action strong { font-size: .61rem; line-height: 1.15; }
.upload-field.invalid .upload-action { border-color: var(--danger); }
.file-preview { display: block; margin-top: 3px; }
.preview-card { gap: 5px; padding: 4px; border-radius: 7px; }
.preview-thumb, .preview-file-icon { width: 29px; height: 25px; border-radius: 5px; }
.preview-meta b { max-width: 150px; font-size: .59rem; }
.error { min-height: 8px; margin-top: 1px; font-size: .57rem; line-height: 1.2; }
.submit-button { min-height: 34px; margin-top: 7px; gap: 7px; border-radius: 9px; font-size: .76rem; }
.submit-button svg { font-size: .95rem; }
.form-note { margin-top: 5px; gap: 4px; font-size: .59rem; line-height: 1.35; }
.form-status { margin-top: 5px; padding: 6px; font-size: .67rem; }

@media (max-width: 1050px) {
  .apply-grid {
    grid-template-columns: minmax(210px, .72fr) minmax(430px, 1.28fr);
    gap: 22px;
  }
  .apply-intro { position: sticky; top: 98px; }
  .application-form { justify-self: end; max-width: 520px; }
}

@media (max-width: 860px) {
  .hero { padding: 28px 0 34px; }
  .hero-grid { grid-template-columns: 1fr; gap: 15px; }
  .hero-media { width: min(42vw, 180px); max-width: none; }
  .image-frame { max-width: none; }
  .floating-card { display: none; }
  .hero h1 { margin: 12px 0 10px; font-size: clamp(2rem, 9vw, 3.2rem); }
  .hero-copy > p { font-size: .92rem; }
  .hero-actions { margin-top: 16px; }
  .hero-trust { margin-top: 14px; }
  .apply-grid { grid-template-columns: 1fr; gap: 18px; }
  .apply-intro { position: static; }
  .application-form { justify-self: center; max-width: 520px; }
}

@media (max-width: 640px) {
  .hero { padding: 20px 0 26px; }
  .hero-media { width: min(42vw, 165px); }
  .hero h1 { font-size: clamp(1.9rem, 10vw, 2.7rem); }
  .hero-actions { flex-direction: row; gap: 7px; }
  .hero-actions .button { width: auto; flex: 1 1 0; min-height: 39px; padding: 8px 9px; font-size: .69rem; border-radius: 9px; }
  .hero-trust { display: flex; gap: 9px; width: auto; font-size: .68rem; }
  .application-form { padding: 10px; border-radius: 14px; }
  .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 6px; }
  .field-full { grid-column: 1 / -1; }
  .form-header { margin-bottom: 7px; padding-bottom: 7px; }
  .form-header img { width: 29px; height: 29px; }
  .form-header h2 { font-size: .9rem; }
  .form-header p { font-size: .6rem; }
  .field label, .field legend { font-size: .63rem; }
  .input-wrap { min-height: 30px; }
  .input-wrap input { font-size: .68rem; padding: 5px 6px; }
  .choice-ui { min-height: 30px; font-size: .67rem; padding: 4px 5px; }
  .upload-help { font-size: .54rem; }
  .upload-action { min-height: 52px; }
  .upload-action-icon { width: 21px; height: 21px; }
  .upload-action strong { font-size: .56rem; }
  .submit-button { min-height: 32px; }
  .form-note { font-size: .54rem; }
}

@media (max-width: 360px) {
  .application-form { padding: 8px; }
  .form-grid { gap: 3px 5px; }
  .field label, .field legend { font-size: .59rem; }
  .input-wrap input { font-size: .64rem; }
  .upload-action { min-height: 49px; padding-inline: 2px; }
  .upload-action strong { font-size: .52rem; }
  .upload-help { font-size: .5rem; }
}


/* V4 layout refinement: shorter hero, larger form, unified ID upload cards */
.hero {
  min-height: auto;
  padding: 34px 0 40px;
  align-items: start;
}
.hero-grid {
  grid-template-columns: minmax(0, 1.03fr) minmax(410px, .97fr);
  align-items: start;
  gap: clamp(32px, 4.5vw, 62px);
}
.hero-copy {
  align-self: start;
  padding-top: 16px;
}
.hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(2.65rem, 5.2vw, 4.85rem);
}
.hero-copy > p { font-size: clamp(1rem, 1.45vw, 1.16rem); }
.hero-actions { margin-top: 22px; }
.hero-trust { margin-top: 18px; }
.hero-media {
  width: 100%;
  max-width: 620px;
  justify-self: end;
}
.image-frame {
  width: 100%;
  max-width: 620px;
  padding: 8px;
  border-radius: 28px;
  transform: none;
}
.image-frame::before {
  inset: 22% -13px -13px 26%;
  border-radius: 26px;
}
.image-frame picture { display: block; }
.image-frame picture img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 61%;
  border-radius: 21px;
}
.floating-card-top { top: 14%; inset-inline-start: -34px; }
.floating-card-bottom { bottom: 10%; inset-inline-end: -24px; }

.apply-grid {
  grid-template-columns: minmax(250px, .72fr) minmax(570px, 1.28fr);
  gap: clamp(26px, 4vw, 50px);
}
.application-form {
  max-width: 650px;
  padding: 16px;
  border-radius: 20px;
}
.form-header {
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 11px;
}
.form-header img { width: 38px; height: 38px; }
.form-header h2 { font-size: 1.2rem; }
.form-header p { font-size: .78rem; }
.form-grid { gap: 8px 10px; }
.field label, .field legend {
  margin-bottom: 3px;
  font-size: .8rem;
}
.input-wrap {
  min-height: 38px;
  border-radius: 10px;
}
.input-wrap > svg { margin-inline: 8px 0; font-size: 1rem; }
.input-wrap input, .input-wrap select {
  padding: 8px;
  font-size: .82rem;
}
.choice-grid { gap: 8px; }
.choice-grid.compact { max-width: 290px; }
.choice-ui {
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 10px;
  font-size: .82rem;
}
.error {
  min-height: 10px;
  margin-top: 2px;
  font-size: .64rem;
}
.submit-button {
  min-height: 42px;
  margin-top: 10px;
  border-radius: 10px;
  font-size: .88rem;
}
.form-note { margin-top: 7px; font-size: .68rem; }
.form-status { font-size: .76rem; }

.upload-field { align-self: stretch; }
.id-upload-card {
  min-height: 154px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 9px;
  padding: 11px;
  border: 1.5px dashed #b9c9c0;
  border-radius: 13px;
  background: linear-gradient(180deg, #fbfdfc, #f6fbf8);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.id-upload-card:hover {
  border-color: var(--green-700);
  background: #f3faf6;
}
.id-upload-card.has-file {
  border-style: solid;
  border-color: var(--green-700);
  background: #f0faf4;
  box-shadow: 0 0 0 3px rgba(18,97,66,.07);
}
.upload-field.invalid .id-upload-card { border-color: var(--danger); }
.id-upload-copy { text-align: right; }
.id-side-badge {
  display: inline-flex;
  margin-bottom: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--red-700);
  background: #fff0ef;
  font-size: .61rem;
  font-weight: 850;
}
.id-upload-copy strong {
  display: block;
  color: var(--green-950);
  font-size: .78rem;
  line-height: 1.3;
}
.id-upload-copy strong span { color: var(--red-600); }
.id-upload-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .63rem;
  line-height: 1.45;
}
.id-upload-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-top: 2px;
}
.id-upload-option {
  position: relative;
  min-width: 86px;
  min-height: 34px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 !important;
  padding: 6px 9px;
  border: 1px solid #cbd9d2;
  border-radius: 9px;
  color: var(--green-900) !important;
  background: #fff;
  font-size: .65rem !important;
  font-weight: 800 !important;
  cursor: pointer;
  transition: .2s ease;
}
.id-upload-option:hover {
  color: var(--red-700) !important;
  border-color: var(--red-500);
  transform: translateY(-1px);
}
.id-upload-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.id-upload-option svg {
  width: 17px;
  height: 17px;
  color: var(--green-700);
}
.option-divider { color: #91a099; font-size: .6rem; font-weight: 700; }
.id-upload-card .file-preview { display: block; margin-top: 0; }
.id-upload-card .preview-card { padding: 5px; }
.id-upload-card .preview-thumb { width: 34px; height: 30px; }
.id-upload-card .preview-meta b { max-width: 180px; font-size: .64rem; }

@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, .88fr); gap: 32px; }
  .hero-copy { padding-top: 8px; }
  .hero h1 { font-size: clamp(2.45rem, 5vw, 4rem); }
  .apply-grid { grid-template-columns: minmax(220px, .66fr) minmax(520px, 1.34fr); gap: 24px; }
  .application-form { max-width: 620px; }
}

@media (max-width: 860px) {
  .hero { padding: 24px 0 30px; }
  .hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero-copy { padding-top: 0; }
  .hero-media {
    width: 100%;
    max-width: 560px;
    justify-self: center;
  }
  .image-frame { max-width: 560px; }
  .image-frame picture img { aspect-ratio: 16 / 8.8; object-position: center 61%; }
  .floating-card { display: none; }
  .hero h1 { margin: 10px 0 9px; font-size: clamp(2rem, 8vw, 3.15rem); }
  .hero-actions { margin-top: 15px; }
  .hero-trust { margin-top: 12px; }
  .apply-grid { grid-template-columns: 1fr; gap: 20px; }
  .apply-intro { position: static; }
  .application-form { max-width: 650px; justify-self: center; }
}

@media (max-width: 640px) {
  .hero { padding: 18px 0 24px; }
  .hero-copy { text-align: start; }
  .hero h1 { font-size: clamp(1.9rem, 9.5vw, 2.65rem); }
  .hero-copy > p { font-size: .9rem; }
  .hero-actions { gap: 7px; }
  .hero-actions .button {
    min-height: 40px;
    padding: 8px 9px;
    font-size: .7rem;
  }
  .hero-trust { gap: 8px; font-size: .67rem; }
  .hero-media { max-width: 100%; }
  .image-frame { max-width: 100%; padding: 6px; border-radius: 20px; }
  .image-frame::before { inset: 24% -7px -7px 28%; border-radius: 18px; }
  .image-frame picture img { aspect-ratio: 16 / 9; border-radius: 15px; object-position: center 61%; }

  .application-form { padding: 12px; border-radius: 16px; }
  .form-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px 8px; }
  .form-header { margin-bottom: 9px; padding-bottom: 9px; }
  .form-header img { width: 34px; height: 34px; }
  .form-header h2 { font-size: 1.05rem; }
  .form-header p { font-size: .7rem; }
  .field label, .field legend { font-size: .75rem; }
  .input-wrap { min-height: 36px; }
  .input-wrap input { padding: 7px; font-size: .78rem; }
  .choice-ui { min-height: 36px; padding: 6px 7px; font-size: .76rem; }
  .id-upload-card { min-height: 160px; padding: 10px; }
  .id-upload-copy strong { font-size: .74rem; }
  .id-upload-copy p { font-size: .6rem; }
  .id-upload-option { min-width: 78px; min-height: 32px; padding: 5px 7px; font-size: .61rem !important; }
  .id-upload-option svg { width: 16px; height: 16px; }
  .submit-button { min-height: 40px; font-size: .82rem; }
  .form-note { font-size: .63rem; }
}

@media (max-width: 430px) {
  .hero-actions { flex-direction: row; }
  .hero-actions .button { flex: 1 1 0; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .choice-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .choice-grid.compact { max-width: none; }
  .id-upload-card { min-height: 142px; }
}

/* Ensure the hero card uses a true landscape frame instead of the source image's intrinsic height. */
.image-frame { aspect-ratio: 3 / 2; }
.image-frame picture { width: 100%; height: 100%; }
.image-frame picture img { height: 100%; aspect-ratio: auto; }

@media (max-width: 860px) {
  .image-frame { aspect-ratio: 16 / 8.8; }
}

@media (max-width: 640px) {
  .image-frame { aspect-ratio: 16 / 9; }
}

/* V5: full-screen hero on desktop, laptops and mobile */
.hero {
  min-height: calc(100vh - 80px);
  min-height: calc(100svh - 80px);
  display: flex;
  align-items: center;
  padding: clamp(22px, 4vh, 42px) 0;
}

.hero-grid {
  width: 100%;
  align-items: center;
}

.hero-copy {
  align-self: center;
  padding-top: 0;
}

@media (max-width: 860px) {
  .hero {
    min-height: calc(100vh - 72px);
    min-height: calc(100svh - 72px);
    padding: 14px 0 18px;
  }

  .hero-grid {
    align-content: center;
    gap: clamp(12px, 2.5vh, 20px);
  }

  .hero-copy {
    align-self: auto;
  }

  .hero-media {
    width: min(100%, 560px);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 12px 0 14px;
  }

  .hero-grid {
    gap: clamp(10px, 2vh, 16px);
  }

  .hero-media {
    width: min(100%, 520px);
  }
}

/* Keep all hero content inside short laptop and phone viewports. */
@media (max-height: 700px) and (min-width: 861px) {
  .hero {
    padding: 16px 0;
  }

  .hero h1 {
    margin: 10px 0 8px;
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  }

  .hero-actions {
    margin-top: 14px;
  }

  .hero-trust {
    margin-top: 11px;
  }

  .hero-media,
  .image-frame {
    max-width: 520px;
  }
}

@media (max-width: 860px) and (max-height: 700px) {
  .hero {
    padding: 8px 0 10px;
  }

  .hero-grid {
    gap: 8px;
  }

  .eyebrow {
    padding: 5px 9px;
    font-size: .67rem;
  }

  .hero h1 {
    margin: 7px 0 6px;
    font-size: clamp(1.75rem, 7.5vw, 2.45rem);
  }

  .hero-copy > p {
    font-size: .82rem;
    line-height: 1.45;
  }

  .hero-actions {
    margin-top: 10px;
  }

  .hero-actions .button {
    min-height: 36px;
    padding-block: 6px;
  }

  .hero-trust {
    display: none;
  }

  .hero-media {
    width: min(86%, 430px);
  }
}

@media (max-width: 430px) and (max-height: 620px) {
  .eyebrow {
    display: none;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 8.2vw, 2.05rem);
  }

  .hero-copy > p {
    font-size: .76rem;
  }

  .hero-actions .button {
    min-height: 34px;
    font-size: .64rem;
  }

  .hero-media {
    width: min(82%, 330px);
  }
}


/* V6: compact full-screen hero and updated benefit highlights */
.hero-trust {
  gap: 14px;
}

.hero-trust > span {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .hero {
    min-height: calc(100vh - 72px);
    min-height: calc(100svh - 72px);
    padding: 10px 0 12px;
  }

  .hero-grid {
    gap: 10px;
  }

  .eyebrow {
    padding: 6px 10px;
    font-size: .68rem;
  }

  .hero h1 {
    margin: 10px 0 8px;
    font-size: clamp(2rem, 10vw, 2.7rem);
    line-height: 1.02;
  }

  html[lang="ar"] .hero h1 {
    line-height: 1.15;
  }

  .hero-copy > p {
    max-width: 34rem;
    font-size: .88rem;
    line-height: 1.48;
  }

  .hero-actions {
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
  }

  .hero-actions .button {
    min-height: 42px;
    padding: 9px 14px;
    font-size: .78rem;
  }

  .hero-trust {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 7px 12px;
    margin: 12px auto 0;
    font-size: .67rem;
    text-align: center;
  }

  .hero-trust > span {
    gap: 4px;
  }

  .hero-trust svg {
    width: 15px;
    height: 15px;
  }

  .hero-media {
    width: min(86%, 350px);
  }

  .floating-card {
    min-width: 145px;
    padding: 7px 8px;
  }

  .floating-card strong {
    font-size: .72rem;
  }
}

@media (max-width: 430px) and (min-height: 621px) {
  .hero-media {
    width: min(82%, 320px);
  }
}

/* V7: center the hero composition and keep mobile buttons compact */
@media (min-width: 861px) {
  .hero .container.hero-grid {
    width: min(calc(100% - 72px), 1120px);
    margin-inline: auto;
    grid-template-columns: minmax(0, .96fr) minmax(420px, 1.04fr);
    gap: clamp(40px, 5vw, 70px);
  }

  .hero-copy {
    padding-inline-start: 12px;
  }

  .hero-media {
    justify-self: center;
    max-width: 560px;
  }

  .image-frame {
    max-width: 560px;
  }
}

@media (max-width: 860px) {
  .hero .container.hero-grid {
    width: min(calc(100% - 40px), 680px);
    margin-inline: auto;
    justify-items: center;
    text-align: center;
  }

  .hero-copy {
    width: min(100%, 620px);
    margin-inline: auto;
    text-align: center;
  }

  .eyebrow {
    margin-inline: auto;
  }

  .hero-copy > p {
    margin-inline: auto;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .hero-actions .button {
    width: auto;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 17px;
    border-radius: 12px;
    font-size: .78rem;
    white-space: nowrap;
  }

  .hero-trust {
    justify-content: center;
    margin-inline: auto;
  }

  .hero-media {
    width: min(88%, 500px);
    max-width: 500px;
    margin-inline: auto;
    justify-self: center;
  }

  .image-frame {
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .hero .container.hero-grid {
    width: min(calc(100% - 32px), 560px);
  }

  .hero h1 {
    max-width: 100%;
    margin-inline: auto;
    font-size: clamp(1.85rem, 8vw, 2.45rem);
    text-align: center;
  }

  .hero-copy > p {
    max-width: 31rem;
    text-align: center;
  }

  .hero-actions {
    flex-direction: row;
    gap: 8px;
  }

  .hero-actions .button {
    width: auto;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: .72rem;
  }

  .hero-trust {
    width: auto;
    max-width: 100%;
  }

  .hero-media {
    width: min(82%, 380px);
    max-width: 380px;
  }
}

@media (max-width: 380px) {
  .hero .container.hero-grid {
    width: min(calc(100% - 24px), 360px);
  }

  .hero-actions {
    gap: 6px;
  }

  .hero-actions .button {
    min-height: 38px;
    padding: 7px 10px;
    font-size: .66rem;
  }

  .hero-media {
    width: min(84%, 315px);
  }
}

/* V8: make Arabic hero typography visually match the English hero size */
html[lang="ar"] .hero h1 {
  font-size: clamp(2.35rem, 3.9vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 680px;
}

@media (max-width: 1200px) and (min-width: 861px) {
  html[lang="ar"] .hero h1 {
    font-size: clamp(2.15rem, 3.6vw, 3.3rem);
    max-width: 620px;
  }
}

@media (max-height: 700px) and (min-width: 861px) {
  html[lang="ar"] .hero h1 {
    font-size: clamp(2rem, 3.3vw, 3rem);
  }
}

@media (max-width: 860px) {
  html[lang="ar"] .hero h1 {
    font-size: clamp(1.9rem, 6.6vw, 2.5rem);
    line-height: 1.1;
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  html[lang="ar"] .hero h1 {
    font-size: clamp(1.7rem, 7.2vw, 2.25rem);
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  html[lang="ar"] .hero h1 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }
}


/* V11: keep Arabic hero benefits on one line and hide honeypot field */
.hp-field {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  inset-inline-start: -9999px !important;
}

html[lang="ar"] .hero-trust {
  flex-wrap: nowrap;
  justify-content: center;
  gap: 14px;
  white-space: nowrap;
}

html[lang="ar"] .hero-trust > span {
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  html[lang="ar"] .hero-trust {
    gap: 7px;
    font-size: .56rem;
  }

  html[lang="ar"] .hero-trust svg {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 380px) {
  html[lang="ar"] .hero-trust {
    gap: 5px;
    font-size: .5rem;
  }
}

/* V13: definitive horizontal overflow fix */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Hide the anti-spam field without moving it thousands of pixels off-screen. */
.hp-field {
  position: fixed !important;
  inset: 0 auto auto 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

.site-header,
main,
section,
.site-footer,
.container {
  max-width: 100%;
}

/* V14: full-form loading and success states */
.application-form {
  position: relative;
  isolation: isolate;
}

.form-state-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: start center;
  padding: clamp(34px, 8vw, 84px) clamp(18px, 5vw, 52px);
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  text-align: center;
}

.form-state-overlay.is-visible {
  display: grid;
}

.form-state-content {
  position: sticky;
  top: 96px;
  width: min(100%, 440px);
  margin-block: min(18vh, 150px);
  padding: clamp(28px, 6vw, 46px) clamp(20px, 5vw, 38px);
  border: 1px solid rgba(4, 91, 66, 0.16);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(19, 43, 34, 0.13);
}

.form-state-content h3 {
  margin: 20px 0 10px;
  color: #073f30;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  line-height: 1.35;
}

.form-state-content p {
  margin: 0;
  color: #64756f;
  font-size: clamp(.95rem, 2.8vw, 1.08rem);
  line-height: 1.8;
}

.form-loading-spinner {
  display: inline-block;
  width: 64px;
  height: 64px;
  border: 6px solid #d9eee7;
  border-top-color: #bf2228;
  border-radius: 50%;
  animation: formSpinner .8s linear infinite;
}

.form-success-icon {
  display: inline-grid;
  place-items: center;
  width: 92px;
  height: 92px;
}

.form-success-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.form-success-icon circle {
  fill: #e9f8f1;
  stroke: #087452;
  stroke-width: 3;
}

.form-success-icon path {
  fill: none;
  stroke: #087452;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 44;
  stroke-dashoffset: 44;
  animation: formCheck .55s .12s ease forwards;
}

.form-state-overlay.success .form-state-content {
  border-color: rgba(8, 116, 82, 0.24);
}

@keyframes formSpinner {
  to { transform: rotate(360deg); }
}

@keyframes formCheck {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 640px) {
  .form-state-overlay {
    padding: 22px 14px;
  }

  .form-state-content {
    top: 82px;
    margin-block: 90px;
    border-radius: 22px;
  }

  .form-success-icon {
    width: 78px;
    height: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-loading-spinner,
  .form-success-icon path {
    animation-duration: .01ms;
    animation-iteration-count: 1;
  }
}

/* Definitively remove the decorative green card behind the hero image */
.hero .hero-visual .image-frame::before,
.hero-visual .image-frame::before,
.image-frame::before {
  content: none !important;
  display: none !important;
  background: transparent !important;
  width: 0 !important;
  height: 0 !important;
  inset: auto !important;
}
