/* ── TOKENS ────────────────────────────────────────────────── */
:root {
  --base:        #F8F7F4;
  --white:       #FFFFFF;
  --border:      #E8E7E3;
  --accent:      #1A54FF;
  --accent-bg:   #EEF2FF;
  --accent-dark: #1244E0;
  --text:        #111111;
  --text-mid:    #555555;
  --text-muted:  #999999;
  --success:     #16A34A;
  --success-bg:  #F0FDF4;
  --success-border: #BBF7D0;
  --danger:      #DC2626;
  --danger-bg:   #FEF2F2;
  --danger-border: #FECACA;
  --warn-bg:     #FFFBEB;
  --warn-border: #FDE68A;
  --warn:        #D97706;
  --radius:      12px;
  --radius-sm:   8px;
  --radius-pill: 999px;
  --shadow:      0 1px 3px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.05);
  --shadow-md:   0 4px 20px rgba(0,0,0,.09);
  --t:           all 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--base);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── NAV ───────────────────────────────────────────────────── */
.co-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,247,244,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.co-nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 28px;
  height: 72px; display: flex; align-items: center;
  justify-content: space-between;
}
.co-nav-logo { display: flex; align-items: center; text-decoration: none; }
.co-nav-logo svg { height: 54px; width: auto; }
.co-nav-secure {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--text-mid);
}
.co-nav-secure svg { color: var(--success); }

/* ── LAYOUT ────────────────────────────────────────────────── */
.co-layout {
  max-width: 1120px; margin: 0 auto; padding: 40px 28px 80px;
  display: grid; grid-template-columns: 340px 1fr; gap: 36px;
  align-items: start;
}

/* ── SIDEBAR ───────────────────────────────────────────────── */
.co-sidebar { position: sticky; top: 96px; }
.co-summary {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.co-service-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-bg); color: var(--accent);
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 5px 12px;
  border-radius: var(--radius-pill); margin-bottom: 16px;
}
.co-service-name {
  font-size: 18px; font-weight: 800; margin-bottom: 4px;
}
.co-service-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.co-price-row {
  display: flex; align-items: baseline; gap: 6px;
  padding: 16px 0; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); margin-bottom: 20px;
}
.co-price { font-size: 32px; font-weight: 900; color: var(--accent); letter-spacing: -.03em; }
.co-price-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.co-includes { display: flex; flex-direction: column; gap: 10px; }
.co-include {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 500;
}
.co-include-icon {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--success-bg); border: 1px solid var(--success-border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.co-include-icon svg { stroke: var(--success); }
.co-trust {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow);
}
.co-trust-title { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.co-trust-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-mid); margin-bottom: 10px; }
.co-trust-item:last-child { margin-bottom: 0; }
.co-trust-item svg { flex-shrink: 0; }

/* ── MAIN FORM AREA ────────────────────────────────────────── */
.co-main { min-width: 0; }

/* Progress */
.co-progress {
  display: flex; align-items: center; margin-bottom: 36px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 24px;
  box-shadow: var(--shadow);
}
.co-prog-step {
  display: flex; align-items: center; gap: 10px;
  flex: 1; position: relative;
}
.co-prog-step:not(:last-child)::after {
  content: ''; position: absolute; left: calc(50% + 20px); right: -50%;
  top: 50%; height: 1px; background: var(--border); z-index: 0;
}
.co-prog-step.done::after { background: var(--accent); }
.co-prog-num {
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--border); color: var(--text-muted);
  background: var(--white); z-index: 1; flex-shrink: 0;
  transition: var(--t);
}
.co-prog-step.active .co-prog-num {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.co-prog-step.done .co-prog-num {
  background: var(--success); border-color: var(--success); color: #fff;
}
.co-prog-label {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  white-space: nowrap; transition: var(--t);
}
.co-prog-step.active .co-prog-label { color: var(--accent); }
.co-prog-step.done .co-prog-label { color: var(--success); }

/* Step panels */
.co-panel { display: none; animation: fadeUp .25s ease; }
.co-panel.active { display: block; }
@keyframes fadeUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

.co-panel-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); margin-bottom: 16px;
}
.co-panel-title { font-size: 22px; font-weight: 800; letter-spacing: -.025em; margin-bottom: 6px; }
.co-panel-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }

/* Section within form */
.co-section { margin-bottom: 28px; }
.co-section-title {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 12px;
}

/* Radio cards */
.co-radio-group { display: flex; flex-direction: column; gap: 8px; }
.co-radio-group.inline { flex-direction: row; flex-wrap: wrap; }
.co-radio-label {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--white);
  cursor: pointer; transition: var(--t); user-select: none;
  font-size: 14px; font-weight: 500;
}
.co-radio-label:hover { border-color: rgba(26,84,255,.35); background: var(--accent-bg); }
.co-radio-label input[type="radio"] { display: none; }
.co-radio-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t);
}
.co-radio-dot::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; transform: scale(0); transition: transform .15s ease;
}
.co-radio-label:has(input:checked) {
  border-color: var(--accent); background: var(--accent-bg);
}
.co-radio-label:has(input:checked) .co-radio-dot {
  background: var(--accent); border-color: var(--accent);
}
.co-radio-label:has(input:checked) .co-radio-dot::after { transform: scale(1); }
.co-radio-icon { font-size: 18px; flex-shrink: 0; }
.co-radio-text { flex: 1; }
.co-radio-text strong { display: block; font-size: 14px; font-weight: 600; }
.co-radio-text span { font-size: 12px; color: var(--text-muted); }

/* Collapsible question */
.co-question {
  overflow: hidden; max-height: 0;
  transition: max-height .4s cubic-bezier(.4,0,.2,1), opacity .3s ease, margin .3s ease;
  opacity: 0; margin-bottom: 0;
}
.co-question.visible { max-height: 500px; opacity: 1; margin-bottom: 28px; }

/* Alert states */
.co-alert {
  border-radius: var(--radius-sm); padding: 16px 18px;
  font-size: 14px; font-weight: 500; display: none;
  align-items: flex-start; gap: 12px; margin-bottom: 8px;
}
.co-alert.show { display: flex; }
.co-alert-icon { flex-shrink: 0; margin-top: 1px; }
.co-alert-body strong { display: block; font-weight: 700; margin-bottom: 3px; }
.co-alert-body p { font-size: 13px; font-weight: 400; margin: 0; }
.co-alert.danger { background: var(--danger-bg); border: 1px solid var(--danger-border); color: var(--danger); }
.co-alert.warn { background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn); }
.co-alert.success { background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success); }

/* Service selector cards */
.co-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.co-svc-card {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 16px; cursor: pointer; transition: var(--t);
  text-align: center; position: relative; background: var(--white);
}
.co-svc-card:hover { border-color: rgba(26,84,255,.4); }
.co-svc-card.selected { border-color: var(--accent); background: var(--accent-bg); }
.co-svc-card input { display: none; }
.co-svc-card .co-svc-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.co-svc-card.selected .co-svc-badge { color: var(--accent-dark); }
.co-svc-price { font-size: 20px; font-weight: 900; letter-spacing: -.03em; color: var(--text); }
.co-svc-name { font-size: 13px; font-weight: 600; color: var(--text-mid); margin-top: 4px; }
.co-svc-best {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: var(--radius-pill);
}

/* Step 2 — Documents */
.co-doc-list { display: flex; flex-direction: column; gap: 12px; }
.co-doc-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--white);
  transition: var(--t);
}
.co-doc-item.uploaded { border-color: var(--success-border); background: var(--success-bg); }
.co-doc-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-bg); color: var(--accent);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.co-doc-item.uploaded .co-doc-num { background: var(--success-bg); color: var(--success); }
.co-doc-info { flex: 1; min-width: 0; }
.co-doc-name { font-size: 14px; font-weight: 600; }
.co-doc-hint { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.co-doc-required {
  font-size: 10px; font-weight: 700; letter-spacing: .05em;
  color: var(--danger); text-transform: uppercase;
}
.co-doc-upload {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--accent);
  cursor: pointer; white-space: nowrap; margin-top: 8px;
}
.co-doc-upload:hover { text-decoration: underline; }

/* e-Photo special */
.co-ephoto-box {
  background: #FFFBEB; border: 1.5px solid #FDE68A;
  border-radius: var(--radius); padding: 20px; margin-bottom: 12px;
}
.co-ephoto-label {
  font-size: 13px; font-weight: 700; color: var(--warn); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.co-ephoto-input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 15px; font-weight: 600;
  font-family: 'Inter', monospace; letter-spacing: .05em;
  background: var(--white); color: var(--text);
  transition: var(--t); outline: none;
}
.co-ephoto-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,84,255,.12); }
.co-ephoto-hint { font-size: 12px; color: var(--warn); margin-top: 8px; }

/* Download link */
.co-download {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--accent);
  text-decoration: none; margin-top: 8px;
}
.co-download:hover { text-decoration: underline; }

/* Step 3 — Contact fields */
.co-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.co-field { display: flex; flex-direction: column; gap: 6px; }
.co-field.full { grid-column: 1 / -1; }
.co-field label { font-size: 13px; font-weight: 600; }
.co-field label span { color: var(--danger); }
.co-field input, .co-field select {
  padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px;
  background: var(--white); color: var(--text);
  font-family: 'Inter', sans-serif;
  transition: var(--t); outline: none;
}
.co-field input:focus, .co-field select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,84,255,.12);
}
.co-field input::placeholder { color: var(--text-muted); }
.co-field-hint { font-size: 12px; color: var(--text-muted); }

/* Step 4 — Payment */
.co-pay-recap {
  background: var(--base); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 24px;
}
.co-pay-line { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-bottom: 8px; }
.co-pay-line:last-child { margin-bottom: 0; font-weight: 700; font-size: 16px; padding-top: 8px; border-top: 1px solid var(--border); }
.co-card-field {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 12px; background: var(--white);
  display: flex; align-items: center; gap: 12px;
}
.co-card-placeholder { font-size: 14px; color: var(--text-muted); flex: 1; }
.co-card-icons { display: flex; gap: 6px; }
.co-card-icons img { height: 22px; border-radius: 3px; border: 1px solid var(--border); }
.co-card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-stripe-badge {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; color: var(--text-muted); margin-top: 16px;
}

/* Nav buttons */
.co-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 700;
  cursor: pointer; border: none; text-decoration: none;
  transition: var(--t); font-family: 'Inter', sans-serif;
}
.btn-blue { background: var(--accent); color: #fff; }
.btn-blue:hover:not(:disabled) { background: var(--accent-dark); transform: translateY(-1px); }
.btn-blue:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--text-mid); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: #bbb; background: var(--white); }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* Separator */
.co-separator { height: 1px; background: var(--border); margin: 24px 0; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media(max-width: 860px) {
  .co-layout { grid-template-columns: 1fr; }
  .co-sidebar { position: static; order: -1; }
  .co-summary { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
  .co-summary > * { flex-shrink: 0; }
  .co-trust { display: none; }
  .co-services-grid { grid-template-columns: 1fr; }
  .co-form-grid { grid-template-columns: 1fr; }
  .co-progress { overflow-x: auto; gap: 4px; }
  .co-prog-label { display: none; }
}
