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

:root {
  --blue: #1a6ef5;
  --blue-dark: #0d5ee0;
  --navy: #0f1c3f;
  --text: #1a2340;
  --muted: #5a6580;
  --border: #e4e9f2;
  --bg: #f5f7fa;
  --white: #fff;
  --green: #10b981;
  --red: #ef4444;
}

html { height: 100%; }
body { font-family: 'Inter', sans-serif; color: var(--text); -webkit-font-smoothing: antialiased; min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; }
a { text-decoration: none; color: inherit; }
button, input, select { font-family: inherit; }

/* ── NAV ── */
nav.site-nav {
  height: 64px; background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 32px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 8px 14px; border-radius: 8px; transition: color .15s, background .15s; }
.nav-link:hover { color: var(--navy); background: var(--bg); }
.nav-btn { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--white); background: var(--blue); padding: 9px 18px; border-radius: 9px; transition: background .15s, transform .15s; }
.nav-btn:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ── SPLIT LAYOUT ── */
.page-body { display: flex; flex: 1; min-height: 0; }

/* ── LEFT: FORM ── */
.form-panel {
  flex: 1; min-width: 0;
  padding: 36px 48px 56px;
  overflow-y: auto;
  background: var(--white);
}

/* breadcrumb header */
.form-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.form-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: #eef3fe; color: var(--blue);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px;
}
.form-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #34d399; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--muted);
  padding: 7px 12px; border-radius: 8px; border: 1.5px solid var(--border);
  transition: all .15s;
}
.back-link:hover { color: var(--navy); border-color: var(--navy); }
.back-link svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.form-title { font-size: 24px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; margin-bottom: 6px; }
.form-subtitle { font-size: 13.5px; color: var(--muted); margin-bottom: 28px; }
.form-subtitle a { color: var(--blue); font-weight: 600; }
.form-subtitle a:hover { text-decoration: underline; }

/* billing toggle */
.billing-section { margin-bottom: 28px; }
.billing-label { font-size: 12px; font-weight: 700; color: var(--navy); letter-spacing: .03em; margin-bottom: 10px; }
.billing-label span { color: var(--red); margin-left: 2px; }
.billing-options { display: flex; flex-direction: column; gap: 10px; }

.billing-opt {
  display: block; width: 100%;
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: 14px 16px; background: var(--white); cursor: pointer;
  text-align: left; transition: border-color .15s, background .15s, box-shadow .15s;
}
.billing-opt:hover { border-color: var(--blue); background: #f9fbff; }
.billing-opt.selected { border-color: var(--blue); background: linear-gradient(135deg, #eef3fe, #f6f9ff); }

.billing-opt-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.billing-opt-left { display: flex; align-items: center; gap: 10px; }
.billing-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: border-color .15s; }
.billing-opt.selected .billing-radio, .billing-opt:hover .billing-radio { border-color: var(--blue); }
.billing-radio-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); opacity: 0; transition: opacity .15s; }
.billing-opt.selected .billing-radio-dot { opacity: 1; }

.billing-opt-name { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.billing-opt-price { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 800; color: var(--navy); }
.billing-opt-save { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #f0fdf4; color: var(--green); padding: 3px 9px; border-radius: 20px; }

/* hidden radio inputs */
.billing-radio-input { position: absolute; opacity: 0; pointer-events: none; }

/* form sections */
.form-section { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.form-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.section-num { width: 26px; height: 26px; border-radius: 8px; background: var(--blue); color: var(--white); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.section-title { font-size: 14px; font-weight: 800; color: var(--navy); letter-spacing: -.005em; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 700; color: var(--navy); letter-spacing: .03em; }
.field label .req { color: var(--red); margin-left: 1px; }
.field label .opt { color: var(--muted); font-weight: 500; font-size: 11px; margin-left: 4px; }

.field input, .field select {
  padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 13.5px; color: var(--text); background: var(--white); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,110,245,.1); }
.field input::placeholder { color: #b0b8cc; }
.field input.is-invalid, .field select.is-invalid { border-color: var(--red); }
.field input.is-invalid:focus, .field select.is-invalid:focus { box-shadow: 0 0 0 3px rgba(239,68,68,.1); }
.field-error { font-size: 12px; color: var(--red); }

.select-wrap { position: relative; }
.select-wrap select { width: 100%; appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; }
.select-wrap::after {
  content: ''; position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='2 5 7 10 12 5' stroke='%235a6580' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;
  pointer-events: none;
}

/* password toggle */
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 44px; }
.pass-eye { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #b0b8cc; display: flex; align-items: center; transition: color .15s; }
.pass-eye:hover { color: var(--muted); }
.pass-eye svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* checkbox fields */
.check-field { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.check-field:hover { border-color: var(--blue); background: #f9fbff; }
.check-field.is-invalid { border-color: var(--red); }
.check-field input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--blue); margin-top: 1px; flex-shrink: 0; cursor: pointer; }
.check-field-text { font-size: 13px; color: var(--text); line-height: 1.55; }
.check-field-text a { color: var(--blue); font-weight: 600; }

/* recaptcha */
.recaptcha-wrap { margin-bottom: 24px; }

/* submit */
.btn-payment {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px; border-radius: 12px; margin-top: 28px;
  background: var(--blue); color: var(--white); border: none;
  font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 6px 20px rgba(26,110,245,.35);
}
.btn-payment:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(26,110,245,.45); }
.btn-payment svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.form-legal-note { font-size: 11.5px; color: #b0b8cc; text-align: center; margin-top: 14px; line-height: 1.6; }
.form-legal-note a { color: #8a94aa; }

/* ── RIGHT: PLAN SUMMARY ── */
.summary-panel {
  flex: 0 0 340px;
  background: linear-gradient(160deg, var(--navy) 0%, #162d6e 55%, #1a3a8a 100%);
  position: sticky; top: 64px; height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 40px 32px;
  display: flex; flex-direction: column;
}
.summary-panel::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 50px 50px; pointer-events: none;
}
.summary-panel::after {
  content: ''; position: absolute; top: -100px; right: -80px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,110,245,.28) 0%, transparent 70%);
  pointer-events: none;
}
.sum-inner { position: relative; z-index: 1; }

.sum-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(26,110,245,.18); border: 1px solid rgba(26,110,245,.35);
  color: #7fb5ff; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 20px;
}
.sum-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 6px #34d399; }

.sum-plan-name { font-size: 26px; font-weight: 800; color: var(--white); letter-spacing: -.02em; margin-bottom: 6px; }
.sum-plan-desc { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.65; margin-bottom: 28px; }

/* price display */
.sum-price-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 20px; margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.sum-price-label { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 8px; }
.sum-price-amount { font-size: 38px; font-weight: 800; color: var(--white); letter-spacing: -.03em; line-height: 1; font-family: 'JetBrains Mono', monospace; }
.sum-price-amount sup { font-size: 18px; font-weight: 700; vertical-align: super; }
.sum-price-period { font-size: 13px; color: rgba(255,255,255,.45); margin-top: 5px; }
.sum-price-note { font-size: 11.5px; color: rgba(255,255,255,.35); margin-top: 8px; }

/* feature list */
.sum-features { display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; }
.sum-feature { display: flex; align-items: flex-start; gap: 10px; }
.sum-feature-icon { width: 20px; height: 20px; border-radius: 6px; background: rgba(26,110,245,.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.sum-feature-icon svg { width: 11px; height: 11px; stroke: #7fb5ff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sum-feature-text { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.5; }
.sum-feature-text strong { color: var(--white); font-weight: 700; }

/* security note */
.sum-security {
  margin-top: auto;
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  border-radius: 11px; padding: 14px 15px;
  font-size: 12px; color: rgba(255,255,255,.4); line-height: 1.6;
}
.sum-security svg { width: 15px; height: 15px; stroke: rgba(255,255,255,.5); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 1px; }

/* ── SLIM FOOTER ── */
.site-footer-slim { background: var(--navy); padding: 24px 32px; flex-shrink: 0; }
.footer-links-row { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-links-row a { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.4); padding: 5px 11px; border-radius: 7px; border: 1px solid rgba(255,255,255,.08); transition: color .15s, background .15s; }
.footer-links-row a:hover { color: var(--white); background: rgba(255,255,255,.05); }
.footer-copy-slim { text-align: center; font-size: 12px; color: rgba(255,255,255,.28); line-height: 1.7; }
.footer-copy-slim a { color: rgba(255,255,255,.35); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .summary-panel { display: none; }
  .form-panel { padding: 28px 24px 48px; }
}
@media (max-width: 600px) {
  nav.site-nav { padding: 0 16px; }
  .nav-link { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: 1; }
  .form-title { font-size: 20px; }
}
