/* ============================================================
   30p Direct Debit — style.css
   ============================================================ */

:root {
  --bg:           #f0f4ff;
  --card-bg:      #ffffff;
  --text:         #0f172a;
  --muted:        #64748b;
  --subtle:       #94a3b8;
  --accent:       #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --success:      #16a34a;
  --error:        #dc2626;
  --border:       #e2e8f0;
  --hero-bg:      #1e3a8a;
  --hero-bg2:     #1d4ed8;
  --radius-sm:    6px;
  --radius-md:    8px;
  --radius-lg:    14px;
  --shadow:       0 4px 24px rgba(0,0,0,0.09);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Containers ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container--narrow {
  max-width: 720px;
}

/* ══════════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════════ */
.nav {
  background: var(--hero-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  text-decoration: none;
}
.logo-mark {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
}
.logo-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
}
.nav-cta {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s;
  border: 1px solid rgba(255,255,255,0.2);
}
.nav-cta:hover { background: rgba(255,255,255,0.25); }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--hero-bg) 0%, var(--hero-bg2) 60%, #3b82f6 100%);
  color: #fff;
  padding: 5rem 1.25rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  margin-bottom: 2rem;
}
.hero-sub strong { color: #fff; }

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 3rem;
}
.btn-hero {
  display: inline-block;
  padding: 1rem 2.2rem;
  background: #fff;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.15rem;
}
.stat-divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(255,255,255,0.2);
}

/* ══════════════════════════════════════════════════════════
   SECTION SHARED
══════════════════════════════════════════════════════════ */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}
.section-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 560px;
}

/* ══════════════════════════════════════════════════════════
   INFO SECTION (What is bank switching)
══════════════════════════════════════════════════════════ */
.info-section {
  background: var(--card-bg);
  padding: 5rem 0;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 720px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
}
.info-text p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.97rem;
  margin-bottom: 1rem;
}
.info-text p strong { color: var(--text); }
.btn-outline {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  margin-top: 0.5rem;
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* Bonus card visual */
.bonus-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.bonus-bank {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.bonus-amount {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 1.25rem;
  line-height: 1;
}
.bonus-req { display: flex; flex-direction: column; gap: 0.6rem; }
.req-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
}
.req-done svg { color: #4ade80; flex-shrink: 0; }
.req-pending {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
}
.req-pending svg { color: #fbbf24; flex-shrink: 0; }
.req-pending em { font-style: normal; font-weight: 600; color: #fde68a; }

/* ══════════════════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════════════════ */
.how-section {
  background: var(--bg);
  padding: 5rem 0;
}
.how-section .section-sub { margin-bottom: 3rem; }
.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
@media (min-width: 720px) {
  .steps { flex-direction: row; align-items: flex-start; }
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}
.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37,99,235,0.35);
}
.step-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.step-body p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}
.step-arrow {
  color: var(--subtle);
  padding: 1rem 0;
  display: flex;
  align-items: center;
}
@media (min-width: 720px) {
  .step-arrow { padding: 0; margin-top: 1.4rem; }
  .step-arrow svg { transform: none; }
}
@media (max-width: 719px) {
  .step-arrow svg { transform: rotate(90deg); }
}

/* ══════════════════════════════════════════════════════════
   FEATURES GRID
══════════════════════════════════════════════════════════ */
.features-section {
  background: var(--card-bg);
  padding: 5rem 0;
}
.features-section .section-sub { margin-bottom: 2.5rem; }
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 600px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.feature-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.15s, transform 0.15s;
}
.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.feature-icon-wrap {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.feature-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════════════════ */
.faq-section {
  background: var(--bg);
  padding: 5rem 0;
}
.faq-section .section-sub { margin-bottom: 2rem; }
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item summary {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-body {
  padding: 0 1.25rem 1.1rem;
  border-top: 1px solid var(--border);
}
.faq-body p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  padding-top: 0.9rem;
}

/* ══════════════════════════════════════════════════════════
   FORM SECTION
══════════════════════════════════════════════════════════ */
.form-section {
  background: linear-gradient(180deg, var(--bg) 0%, #dbeafe 100%);
  padding: 5rem 0 6rem;
}
.form-header {
  text-align: center;
  margin-bottom: 2rem;
}
.form-header .section-sub { margin: 0 auto; }

.form-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem 2rem;
}

/* Row layout for side-by-side fields */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.field input,
.field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  appearance: none;
}
.field input::placeholder { color: #9ca3af; }
.field input:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.field input.input-error { border-color: var(--error); }

.field-hint {
  font-size: 0.75rem;
  color: var(--subtle);
  margin-top: 0.3rem;
}

/* Country field — read only look */
.field input[readonly] {
  background: #f8fafc;
  color: var(--muted);
  cursor: default;
}

/* ── Mandate box ──────────────────────────────────────────── */
.mandate-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: 1.1rem;
}
.mandate-box p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.mandate-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}
.mandate-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.mandate-check span {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.5;
  font-weight: 500;
}

/* ── Section divider label in form ───────────────────────── */
.form-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.25rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Error message ────────────────────────────────────────── */
#card-errors {
  color: var(--error);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  min-height: 1.2em;
  font-weight: 500;
}

/* ── Submit button ────────────────────────────────────────── */
.btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s, transform 0.1s;
  text-align: center;
  letter-spacing: 0.01em;
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--subtle);
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* ── Trust badges ─────────────────────────────────────────── */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.77rem;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════════
   SUCCESS PAGE
══════════════════════════════════════════════════════════ */
.success-hero {
  background: linear-gradient(135deg, var(--hero-bg) 0%, var(--hero-bg2) 100%);
  padding: 3rem 1.25rem;
  text-align: center;
}
.success-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1.25rem 4rem;
  background: var(--bg);
}
.success-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 520px;
  text-align: center;
}
.success-icon {
  margin: 0 auto 1.25rem;
  width: 76px;
  height: 76px;
  background: #f0fdf4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-card h1 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}
.success-card .lead {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.97rem;
  margin-bottom: 1rem;
}
.success-info-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  margin-bottom: 1.75rem;
  text-align: left;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.success-info-box svg { flex-shrink: 0; margin-top: 2px; }
.success-info-box p { font-size: 0.83rem; color: #92400e; line-height: 1.55; }
.success-info-box strong { color: #78350f; }
.btn-secondary {
  display: inline-block;
  padding: 13px 28px;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.btn-secondary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.cancel-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--subtle);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
footer {
  background: var(--hero-bg);
  padding: 2rem 1.25rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.footer-inner .nav-logo { justify-content: center; margin-bottom: 0.9rem; }
.footer-legal {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .hero-stats { gap: 1rem; padding: 1rem 1.25rem; }
  .stat-divider { display: none; }
  .form-card { padding: 1.5rem 1rem; }
  .field-row { grid-template-columns: 1fr; }
  .info-section, .how-section, .features-section, .faq-section, .form-section { padding: 3.5rem 0; }
}
