:root {
  /* Base form theme. Change these variables to quickly rebrand the default page. */
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-muted: #f1f4f9;
  --text: #162033;
  --muted: #667085;
  --border: #d9e0ec;
  --primary: #283b78;
  --primary-strong: #1c285f;
  --primary-soft: #edf1ff;
  --accent: #0f766e;
  --accent-soft: #dcf7f2;
  --danger: #b42318;
  --danger-soft: #fff0ed;
  --success: #147a4b;
  --shadow: 0 20px 60px rgba(23, 35, 64, 0.12);
  --small-shadow: 0 10px 28px rgba(23, 35, 64, 0.08);
  --radius: 8px;
  --radius-sm: 6px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(40, 59, 120, 0.08), rgba(15, 118, 110, 0.04) 360px),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

a {
  color: inherit;
}

.page-shell {
  width: min(100% - 28px, 920px);
  margin: 0 auto;
  padding: 28px 0 44px;
}

.page-header,
.brand-header {
  padding: 10px 0 22px;
}

.page-header h1,
.brand-header h1 {
  margin: 6px 0 10px;
  color: var(--primary-strong);
  font-size: clamp(2rem, 8vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.header-copy {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.eyebrow,
.step-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-panel,
.success-panel {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(217, 224, 236, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.form-panel {
  padding: 18px;
}

.save-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: var(--radius-sm);
  color: #17443f;
  font-size: 0.92rem;
  line-height: 1.45;
}

.save-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.progress-area {
  margin-bottom: 20px;
}

.progress-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.progress-track {
  height: 9px;
  margin: 10px 0 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-muted);
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 220ms ease;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  text-align: center;
}

.step-badge {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.step-list li.is-active,
.step-list li.is-complete {
  color: var(--primary-strong);
}

.step-list li.is-active .step-badge {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.step-list li.is-complete .step-badge {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

form {
  margin: 0;
}

.form-step {
  display: none;
  animation: stepIn 220ms ease;
}

.form-step.is-active {
  display: block;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-heading {
  margin: 0 0 18px;
}

.step-heading h2 {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.25;
}

.step-intro {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.field-grid {
  display: grid;
  gap: 16px;
}

.field,
.option-group {
  margin: 0 0 18px;
}

.field label,
.option-group legend {
  display: block;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 780;
}

.required {
  color: var(--danger);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text);
  outline: none;
  padding: 12px 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.55;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 21px,
    calc(100% - 13px) 21px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent);
}

.has-error input,
.has-error select,
.has-error textarea {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.help-text {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.field-error {
  min-height: 1.2em;
  margin: 7px 0 0;
  color: var(--danger);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}

.scope-builder {
  display: grid;
  gap: 16px;
}

.scope-empty,
.scope-card,
.data-route-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--small-shadow);
}

.scope-empty {
  padding: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.scope-card {
  overflow: hidden;
}

.scope-card-header {
  padding: 16px;
  background: linear-gradient(180deg, var(--primary-soft), #ffffff);
  border-bottom: 1px solid var(--border);
}

.scope-card-header h3 {
  margin: 8px 0 6px;
  color: var(--primary-strong);
  font-size: 1.16rem;
  line-height: 1.25;
}

.scope-card-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--accent-soft);
  color: color-mix(in srgb, var(--accent) 75%, #111827);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.scope-grid {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.scope-grid .field,
.scope-grid .option-group {
  margin-bottom: 0;
}

.compact-choice-grid {
  grid-template-columns: 1fr;
}

.budget-field {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.budget-field label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

[data-budget-output] {
  display: inline-flex;
  min-width: 98px;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
}

input[type="range"] {
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--primary);
}

input[type="range"]:focus {
  box-shadow: none;
}

.budget-scale {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.data-route-panel {
  margin-bottom: 16px;
  padding: 14px;
  background: var(--primary-soft);
}

.data-route-panel h3 {
  margin: 0 0 6px;
  color: var(--primary-strong);
  font-size: 1rem;
}

.data-route-panel p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.autofill-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--border));
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
}

.autofill-panel strong {
  color: var(--primary-strong);
}

.autofill-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.delivery-options {
  margin: 18px 0;
}

.delivery-choice-grid {
  display: grid;
  gap: 10px;
}

.delivery-choice-grid .choice > span {
  display: grid;
  gap: 3px;
}

.delivery-choice-grid small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.group-error {
  margin-top: 10px;
}

fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

.choice-grid,
.inline-options {
  display: grid;
  gap: 10px;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.choice input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.choice:has(input:checked) {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
  background: var(--primary-soft);
  box-shadow: 0 6px 18px rgba(23, 35, 64, 0.07);
}

.stacked-groups {
  display: grid;
  gap: 14px;
}

.option-group.compact {
  margin-bottom: 0;
}

.conditional-field {
  padding: 14px;
  border: 1px dashed color-mix(in srgb, var(--primary) 40%, var(--border));
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.conditional-field[hidden],
[hidden] {
  display: none !important;
}

.form-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.form-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.nav-actions,
.summary-actions {
  display: grid;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 25%, transparent);
  outline-offset: 2px;
}

.button.primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--small-shadow);
}

.button.primary:hover {
  background: var(--primary-strong);
}

.button.secondary {
  border-color: color-mix(in srgb, var(--primary) 25%, var(--border));
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.button.ghost {
  border-color: var(--border);
  background: #ffffff;
  color: var(--text);
}

.button.subtle {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}

.button.whatsapp {
  background: #128c7e;
  color: #ffffff;
  box-shadow: var(--small-shadow);
}

.review-step {
  padding-bottom: 2px;
}

.summary-box {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.summary-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
}

.summary-section h3 {
  margin: 0;
  padding: 12px 14px;
  background: var(--surface-muted);
  color: var(--primary-strong);
  font-size: 1rem;
}

.summary-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}

.summary-row {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}

.summary-row:first-child {
  border-top: 0;
}

.summary-row dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.summary-row dd {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.summary-empty {
  color: var(--muted);
  font-style: italic;
}

.success-panel {
  margin-top: 18px;
  padding: 26px 18px;
  text-align: center;
}

.success-panel h2 {
  margin: 12px 0 8px;
  color: var(--primary-strong);
  font-size: 1.8rem;
}

.success-panel p {
  max-width: 620px;
  margin: 0 auto 18px;
  color: var(--muted);
  line-height: 1.7;
}

.success-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 900;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 10;
  width: min(92vw, 520px);
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--primary-strong);
  color: #ffffff;
  box-shadow: var(--shadow);
  font-weight: 750;
  text-align: center;
  transform: translate(-50%, 150%);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.brand-musha {
  /* Musha General Suppliers theme overrides. */
  --bg: #f4f6f1;
  --surface: #ffffff;
  --surface-muted: #f5f0df;
  --text: #16231d;
  --muted: #68736b;
  --border: #d9d5c7;
  --primary: #143e5f;
  --primary-strong: #0b2b45;
  --primary-soft: #e7eef3;
  --accent: #c99016;
  --accent-soft: #fff2cf;
  --success: #197044;
  background:
    linear-gradient(180deg, rgba(20, 62, 95, 0.11), rgba(201, 144, 22, 0.08) 390px),
    var(--bg);
}

.brand-header {
  position: relative;
}

.brand-lockup {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.logo-area {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--accent) 78%, #ffffff);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--primary-strong), var(--primary));
  color: #ffffff;
  box-shadow: var(--small-shadow);
}

.logo-area span {
  color: var(--accent-soft);
  font-size: 1.12rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.brand-musha .form-panel,
.brand-musha .success-panel {
  border-top: 5px solid var(--accent);
}

.brand-musha .save-note {
  color: #5a3f05;
}

.brand-netciety {
  --bg: #f5f7fc;
  --surface: #ffffff;
  --surface-muted: #f0f3ff;
  --text: #202022;
  --muted: #697286;
  --border: #dce2ee;
  --primary: #506cf2;
  --primary-strong: #263eb8;
  --primary-soft: #edf0ff;
  --accent: #73e99d;
  --accent-soft: #def9e8;
  --success: #168a57;
  background:
    linear-gradient(180deg, rgba(80, 108, 242, 0.1), rgba(115, 233, 157, 0.07) 420px),
    var(--bg);
}

.brand-netciety .form-panel,
.brand-netciety .success-panel {
  border-top: 5px solid var(--primary);
}

.brand-netciety .save-note {
  color: #185436;
}

.brand-netciety .progress-fill {
  background: linear-gradient(90deg, #506cf2, #798fee 62%, #73e99d);
}

.brand-netciety .business-footer {
  border-top: 4px solid var(--accent);
  background: #202022;
}

.business-footer {
  display: grid;
  gap: 24px;
  margin-top: 22px;
  padding: 28px 22px 18px;
  border-radius: var(--radius);
  background: var(--primary-strong);
  color: #ffffff;
  box-shadow: var(--small-shadow);
}

.business-footer h2 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 1.25rem;
}

.business-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 0.98rem;
}

.business-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
}

.footer-contacts {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-tagline {
  margin-bottom: 5px !important;
  color: var(--accent) !important;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-contact-block {
  min-width: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
}

.footer-contacts li {
  display: grid;
  gap: 4px;
}

.footer-contacts li > span:first-child {
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-contacts a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-contacts a:hover {
  text-decoration: underline;
}

.netciety-logo-area {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.netciety-logo-area img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.footer-brand img {
  width: 72px;
  height: 72px;
  border: 0;
  object-fit: contain;
}

@media (min-width: 640px) {
  .page-shell {
    width: min(100% - 48px, 920px);
    padding: 42px 0 56px;
  }

  .form-panel {
    padding: 26px;
  }

  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-wide {
    grid-column: 1 / -1;
  }

  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inline-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .autofill-panel {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .autofill-panel .button {
    width: auto;
    min-width: 180px;
  }

  .delivery-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .form-actions {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .nav-actions {
    display: flex;
    justify-content: flex-end;
  }

  .nav-actions .button,
  .form-actions > .button {
    width: auto;
    min-width: 132px;
  }

  .summary-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .success-panel {
    padding: 34px 28px;
  }

  .business-footer {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    align-items: start;
    padding: 30px 30px 18px;
  }

  .footer-contact-block {
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

  .footer-bottom {
    grid-column: 1 / -1;
  }
}

@media (min-width: 760px) {
  .summary-row {
    grid-template-columns: 220px 1fr;
    gap: 16px;
  }

  .summary-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .summary-actions .button {
    width: auto;
  }
}

@media (orientation: landscape) and (min-width: 900px) {
  .page-shell {
    width: min(100% - 72px, 1040px);
  }

  .page-header,
  .brand-header {
    padding-top: 18px;
  }

  .scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scope-grid .option-group,
  .scope-grid .field:has(textarea) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .step-list {
    overflow-x: auto;
    grid-template-columns: repeat(9, 62px);
    padding-bottom: 4px;
  }

  .step-list li {
    font-size: 0.66rem;
  }

  .brand-lockup {
    grid-template-columns: 1fr;
  }

  .logo-area {
    width: 66px;
    height: 66px;
  }
}
