/* ───────────────────────────────────────────────────
   Business Account – Merchant Onboarding Page
   ─────────────────────────────────────────────────── */

.business-body {
  margin: 0;
  min-height: 100dvh;
  background: #e8e5de;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

/* ── Header ─────────────────────────────────── */

.biz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 40px;
  background: rgba(248, 246, 241, 0.92);
  border-bottom: 1px solid rgba(24, 33, 43, 0.08);
  backdrop-filter: blur(18px);
}

.biz-header .brand-wordmark-header {
  width: 200px;
}

.biz-header-back {
  color: #087a70;
  font-size: 13px;
  font-weight: 700;
  transition: color 180ms ease;
}

.biz-header-back:hover {
  color: #06665e;
}

/* ── Main Layout ─────────────────────────────── */

.biz-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  min-height: calc(100dvh - 68px);
}

/* ── Form Panel (Left) ─────────────────────── */

.biz-form-panel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 48px 80px;
  background: var(--paper);
}

.biz-form-inner {
  width: 100%;
  max-width: 580px;
}

.biz-form-heading {
  margin-bottom: 40px;
}

.biz-form-heading .kicker {
  margin-bottom: 16px;
}

.biz-form-heading h1 {
  font-family: "Manrope", sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.biz-form-heading > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

/* ── Step Indicators ─────────────────────────── */

.biz-steps-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(24, 33, 43, 0.08);
  border-radius: 10px;
}

.step-dot {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: opacity 180ms ease;
}

.step-dot:not(.active):not(.completed) {
  opacity: 0.42;
}

.step-dot-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  background: #e9eae8;
  transition: background 260ms ease, color 260ms ease;
}

.step-dot.active .step-dot-number {
  color: #fff;
  background: #087a70;
  box-shadow: 0 4px 14px rgba(8, 122, 112, 0.28);
}

.step-dot.completed .step-dot-number {
  color: #fff;
  background: #149978;
}

.step-dot-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.step-connector {
  flex: 1;
  min-width: 20px;
  height: 2px;
  margin: 0 10px;
  background: #dde0dd;
  border-radius: 2px;
  transition: background 260ms ease;
}

.step-connector.active {
  background: linear-gradient(90deg, #149978, #dde0dd);
}

.step-connector.completed {
  background: #149978;
}

/* ── Form Fieldsets ─────────────────────────── */

.biz-step {
  border: 0;
  padding: 0;
  margin: 0;
  animation: step-enter 360ms ease forwards;
}

.biz-step[hidden] {
  display: none;
}

@keyframes step-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.biz-step-title {
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 26px;
  color: var(--ink);
}

/* ── Fields ──────────────────────────────────── */

.field-group {
  margin-bottom: 22px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.required {
  color: #d93b3b;
}

.optional-label {
  color: var(--muted);
  font-weight: 500;
}

.field-group input[type="text"],
.field-group input[type="email"],
.field-group input[type="tel"],
.field-group select,
.field-group textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #d4d8d4;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  appearance: none;
}

.field-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2368727e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.field-group textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.55;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: #087a70;
  box-shadow: 0 0 0 3px rgba(8, 122, 112, 0.12);
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: #b3b9b3;
}

/* Validation: :user-invalid for post-interaction feedback */
.field-group input:user-invalid,
.field-group select:user-invalid {
  border-color: #d93b3b;
  background-color: #fef4f4;
}

.field-group input:user-invalid + .field-error,
.field-group select:user-invalid + .field-error {
  display: block;
}

.field-group input:user-invalid + .field-error::before,
.field-group select:user-invalid + .field-error::before {
  content: "This field is required";
}

.field-group input[type="email"]:user-invalid + .field-error::before {
  content: "Please enter a valid email";
}

.field-group input:required:user-valid,
.field-group select:required:user-valid {
  border-color: #149978;
}

.field-error {
  display: none;
  margin-top: 6px;
  color: #d93b3b;
  font-size: 12px;
  font-weight: 600;
}

/* ── Currency Selector ───────────────────────── */

.currency-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.currency-option {
  cursor: pointer;
}

.currency-option input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.currency-chip {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid #d4d8d4;
  border-radius: 8px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.currency-chip strong {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  color: var(--ink);
}

.currency-chip small {
  color: var(--muted);
  font-size: 11px;
}

.currency-option input:checked + .currency-chip {
  border-color: #087a70;
  background: #edf8f5;
  box-shadow: 0 0 0 3px rgba(8, 122, 112, 0.12);
}

.currency-option input:checked + .currency-chip strong {
  color: #087a70;
}

.currency-option:hover .currency-chip {
  border-color: #087a70;
}

/* ── Needs Grid ──────────────────────────────── */

.needs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.need-option {
  cursor: pointer;
}

.need-option input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.need-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid #d4d8d4;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 180ms ease, background 180ms ease;
}

.need-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #f0f2f0;
  border-radius: 50%;
  font-size: 14px;
  flex-shrink: 0;
  transition: background 180ms ease, color 180ms ease;
}

.need-option input:checked + .need-chip {
  border-color: #087a70;
  background: #edf8f5;
}

.need-option input:checked + .need-chip .need-icon {
  background: #087a70;
  color: #fff;
}

.need-option:hover .need-chip {
  border-color: #aab8b5;
}

/* ── Buttons ─────────────────────────────────── */

.biz-step-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.biz-next-btn,
.biz-submit-btn {
  width: 100%;
  margin-top: 6px;
}

.biz-step-actions .biz-back-btn {
  flex-shrink: 0;
}

.biz-step-actions .biz-next-btn,
.biz-step-actions .biz-submit-btn {
  flex: 1;
  margin-top: 0;
}

/* ── Success State ───────────────────────────── */

.biz-success {
  text-align: center;
  padding: 40px 0;
  animation: step-enter 420ms ease forwards;
}

.biz-success[hidden] {
  display: none;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  color: #fff;
  background: linear-gradient(135deg, #149978, #087a70);
  border-radius: 50%;
  font-size: 30px;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(8, 122, 112, 0.22);
}

.biz-success h2 {
  font-family: "Manrope", sans-serif;
  font-size: 32px;
  font-weight: 800;
}

.biz-success > p {
  margin: 14px 0 32px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.redirect-loader {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.redirect-spinner {
  display: block;
  width: 32px;
  height: 32px;
  border: 3px solid rgba(8, 122, 112, 0.15);
  border-top-color: #087a70;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Info Panel (Right) ─────────────────────── */

.biz-info-panel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 48px 80px;
  background:
    radial-gradient(circle at 30% 20%, rgba(44, 191, 155, 0.1), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255, 118, 87, 0.08), transparent 35%),
    linear-gradient(160deg, #102b2b 0%, #0e2828 40%, #172331 100%);
  color: #dfeae7;
}

.biz-info-inner {
  width: 100%;
  max-width: 460px;
  position: sticky;
  top: 56px;
}

.biz-info-hero {
  margin-bottom: 42px;
}

.biz-info-logo {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  filter: invert(1);
  opacity: 0.85;
}

.biz-info-hero h2 {
  font-family: "Manrope", sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
}

.biz-info-hero h2 strong {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, #ff9a6c, #6ddfbc, #7b9aff);
  -webkit-background-clip: text;
  background-clip: text;
}

.biz-info-hero > p {
  margin: 18px 0 0;
  color: #a8bbb7;
  font-size: 15px;
  line-height: 1.65;
}

/* ── Benefits ────────────────────────────────── */

.biz-benefits {
  display: grid;
  gap: 16px;
  margin-bottom: 36px;
}

.biz-benefit {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: background 220ms ease, border-color 220ms ease;
}

.biz-benefit:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
}

.benefit-icon-coral {
  color: #fff;
  background: rgba(255, 118, 87, 0.22);
  border: 1px solid rgba(255, 118, 87, 0.38);
}

.benefit-icon-mint {
  color: #fff;
  background: rgba(44, 191, 155, 0.22);
  border: 1px solid rgba(44, 191, 155, 0.38);
}

.benefit-icon-blue {
  color: #fff;
  background: rgba(88, 120, 255, 0.22);
  border: 1px solid rgba(88, 120, 255, 0.38);
}

.benefit-icon-violet {
  color: #fff;
  background: rgba(155, 107, 223, 0.22);
  border: 1px solid rgba(155, 107, 223, 0.38);
}

.biz-benefit strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 14px;
}

.biz-benefit p {
  margin: 0;
  color: #8fb0a9;
  font-size: 13px;
  line-height: 1.5;
}

/* ── Proof Strip ─────────────────────────────── */

.biz-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.biz-proof-strip > div {
  display: grid;
  gap: 4px;
  padding: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.biz-proof-strip b {
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
}

.biz-proof-strip span {
  color: #8fb0a9;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Security Badge ──────────────────────────── */

.biz-security-badge {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  background: rgba(244, 228, 181, 0.08);
  border: 1px solid rgba(244, 228, 181, 0.15);
  border-radius: 10px;
}

.biz-security-badge > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #172331;
  background: #f4e4b5;
  border-radius: 50%;
  font-size: 16px;
}

.biz-security-badge strong {
  display: block;
  color: #fff;
  font-size: 13px;
}

.biz-security-badge small {
  display: block;
  margin-top: 3px;
  color: #8fb0a9;
  font-size: 11px;
}

/* ── Responsive ──────────────────────────────── */

@media (max-width: 1100px) {
  .biz-main {
    grid-template-columns: 1fr;
  }

  .biz-info-panel {
    order: -1;
    padding: 48px 40px;
  }

  .biz-info-inner {
    position: static;
    max-width: 700px;
  }

  .biz-info-hero h2 {
    font-size: 32px;
  }

  .biz-benefits {
    grid-template-columns: 1fr 1fr;
  }

  .biz-form-panel {
    padding: 48px 40px 80px;
  }
}

@media (max-width: 720px) {
  .biz-header {
    padding: 0 20px;
  }

  .biz-header .brand-wordmark-header {
    width: 175px;
  }

  .biz-form-panel,
  .biz-info-panel {
    padding: 36px 20px 56px;
  }

  .biz-form-heading h1 {
    font-size: 32px;
  }

  .biz-info-hero h2 {
    font-size: 28px;
  }

  .biz-benefits {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .currency-selector {
    grid-template-columns: 1fr 1fr;
  }

  .needs-grid {
    grid-template-columns: 1fr;
  }

  .biz-steps-indicator {
    padding: 14px 14px;
    gap: 0;
  }

  .step-dot-label {
    display: none;
  }

  .step-connector {
    min-width: 16px;
    margin: 0 6px;
  }

  .biz-step-actions {
    flex-direction: column-reverse;
  }

  .biz-proof-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .biz-proof-strip b {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .biz-step {
    animation: none;
  }

  .biz-success {
    animation: none;
  }
}
