  :root {
    --bg: #060608;
    --surface: #0e0e12;
    --surface2: #16161c;
    --border: rgba(0, 170, 255, 0.12);
    --border-hover: rgba(0, 170, 255, 0.35);
    --blue: #00aaff;
    --blue-dim: rgba(0, 170, 255, 0.08);
    --blue-glow: rgba(0, 170, 255, 0.25);
    --blue-glow-strong: rgba(0, 170, 255, 0.45);
    --text: #f0f0f5;
    --text-muted: #7a7a8a;
    --text-dim: #3a3a4a;
    --green: #25D366;
    --red: #ff4d6a;
    --radius: 14px;
    --radius-sm: 8px;
  }

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

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    position: relative;
    overflow-x: hidden;
  }

  body::before {
    content: '';
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,170,255,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
  }

  body::after {
    content: '';
    position: fixed;
    bottom: -200px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,100,200,0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
  }

  .wrapper {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.6s ease both;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .header { text-align: center; margin-bottom: 28px; }

  .logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-dim);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 16px;
    margin-bottom: 16px;
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue);
  }

  .logo-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--blue);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--blue);
    animation: pulse 2s ease infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--blue); }
    50% { opacity: 0.5; box-shadow: 0 0 4px var(--blue); }
  }

  .header h1 {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
  }

  .header h1 span { color: var(--blue); text-shadow: 0 0 20px var(--blue-glow-strong); }

  .header p { margin-top: 8px; font-size: 14px; color: var(--text-muted); font-weight: 300; }

  .counter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
  }

  .counter-bar strong { color: var(--blue); font-weight: 600; }
  .counter-bar svg { width: 13px; height: 13px; fill: var(--blue); opacity: 0.7; }

  .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 20px 60px rgba(0,0,0,0.5), 0 0 40px var(--blue-glow);
    transition: box-shadow 0.4s ease;
  }

  .card:hover {
    box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 20px 60px rgba(0,0,0,0.6), 0 0 60px var(--blue-glow-strong);
  }

  .form-group { margin-bottom: 16px; }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
  }

  label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 7px;
  }

  input, select, textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    appearance: none;
    -webkit-appearance: none;
  }

  textarea { resize: vertical; min-height: 60px; line-height: 1.5; }

  select {
    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='%237a7a8a' 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;
    cursor: pointer;
  }

  input::placeholder, textarea::placeholder { color: var(--text-dim); }

  input:focus, select:focus, textarea:focus {
    border-color: var(--blue);
    background: #12121a;
    box-shadow: 0 0 0 3px rgba(0,170,255,0.1);
  }

  input.error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,77,106,0.1); }

  .perguntas-wrap { margin-bottom: 16px; }

  .pergunta-bloco {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 8px;
  }

  .pergunta-origem {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 8px;
  }

  .pergunta-label { font-size: 12.5px; color: var(--text); margin: 8px 0 6px; }

  .pergunta-opts { display: flex; flex-wrap: wrap; gap: 6px; }

  .pergunta-opt {
    padding: 6px 11px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    font-size: 11.5px;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
  }

  .pergunta-opt:hover { border-color: var(--border-hover); color: var(--text); }

  .pergunta-opt.active {
    background: var(--blue-dim);
    border-color: var(--blue);
    color: var(--blue);
  }

  .device-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }

  .device-btn {
    padding: 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .device-btn:hover { border-color: var(--border-hover); color: var(--text); }

  .device-btn.active {
    background: var(--blue-dim);
    border-color: var(--blue);
    color: var(--blue);
    box-shadow: 0 0 16px rgba(0,170,255,0.1);
  }

  .device-btn svg { width: 16px; height: 16px; fill: currentColor; }

  .divider { height: 1px; background: var(--border); margin: 20px 0; }

  .problems-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }

  .problems-header span {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .problems-header small { font-size: 10px; color: var(--text-dim); }

  .problems-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    transition: outline 0.2s;
  }

  .problem-chip {
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    text-align: left;
    margin: 0;
    padding: 10px 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.18s;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 7px;
    line-height: 1.3;
  }

  .problem-chip:hover { border-color: var(--border-hover); color: var(--text); }
  .problem-chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

  .problem-chip.selected {
    background: var(--blue-dim);
    border-color: var(--blue);
    color: var(--text);
  }

  .chip-check {
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--border-hover);
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
  }

  .problem-chip.selected .chip-check {
    background: var(--blue);
    border-color: var(--blue);
  }

  .problem-chip.selected .chip-check::after {
    content: '';
    width: 8px;
    height: 5px;
    border-left: 1.5px solid #000;
    border-bottom: 1.5px solid #000;
    transform: rotate(-45deg) translateY(-1px);
  }

  .field-collapsible {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    margin-bottom: 0;
  }

  .field-collapsible.visible { max-height: 120px; opacity: 1; margin-bottom: 16px; }

  .foto-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 16px;
    background: var(--surface2);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    text-align: center;
  }

  .foto-upload-area:hover { border-color: var(--border-hover); background: #12121a; }
  .foto-upload-area svg { width: 22px; height: 22px; fill: var(--text-muted); }
  .foto-upload-area span { font-size: 13px; color: var(--text-muted); }

  .foto-preview-wrap { position: relative; display: none; }

  .foto-preview-wrap img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: block;
  }

  .foto-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0,0,0,0.65);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    padding: 0;
  }

  .foto-hint { font-size: 11px; color: var(--text-dim); margin-top: 6px; }

  .error-msg {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--red);
    font-size: 12px;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s;
  }

  .error-msg.visible { opacity: 1; transform: translateY(0); }

  .btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--blue);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 4px 20px rgba(0,170,255,0.3);
    margin-top: 4px;
  }

  .btn-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(0,170,255,0.45); }
  .btn-submit:active:not(:disabled) { transform: translateY(0); }
  .btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }
  .btn-submit .btn-text { transition: opacity 0.2s; }

  .btn-submit .btn-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
  }

  .btn-submit.loading .btn-text { opacity: 0; }
  .btn-submit.loading .btn-loading { opacity: 1; }

  .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0,0,0,0.3);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
  }

  @keyframes spin { to { transform: rotate(360deg); } }

  /* Confirmação animada */
  .confirm-overlay {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    animation: fadeUp 0.4s ease both;
  }

  .confirm-overlay.visible { display: flex; }

  .checkmark-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0,170,255,0.1);
    border: 2px solid var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    box-shadow: 0 0 30px rgba(0,170,255,0.3);
  }

  @keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
  }

  .checkmark-circle svg {
    width: 28px;
    height: 28px;
    stroke: var(--blue);
    stroke-width: 2.5;
    fill: none;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheck 0.4s ease 0.25s forwards;
  }

  @keyframes drawCheck { to { stroke-dashoffset: 0; } }

  .confirm-title {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
  }

  .confirm-sub { font-size: 13px; color: var(--text-muted); text-align: center; line-height: 1.6; }

  /* Resultado */
  .result {
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(0,170,255,0.05), rgba(0,80,180,0.05));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: none;
    animation: resultIn 0.4s ease both;
  }

  @keyframes resultIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .result-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 4px;
  }

  .result-value { font-size: 14px; color: var(--text); line-height: 1.6; margin-bottom: 14px; }

  .result-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }

  .result-chip {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
  }

  .result-chip .result-label { margin-bottom: 2px; }
  .result-chip .result-value { font-size: 13px; font-weight: 500; margin-bottom: 0; }

  .horario-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,170,255,0.06);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--text-muted);
  }

  .horario-badge svg { width: 13px; height: 13px; fill: var(--blue); flex-shrink: 0; }

  .local-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,170,255,0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--text-muted);
  }

  .local-badge svg { width: 13px; height: 13px; fill: var(--blue); flex-shrink: 0; }

  .send-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    margin-bottom: 12px;
    opacity: 0;
    transition: opacity 0.3s;
  }

  .send-status.visible { opacity: 1; }
  .send-status.ok { color: #4ade80; }
  .send-status.fail { color: var(--text-muted); }
  .send-status svg { width: 13px; height: 13px; fill: currentColor; }

  .btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: var(--green);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(37,211,102,0.25);
  }

  .btn-whatsapp:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,211,102,0.35); }
  .btn-whatsapp svg { width: 18px; height: 18px; fill: white; flex-shrink: 0; }

  .btn-reset {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
  }

  .btn-reset:hover { border-color: var(--border-hover); color: var(--text); }

  .privacidade-nota {
    font-size: 11px;
    color: var(--text-dim);
    text-align: center;
    line-height: 1.6;
    margin: 4px 0 12px;
  }

  .privacidade-nota a { color: var(--text-muted); text-decoration: underline; }
  .privacidade-nota a:hover { color: var(--blue); }

  .seo-text {
    margin-top: 16px;
    font-size: 11px;
    color: var(--text-dim);
    text-align: center;
    line-height: 1.7;
    max-width: 380px;
  }

  .footer {
    text-align: center;
    margin-top: 12px;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.04em;
  }

  .footer a { color: var(--text-dim); text-decoration: none; }
  .footer a:hover { color: var(--text-muted); }

  .problema-bloco { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
  .problema-bloco:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

  .result-greeting {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
  }

  .result-greeting span { color: var(--blue); }

  @media (max-width: 420px) {
    .card { padding: 22px 18px; }
    .header h1 { font-size: 24px; }
    .form-row { grid-template-columns: 1fr; }
    .problems-grid { grid-template-columns: 1fr; }
  }
