:root {
  color-scheme: light;
  --ink: #0d0f12;
  --muted: #626a75;
  --line: #dde3eb;
  --soft: #f4f7fb;
  --brand: #1f68ef;
  --brand-dark: #174fae;
  --accent: #87bc24;
  --accent-soft: #eef7dc;
  --white: #ffffff;
  font-family: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f7f7f7; }
button, input, select { font: inherit; }

.site-header {
  height: 76px; padding: 0 max(24px, calc((100vw - 1120px) / 2));
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand img { display: block; width: 190px; height: auto; }
.contact-link { min-width: 116px; padding: 12px 20px; border-radius: 999px; color: white; background: var(--ink); text-align: center; text-decoration: none; font-weight: 700; transition: color .2s, background .2s, transform .2s; }
.contact-link:hover { color: var(--ink); background: var(--accent); transform: translateY(-1px); }

main { width: min(1120px, calc(100% - 40px)); margin: 0 auto 80px; }
.intro { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; padding: 68px 0 42px; }
.eyebrow, .section-kicker { margin: 0 0 12px; color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: "Manrope", sans-serif; letter-spacing: -.035em; }
h1 { max-width: 720px; font-size: clamp(40px, 6vw, 66px); line-height: 1.02; }
.lede { max-width: 650px; margin: 20px 0 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.time-card { min-width: 172px; padding: 20px 22px; border-radius: 22px; background: var(--ink); color: white; box-shadow: 0 12px 32px rgba(13, 15, 18, .16); }
.time-card strong, .time-card span { display: block; }
.time-card strong { font: 700 24px "Manrope", sans-serif; }
.time-card span { margin-top: 4px; color: #c7d2cc; font-size: 13px; }

.form-shell { display: grid; grid-template-columns: 220px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--white); box-shadow: 0 24px 70px rgba(31, 45, 67, .1); }
.steps { padding: 42px 30px; background: var(--ink); }
.step { position: relative; display: flex; align-items: center; gap: 12px; min-height: 68px; color: #8fa199; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 50px; width: 1px; height: 28px; background: #3a4a43; }
.step span { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #506159; border-radius: 50%; font-weight: 700; font-size: 13px; }
.step p { margin: 0; font-weight: 600; }
.step.active { color: white; }
.step.active span { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.step.complete span { color: white; background: var(--brand); border-color: var(--brand); }

.form-step { padding: 48px 56px; }
.section-heading { max-width: 640px; margin-bottom: 34px; }
.section-heading h2 { font-size: clamp(28px, 4vw, 38px); }
.section-heading > p:last-child { margin: 12px 0 0; color: var(--muted); line-height: 1.6; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field.full { grid-column: 1 / -1; }
.field > span { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 600; }
.field b, .form-actions b { color: #b84734; }
.field input, .field select { width: 100%; height: 50px; padding: 0 19px; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; outline: none; background: #fbfcfe; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(31, 104, 239, .12); }
.field input.invalid, .field select.invalid { border-color: #b84734; background: #fff9f7; }
.field input::placeholder { color: #9ca8a2; }
.form-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--line); }
.form-actions p { margin: 0; color: var(--muted); font-size: 13px; }
.primary-button { min-width: 150px; height: 49px; padding: 0 24px; border: 0; border-radius: 999px; color: white; background: var(--ink); font-weight: 700; cursor: pointer; transition: color .2s, background .2s, transform .2s; }
.primary-button:hover { color: var(--ink); background: var(--accent); transform: translateY(-1px); }
.primary-button:disabled { opacity: .6; cursor: wait; }
.text-button, .secondary-button, .remove-branch, .remove-schedule { border: 0; cursor: pointer; }
.text-button { padding: 12px 18px; border-radius: 999px; color: white; background: var(--ink); font-weight: 700; transition: color .2s, background .2s; }
.text-button:hover { color: var(--ink); background: var(--accent); }
.secondary-button { min-height: 40px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px; color: white; background: var(--ink); font-weight: 700; transition: color .2s, background .2s, border-color .2s; }
.secondary-button:hover { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.details-panel { margin-top: 30px; border: 1px solid var(--line); border-radius: 14px; }
.details-panel summary { display: flex; justify-content: space-between; padding: 18px; cursor: pointer; font-weight: 700; }
.details-panel summary span { color: var(--muted); font-size: 12px; font-weight: 500; text-transform: uppercase; }
.details-content { padding: 4px 18px 20px; }
.reuse-banking { display: flex; align-items: center; gap: 10px; margin: 8px 0 20px; font-weight: 600; }
.reuse-banking input { width: 20px; height: 20px; accent-color: var(--accent); }
.branch-banking { margin-top: 20px; background: #fff; }
.form-step[hidden], .success-state[hidden], .form-message[hidden] { display: none; }
.form-message { margin: 24px 56px 0; padding: 14px 16px; border-radius: 11px; color: #792b20; background: #fff0ec; border: 1px solid #f0c5ba; }
.draft-status { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 24px 56px 0; padding: 13px 16px 13px 18px; border: 1px solid #cfe2a9; border-radius: 18px; color: #314610; background: var(--accent-soft); font-size: 14px; }
.draft-status button { flex: 0 0 auto; padding: 8px 14px; border: 0; border-radius: 999px; color: white; background: var(--ink); font-weight: 700; cursor: pointer; }
.draft-status button:hover { color: var(--ink); background: var(--accent); }
.split-heading { display: flex; justify-content: space-between; gap: 24px; max-width: none; }
.split-heading .secondary-button { flex: 0 0 auto; align-self: flex-end; }
.branches { display: grid; gap: 22px; }
.branch-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.branch-header, .branch-header > div, .schedule-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.branch-header { margin-bottom: 22px; }
.branch-header h3, .schedule-heading h4 { margin: 0; font: 700 18px "Manrope", sans-serif; }
.branch-number { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; color: var(--ink); background: var(--accent); font-weight: 800; }
.remove-branch { padding: 8px 14px; border-radius: 999px; color: white; background: var(--ink); font-weight: 600; }
.remove-branch:hover { color: var(--ink); background: var(--accent); }
.schedule-heading { margin: 26px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.schedule-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.schedule-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr 32px; gap: 12px; align-items: end; margin-top: 12px; }
.remove-schedule { width: 42px; height: 42px; margin-bottom: 4px; border-radius: 50%; color: white; background: var(--ink); font-size: 22px; }
.remove-schedule:hover { color: var(--ink); background: var(--accent); }
.empty-branches { margin: 20px 0; padding: 22px; text-align: center; color: var(--muted); border: 1px dashed #bfd0c6; border-radius: 13px; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.review-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fbfdfb; }
.review-card h3 { margin: 0 0 12px; font: 700 16px "Manrope", sans-serif; }
.review-card dl { margin: 0; }
.review-card div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; margin-top: 8px; font-size: 13px; }
.review-card dt { color: var(--muted); }
.review-card dd { margin: 0; font-weight: 600; word-break: break-word; }
.consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 26px; padding: 18px; border-radius: 13px; background: var(--soft); line-height: 1.5; }
.consent input { width: 19px; height: 19px; accent-color: var(--brand); }
.success-state { max-width: 650px; margin: auto; padding: 80px 56px; text-align: center; }
.success-state h2 { font-size: clamp(30px, 4vw, 42px); }
.success-state > p:last-child { color: var(--muted); line-height: 1.7; }
.success-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 24px; border-radius: 50%; color: var(--ink); background: var(--accent); font-size: 34px; font-weight: 800; }

@media (max-width: 760px) {
  .site-header { height: 66px; padding: 0 20px; }
  .brand img { width: 158px; }
  .contact-link { min-width: auto; padding: 10px 16px; font-size: 14px; }
  main { width: min(100% - 24px, 620px); }
  .intro { grid-template-columns: 1fr; padding: 44px 4px 28px; }
  .time-card { display: none; }
  .form-shell { grid-template-columns: 1fr; border-radius: 18px; }
  .steps { display: flex; justify-content: space-between; padding: 20px; }
  .step { display: block; min-height: 0; text-align: center; }
  .step:not(:last-child)::after { left: 31px; top: 15px; width: calc(25vw - 34px); height: 1px; }
  .step span { margin: auto; }
  .step p { margin-top: 6px; font-size: 11px; }
  .form-step { padding: 34px 22px; }
  .form-message { margin: 18px 22px 0; }
  .draft-status { align-items: flex-start; margin: 18px 22px 0; }
  .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .form-actions { align-items: flex-end; gap: 16px; }
  .split-heading { display: block; }
  .split-heading .secondary-button { margin-top: 18px; }
  .schedule-row { grid-template-columns: 1fr 1fr; }
  .schedule-row .field:first-child { grid-column: 1 / -1; }
  .remove-schedule { align-self: end; }
  .review-grid { grid-template-columns: 1fr; }
}
