/* ==========================================================================
   AcexPay site stylesheet
   Palette: near-black green background (matches brand board) + brand
   greens #0ABC7B / #64EBBA. Contrast verified for --muted and --legal
   against --bg / --bg-soft / --card (see frontend handoff report).
   ========================================================================== */

:root {
  --bg: #070d0a;
  --bg-soft: #0b1611;
  --card: #0f1b15;
  --card-2: #0c1712;
  --card-border: rgba(160, 205, 185, .14);
  --text: #ecf3ef;
  --muted: #9fb3aa;
  --legal: #8fa69c;
  --accent: #0abc7b;
  --accent-2: #64ebba;
  --accent-dark: #089a66;
  --on-accent: #04211d;
  --danger: #ff6b6b;
  --danger-bg: rgba(255, 107, 107, .1);
  --danger-border: rgba(255, 107, 107, .4);
  --focus: #64ebba;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1140px;
  --doc-maxw: 760px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.logo {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px
}

a {
  color: inherit;
  text-decoration: none
}

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

ul,
ol {
  padding-left: 1.3em
}

li+li {
  margin-top: .4em
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  transition: top .15s ease;
}

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

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

.icon {
  width: 1.3em;
  height: 1.3em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

.icon-fill {
  fill: currentColor;
  stroke: none
}

.icon-sm {
  width: 18px;
  height: 18px
}

.icon-lg {
  width: 30px;
  height: 30px
}

.icon-xl {
  width: 72px;
  height: 72px
}

.feature-visual {
  width: 100%;
  height: 220px;
  border-radius: 18px
}

/* ---------- NAV ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 13, 10, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none
}

.logo img {
  height: 30px;
  width: auto;
  display: block
}

.nav-links {
  display: flex;
  gap: 30px;
  font-size: .93rem;
  color: var(--muted);
  font-weight: 500
}

.nav-links a:hover {
  color: var(--text)
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 18px
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px
}

.nav-links .nav-cta-mobile {
  display: none
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
  min-height: 44px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  box-shadow: 0 8px 24px rgba(10, 188, 123, .25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(10, 188, 123, .35)
}

.btn-ghost {
  border: 1px solid rgba(159, 179, 170, .35);
  color: var(--text);
  background: transparent
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-2)
}

.btn-block {
  width: 100%
}

.btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  transform: none !important
}

.nav .btn {
  padding: 11px 22px
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text);
}

.nav-toggle .icon {
  width: 22px;
  height: 22px
}

.nav-toggle-close {
  display: none
}

.nav-toggle[aria-expanded="true"] .nav-toggle-open {
  display: none
}

.nav-toggle[aria-expanded="true"] .nav-toggle-close {
  display: block
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 120px;
  background:
    radial-gradient(900px 480px at 78% -10%, rgba(100, 235, 186, .10), transparent 60%),
    radial-gradient(700px 420px at 8% 15%, rgba(10, 188, 123, .14), transparent 60%),
    var(--bg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(159, 179, 170, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 179, 170, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(700px 500px at 60% 0%, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent-2);
  border: 1px solid rgba(10, 188, 123, .35);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 28px;
  background: rgba(10, 188, 123, .08);
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent)
}

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.02em
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  margin: 26px 0 38px;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 600px
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap
}

.hero-stats {
  display: flex;
  gap: 44px;
  margin-top: 64px;
  flex-wrap: wrap
}

.stat .k {
  font-family: 'Plus Jakarta Sans';
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text)
}

.stat .v {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 2px
}

/* ---------- SECTIONS ---------- */
main section {
  padding: 96px 0
}

.kicker {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.01em;
  max-width: 640px
}

.section-sub {
  color: var(--muted);
  margin-top: 16px;
  max-width: 640px;
  font-size: 1.03rem
}

/* Solutions */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px
}

.card {
  background: linear-gradient(180deg, var(--card), #0b1109);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .18s ease, border-color .18s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 188, 123, .4)
}

.card .icon-box {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  margin-bottom: 22px;
  background: rgba(10, 188, 123, .1);
  border: 1px solid rgba(10, 188, 123, .25);
  display: grid;
  place-items: center;
  color: var(--accent-2);
}

.card h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
  font-weight: 600
}

.card p {
  color: var(--muted);
  font-size: .95rem
}

/* Permitted activities */
.activities {
  background: var(--bg-soft);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border)
}

.grid-3-chip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px
}

.chip-card {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 26px 22px;
  background: rgba(15, 27, 21, .6);
  text-align: center;
}

.chip-card .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin: 0 auto 14px;
  background: rgba(10, 188, 123, .1);
  border: 1px solid rgba(10, 188, 123, .25);
  display: grid;
  place-items: center;
  color: var(--accent-2);
}

.chip-card h4 {
  font-size: .98rem;
  font-weight: 600
}

.chip-card p {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 6px
}

/* Business accounts feature */
.feature-panel {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(160deg, #101d16, #0b1109);
  border: 1px solid rgba(10, 188, 123, .22);
  border-radius: var(--radius);
  padding: 40px;
}

.feature-panel h3 {
  font-size: 1.3rem;
  margin-bottom: 12px
}

.feature-panel p {
  color: var(--muted);
  font-size: .98rem
}

.feature-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.feature-list li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  margin: 0
}

.feature-list .icon {
  color: var(--accent-2)
}

.feature-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px
}

/* Compliance */
.compliance-wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: start;
  margin-top: 8px
}

.fact-list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 0
}

.fact {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--card-border);
  font-size: .96rem;
}

.fact .label {
  color: var(--muted)
}

.fact .value {
  font-weight: 600;
  text-align: right
}

.fact .value.live {
  color: var(--accent-2)
}

.badge-panel {
  background: linear-gradient(160deg, #10201a, #0b1109);
  border: 1px solid rgba(10, 188, 123, .22);
  border-radius: var(--radius);
  padding: 40px 36px;
}

.badge-panel .shield {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(10, 188, 123, .18), rgba(100, 235, 186, .18));
  border: 1px solid rgba(10, 188, 123, .35);
  display: grid;
  place-items: center;
  color: var(--accent-2);
}

.badge-panel h3 {
  font-size: 1.25rem;
  margin-bottom: 14px
}

.badge-panel p {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 18px
}

.badge-panel .reg-line {
  margin-top: 8px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(10, 188, 123, .08);
  border: 1px solid rgba(10, 188, 123, .2);
  font-size: .88rem;
  color: var(--text)
}

.badge-panel .reg-line strong {
  color: var(--accent-2)
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 52px
}

.team-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
}

.team-avatar {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #ffffff;
  overflow: hidden;
  border: 3px solid rgba(100, 235, 186, .35);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.team-card h3 {
  font-size: 1.05rem;
  font-weight: 600
}

.team-card .role {
  color: var(--accent-2);
  font-size: .85rem;
  font-weight: 600;
  margin-top: 4px
}

.team-email {
  display: block;
  margin-top: 10px;
  font-size: .85rem;
  color: var(--text);
  overflow-wrap: break-word
}

.team-email:hover {
  color: var(--accent-2)
}

.team-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px
}

.team-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--card-border);
  color: var(--muted);
}

.team-links a:hover {
  color: var(--accent-2);
  border-color: var(--accent)
}

/* CTA band */
.cta-band {
  background:
    radial-gradient(600px 300px at 50% 120%, rgba(10, 188, 123, .18), transparent 70%),
    var(--bg-soft);
  border-top: 1px solid var(--card-border);
  text-align: center;
}

.cta-band .section-title {
  margin: 0 auto
}

.cta-band .section-sub {
  margin-left: auto;
  margin-right: auto
}

.cta-band .hero-ctas {
  justify-content: center;
  margin-top: 36px
}

/* Open an account */
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px
}

.account-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 34px 30px;
}

.account-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px
}

.account-card p {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 22px
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
}

.contact-card .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin: 0 auto 14px;
  background: rgba(10, 188, 123, .1);
  border: 1px solid rgba(10, 188, 123, .25);
  display: grid;
  place-items: center;
  color: var(--accent-2);
}

.contact-card h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600
}

.contact-card a,
.contact-card .val {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text)
}

.contact-card a:hover {
  color: var(--accent-2)
}

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 56px 0 44px;
  background: #050a07
}

.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap
}

.foot-top .logo img {
  height: 26px
}

.foot-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: .9rem;
  color: var(--muted)
}

.foot-links a:hover {
  color: var(--text)
}

.foot-meta {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--card-border);
  font-size: .8rem;
  color: var(--legal);
  max-width: 900px;
}

.foot-meta p+p {
  margin-top: 10px
}

.copyright {
  margin-top: 18px;
  font-size: .8rem;
  color: var(--legal)
}

@media(max-width:900px) {
  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--card-border);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
  }

  .nav-links[data-open="true"] {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto
  }

  .nav-links a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--card-border);
    min-height: 44px;
    display: flex;
    align-items: center
  }

  .nav-links a.nav-cta-mobile {
    display: flex;
    justify-content: center;
    border-bottom: none;
    margin-top: 14px;
    min-height: 48px;
  }

  .nav-cta {
    display: none
  }

  .nav-toggle {
    display: inline-flex
  }

  .grid-3,
  .grid-3-chip {
    grid-template-columns: 1fr
  }

  .feature-panel {
    grid-template-columns: 1fr
  }

  .compliance-wrap {
    grid-template-columns: 1fr
  }

  .contact-grid {
    grid-template-columns: 1fr
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .account-grid {
    grid-template-columns: 1fr
  }

  main section {
    padding: 72px 0
  }

  .hero {
    padding: 80px 0 90px
  }
}

@media(max-width:520px) {
  .team-grid {
    grid-template-columns: 1fr
  }
}

/* ==========================================================================
   Document pages (privacy / cookies / complaints / agreement text)
   ========================================================================== */
.doc-header {
  padding: 72px 0 32px;
  border-bottom: 1px solid var(--card-border);
  background: var(--bg-soft)
}

.doc-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700
}

.doc-header .doc-sub {
  color: var(--muted);
  margin-top: 12px
}

.doc-meta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: .85rem;
  color: var(--muted);
}

.doc-meta strong {
  color: var(--text)
}

.doc-body {
  padding: 56px 0 100px
}

.doc-column {
  max-width: var(--doc-maxw);
  margin: 0 auto
}

.doc-column h2 {
  font-size: 1.35rem;
  margin: 48px 0 14px;
  font-weight: 700;
  scroll-margin-top: 96px
}

.doc-column h2:first-child {
  margin-top: 0
}

.doc-column h3 {
  font-size: 1.08rem;
  margin: 26px 0 10px;
  font-weight: 600;
  color: var(--accent-2)
}

.doc-column p {
  margin-bottom: 16px;
  color: var(--text)
}

.doc-column p.muted {
  color: var(--muted)
}

.doc-column ul {
  margin: 0 0 16px 0
}

.doc-column li {
  color: var(--text)
}

.doc-column a,
.form-intro a,
.field-hint a,
.checkbox-declaration label a,
.alert a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc-column a:hover,
.form-intro a:hover,
.field-hint a:hover,
.checkbox-declaration label a:hover,
.alert a:hover {
  color: var(--accent)
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 24px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm)
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  min-width: 480px
}

.doc-table th,
.doc-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  vertical-align: top
}

.doc-table th {
  background: var(--bg-soft);
  color: var(--muted);
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em
}

.doc-table tr:last-child td {
  border-bottom: none
}

.note-box {
  background: rgba(10, 188, 123, .07);
  border: 1px solid rgba(10, 188, 123, .22);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 0 0 24px;
  font-size: .92rem;
  color: var(--text);
}

/* ==========================================================================
   Forms (account opening / corporate application)
   ========================================================================== */
.form-shell {
  padding: 56px 0 100px
}

.form-column {
  max-width: var(--doc-maxw);
  margin: 0 auto
}

.form-intro p {
  color: var(--muted);
  margin-bottom: 16px
}

.form-intro {
  margin-bottom: 36px
}

.alert {
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 28px;
  font-size: .94rem
}

.alert-error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--text)
}

.alert-error h2 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--danger)
}

.alert-error ul {
  margin: 0;
  padding-left: 1.2em
}

.error-summary-list {
  margin-top: 10px
}

.error-summary-list a {
  font-weight: 600
}

.alert-success {
  background: rgba(10, 188, 123, .09);
  border: 1px solid rgba(10, 188, 123, .35);
  color: var(--text)
}

.alert-success h2 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--accent-2)
}

.alert-success .ref {
  font-family: 'Plus Jakarta Sans', monospace;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-2)
}

fieldset {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin: 0 0 28px
}

legend {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 0 10px;
  color: var(--text)
}

.field-hint {
  font-size: .85rem;
  color: var(--muted);
  margin: -8px 0 18px
}

.field {
  margin-bottom: 20px
}

.field:last-child {
  margin-bottom: 0
}

.field label,
.field legend.group-label {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.required-mark {
  color: var(--accent-2);
  margin-left: 2px
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="number"],
.field input[type="date"],
.field input[type="file"],
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--card-2);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-family: inherit;
  font-size: .96rem;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
  padding: 14px 16px
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field input[type="file"] {
  padding: 10px 14px;
  min-height: 48px
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px
}

.radio-row,
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .94rem;
  padding: 10px 4px;
  min-height: 44px;
}

.radio-row input,
.checkbox-row input {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  accent-color: var(--accent);
}

.radio-inline {
  display: flex;
  gap: 22px;
  flex-wrap: wrap
}

.radio-inline .radio-row {
  padding: 10px 4px
}

.checkbox-declaration {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 4px;
  min-height: 44px;
}

.checkbox-declaration input {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 3px;
  accent-color: var(--accent)
}

.checkbox-declaration label {
  font-size: .92rem;
  color: var(--text)
}

.field-error {
  display: block;
  color: var(--danger);
  font-size: .85rem;
  margin-top: 6px
}

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

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px
}

.row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px
}

.repeatable-row {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.repeatable-row .field {
  flex: 1 1 200px;
  margin-bottom: 0
}

.repeatable-row .btn-remove {
  min-height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.repeatable-add {
  margin-top: 6px
}

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

.agreement-box {
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 24px 26px;
  background: var(--card-2);
  margin-bottom: 24px;
}

.agreement-box h2 {
  font-size: 1.05rem;
  margin: 26px 0 10px
}

.agreement-box h2:first-child {
  margin-top: 0
}

.agreement-box h3 {
  font-size: .96rem;
  margin: 16px 0 6px;
  color: var(--accent-2)
}

.agreement-box p {
  font-size: .92rem;
  color: var(--muted);
  margin-bottom: 12px
}

.agreement-box ul {
  margin-bottom: 12px
}

.agreement-box li {
  font-size: .92rem;
  color: var(--muted)
}

.agreement-box blockquote {
  border-left: 3px solid rgba(10, 188, 123, .4);
  padding-left: 14px;
  margin: 0 0 12px;
  font-size: .9rem;
  color: var(--legal);
  font-style: italic;
}

.signature-wrap {
  margin-top: 6px
}

.signature-pad {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16/7;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  touch-action: none;
  display: block;
}

.signature-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap
}

.signature-status {
  font-size: .85rem;
  color: var(--muted)
}

.signature-status[data-state="signed"] {
  color: var(--accent-2)
}

.signature-status[data-state="error"] {
  color: var(--danger);
  font-weight: 600
}

.js-warning {
  display: none;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 16px 0 0;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--text);
  font-size: .9rem;
}

.js-warning[data-visible="true"] {
  display: block
}

.form-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center
}

@media(max-width:700px) {

  .row-2,
  .row-3 {
    grid-template-columns: 1fr
  }

  fieldset {
    padding: 22px 18px
  }

  .repeatable-row {
    flex-direction: column;
    align-items: stretch
  }

  .repeatable-row .btn-remove {
    align-self: flex-end
  }
}

/* ---------- Footer columns: logo | Company | Legal ---------- */
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  align-items: start
}

.foot-heading {
  margin: 0 0 16px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2)
}

.foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: .92rem
}

.foot-list li,
.foot-list li+li {
  margin: 0
}

.foot-list a {
  color: var(--muted)
}

.foot-list a:hover {
  color: var(--text)
}

@media(max-width:700px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px
  }

  .foot-brand {
    grid-column: 1 / -1
  }
}

/* ---------- Payment services illustration ---------- */
.feature-visual.feature-art {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center
}

.feature-art img {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  box-shadow: 0 10px 28px rgba(10, 188, 123, .3);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none
}

.back-to-top.is-visible:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(10, 188, 123, .4)
}

.back-to-top .icon {
  width: 22px;
  height: 22px;
  stroke-width: 2.2
}

@media(max-width:520px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px
  }
}