  :root {
    --bg: #f0f4f9;
    --surface: #ffffff;
    --surface2: #e8eef6;
    --accent: #00448a;
    --accent2: #0057b0;
    --accent3: #6e9ed4;
    --accent-light: #d6e6f5;
    --text: #0d1e30;
    --text-muted: #5a7494;
    --border: #c2d4e8;
    --border-focus: #0057b0;
    --error: #c0392b;
    --success: #1a7a42;
    --shadow: 0 2px 12px rgba(0,68,138,0.08);
    --shadow-lg: 0 8px 40px rgba(0,68,138,0.14);
    --radius: 12px;
    --radius-sm: 7px;
    --font-display: 'Saira', sans-serif;
    --font-title: 'Saira', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --header-h: 66px;   /* logo 38px + padding 14px top + 14px bottom */
    --steps-h: 51px;    /* steps bar height */
    --sticky-offset: calc(var(--header-h) + var(--steps-h));
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
  }

  /* ── Header ── */
  .header {
    background: var(--accent);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  }
  .header-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
  .header-divider {
    width: 1px;
    height: 32px;
    background: rgba(110,158,212,0.5);
    flex-shrink: 0;
  }
  .header-text p {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--accent3);
    font-weight: 300;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
  }

  /* ── Hero ── */
  .hero {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    padding: 56px 32px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(110,158,212,0.18) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(110,158,212,0.12) 0%, transparent 40%);
    pointer-events: none;
  }
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(110,158,212,0.2);
    border: 1px solid rgba(110,158,212,0.4);
    color: var(--accent3);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
    font-family: var(--font-body);
  }
  .hero-badge svg { color: var(--accent3); flex-shrink: 0; }
  .hero h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 16px;
  }
  .hero p {
    color: rgba(255,255,255,0.78);
    font-size: 15px;
    max-width: 520px;
    margin: 0 auto;
    font-weight: 300;
    font-family: var(--font-body);
  }

  /* ── Progress Steps ── */
  .steps-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--header-h);
    z-index: 90;
    box-shadow: var(--shadow);
  }
  .steps-bar::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, var(--surface));
    pointer-events: none;
    z-index: 1;
  }
  .steps-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .steps-inner::-webkit-scrollbar { display: none; }
  .step-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 12px 12px 0;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
  }
  .step-item:first-child { padding-left: 0; }
  .step-item.active { border-bottom-color: var(--accent); }
  .step-item.done .step-num { background: var(--success); color: #fff; }
  .step-num {
    width: 22px; height: 22px;
    background: var(--surface2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.2s;
    flex-shrink: 0;
  }
  .step-item.active .step-num { background: var(--accent); color: #fff; }
  .step-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
    font-family: var(--font-body);
  }
  .step-item.active .step-label { color: var(--accent); font-weight: 600; }
  .step-divider { margin: auto 2px; color: var(--border); font-size: 10px; flex-shrink: 0; }

  /* ── Main container ── */
  .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 32px 80px;
  }

  /* ── Section card ── */
  .section-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 28px;
    overflow: hidden;
    animation: fadeUp 0.4s ease both;
    scroll-margin-top: calc(var(--header-h) + var(--steps-h) + 16px);
  }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .section-header {
    padding: 20px 28px;
    background: linear-gradient(to right, var(--surface2), var(--surface));
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .section-icon {
    width: 36px; height: 36px;
    background: var(--accent);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #fff;
  }
  .section-icon svg { display: block; }
  .section-header h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.2px;
  }
  .section-header p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
    font-family: var(--font-body);
  }
  .section-body { padding: 28px; }

  /* ── Grid ── */
  .grid { display: grid; gap: 20px; }
  .grid > * { min-width: 0; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .col-span-2 { grid-column: span 2; }
  .col-span-3 { grid-column: span 3; }
  @media (max-width: 640px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .col-span-2, .col-span-3 { grid-column: span 1; }
  }

  /* ── Form fields ── */
  .field { display: flex; flex-direction: column; gap: 6px; }
  .field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.3px;
    text-transform: uppercase;
  }
  .field label .req { color: var(--error); margin-left: 3px; }
  .qsms-text strong .req,
  .compliance-row-text .req { color: var(--error); margin-left: 3px; }
  .field label .optional {
    color: var(--text-muted);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
  }
  .field input,
  .field select,
  .field textarea {
    font-family: var(--font-body);
    font-size: 14px;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
    -webkit-appearance: none;
  }
  .field input::placeholder { color: var(--text-muted); font-size: 13px; }
  .field input:focus,
  .field select:focus,
  .field textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(0,68,138,0.12);
  }
  .field input.error, .field textarea.error { border-color: var(--error); }
  .field .error-msg { font-size: 11px; color: var(--error); display: none; }
  .field input.error + .error-msg { display: block; }
  .field select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7a6e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
  }
  .field textarea { resize: vertical; min-height: 80px; }
  .field .hint { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

  /* ── Radio/Checkbox groups ── */
  .radio-group, .check-group { display: flex; flex-wrap: wrap; gap: 10px; }
  .radio-option, .check-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.15s;
    user-select: none;
    background: var(--surface);
  }
  .radio-option:hover, .check-option:hover {
    border-color: var(--accent2);
    background: rgba(0,68,138,0.04);
  }
  .radio-option input, .check-option input { display: none; }
  .radio-option.selected, .check-option.selected {
    border-color: var(--accent2);
    background: rgba(0,68,138,0.07);
    color: var(--accent);
  }
  .radio-dot {
    width: 14px; height: 14px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
  }
  .radio-option.selected .radio-dot {
    border-color: var(--accent2);
    background: var(--accent2);
    box-shadow: inset 0 0 0 2px #fff;
  }
  .radio-group.error .radio-option { border-color: var(--error); }

  /* ── File upload ── */
  .upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--surface2);
    position: relative;
  }
  .upload-zone:hover, .upload-zone.dragover {
    border-color: var(--accent2);
    background: rgba(0,68,138,0.05);
  }
  .upload-zone.error { border-color: var(--error); background: rgba(192,57,43,0.05); }
  .upload-zone input[type="file"] {
    position: absolute; inset: 0;
    opacity: 0; cursor: pointer; width: 100%; height: 100%;
  }
  .upload-icon { display: flex; justify-content: center; margin-bottom: 8px; color: var(--accent2); opacity: 0.7; }
  .upload-text { font-size: 13px; font-weight: 500; color: var(--text); }
  .upload-sub { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
  .upload-tag {
    display: inline-block;
    background: rgba(0,68,138,0.10);
    color: var(--accent2);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
    margin: 4px 2px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .files-list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
  .file-item {
    display: flex; align-items: center; gap: 10px;
    min-width: 0;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 12px;
  }
  .file-item-icon { font-size: 16px; flex-shrink: 0; }
  .file-item-name { flex: 1; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .file-item-size { color: var(--text-muted); flex-shrink: 0; }
  .file-item-remove {
    width: 20px; height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
  }
  .file-item-remove:hover { background: rgba(192,57,43,0.1); color: var(--error); }

  /* ── Divider ── */
  .divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
  }

  /* ── Captcha box ── */
  .captcha-wrap {
    background: var(--surface2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .captcha-icon { font-size: 32px; flex-shrink: 0; }
  .captcha-text h4 { font-size: 14px; font-weight: 600; color: var(--accent); }
  .captcha-text p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

  /* ── Submit area ── */
  .submit-area {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 32px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
  }
  .submit-note { font-size: 12px; color: var(--text-muted); max-width: 460px; line-height: 1.7; font-family: var(--font-body); }
  .submit-note a { color: var(--accent2); text-decoration: none; }
  .submit-note a:hover { text-decoration: underline; }
  .btn-submit {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    border: none;
    padding: 14px 36px;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(0,68,138,0.3);
    white-space: nowrap;
    letter-spacing: 0.2px;
  }
  .btn-submit:hover {
    background: var(--accent2);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,68,138,0.38);
  }
  .btn-submit:active { transform: translateY(0); }
  .btn-submit svg { width: 18px; height: 18px; }
  .btn-submit.loading { opacity: 0.7; pointer-events: none; }

  /* ── Toast ── */
  .toast {
    position: fixed;
    bottom: 32px; right: 32px;
    background: var(--accent);
    color: #fff;
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 500;
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
    z-index: 999;
    max-width: 360px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
  }
  .toast.show { transform: translateY(0); opacity: 1; }
  .toast.error { background: var(--error); }
  .toast-icon { font-size: 20px; flex-shrink: 0; }

  /* ── Required notice ── */
  .required-notice {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--text-muted);
    margin-bottom: 20px;
  }
  .required-notice span { color: var(--error); font-weight: 700; }

  /* ── Info chip ── */
  .info-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(0,68,138,0.07);
    border: 1px solid rgba(0,68,138,0.18);
    color: var(--accent2);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
    font-family: var(--font-body);
  }
  .info-chip svg { flex-shrink: 0; color: var(--accent2); }

  /* ── Custom CAPTCHA ── */
  .captcha-block {
    background: var(--surface2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .captcha-header {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .captcha-header-icon {
    width: 36px; height: 36px;
    background: var(--accent);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #fff;
  }
  .captcha-header-text h4 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
  }
  .captcha-header-text p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
  }
  .captcha-challenge {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
  }
  .captcha-equation {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    flex-shrink: 0;
  }
  .captcha-num {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -1px;
    line-height: 1;
    user-select: none;
  }
  .captcha-op {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--accent2);
    line-height: 1;
    user-select: none;
  }
  .captcha-eq {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1;
    user-select: none;
  }
  .captcha-answer-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 160px;
  }
  .captcha-input {
    font-family: var(--font-display) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--accent) !important;
    text-align: center;
    width: 90px !important;
    padding: 10px 8px !important;
    letter-spacing: 2px;
  }
  .captcha-input.ok  { border-color: var(--success) !important; background: rgba(26,122,66,0.06) !important; }
  .captcha-input.err { border-color: var(--error)   !important; background: rgba(192,57,43,0.06) !important; }
  .captcha-refresh {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-family: var(--font-body);
  }
  .captcha-refresh:hover { border-color: var(--accent2); color: var(--accent2); }
  .captcha-feedback {
    font-size: 12px;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
  }
  .captcha-feedback.ok  { display: flex; background: rgba(26,122,66,0.08);  color: #155a32; border: 1px solid rgba(26,122,66,0.22); }
  .captcha-feedback.err { display: flex; background: rgba(192,57,43,0.08); color: var(--error); border: 1px solid rgba(192,57,43,0.2); }
  .captcha-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(0,68,138,0.07);
    border: 1px solid rgba(0,68,138,0.15);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-top: 2px;
    align-self: flex-start;
  }
  .captcha-badge svg { flex-shrink: 0; color: var(--accent2); }
  /* Honeypot — visually hidden from humans, bots will fill it */
  .hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    tab-index: -1;
  }
  .cnpj-lookup-wrap { margin-bottom: 4px; }
  .cnpj-input-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
  }
  .cnpj-input-row input {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
  }
  .btn-lookup {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .btn-lookup:hover { background: var(--accent2); transform: translateY(-1px); }
  .btn-lookup:active { transform: translateY(0); }
  .btn-lookup:disabled { opacity: 0.6; pointer-events: none; }

  @keyframes spin { to { transform: rotate(360deg); } }
  .spinner { animation: spin 0.8s linear infinite; }

  /* Status banner */
  .cnpj-status {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeUp 0.3s ease;
  }
  .cnpj-status.loading { background: rgba(0,68,138,0.06); color: var(--accent2); border: 1px solid rgba(0,68,138,0.18); }
  .cnpj-status.success { background: rgba(26,122,66,0.07); color: #155a32; border: 1px solid rgba(26,122,66,0.22); }
  .cnpj-status.error   { background: rgba(192,57,43,0.07); color: var(--error); border: 1px solid rgba(192,57,43,0.2); }

  /* Data panel */
  .cnpj-data-panel {
    margin-top: 20px;
    animation: fadeUp 0.4s ease;
  }
  .cnpj-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  .cnpj-panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(26,122,66,0.09);
    border: 1px solid rgba(26,122,66,0.28);
    color: #155a32;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 100px;
    letter-spacing: 0.3px;
  }
  .cnpj-panel-badge svg { color: #155a32; flex-shrink: 0; }
  .btn-clear-cnpj {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
  }
  .btn-clear-cnpj:hover { border-color: var(--error); color: var(--error); }

  /* Read-only fields */
  .readonly-field {
    background: var(--surface2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
    cursor: default !important;
    font-weight: 500;
  }
  .readonly-field:focus { box-shadow: none !important; border-color: var(--border) !important; }

  /* Sócios */
  .socios-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
  .socio-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
  }
  .socio-avatar {
    width: 36px; height: 36px;
    background: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
    font-family: var(--font-display);
  }
  .socio-info { flex: 1; min-width: 0; }
  .socio-name { font-size: 14px; font-weight: 600; color: var(--text); }
  .socio-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
  .socio-qual { display: inline-block; background: rgba(0,68,138,0.09); color: var(--accent2); font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 100px; margin-top: 5px; text-transform: uppercase; letter-spacing: 0.4px; }

  @media (max-width: 640px) {
    .container { padding: 24px 16px 60px; }
    .section-body { padding: 20px; }
    .section-header { padding: 16px 20px; }
    .submit-area { flex-direction: column; }
    .btn-submit { width: 100%; justify-content: center; }
    .header-inner { padding: 14px 20px; }
    .hero { padding: 36px 20px 32px; }
    .cnpj-input-row { flex-direction: column; }
    .btn-lookup { width: 100%; justify-content: center; padding: 12px; }
  }

  /* ── Declaração checkbox ── */
  .decl-wrap {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface2);
    transition: border-color 0.2s, background 0.2s;
  }
  .decl-wrap:has(input:checked) {
    border-color: var(--accent2);
    background: rgba(0,68,138,0.06);
  }
  .decl-wrap input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
  }
  .decl-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text);
    font-family: var(--font-body);
    user-select: none;
  }
  .decl-box {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    transition: all 0.15s;
    flex-shrink: 0;
  }
  .decl-wrap:has(input:checked) .decl-box {
    background: var(--accent2);
    border-color: var(--accent2);
  }
  .decl-wrap:has(input:checked) .decl-box svg { display: block !important; }
  .decl-wrap:has(input:checked) .decl-box svg { stroke: #fff; }

  /* ── Certificações ── */
  .cert-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
  .cert-card {
    background: var(--surface2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    animation: fadeUp 0.3s ease;
  }
  .cert-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(to right, var(--surface2), var(--surface));
    border-bottom: 1px solid var(--border);
    gap: 10px;
  }
  .cert-card-left { display: flex; align-items: center; gap: 10px; }
  .cert-card-num {
    width: 22px; height: 22px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-display);
  }
  .cert-card-title {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
  }
  .btn-remove-cert {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font-body);
  }
  .btn-remove-cert:hover { border-color: var(--error); color: var(--error); }
  .cert-card-body {
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  @media (max-width: 640px) { .cert-card-body { grid-template-columns: 1fr; } }
  .btn-add-cert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    background: none;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent2);
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
  }
  .btn-add-cert:hover { border-color: var(--accent2); background: rgba(0,68,138,0.04); }

  /* ── QSMS ── */
  .qsms-item { display: flex; flex-direction: column; gap: 0; }
  .qsms-question {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 4px 0 16px;
  }
  .qsms-num {
    width: 28px; height: 28px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
  }
  .qsms-text { display: flex; flex-direction: column; gap: 3px; flex: 1; }
  .qsms-text strong { font-size: 14px; font-weight: 600; color: var(--text); }
  .qsms-text span { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
  .qsms-toggle { display: flex; gap: 6px; flex-shrink: 0; align-self: flex-start; margin-top: 2px; }
  .qsms-btn {
    padding: 7px 18px;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
  }
  .qsms-btn:hover { border-color: var(--accent2); color: var(--accent2); }
  .qsms-btn.active-sim { background: rgba(26,122,66,0.1); border-color: #1a7a42; color: #1a7a42; }
  .qsms-btn.active-nao { background: rgba(192,57,43,0.08); border-color: var(--error); color: var(--error); }
  .qsms-toggle.error .qsms-btn { border-color: var(--error); }
  .qsms-evidence {
    margin-left: 42px;
    margin-bottom: 4px;
    animation: fadeUp 0.3s ease;
  }
  @media (max-width: 640px) {
    .qsms-question { flex-wrap: wrap; }
    .qsms-toggle { width: 100%; margin-left: 42px; }
    .qsms-evidence { margin-left: 0; }
  }

  /* ── Compliance (perguntas binárias com pergunta condicional) ── */
  .compliance-block + .compliance-block { margin-top: 22px; }
  .compliance-block-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
  .compliance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 10px;
  }
  .compliance-row:nth-child(odd) { background: rgba(232,238,246,0.45); }
  .compliance-row-text { font-size: 13px; color: var(--text); line-height: 1.5; flex: 1; }
  .compliance-followup { margin-top: 12px; animation: fadeUp 0.3s ease; }

  /* ── Modal de confirmação pós-cadastro (FT-007-A) ── */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13,30,48,0.55);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.2s ease;
  }
  .modal-box {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 40px 36px 32px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    animation: scaleIn 0.25s ease;
  }
  .modal-icon { display: flex; justify-content: center; margin-bottom: 20px; color: var(--success); }
  .modal-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
  .modal-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
  .modal-protocolo-block {
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 16px;
  }
  .modal-protocolo-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 6px;
  }
  .modal-protocolo-value {
    display: block;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.03em;
  }
  .modal-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(192,57,43,0.07);
    border: 1px solid rgba(192,57,43,0.2);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #922b21;
    text-align: left;
    line-height: 1.5;
  }
  .modal-status-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    padding: 11px 24px;
    border-radius: 100px;
    margin-bottom: 16px;
    transition: background 0.15s;
  }
  .modal-status-link:hover { background: var(--accent2); }
  .btn-modal-fechar {
    display: block;
    width: 100%;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    padding: 10px 24px;
    cursor: pointer;
    transition: all 0.15s;
  }
  .btn-modal-fechar:hover { border-color: var(--text-muted); color: var(--text); }
  @keyframes scaleIn {
    from { transform: scale(0.93); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
