:root{
  --brand:#002b5c;      /* azul Sunderak */
  --brand-2:#0a5abf;    /* azul de ação */
  --bg:#f6f8fb;         /* fundo claro comercial */
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --ring: rgba(10,90,191,.25);
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius:16px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial,sans-serif;
  background: linear-gradient(180deg,#fff 0%, var(--bg) 100%);
  color:var(--text);
}

/* Container + Card */
.container{max-width: 980px; padding:24px; margin: 0 auto;}
.pre-card{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin: 28px auto;
}

/* Cabeçalho do card */
.pre-head{display:flex; gap:18px; align-items:center; margin-bottom: 12px;}
.pre-logo{width:auto; height:64px}
.pre-head h1{margin:0 0 6px 0; font-size: clamp(20px, 3.2vw, 28px); color: var(--brand)}
.subtitle{margin:0; color:var(--muted)}
.badges{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px}
.badge{background:#eef3ff; color:#225; border:1px solid #dbe7ff; padding:4px 10px; border-radius:999px; font-size:12px}

/* Form */
.pre-form{margin-top:16px}
.row{display:grid; gap:14px; margin-bottom:14px}
.cols-2{grid-template-columns: repeat(2, minmax(0,1fr));}
.field label{display:block; margin:6px 0 6px 2px; font-weight:600}
.field input,
.field select,
.field textarea{
  width:100%;
  border:1px solid #e5e7eb;
  background:#fff;
  border-radius:10px;
  padding:12px 14px;
  font-size:16px;
  outline: none;
  transition: box-shadow .2s, border-color .2s, background-color .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px var(--ring);
}
.help{font-size:12.5px; color:var(--muted); margin-top:6px}
.help.error{color:#b91c1c}

/* Consentimento */
.consent{grid-template-columns: 24px 1fr; align-items:flex-start; gap:10px}
.consent input{margin-top: 3px}

/* Ações */
.actions{display:flex; align-items:center; justify-content:flex-start; gap:12px; margin-top:6px}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 18px; border-radius:10px; border:0; cursor:pointer; font-weight:700;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:active{ transform: translateY(1px); }
.primary{ background: var(--brand-2); color:#fff; box-shadow: 0 8px 20px rgba(10,90,191,.2); }
.primary:hover{ filter: brightness(1.03); }
.btn.ghost{ background: transparent; color: #fff; border:1px solid #fff; }
.btn.light{ background:#fff; color: var(--brand); }

/* Honeypots (escondido) */
.honeypots{ position:absolute; left:-9999px; top:-9999px; }

/* Modal */
.modal{
  position:fixed; inset:0; display:none; align-items:center; justify-content:center;
  background:rgba(0,0,0,.5); z-index:9999; padding: 16px;
}
.modal.show{ display:flex; }
.modal-card{
  width:min(560px, 96vw); background: linear-gradient(180deg, #153451, #0f2a42);
  color:#fff; border-radius:14px; padding:20px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.modal-card h2{margin:0 0 8px 0; font-size:20px}
.modal-card p{margin:0 0 8px 0; font-size:14px; line-height:1.5}
.modal-card ul{margin: 8px 0 12px 18px; font-size:13.5px; line-height:1.4}
.modal-card .ack{display:block; margin:10px 0; font-size:13.5px}
.modal-actions{display:flex; justify-content:flex-end; gap:10px;}

/* Responsivo */
@media (max-width: 900px){
  .cols-2{grid-template-columns: 1fr;}
  .pre-logo{height:56px}
}
@media (max-width: 520px){
  .container{padding:16px}
  .pre-card{padding:18px; border-radius: 14px;}
  .pre-logo{height:48px}
  .actions{flex-direction:column; align-items:flex-start}
}
