/* Business MCA - shared styles */

:root {
  --green: #087551;
  --green-hover: #0a855b;
  --green-dark: #065a3f;
  --green-soft: #e7f3ee;
  --green-line: #c9e3d8;
  --bg: #fafcfc;
  --surface: #ffffff;
  --text: #0f1f1a;
  --muted: #55655f;
  --line: #e2e8e5;
  --error: #c0362c;
  --error-soft: #fdecea;
  --shadow: 0 10px 30px rgba(8, 60, 42, 0.08), 0 2px 6px rgba(8, 60, 42, 0.05);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green);
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid #f2b600;
  outline-offset: 2px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 252, 252, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand svg {
  width: 26px;
  height: 29px;
}

.brand span {
  color: var(--green);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: var(--green-hover);
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-lg {
  min-height: 56px;
  padding: 14px 32px;
  font-size: 1.08rem;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.95rem;
}

.btn-ghost {
  background: transparent;
  color: var(--green);
  box-shadow: inset 0 0 0 2px var(--green-line);
}

.btn-ghost:hover {
  background: var(--green-soft);
}

.btn-white {
  background: #fff;
  color: var(--green);
}

.btn-white:hover {
  background: var(--green-soft);
}

.link-btn {
  background: none;
  border: 0;
  padding: 4px 0;
  font: inherit;
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-btn[disabled] {
  color: var(--muted);
  cursor: default;
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
  padding: 40px 0 56px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(8, 117, 81, 0.10), transparent 70%),
    radial-gradient(700px 360px at -10% 110%, rgba(8, 117, 81, 0.06), transparent 70%);
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    padding: 72px 0 88px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 .accent {
  color: var(--green);
}

.hero-sub {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 24px;
}

.hero-sub strong {
  color: var(--text);
}

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

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
}

.checks svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.start-card {
  padding: 24px;
}

@media (min-width: 768px) {
  .start-card {
    padding: 32px;
  }
}

.start-card h2 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.start-card .hint {
  color: var(--muted);
  margin-bottom: 20px;
}

.start-card .fine {
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Option buttons (amount, purpose) ---------- */

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

.options.single {
  grid-template-columns: 1fr;
}

.option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.options.single .option {
  justify-content: flex-start;
  text-align: left;
}

.option:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.option:active {
  transform: scale(0.99);
}

.option[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-dark);
}

.option .ico {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
}

.option .ico svg {
  width: 20px;
  height: 20px;
}

/* ---------- Sections ---------- */

.section {
  padding: 56px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 80px 0;
  }
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.highlights {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .highlights {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.highlight {
  padding: 28px;
}

.highlight .big {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--green);
  line-height: 1.1;
  margin-bottom: 10px;
}

.highlight p {
  color: var(--muted);
  margin: 0;
}

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.icon-badge svg {
  width: 24px;
  height: 24px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.steps li {
  position: relative;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 20px;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 32px 18px 0;
  font-weight: 700;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--green);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  color: var(--muted);
  padding-bottom: 6px;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--green);
  color: #fff;
  border-radius: 20px;
  padding: 40px 24px;
  text-align: center;
  background-image: radial-gradient(600px 300px at 90% 0%, rgba(255, 255, 255, 0.14), transparent 70%);
}

@media (min-width: 768px) {
  .cta-band {
    padding: 56px 40px;
  }
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--green);
  text-decoration: underline;
}

.disclaimer {
  font-size: 0.8rem;
  line-height: 1.55;
  margin: 0 0 8px;
}

/* ---------- Apply page ---------- */

.apply-main {
  padding: 24px 0 64px;
}

@media (min-width: 768px) {
  .apply-main {
    padding: 48px 0 80px;
  }
}

.apply-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.progress {
  margin-bottom: 18px;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 32px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--green);
  border-radius: inherit;
  transition: width 0.35s ease;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  padding: 4px 0;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.back-btn:hover {
  color: var(--green);
}

.back-btn[hidden] {
  display: none;
}

.form-card {
  padding: 24px 20px;
}

@media (min-width: 768px) {
  .form-card {
    padding: 36px;
  }
}

.step h1 {
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  margin-bottom: 6px;
}

.step .lead-text {
  color: var(--muted);
  margin-bottom: 22px;
}

.step[hidden] {
  display: none;
}

.step:focus {
  outline: none;
}

.field {
  margin-bottom: 16px;
}

.field-row {
  display: grid;
  gap: 0 12px;
}

@media (min-width: 480px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.input-wrap {
  position: relative;
}

.input-wrap .prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 700;
  pointer-events: none;
}

.input-wrap .prefix + input {
  padding-left: 30px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.code-input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem; /* 16px avoids iOS zoom */
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.code-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(8, 117, 81, 0.15);
}

.field.has-error input {
  border-color: var(--error);
}

.field-error {
  display: none;
  margin-top: 6px;
  color: var(--error);
  font-size: 0.88rem;
  font-weight: 600;
}

.field.has-error .field-error {
  display: block;
}

.field-help {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}

.consent input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--green);
  cursor: pointer;
}

.field.has-error .consent {
  border-color: var(--error);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-alert {
  display: none;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--error-soft);
  color: var(--error);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.form-alert.show {
  display: block;
}

.code-input {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.4em;
  padding-left: calc(14px + 0.4em);
}

.code-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 14px 0 22px;
  font-size: 0.92rem;
  color: var(--muted);
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.secure-note svg {
  width: 16px;
  height: 16px;
}

/* Upload */

.dropzone {
  display: block;
  position: relative;
  padding: 28px 20px;
  border: 2px dashed var(--green-line);
  border-radius: var(--radius);
  background: var(--green-soft);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover,
.dropzone.drag {
  border-color: var(--green);
  background: #dcefe6;
}

.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone svg {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  color: var(--green);
}

.dropzone strong {
  display: block;
  color: var(--green-dark);
  font-size: 1.05rem;
}

.dropzone span {
  font-size: 0.88rem;
  color: var(--muted);
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
}

.file-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.92rem;
}

.file-list .name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.file-list .status {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.file-list .status.ok {
  color: var(--green);
  font-weight: 700;
}

.file-list .status.err {
  color: var(--error);
  font-weight: 700;
}

.file-list .remove {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.file-list .remove:hover {
  color: var(--error);
}

.btn-stack {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

/* Done */

.done {
  text-align: center;
  padding: 12px 0;
}

.done-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
}

.done-icon svg {
  width: 36px;
  height: 36px;
}

.done .lead-text {
  font-size: 1.08rem;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ---------- Legal pages ---------- */

.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 0 72px;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 2em;
}

.legal h3 {
  margin-top: 1.5em;
}

.legal ul {
  padding-left: 1.3em;
}

.legal li {
  margin-bottom: 0.4em;
}

.legal blockquote {
  margin: 0 0 1.5em;
  padding: 14px 18px;
  border-left: 4px solid #f2b600;
  background: #fff8e1;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.legal blockquote p {
  margin: 0;
}

.legal hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}

.legal .placeholder {
  background: #fff3c4;
  padding: 0 3px;
  border-radius: 3px;
}

/* ---------- 404 ---------- */

.notfound {
  text-align: center;
  padding: 96px 0;
}

.notfound p {
  color: var(--muted);
  margin-bottom: 24px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
