/*
 * Pishkhanak — Official Iranian portal design system (build-free).
 * Loaded after the Vite bundle so it can refine the redesigned surfaces.
 * Scope everything under .portal to avoid leaking into legacy pages.
 */

:root {
  --p-navy-900: #0e2a52;
  --p-navy-800: #143a6b;
  --p-navy-700: #1b4d8f;
  --p-navy-600: #2360ab;
  --p-teal-600: #0c857c;
  --p-teal-500: #0e9f94;
  --p-teal-50:  #e7f6f4;
  --p-gold:     #f0b429;
  --p-ink:      #0f1f3a;
  --p-slate:    #475569;
  --p-muted:    #6b7a90;
  --p-line:     #e3e9f2;
  --p-soft:     #f4f7fc;
  --p-card-shadow: 0 10px 30px -12px rgba(16, 42, 82, .22);
}

/* ---------- Typography ----------
 * The app bundle forces `*{font-family:IRANSans…!important}` globally, so we must
 * use !important (with higher .portal * specificity) to apply Vazirmatn in-scope. */
.portal, .portal * {
  font-family: 'Vazirmatn', 'IRANSansWebFaNum', 'IRANSans', system-ui, sans-serif !important;
}
/* Keep Persian numerals on numeric runs (Vazirmatn renders Latin digits). */
.portal .fa-num, .portal .fa-num * { font-family: 'IRANSansWebFaNum', 'Vazirmatn', sans-serif !important; }

/* ---------- Form card ---------- */
.portal .svc-card {
  background: #fff;
  border: 1px solid var(--p-line);
  border-radius: 20px;
  box-shadow: var(--p-card-shadow);
  overflow: hidden;
}

.portal .svc-head {
  position: relative;
  background: linear-gradient(135deg, var(--p-navy-800) 0%, var(--p-navy-600) 100%);
  color: #fff;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.portal .svc-head::after { /* subtle official sheen */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 140% at 90% -20%, rgba(255,255,255,.14), transparent 55%);
  pointer-events: none;
}
.portal .svc-head__logo {
  flex: 0 0 auto;
  width: 56px; height: 56px; border-radius: 14px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.portal .svc-head__logo img { width: 40px; height: 40px; object-fit: contain; }
.portal .svc-head__logo--icon { background: rgba(255,255,255,.14); }
.portal .svc-head__logo--icon svg { width: 30px; height: 30px; color: #fff; }
.portal .svc-head__title { font-size: 1.16rem; font-weight: 800; line-height: 1.5; }
.portal .svc-head__sub { font-size: .82rem; color: rgba(255,255,255,.82); margin-top: 3px; }

/* ---------- Stepper ---------- */
.portal .svc-stepper {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 14px 18px; background: var(--p-soft);
  border-bottom: 1px solid var(--p-line);
}
.portal .svc-step { display: flex; align-items: center; gap: 7px; color: var(--p-muted); font-size: .8rem; font-weight: 600; }
.portal .svc-step__num {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800; background: #fff; color: var(--p-muted);
  border: 1.5px solid var(--p-line);
}
.portal .svc-step--active { color: var(--p-navy-700); }
.portal .svc-step--active .svc-step__num { background: var(--p-navy-700); color: #fff; border-color: var(--p-navy-700); }
.portal .svc-step__bar { width: 26px; height: 2px; border-radius: 2px; background: var(--p-line); }
@media (max-width: 480px) { .portal .svc-step__label { display: none; } .portal .svc-step__bar { width: 34px; } }

/* ---------- Body / fields ---------- */
.portal .svc-body { padding: 22px; }
.portal .svc-body label { color: var(--p-slate); font-weight: 700; font-size: .86rem; }

/* Restyle inputs that live inside the card (the field partials keep their ids) */
.portal .svc-body input[type="tel"],
.portal .svc-body input[type="text"],
.portal .svc-body input[type="number"],
.portal .svc-body select {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--p-line);
  border-radius: 13px;
  padding: 14px 16px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--p-ink);
  transition: border-color .2s, box-shadow .2s;
}
.portal .svc-body input:focus {
  outline: none;
  border-color: var(--p-navy-600);
  box-shadow: 0 0 0 4px rgba(35,96,171,.12);
}

/* ---------- CTA ---------- */
.portal .svc-cta {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--p-navy-700) 0%, var(--p-teal-600) 130%);
  color: #fff; font-weight: 800; font-size: 1.02rem;
  border: 0; border-radius: 14px; padding: 15px 18px; cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(12,133,124,.6);
  transition: transform .12s, box-shadow .2s, filter .2s;
}
.portal .svc-cta:hover { filter: brightness(1.05); box-shadow: 0 14px 26px -10px rgba(12,133,124,.7); }
.portal .svc-cta:active { transform: translateY(1px); }
.portal .svc-cta__price {
  background: rgba(255,255,255,.18); border-radius: 8px; padding: 3px 9px;
  font-size: .85rem; font-weight: 700;
}
.portal .svc-cta svg { width: 18px; height: 18px; }

/* ---------- Reassurance chips ---------- */
.portal .svc-reassure { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.portal .svc-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--p-teal-50); color: var(--p-teal-600);
  border-radius: 999px; padding: 5px 11px; font-size: .76rem; font-weight: 700;
}
.portal .svc-chip svg { width: 14px; height: 14px; }

/* ---------- Trust badges ---------- */
.portal .svc-trust {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px;
  padding: 16px 18px; border-top: 1px solid var(--p-line); background: var(--p-soft);
}
.portal .svc-trust img { height: 46px; width: auto; opacity: .96; border-radius: 8px; }
.portal .svc-trust__item { display: flex; align-items: center; gap: 7px; color: var(--p-muted); font-size: .76rem; font-weight: 700; }
.portal .svc-trust__item svg { width: 18px; height: 18px; color: var(--p-teal-600); }

/* ---------- Alerts ---------- */
.portal .svc-alert { border-radius: 13px; padding: 13px 15px; margin-bottom: 16px; font-size: .88rem; display: flex; gap: 9px; align-items: flex-start; }
.portal .svc-alert--error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.portal .svc-alert--ok { background: var(--p-teal-50); border: 1px solid #b6e6df; color: var(--p-teal-600); }
.portal .svc-alert--info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }
.portal .svc-alert svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }

/* ---------- Section heading (used in content zones) ---------- */
.portal .svc-related-title { text-align: center; font-weight: 800; color: var(--p-ink); margin: 26px 0 14px; }
