/* Service purchase page (views/site/efile.php). Scoped under .svc. */
.svc {
  --ink: #1b2e35;
  --ink-2: #3f5159;
  --muted: #66767d;
  --line: #e2e9ec;
  --bg: #f5f8f9;
  --green: #20950f;
  --green-600: #1a7d0c;
  --green-50: #eef8ec;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 40, 48, .04), 0 8px 24px rgba(16, 40, 48, .06);
}
.svc-body { color: var(--ink); }
.svc-body p { font-size: 15px; }

/* ---------- Layout ---------- */
.svc-body { overflow: visible; }
.svc-card,
.svc-summary {
  /* Border and shadow match .icon-box in main.css */
  background: #fff; border: 1px solid #c7c7c7;
  border-radius: var(--radius); box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
@media (max-width: 600px) {
  .svc-card, .svc-summary { border-color: #c7c7c75c; }
}
.svc-card { padding: 28px 32px 32px; }
@media (min-width: 992px) {
  .svc-summary { position: sticky; top: 92px; }
}

/* ---------- Stepper (#progressbar; JS adds .active) ---------- */
.svc #msform { text-align: left; margin: 0; }
.svc #msform #progressbar {
  display: flex; counter-reset: step;
  margin: 0 0 28px; padding: 0; overflow: visible; color: #000;
}
.svc #msform #progressbar li {
  flex: 1; position: relative; list-style: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 15px; text-align: center; counter-increment: step;
}
.svc #msform #progressbar li strong { font-weight: 500; }
.svc #msform #progressbar li::before {
  content: counter(step);
  font-family: inherit;
  width: 44px; height: 44px; line-height: 40px; padding: 0; margin: 0;
  border-radius: 50%; border: 2px solid var(--line);
  background: #fff; color: var(--muted);
  font-size: 18px; font-weight: 600; position: relative; z-index: 1;
  transition: background .2s, border-color .2s, color .2s;
}
.svc #msform #progressbar li::after {
  content: ""; position: absolute; top: 21px; left: -50%; width: 100%;
  height: 2px; background: var(--line); z-index: 0;
}
.svc #msform #progressbar li:first-child::after { display: none; }
.svc #msform #progressbar li.active { color: #000; }
.svc #msform #progressbar li.active strong { font-weight: 600; }
.svc #msform #progressbar li.active::before { background: var(--ink); border-color: var(--ink); color: #fff; }
.svc #msform #progressbar li.active::after { background: var(--green); }
/* Completed steps get a tick. */
.svc #msform #progressbar li.active:has(+ li.active)::before {
  content: "\2713"; background: var(--green); border-color: var(--green);
}

/* ---------- Steps ---------- */
.svc #msform fieldset { padding: 0; text-align: right; background: transparent; }
.svc #msform fieldset .form-card {
  width: auto; margin: 0 0 24px; padding: 0;
  box-shadow: none; border-radius: 0; background: transparent;
  text-align: left; color: var(--ink);
}
.svc-step-title { font-size: 20px; font-weight: 700; margin: 0 0 4px; color: #000; }
.svc .svc-step-help { margin: 0 0 22px; color: var(--muted); font-size: 14px; }

.svc #msform .form-group { position: relative; margin-bottom: 18px; }
.svc #msform .form-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 6px; }
.svc #msform .form-row label { font-size: 14px; font-weight: 600; color: #000; }
.svc #msform .form-row label.error { font-size: 12px; font-weight: 500; color: #c0392b !important; }
.svc #msform .form-control {
  height: 48px; padding: 0 14px; font-size: 15px;
  border: 1px solid #cfd9dd; border-radius: 10px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.svc #msform .form-control::placeholder { color: #9aa8ad; }
.svc #msform .form-control:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(32, 149, 15, .12); }
.svc #msform .has-error .form-control { border-color: #c0392b; }
.svc #msform .has-prefix .form-control { padding-left: 84px; }
.svc-prefix {
  position: absolute; left: 1px; bottom: 1px; height: 46px; width: 76px; gap: 6px;
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid #e3eaed; border-radius: 10px 0 0 10px;
  background: #f4f7f8; font-size: 14px; font-weight: 600; color: var(--ink-2);
}

/* Income options as selectable cards */
.svc-options { display: grid; gap: 10px; }
.svc-options .form-check {
  position: relative; margin: 0 !important;
  padding: 14px 16px 14px 48px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .15s, background .15s;
}
.svc-options .form-check:hover { border-color: #b9c8cd; }
.svc-options .form-check:has(input:checked) { border-color: var(--green); background: var(--green-50); }
.svc-options .form-check-input {
  position: absolute; left: 16px; top: 50%; margin: -9px 0 0;
  width: 18px; height: 18px; cursor: pointer;
}
.svc-options .form-check-input:checked { background-color: var(--green); border-color: var(--green); }
.svc-options .form-check-label { display: block; font-size: 14px; color: #000; cursor: pointer; }
/* Label covers the whole card so the full row is clickable. */
.svc-options .form-check-label::after { content: ""; position: absolute; inset: 0; }
.svc-options.is-info .form-check { padding-left: 48px !important; background: #fafcfc; }
.svc-options.is-info .form-check::before {
  content: "\2713"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--green); font-weight: 700;
}
.svc-options.is-info .form-check-label { cursor: default; }
.svc-options.is-info .form-check-label::after { display: none; }

/* Review */
.svc-review { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; }
.svc-review > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.svc-review > div + div { border-top: 1px solid var(--line); }
.svc-review dt { font-weight: 500; color: #000; font-size: 14px; }
.svc-review dd { margin: 0; font-weight: 600; font-size: 14px; text-align: right; word-break: break-word; }
.svc-review-block { margin-bottom: 18px; }
.svc-review-block h3 { font-size: 14px; font-weight: 600; color: #000; margin: 0 0 8px; }
.svc-review-block ul { margin: 0; padding-left: 18px; font-size: 14px; }
.svc-review-block li { margin-bottom: 4px; }
.svc-review-block li::first-letter { text-transform: uppercase; }
.svc-review-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px; border-radius: 12px; background: var(--ink); color: #fff;
}
.svc-review-total small { display: block; font-size: 14px; opacity: .8; }
.svc-review-total strong { font-size: 22px; }
.svc .svc-legal { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* Buttons (must stay direct children of fieldset for main.js).
   Primary/pay use the site's .btn-get-started-card look; Back matches its shape. */
.svc #msform .svc-btn { margin: 0 0 0 8px; border: 0; cursor: pointer; }
.svc #msform .svc-btn-pay { min-width: 200px; }
.svc #msform .svc-btn-ghost {
  float: left; margin-left: 0; padding: 10px 30px; border-radius: 50px;
  background: #fff; color: var(--ink); border: 1px solid var(--ink);
  font-size: 15px; font-weight: 500; transition: 0.3s;
}
.svc #msform .svc-btn-ghost:hover { background: var(--ink); color: #fff; }
.svc #msform .svc-btn:focus-visible { outline: 0; box-shadow: 0 0 0 4px rgba(32, 149, 15, .25); }

/* ---------- Summary ---------- */
.svc-summary { padding: 26px 26px 22px; }
.svc .svc-summary-label {
  margin: 0 0 6px; font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; color: #000;
}
.svc .svc-plan { margin: 0 0 18px; font-size: 18px; font-weight: 700; line-height: 1.35; color: #000; }
.svc-lines { margin: 0; }
.svc-lines > div { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 14px; }
.svc-lines dt { font-weight: 400; color: #000; }
.svc-lines dd { margin: 0; font-weight: 500; }
.svc-lines .is-saving dd { color: var(--green-600); }
.svc-badge {
  margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  background: var(--green-50); color: var(--green-600); font-size: 14px; font-weight: 600;
}
.svc-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 10px; padding-top: 14px; border-top: 1px dashed #cfdcdf;
}
.svc-total span { font-weight: 600; }
.svc-total strong { font-size: 24px; font-weight: 700; color: var(--ink); }

.svc-next { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.svc-next ol { counter-reset: n; list-style: none; padding: 0; margin: 8px 0 0; }
.svc-next li {
  counter-increment: n; position: relative; padding: 0 0 12px 36px;
  font-size: 14px; color: var(--ink-2);
}
.svc-next li::before {
  content: counter(n); position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 50%; top: 0;
  display: grid; place-items: center;
  background: var(--green); color: #fff; font-size: 14px; font-weight: 600; line-height: 1;
}

.svc-help {
  display: flex; gap: 12px; align-items: center;
  margin-top: 8px; padding: 14px 16px; border-radius: 12px; background: var(--bg);
  font-size: 14px;
}
.svc-help i { font-size: 22px; color: var(--ink); }
.svc-help strong { display: block; font-weight: 600; }

/* ---------- Mobile ---------- */
@media (max-width: 575.98px) {
  .svc-card { padding: 22px 18px 24px; }
  .svc #msform #progressbar li { font-size: 14px; }
  .svc #msform #progressbar li::before { width: 38px; height: 38px; line-height: 34px; font-size: 16px; }
  .svc #msform #progressbar li::after { top: 18px; }
  .svc #msform .svc-btn-pay { min-width: 0; }
  .svc #msform fieldset .svc-btn-ghost + .svc-btn { width: calc(100% - 100px); }
  .svc #msform fieldset:first-of-type .form-card + .svc-btn { width: 100%; margin: 0; }
  .svc #msform .svc-btn-ghost { width: 88px; padding-inline: 0; }
}

/* Required-field marker */
.svc #msform label.required::after { content: " *"; color: #c0392b; font-weight: 700; }

.svc-flag { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex-shrink: 0; }

.svc-total span { color: #000; }

/* Contain the floated Back button without changing display (main.js shows/hides steps). */
.svc #msform fieldset::after { content: ""; display: block; clear: both; }

/* ---------- SEO sections (admin-managed; reuse the site's section designs) ---------- */
.svc-seo section { padding-bottom: 8px; }
.svc-seo p, .svc-seo .list span, .svc-seo .accordion-body, .svc-seo .accordion-button,
.svc-seo .section-header p, .svc-seo .icon-box p, .svc-seo .box p { font-size: 15px; }

/* Every grey section on this page gets the same spacing as py-5 / mt-70 (also the shared footer's "Need Support" block). */
.svc ~ section.sections-bg { padding-block: 3rem !important; margin-top: 70px !important; }

/* Checklist (e.g. documents required): open two-column layout, no box. Heading column + ruled list. */
.svc-docs-lead { padding-right: 32px; }
.svc-docs-lead h2 { font-size: 30px; font-weight: 700; color: #000; margin: 0 0 18px; line-height: 1.25; }
.svc-docs-lead h2::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 14px; background: var(--color-secondary); }
.svc-docs-lead p { font-size: 15px; color: var(--ink-2); margin: 0 0 22px; }
.svc-docs-list { list-style: none; margin: 0; padding: 0; }
.svc-docs-list li {
  display: flex; align-items: center; gap: 14px; padding: 18px 4px;
  border-bottom: 1px solid #c7d3d6; font-size: 16px; line-height: 1.5; color: #000;
}
.svc-docs-list svg { flex: 0 0 26px; width: 26px; height: 26px; }
/* No rule or extra space above the first item or below the last one. */
.svc-docs-list li:first-child { padding-top: 0; }
.svc-docs-list li:last-child { padding-bottom: 0; border-bottom: 0; }
@media (max-width: 991.98px) {
  .svc-docs-lead { padding-right: 0; margin-bottom: 24px; }
}

.svc-illus { max-height: 420px; width: auto; max-width: 100%; }

/* Admin-entered SVG icons */
.svc-seo .icon-box .icon svg { width: 55px; height: 55px; }
.svc-seo .tax-return .box figure svg { width: 56px; height: 56px; }
