/* ══════════════════════════════════════════
   VARIABLES
══════════════════════════════════════════ */
:root {
  --navy:        #14153d;
  --navy2:       #1c1e52;
  --navy-light:  #eef0fb;
  --orange:      #ef843f;
  --orange2:     #f9a06a;
  --orange3:     #d4612b;
  --orange-bg:   #fff5ee;
  --orange-bg2:  #fde8d8;
  --bg:          #ffffff;
  --bg2:         #f8f9fc;
  --bg3:         #f1f3fa;
  --text:        #1a1b3a;
  --text2:       #3d3f6b;
  --muted:       #6b6f9a;
  --border:      rgba(20,21,61,0.09);
  --border2:     rgba(20,21,61,0.15);
  --green:       #16a34a;
  --red:         #dc2626;
  --font-heading:'Plus Jakarta Sans', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --container:   900px;
  --radius:      18px;
  --radius-sm:   12px;
  --radius-xs:   8px;
  --header-h:    72px;
  --transition:  0.25s ease;
  --shadow-sm:   0 2px 12px rgba(20,21,61,0.08);
  --shadow-md:   0 8px 32px rgba(20,21,61,0.12);
  --shadow-orange: 0 8px 28px rgba(239,132,63,0.35);
}

/* ══════════════════════════════════════════
   RESET
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg2);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }

::selection { background: rgba(239,132,63,0.2); color: var(--navy); }
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes spin   { to { transform:rotate(360deg); } }
@keyframes pulse  { 0%,100% { opacity:1; } 50% { opacity:0.35; } }
@keyframes pulse-ring { 0% { transform:scale(1); opacity:0.7; } 100% { transform:scale(1.6); opacity:0; } }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(20,21,61,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 2px 20px rgba(20,21,61,0.2);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.logo-wrap { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-img  { height: 44px; width: auto; object-fit: contain; }

.header-right { display: flex; align-items: center; gap: 12px; }
.back-link {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 500; color: rgba(255,255,255,0.6);
  text-decoration: none; padding: 7px 14px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.back-link:hover { color: #fff; border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.07); }
.header-badge {
  background: linear-gradient(135deg, var(--orange), var(--orange3));
  color: #fff; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 30px;
  box-shadow: var(--shadow-orange);
}

/* ══════════════════════════════════════════
   PAGE HERO
══════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  padding: 52px 0 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 300px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(239,132,63,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero-breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: rgba(255,255,255,0.45);
  margin-bottom: 18px; position: relative;
}
.hero-breadcrumb a { color: var(--orange2); }
.hero-breadcrumb a:hover { color: var(--orange); }
.hero-breadcrumb .current { color: rgba(255,255,255,0.6); }

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800; color: #fff; line-height: 1.1;
  margin-bottom: 14px; position: relative;
}
.hero-title .accent { color: var(--orange); }
.hero-desc {
  max-width: 520px; margin: 0 auto;
  color: rgba(255,255,255,0.6); font-size: 0.97rem; line-height: 1.7;
  position: relative;
}

/* ══════════════════════════════════════════
   PROGRESS BAR
══════════════════════════════════════════ */
.progress-wrap {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  box-shadow: var(--shadow-sm);
  position: sticky; top: var(--header-h); z-index: 50;
}
.progress-bar {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; row-gap: 10px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}
.prog-step { display: flex; align-items: center; gap: 8px; }
.prog-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg2); border: 2px solid var(--border2);
  color: var(--muted);
  font-family: var(--font-heading); font-size: 0.82rem; font-weight: 700;
  display: grid; place-items: center;
  transition: all 0.35s ease;
}
.prog-label {
  font-size: 0.73rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  transition: color 0.35s;
}
.prog-step.active .prog-num {
  background: linear-gradient(135deg, var(--orange), var(--orange3));
  border-color: var(--orange); color: #fff;
  box-shadow: 0 0 0 4px rgba(239,132,63,0.15);
}
.prog-step.active .prog-label { color: var(--orange3); }
.prog-step.done .prog-num { background: var(--orange-bg); border-color: var(--orange); color: var(--orange3); }
.prog-step.done .prog-label { color: var(--orange3); }
.prog-connector {
  width: 40px; height: 2px; background: var(--border2); margin: 0 4px;
  transition: background 0.35s;
}
.prog-connector.done { background: var(--orange); }

/* ══════════════════════════════════════════
   FORM WRAPPER
══════════════════════════════════════════ */
.form-area { padding: 40px 0 80px; }

/* ══════════════════════════════════════════
   SECTIONS / STEPS
══════════════════════════════════════════ */
.section { display: none; animation: fadeUp 0.4s ease forwards; }
.section.active { display: block; }

/* ══════════════════════════════════════════
   FORM CARD
══════════════════════════════════════════ */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0;
}

.card-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
}
.card-icon {
  width: 50px; height: 50px; flex-shrink: 0;
  background: var(--orange-bg);
  border: 1px solid rgba(239,132,63,0.25);
  border-radius: 14px; display: grid; place-items: center; font-size: 22px;
}
.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem; font-weight: 700; color: var(--navy);
}
.card-sub { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

/* ══════════════════════════════════════════
   GRID
══════════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.col-full { grid-column: 1 / -1; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } .col-full { grid-column: 1; } }

/* ══════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════ */
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label {
  font-size: 0.77rem; font-weight: 600;
  color: var(--text2); letter-spacing: 0.04em; text-transform: uppercase;
}
.field-label .req { color: var(--orange); margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: var(--radius-xs); color: var(--navy);
  font-family: var(--font-body); font-size: 0.92rem;
  padding: 12px 15px; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.7; }
input:focus, textarea:focus, select:focus {
  border-color: var(--orange); background: #fff;
  box-shadow: 0 0 0 3px rgba(239,132,63,0.12);
}
textarea { resize: vertical; min-height: 100px; }

/* ── Tipo de instalação ── */
.tipo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
@media (max-width: 600px) { .tipo-grid { grid-template-columns: 1fr; } }
.tipo-item { position: relative; }
.tipo-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.tipo-item label {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 16px;
  background: var(--bg2); border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer; text-align: center;
  font-size: 0.92rem; font-weight: 600; color: var(--text2);
  transition: all var(--transition);
}
.tipo-item label:hover { border-color: var(--orange); background: var(--orange-bg); }
.tipo-item input:checked + label {
  background: var(--orange-bg); border-color: var(--orange);
  color: var(--navy);
  box-shadow: 0 0 0 3px rgba(239,132,63,0.12);
}
.tipo-icon { font-size: 28px; }
.tipo-desc { font-size: 0.75rem; font-weight: 400; color: var(--muted); }
.tipo-item input:checked + label .tipo-desc { color: var(--orange3); }

/* ── Toggle Sim/Não ── */
.toggle-group { display: flex; gap: 10px; }
.toggle-item { position: relative; }
.toggle-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-item label {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  cursor: pointer; font-size: 0.88rem; font-weight: 600; color: var(--muted);
  transition: all var(--transition);
}
.toggle-item.toggle-yes input:checked + label {
  background: rgba(22,163,74,0.08); border-color: #16a34a; color: #16a34a;
}
.toggle-item.toggle-no input:checked + label {
  background: rgba(220,38,38,0.07); border-color: var(--red); color: var(--red);
}
.toggle-item label:hover { border-color: var(--border2); color: var(--text); }

/* ── File upload ── */
.file-zone {
  border: 2px dashed var(--border2); border-radius: var(--radius-xs);
  padding: 24px; text-align: center; cursor: pointer;
  transition: all var(--transition); position: relative;
  background: var(--bg2);
}
.file-zone:hover { border-color: var(--orange); background: var(--orange-bg); }
.file-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}
.file-zone .upload-icon { font-size: 28px; margin-bottom: 8px; }
.file-zone p { font-size: 0.85rem; color: var(--muted); }
.file-zone strong { color: var(--orange3); }
.file-selected {
  display: none; margin-top: 10px;
  align-items: center; justify-content: center; gap: 10px;
  font-size: 0.82rem;
}
.file-selected.show { display: flex; }
.file-selected-name { color: var(--navy); font-weight: 500; }
.file-remove {
  background: none; border: none; cursor: pointer;
  color: var(--red); font-size: 0.78rem; font-weight: 600; padding: 2px 8px;
  border-radius: 6px; transition: background var(--transition);
}
.file-remove:hover { background: rgba(220,38,38,0.08); }

/* ── Block label (Ambos) ── */
.block-label {
  font-family: var(--font-heading);
  font-size: 0.9rem; font-weight: 700; color: var(--navy);
  padding: 10px 0 14px;
  display: flex; align-items: center; gap: 8px;
}

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 24px 0; }

/* ── Form note ── */
.form-note { font-size: 0.76rem; color: var(--muted); margin-bottom: 20px; }
.form-note span { color: var(--orange3); font-weight: 600; }

/* ── Alert box ── */
.alert-box {
  background: var(--orange-bg);
  border: 1px solid rgba(239,132,63,0.3);
  border-radius: var(--radius-xs);
  padding: 14px 16px;
  font-size: 0.82rem; color: var(--orange3); line-height: 1.6;
}
.alert-box em { color: var(--text2); }

/* ══════════════════════════════════════════
   NAV BUTTONS
══════════════════════════════════════════ */
.nav-btns {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; gap: 14px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
  border: none; border-radius: var(--radius-sm);
  padding: 13px 28px; cursor: pointer;
  transition: all var(--transition);
}
.btn-back {
  background: var(--bg2); border: 1.5px solid var(--border2); color: var(--text2);
}
.btn-back:hover { background: var(--bg3); border-color: var(--navy); color: var(--navy); }
.btn-next, .btn-submit {
  background: linear-gradient(135deg, var(--orange), var(--orange3));
  color: #fff; box-shadow: var(--shadow-orange);
  margin-left: auto;
}
.btn-next:hover, .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(239,132,63,0.45);
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ══════════════════════════════════════════
   ERROR BANNER
══════════════════════════════════════════ */
.error-banner {
  display: none;
  background: rgba(220,38,38,0.06); border: 1px solid rgba(220,38,38,0.25);
  color: #dc2626; border-radius: var(--radius-xs);
  padding: 14px 18px; font-size: 0.88rem;
  margin-top: 20px; text-align: center;
}
.error-banner.show { display: block; }

/* ══════════════════════════════════════════
   SUCCESS
══════════════════════════════════════════ */
.success-wrap {
  display: none; text-align: center;
  padding: 80px 2rem; animation: fadeUp 0.5s ease forwards;
}
.success-wrap.show { display: block; }
.success-icon {
  width: 84px; height: 84px;
  background: linear-gradient(135deg, var(--orange), var(--orange3));
  border-radius: 50%; display: grid; place-items: center;
  font-size: 38px; margin: 0 auto 24px;
  box-shadow: 0 16px 40px rgba(239,132,63,0.35);
}
.success-wrap h2 {
  font-family: var(--font-heading);
  font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: 12px;
}
.success-wrap p { color: var(--muted); max-width: 460px; margin: 0 auto; line-height: 1.65; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px; padding-bottom: 52px;
  max-width: 1280px; margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}
.footer-brand .logo-wrap { margin-bottom: 18px; }
.footer-brand p { font-size: 0.87rem; color: rgba(255,255,255,0.5); line-height: 1.75; max-width: 270px; margin-bottom: 22px; }
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
  display: grid; place-items: center; font-size: 16px;
  cursor: pointer; transition: all var(--transition);
}
.social-link:hover { background: rgba(239,132,63,0.18); border-color: rgba(239,132,63,0.4); }
.footer-col h4 {
  font-family: var(--font-heading); font-size: 0.78rem; font-weight: 700;
  color: #fff; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.87rem; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--orange2); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.footer-contact-item .icon { font-size: 15px; margin-top: 2px; flex-shrink: 0; }
.footer-contact-item p  { font-size: 0.84rem; color: rgba(255,255,255,0.5); line-height: 1.55; }
.footer-contact-item a  { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--orange2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 22px clamp(1.25rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  max-width: 1280px; margin: 0 auto;
}
.footer-bottom p { font-size: 0.77rem; color: rgba(255,255,255,0.35); }
.footer-bottom a { color: var(--orange2); }

/* ══════════════════════════════════════════
   WHATSAPP FLOAT
══════════════════════════════════════════ */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 8px 28px rgba(37,211,102,0.4);
  display: grid; place-items: center;
  cursor: pointer; border: none; outline: none;
  opacity: 0; transform: scale(0.7);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.wa-float.visible { opacity: 1; transform: scale(1); }
.wa-float:hover   { transform: scale(1.1); }
.wa-float::before {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.4);
  animation: pulse-ring 2.2s ease-out infinite;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .wa-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  input[type="text"], input[type="email"], input[type="tel"], textarea, select { font-size: 16px; }
}
