/* ============================================================
   SPCO Logistics — Inner Pages Shared Styles (v3)
   About · Services · Fleet · Compliance · Quote · Global CTA
   ============================================================ */

/* ============================================================
   0) UNIFIED INNER-PAGE TREATMENT
   Shared breadcrumb + hero background (grid pattern + gradient).
   Used by every inner page: about, services, fleet, compliance, quote.
   This guarantees identical alignment and visual rhythm across pages.
   ============================================================ */

/* ---------- Breadcrumb ---------- */
.page-breadcrumb {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-8);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
html[lang="ar"] .page-breadcrumb {
  font-family: var(--font-arabic);
  font-size: 14px;
}
.page-breadcrumb a {
  color: var(--c-text-secondary);
  transition: color var(--dur-fast) var(--ease-out);
}
.page-breadcrumb a:hover {
  color: var(--c-primary-blue);
}
.page-breadcrumb .sep {
  color: var(--border-strong);
  user-select: none;
}
.page-breadcrumb .current {
  color: var(--c-text-primary);
  font-weight: 600;
}

/* ---------- Hero background — gradient + grid pattern overlay ----------
   Applied via class `page-hero-bg` on the hero <section>. The grid
   pattern uses brand-blue dots, masked with a radial fade so the
   density is highest in the upper-end and fades to nothing.
*/
.page-hero-bg {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--c-bg-light) 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 64, 175, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 64, 175, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 30%, #000 30%, transparent 70%);
          mask-image: radial-gradient(ellipse at 80% 30%, #000 30%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
/* Ensure all direct children of a page-hero-bg sit above the grid layer */
.page-hero-bg > .container {
  position: relative;
  z-index: 1;
}

/* ---------- Hero alignment standardization ----------
   Forces all inner-page heroes to start their content at the SAME
   Y position regardless of how long or short the text is.
   Uses higher specificity (.page-hero-bg .X) to override per-page CSS
   without needing !important.
*/
.page-hero-bg .about-hero-grid,
.page-hero-bg .svc-hero-grid,
.page-hero-bg .fl-hero-grid,
.page-hero-bg .cp-hero-grid {
  align-items: start;
}

/* Unify eyebrow / kicker bottom margin across all pages (about = reference) */
.page-hero-bg .svc-hero-eyebrow,
.page-hero-bg .fl-hero-eyebrow,
.page-hero-bg .cp-hero-eyebrow {
  margin-bottom: var(--sp-6);
}

/* Unify title bottom margin across all pages (about = reference) */
.page-hero-bg .svc-hero-title,
.page-hero-bg .fl-hero-title,
.page-hero-bg .cp-hero-title {
  margin-bottom: var(--sp-6);
}

/* ============================================================
   1) ABOUT PAGE
   ============================================================ */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}
@media (max-width: 860px) {
  .about-intro-grid { grid-template-columns: 1fr; }
}
.about-intro-grid p {
  color: var(--c-text-secondary);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: var(--sp-4);
}

.about-visual {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: var(--sp-8);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.about-fact {
  background: #FFFFFF;
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  border: 1px solid var(--border);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.about-fact:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.about-fact .k {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--c-text-primary);
  line-height: 1;
}
.about-fact .k .sfx { color: var(--c-speed-orange); }
.about-fact .l {
  font-size: 13px;
  color: var(--c-text-secondary);
  margin-top: 8px;
}

/* ---------- Mission / Vision ---------- */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
}
@media (max-width: 860px) {
  .mv-grid { grid-template-columns: 1fr; }
}
.mv-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  position: relative;
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.mv-card:hover { box-shadow: var(--shadow-md); }
.mv-card .tag {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-speed-orange-700);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: var(--sp-3);
}
html[lang="ar"] .mv-card .tag {
  font-family: var(--font-arabic);
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 13px;
}
.mv-card h3 {
  font-size: 24px;
  margin-bottom: var(--sp-3);
}
.mv-card p {
  color: var(--c-text-secondary);
  line-height: 1.75;
  font-size: 15px;
}
.mv-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: var(--sp-8);
  width: 48px;
  height: 3px;
  background: var(--c-speed-orange);
  border-radius: var(--r-pill);
}

/* ---------- History timeline ---------- */
.hist-timeline {
  max-width: 780px;
  margin: var(--sp-10) auto 0;
  position: relative;
}
.hist-timeline::before {
  content: '';
  position: absolute;
  inset-inline-start: 20px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border);
}
.hist-item {
  position: relative;
  padding-inline-start: 60px;
  padding-bottom: var(--sp-8);
}
.hist-item::before {
  content: '';
  position: absolute;
  inset-inline-start: 13px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--c-brand-gold);
}
.hist-item .y {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text-primary);
  margin-bottom: 4px;
}
.hist-item .t {
  font-size: 14px;
  color: var(--c-text-secondary);
  line-height: 1.7;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 860px) {
  .team-grid { grid-template-columns: 1fr; }
}
.team-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.team-img {
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, var(--c-accent-gray), var(--c-bg-light));
  position: relative;
}
.team-img::after {
  content: attr(data-initial);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 72px;
  color: rgba(31, 41, 55, 0.15);
  font-weight: 700;
}
.team-info { padding: var(--sp-5); }
.team-info h4 {
  font-size: 17px;
  margin-bottom: 4px;
}
.team-info .role {
  font-size: 13px;
  color: var(--c-speed-orange-700);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
html[lang="ar"] .team-info .role {
  font-family: var(--font-arabic);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 14px;
}

/* ============================================================
   2) SERVICES PAGE
   ============================================================ */
.svc-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}
@media (max-width: 860px) {
  .svc-hero-grid { grid-template-columns: 1fr; }
}
.svc-chip {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.svc-chip:hover {
  transform: translateY(-2px);
  border-color: var(--brand-light);
}
.svc-chip h4 {
  color: var(--c-text-primary);
  font-family: var(--font-display);
  font-size: 15px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
html[lang="ar"] .svc-chip h4 { font-family: var(--font-arabic); }
.svc-chip h4::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--c-speed-orange);
  border-radius: var(--r-pill);
  flex-shrink: 0;
}
.svc-chip p {
  color: var(--c-text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- Service detail rows ---------- */
.svc-detail-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-12);
  align-items: center;
  padding: var(--sp-12) 0;
  border-bottom: 1px solid var(--border);
}
.svc-detail-row:last-child { border-bottom: none; }
.svc-detail-row.flip { grid-template-columns: 1.2fr 1fr; }
.svc-detail-row.flip .svc-detail-content { order: 2; }

@media (max-width: 860px) {
  .svc-detail-row,
  .svc-detail-row.flip {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  .svc-detail-row.flip .svc-detail-content { order: 1; }
}

.svc-detail-content h3 {
  font-size: 30px;
  margin-bottom: var(--sp-4);
}
.svc-detail-content p {
  color: var(--c-text-secondary);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: var(--sp-4);
}
.svc-detail-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.svc-detail-content ul li {
  display: flex;
  gap: 12px;
  color: var(--c-text-primary);
  font-size: 15px;
}
.svc-detail-content ul li svg {
  color: var(--brand-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.svc-illo {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.svc-illo svg {
  width: 100%;
  height: 100%;
  max-height: 280px;
  color: var(--c-text-primary);
}

/* ---------- Logistics info grid ---------- */
.logi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-8);
}
@media (max-width: 860px) {
  .logi-grid { grid-template-columns: 1fr; }
}
.logi-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.logi-card:hover { box-shadow: var(--shadow-sm); }
.logi-card .n {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-speed-orange-700);
  letter-spacing: 0.14em;
}
.logi-card h4 {
  font-size: 18px;
  margin: 10px 0;
}
.logi-card p {
  color: var(--c-text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

/* ============================================================
   3) FLEET PAGE
   ============================================================ */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 860px) {
  .fleet-grid { grid-template-columns: 1fr; }
}
.fleet-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.fleet-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.fleet-card .truck {
  height: 140px;
  border-radius: var(--r-lg);
  background: #FFFFFF;
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-4);
  border: 1px solid var(--border);
}
.fleet-card .truck svg {
  width: 100px;
  height: auto;
  color: var(--c-text-primary);
}
.fleet-card h3 {
  font-size: 20px;
  margin-bottom: 4px;
}
.fleet-card .sub {
  font-size: 13px;
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-4);
}
.fleet-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}
.fleet-specs div { font-size: 13px; }
.fleet-specs .k {
  color: var(--c-text-secondary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
}
html[lang="ar"] .fleet-specs .k {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 12px;
}
.fleet-specs .v {
  color: var(--c-text-primary);
  font-family: var(--font-display);
  font-weight: 600;
}
html[lang="ar"] .fleet-specs .v { font-family: var(--font-arabic); }

/* ---------- Maintenance ---------- */
.maint-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
@media (max-width: 860px) {
  .maint-grid { grid-template-columns: 1fr; }
}
.maint-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.maint-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--dur-base) var(--ease-out);
}
.maint-item:hover { border-color: var(--brand-light); }
.maint-ico {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.maint-item h4 {
  font-size: 15px;
  margin-bottom: 2px;
}
.maint-item p {
  font-size: 13px;
  color: var(--c-text-secondary);
}
.maint-pct {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--success);
}

/* ============================================================
   4) COMPLIANCE PAGE
   ============================================================ */
.compliance-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-10);
}
@media (max-width: 860px) {
  .compliance-hero-stats { grid-template-columns: 1fr; }
}
.ch-stat {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  color: var(--c-text-primary);
  transition: box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.ch-stat:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.ch-stat .ico {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--c-speed-orange-100);
  color: var(--c-speed-orange-700);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-4);
  flex-shrink: 0;
}
.ch-stat h4 {
  color: var(--c-text-primary);
  font-size: 20px;
  margin-bottom: 6px;
}
.ch-stat p {
  color: var(--c-text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

/* ---------- Cert detail card ---------- */
.cert-detail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-8);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  margin-bottom: var(--sp-5);
}
@media (max-width: 860px) {
  .cert-detail { grid-template-columns: 1fr; }
}
.cert-badge {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cert-badge svg {
  width: 72px;
  height: 72px;
  color: var(--c-text-primary);
  margin-bottom: var(--sp-3);
}
.cert-badge .code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-speed-orange-700);
  margin-top: 8px;
}
.cert-badge h4 {
  font-size: 22px;
  margin-bottom: 4px;
}
.cert-detail-body h3 {
  font-size: 26px;
  margin-bottom: var(--sp-3);
}
.cert-detail-body p {
  color: var(--c-text-secondary);
  line-height: 1.75;
  margin-bottom: var(--sp-4);
  font-size: 15px;
}
.cert-detail-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 680px) {
  .cert-detail-body ul { grid-template-columns: 1fr; }
}
.cert-detail-body ul li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--c-text-primary);
}
.cert-detail-body ul li svg {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ============================================================
   5) QUOTE / CONTACT FORM
   ============================================================ */
.quote-wrap {
  max-width: 860px;
  margin: 0 auto;
}

/* ---------- Stepper ---------- */
.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: var(--sp-10);
  position: relative;
}
.stepper::before {
  content: '';
  position: absolute;
  top: 20px;
  inset-inline-start: 12%;
  width: 76%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.stepper-item {
  position: relative;
  z-index: 1;
  text-align: center;
}
.stepper-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--border-strong);
  color: var(--c-text-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  transition: all var(--dur-base) var(--ease-out);
}
.stepper-item.active .stepper-dot {
  border-color: var(--c-speed-orange);
  background: #FFFFFF;
  color: var(--brand);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.20);
}
.stepper-item.done .stepper-dot {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
}
.stepper-item .lbl {
  font-size: 12px;
  color: var(--c-text-secondary);
  font-family: var(--font-display);
  font-weight: 500;
}
html[lang="ar"] .stepper-item .lbl {
  font-family: var(--font-arabic);
  font-size: 13px;
}
.stepper-item.active .lbl { color: var(--brand); font-weight: 600; }

/* ---------- Form card ---------- */
.form-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-10);
  box-shadow: var(--shadow-sm);
}
.fieldset-head {
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
}
.fieldset-head h2 {
  font-size: 24px;
  margin-bottom: 6px;
}
.fieldset-head p {
  color: var(--c-text-secondary);
  font-size: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}
@media (max-width: 680px) {
  .field-grid { grid-template-columns: 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-primary);
  font-family: var(--font-display);
}
html[lang="ar"] .field label { font-family: var(--font-arabic); font-size: 14px; }
.field label .req { color: var(--danger); margin-inline-start: 2px; }
.field .hint {
  font-size: 12px;
  color: var(--c-text-secondary);
}

.field input,
.field select,
.field textarea {
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: #FFFFFF;
  color: var(--c-text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
html[lang="ar"] .field input,
html[lang="ar"] .field select,
html[lang="ar"] .field textarea { font-family: var(--font-arabic); }

.field input::placeholder,
.field textarea::placeholder {
  color: var(--c-text-secondary);
  opacity: 0.65;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-light);
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.field input:invalid:not(:placeholder-shown),
.field select:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}
.field textarea {
  resize: vertical;
  min-height: 100px;
}

/* ---------- Truck options (radio cards) ---------- */
.truck-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 680px) {
  .truck-options { grid-template-columns: 1fr 1fr; }
}
.truck-option {
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  text-align: center;
  transition: all var(--dur-base) var(--ease-out);
  background: #FFFFFF;
}
.truck-option:hover { border-color: var(--brand-light); }
.truck-option input { display: none; }
.truck-option svg {
  width: 40px;
  height: 40px;
  color: var(--c-text-primary);
  margin: 0 auto var(--sp-2);
}
.truck-option .n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--c-text-primary);
}
html[lang="ar"] .truck-option .n { font-family: var(--font-arabic); font-size: 15px; }
.truck-option .c {
  font-size: 11px;
  color: var(--c-text-secondary);
  margin-top: 2px;
}
.truck-option:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.10);
}
.truck-option:has(input:checked) svg { color: var(--brand); }

/* ---------- Form actions / Summary ---------- */
.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: var(--sp-8);
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.form-actions .spacer { flex: 1; }

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
  padding: var(--sp-5);
  background: var(--bg-alt);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
@media (max-width: 680px) {
  .summary-grid { grid-template-columns: 1fr; }
}
.summary-grid .k {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-secondary);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
html[lang="ar"] .summary-grid .k {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 12px;
}
.summary-grid .v {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-text-primary);
  font-size: 15px;
}
html[lang="ar"] .summary-grid .v { font-family: var(--font-arabic); }

/* ---------- Success state ---------- */
.success-panel {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
}
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  display: grid;
  place-items: center;
  margin: 0 auto var(--sp-5);
}
.success-icon svg {
  width: 40px;
  height: 40px;
}
.success-panel h2 {
  font-size: 30px;
  margin-bottom: var(--sp-3);
}
.success-panel .ref {
  font-family: var(--font-mono);
  color: var(--c-speed-orange-700);
  font-size: 14px;
  padding: 6px 14px;
  background: var(--c-speed-orange-100);
  border-radius: var(--r-pill);
  display: inline-block;
  margin-top: var(--sp-3);
}

/* ---------- Checkbox / Radio rows ---------- */
.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--c-text-secondary);
  cursor: pointer;
}
.check-row input {
  margin-top: 3px;
  accent-color: var(--brand);
  flex-shrink: 0;
}

/* ============================================================
   6) GLOBAL CTA CARD
   ============================================================ */
.cta-card {
  position: relative;
  background: var(--bg-alt);
  border-radius: var(--r-2xl);
  padding: clamp(48px, 6vw, 80px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--sp-10);
  align-items: center;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 860px) {
  .cta-card { grid-template-columns: 1fr; }
}
.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    var(--c-brand-gold),
    transparent);
  opacity: 0.65;
}
.cta-card::after {
  content: '';
  position: absolute;
  inset-inline-end: -100px;
  top: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(30, 64, 175, 0.05) 0%,
    transparent 60%);
  pointer-events: none;
}
.cta-card > * {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-arabic);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text-primary);
  margin-bottom: var(--sp-5);
  letter-spacing: -0.01em;
}
html[lang="en"] .cta-title { font-family: var(--font-display); }

.cta-desc {
  font-size: 17px;
  line-height: 1.8;
  color: var(--c-text-secondary);
}

.cta-action-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-items: stretch;
}

.cta-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 20px 28px;
  background: var(--c-speed-orange);
  color: #FFFFFF;
  border: 1px solid var(--c-speed-orange);
  border-radius: var(--r-lg);
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: all var(--dur-base) var(--ease-out);
}
html[lang="en"] .cta-btn-primary { font-family: var(--font-display); }

.cta-btn-primary:hover {
  background: var(--c-speed-orange-700);
  border-color: var(--c-speed-orange-700);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.25);
}

/* ============================================================
   7) REVEAL — fade-in on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out),
              transform 0.8s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
