/* =========================
   Base
========================= */
:root{
  --bg: #0b1220;
  --card: rgba(255,255,255,.06);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --border: rgba(255,255,255,.14);
  --shadow: 0 18px 55px rgba(0,0,0,.45);

  --primary: #4f8cff;

  --warn-bg: rgba(255, 193, 7, .10);
  --warn-bd: rgba(255, 193, 7, .22);
  --warn-tx: rgba(255, 230, 170, .95);

  --radius: 18px;
}

*{ box-sizing: border-box; }

html, body{ height: 100%; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 450px at 20% 10%, rgba(79,140,255,.22), transparent 55%),
    radial-gradient(800px 450px at 80% 0%, rgba(34,197,94,.10), transparent 60%),
    radial-gradient(900px 650px at 60% 95%, rgba(255,193,7,.08), transparent 60%),
    linear-gradient(180deg, #070b13, var(--bg));
}

/* =========================
   Layout
========================= */
.container{
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.card{
  width: min(720px, 100%);
  background: linear-gradient(180deg, var(--card), rgba(255,255,255,.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  backdrop-filter: blur(10px);
}

.header{
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  text-align: left;
}

.header-content{ max-width: 60ch; }

.badge{
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .3px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,.22);
  background: rgba(34,197,94,.12);
  color: rgba(255,255,255,.92);
}
.badge::before{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.18);
}

h1{
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.12;
}

h2{
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  opacity: .85;
}

.subtitle{
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.muted{ color: var(--muted); }
.small{ font-size: 13px; }

/* =========================
   Notice (importante)
========================= */
.notice{
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-bd);
  margin: 18px 0;
}

.notice-icon{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 193, 7, .18);
  border: 1px solid rgba(255, 193, 7, .25);
  color: var(--warn-tx);
  font-weight: 900;
}

.notice-body{
  color: var(--warn-tx);
  line-height: 1.45;
  font-size: 14px;
}
.notice-body strong{ font-weight: 800; }

/* =========================
   Actions / Buttons
========================= */
.actions{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
  font-weight: 750;
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.22);
}
.btn:active{ transform: translateY(0); }

.btn.primary{
  border-color: rgba(79,140,255,.35);
  background: linear-gradient(180deg, rgba(79,140,255,.32), rgba(47,111,255,.18));
  box-shadow: 0 10px 26px rgba(79,140,255,.16);
}
.btn.primary:hover{
  background: linear-gradient(180deg, rgba(79,140,255,.40), rgba(47,111,255,.22));
  border-color: rgba(79,140,255,.55);
}

.btn.secondary{
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
}

.btn.ghost{
  background: transparent;
  border-style: solid;
  color: rgba(255,255,255,.88);
}

.btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(79,140,255,.22);
  border-color: rgba(79,140,255,.55);
}

/* =========================
   Footer
========================= */
.footer{
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
}

/* =========================
   Responsivo
========================= */
@media (min-width: 560px){
  .actions{ grid-template-columns: 1fr 1fr; }
  .actions .btn.primary{ grid-column: 1 / -1; }
}

/* =========================
   Form / Inputs (reuso)
========================= */
label{ display:block; margin: 10px 0 6px; font-weight: 650; }

input[type="text"], input[type="email"], textarea, select{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: var(--text);
  padding: 12px;
  font-size: 15px;
}
textarea{ min-height: 120px; resize: vertical; }

/* =========================
   Questionário – mobile-first
========================= */
.form-card{ padding-bottom: 110px; }

.qcard{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  padding: 14px;
  margin: 12px 0;
}

.qhead{
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}

.qnum{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
}

.qtext{
  font-size: 15px;
  line-height: 1.35;
  color: rgba(255,255,255,.92);
}

/* escala 1–5 */
.segmented{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.seg-in{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seg{
  user-select: none;
  text-align: center;
  padding: 14px 0;
  border-radius: 14px;
  border: 2px solid transparent;
  background: rgba(255,255,255,.05);
  font-weight: 800;
  font-size: 16px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.seg:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.12);
}

/* borda por posição */
.segmented label:nth-of-type(1){ border-color:#ff4d4d; }
.segmented label:nth-of-type(2){ border-color:#ff944d; }
.segmented label:nth-of-type(3){ border-color:#ffd24d; }
.segmented label:nth-of-type(4){ border-color:#4da6ff; }
.segmented label:nth-of-type(5){ border-color:#4dff88; }

/* selecionado */
.seg-in:nth-of-type(1):checked + .seg{ background:#ff4d4d; color:#fff; box-shadow:0 8px 20px rgba(255,77,77,.35); }
.seg-in:nth-of-type(2):checked + .seg{ background:#ff944d; color:#000; box-shadow:0 8px 20px rgba(255,148,77,.35); }
.seg-in:nth-of-type(3):checked + .seg{ background:#ffd24d; color:#000; box-shadow:0 8px 20px rgba(255,210,77,.35); }
.seg-in:nth-of-type(4):checked + .seg{ background:#4da6ff; color:#fff; box-shadow:0 8px 20px rgba(77,166,255,.35); }
.seg-in:nth-of-type(5):checked + .seg{ background:#4dff88; color:#000; box-shadow:0 8px 20px rgba(77,255,136,.35); }

/* barra fixa */
.bottom-bar{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 12px 14px;
  background: rgba(10, 14, 24, .85);
  border-top: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
}

.bottom-bar .progress{
  color: rgba(255,255,255,.75);
  font-size: 13px;
  margin-bottom: 10px;
}

.bottom-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (min-width: 720px){
  .bottom-bar{
    position: sticky;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    margin-top: 14px;
  }
  .form-card{ padding-bottom: 26px; }
}


.proto-box{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin:10px 0;
}

.proto-code{
  font-size:16px;
  font-weight:800;
  letter-spacing:.5px;
}

.proto-copy{
  padding:8px 12px;
  font-size:13px;
}
