/* =========================================================================
   BusqueAI · Cadastro de Empresas
   Design system: Pastel + Laranja energia (#ea580c)
   Tipografia: Quicksand (display) + Poppins (body)
   Mobile-first, sem animações (só transições CSS de hover/focus).
   ========================================================================= */


/* ------------------------------------------------------------------ */
/*  1. DESIGN TOKENS                                                  */
/* ------------------------------------------------------------------ */
:root {
  /* --- paleta base --- */
  --cream:         #faf9f7;
  --cream-deep:   #f3efe8;
  --white:         #ffffff;
  --orange:        #ea580c;
  --orange-dark:   #c2410c;
  --orange-light:  #fff1e8;
  --orange-hover:  #fb7524;

  /* --- paleta pastel (sombras coloridas e acentos) --- */
  --peach:    #ffd4b8;
  --mint:     #c8f0d4;
  --lavender: #e0d5ff;
  --pink:     #ffd5e5;
  --sky:      #d0e5ff;

  /* --- tipografia: contrastes AA garantidos sobre --cream --- */
  --ink:         #1f2937;   /* 12.7:1 */
  --ink-soft:    #4b5563;   /* 7.7:1 */
  --ink-whisper: #6b7280;   /* 5.2:1 */
  --ink-muted:   #9ca3af;   /* decorativo */

  /* --- superfícies e bordas --- */
  --surface:       #ffffff;
  --surface-soft:  #fdfbf8;
  --line:          #ece8e2;
  --line-strong:   #d9d2c6;
  --line-focus:    #ea580c;

  /* --- feedback --- */
  --success:       #16a34a;
  --success-soft:  #dcfce7;
  --warning:       #d97706;
  --warning-soft:  #fef3c7;
  --danger:        #dc2626;
  --danger-soft:   #fee2e2;

  /* --- sombras suaves e coloridas --- */
  --shadow-xs:     0 1px 2px 0 rgba(31, 41, 55, 0.04);
  --shadow-sm:     0 2px 8px -2px rgba(31, 41, 55, 0.06);
  --shadow-md:     0 8px 28px -12px rgba(31, 41, 55, 0.1);
  --shadow-lg:     0 18px 48px -20px rgba(31, 41, 55, 0.14);
  --shadow-orange: 0 12px 32px -12px rgba(234, 88, 12, 0.35);
  --shadow-peach:  0 10px 30px -10px rgba(255, 151, 92, 0.3);

  /* --- radius --- */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-2xl:  24px;
  --r-pill: 999px;

  /* --- layout --- */
  --sidebar-w: 260px;
  --topbar-h:  76px;

  /* --- tipografia --- */
  --font-display: 'Quicksand', system-ui, sans-serif;
  --font-body:    'Poppins',  system-ui, sans-serif;

  /* --- transições (R: mantidas só para hover/focus, não são animações) --- */
  --t-fast:   120ms ease;
  --t-base:   180ms ease;
}


/* ------------------------------------------------------------------ */
/*  2. RESET + BASE                                                    */
/* ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(circle at 12% 8%,  rgba(255, 212, 184, 0.35) 0%, transparent 38%),
    radial-gradient(circle at 88% 92%, rgba(224, 213, 255, 0.3) 0%, transparent 42%);
  background-attachment: fixed;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }

button { font: inherit; cursor: pointer; }

input, select, textarea { font: inherit; color: inherit; }

a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 3px solid rgba(234, 88, 12, 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}


/* ------------------------------------------------------------------ */
/*  3. BACKGROUND DECORATION (blobs)                                   */
/* ------------------------------------------------------------------ */
.bg-decoration {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-decoration .blob {
  position: absolute;
  filter: blur(8px);
  opacity: 0.55;
}

.blob-1 { width: 340px; top: -80px;   left: -120px; }
.blob-2 { width: 420px; bottom: -140px; right: -140px; }
.blob-3 { width: 260px; top: 45%; right: 35%; opacity: 0.35; }


/* ------------------------------------------------------------------ */
/*  4. LAYOUT                                                          */
/* ------------------------------------------------------------------ */
.layout {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
}


/* ------------------------------------------------------------------ */
/*  5. SIDEBAR                                                         */
/* ------------------------------------------------------------------ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 88%;
  max-width: 320px;
  height: 100dvh;
  background: var(--surface);
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateX(-100%);
  transition: transform var(--t-base);
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar.is-open { transform: translateX(0); }

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 55, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
  z-index: 40;
}

.sidebar-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-head {
  padding: 24px 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--orange) 0%, #f97316 100%);
  color: var(--white);
  font-size: 18px;
  box-shadow: var(--shadow-orange);
  flex-shrink: 0;
}

.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-text small {
  display: block;
  font-size: 11px;
  color: var(--ink-whisper);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.sidebar-close {
  background: var(--cream-deep);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  transition: background var(--t-fast), color var(--t-fast);
}

.sidebar-close:hover { background: var(--peach); color: var(--orange-dark); }

.progress-nav {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.progress-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  color: var(--ink-soft);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
  position: relative;
}

.progress-link:hover {
  background: var(--orange-light);
  text-decoration: none;
}

.progress-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--cream-deep);
  color: var(--ink-soft);
  font-size: 14px;
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

.progress-link:hover .progress-step { background: var(--peach); color: var(--orange-dark); }

.progress-link.is-active {
  background: var(--orange-light);
  color: var(--orange-dark);
}

.progress-link.is-active .progress-step {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-peach);
}

.progress-label {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}

.progress-label small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 10px;
  color: var(--ink-whisper);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.progress-link.is-active .progress-label small { color: var(--orange); }

.sidebar-foot {
  padding: 16px 16px 24px;
  border-top: 1px solid var(--line);
}

.info-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, var(--lavender) 0%, var(--sky) 100%);
  border-radius: var(--r-lg);
  font-size: 12px;
  line-height: 1.5;
}

.info-card > i {
  font-size: 16px;
  color: #7c3aed;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-card strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 2px;
}

.info-card p { color: var(--ink-soft); }


/* ------------------------------------------------------------------ */
/*  6. MAIN                                                            */
/* ------------------------------------------------------------------ */
.main {
  padding: 0 20px 48px;
  max-width: 1100px;
  margin: 0 auto;
}


/* ------------------------------------------------------------------ */
/*  7. TOPBAR                                                          */
/* ------------------------------------------------------------------ */
.topbar {
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.menu-toggle {
  background: var(--surface);
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: 18px;
  box-shadow: var(--shadow-xs);
  transition: background var(--t-fast), box-shadow var(--t-fast);
  flex-shrink: 0;
}

.menu-toggle:hover { background: var(--orange-light); box-shadow: var(--shadow-sm); }

.topbar-title { flex: 1; min-width: 0; }

.topbar-title h1 {
  font-family: var(--font-display);
  font-size: clamp(20px, 5vw, 26px);
  line-height: 1.2;
}

.topbar-title p {
  font-size: 13px;
  color: var(--ink-whisper);
  margin-top: 2px;
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--mint);
  color: #15803d;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.topbar-badge i { font-size: 14px; }


/* ------------------------------------------------------------------ */
/*  8. HERO                                                            */
/* ------------------------------------------------------------------ */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  background: var(--surface);
  border-radius: var(--r-2xl);
  padding: 28px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--peach) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-kicker {
  display: inline-block;
  padding: 6px 12px;
  background: var(--orange-light);
  color: var(--orange-dark);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.hero-title strong { color: var(--orange); }

.hero-sub {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 560px;
}

.hero-sub em {
  font-style: normal;
  background: linear-gradient(transparent 65%, var(--peach) 65%);
  padding: 0 2px;
  font-weight: 500;
}

.hero-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

.hero-features i {
  color: var(--success);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}


/* ------ Phone mockup (hero-visual) ------ */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.phone-mock {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 9 / 18;
  background: #1f2937;
  border-radius: 36px;
  padding: 12px 8px;
  box-shadow:
    0 30px 60px -20px rgba(31, 41, 55, 0.35),
    0 0 0 8px #0f172a,
    0 0 0 10px #1f2937;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  background: #0f172a;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #f0f2f5 0%, #e7e1d8 100%);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 28px 12px 10px;
  background: #075e54;
  color: var(--white);
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.chat-header strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
}

.chat-header small { font-size: 10px; opacity: 0.8; }

.chat-body {
  flex: 1;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 8px);
}

.chat-msg {
  max-width: 85%;
  padding: 8px 10px;
  border-radius: var(--r-md);
  font-size: 11px;
  line-height: 1.4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.chat-user {
  align-self: flex-end;
  background: #dcf8c6;
  color: #0f172a;
  border-bottom-right-radius: 2px;
}

.chat-bot {
  align-self: flex-start;
  background: var(--white);
  color: var(--ink);
  border-bottom-left-radius: 2px;
}

.chat-bot strong {
  font-family: var(--font-display);
  display: block;
  margin-bottom: 6px;
  color: var(--orange);
  font-size: 12px;
}

.chat-result {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

.chat-result:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }

.chat-rank {
  width: 20px;
  height: 20px;
  background: var(--orange-light);
  color: var(--orange-dark);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}

.chat-result em {
  font-style: normal;
  font-weight: 600;
  display: block;
  font-size: 11px;
  color: var(--ink);
}

.chat-result small { font-size: 10px; color: var(--ink-whisper); }


/* ------------------------------------------------------------------ */
/*  9. FORM SECTIONS                                                   */
/* ------------------------------------------------------------------ */
.form-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 100px;
}

.section-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}

.section-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--peach) 0%, #ffb58a 100%);
  color: var(--orange-dark);
  border-radius: var(--r-md);
  flex-shrink: 0;
  box-shadow: var(--shadow-peach);
}

.section-head h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.section-head p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.section-head p em { font-style: italic; color: var(--ink-whisper); }

/* Cada seção tem uma cor de acento sutil diferente para variar o ritmo */
#sec-contato       .section-index { background: linear-gradient(135deg, var(--mint)     0%, #8ee0a6 100%); color: #15803d; box-shadow: 0 10px 30px -10px rgba(22, 163, 74, 0.25); }
#sec-endereco      .section-index { background: linear-gradient(135deg, var(--sky)      0%, #93c5fd 100%); color: #1d4ed8; box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.25); }
#sec-funcionamento .section-index { background: linear-gradient(135deg, var(--lavender) 0%, #c4b5fd 100%); color: #6d28d9; box-shadow: 0 10px 30px -10px rgba(124, 58, 237, 0.25); }
#sec-categorias    .section-index { background: linear-gradient(135deg, var(--pink)     0%, #f9a8d4 100%); color: #be185d; box-shadow: 0 10px 30px -10px rgba(236, 72, 153, 0.25); }


/* ------------------------------------------------------------------ */
/* 10. FIELDS                                                          */
/* ------------------------------------------------------------------ */
.grid {
  display: grid;
  gap: 16px;
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field-full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.field label i { color: var(--orange); font-size: 12px; }
.field label .req { color: var(--orange); font-weight: 700; }
.field label .subtle { font-weight: 400; color: var(--ink-whisper); font-size: 11px; margin-left: 4px; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="url"],
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  background: var(--surface-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
  padding-top: 12px;
  line-height: 1.55;
}

.field select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='%236b7280' d='M6 8L0 0h12z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.field input:hover,
.field textarea:hover,
.field select:hover { border-color: var(--line-strong); background: var(--white); }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.field input:disabled,
.field select:disabled {
  background: var(--cream-deep);
  color: var(--ink-whisper);
  cursor: not-allowed;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-muted); }

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.field .hint {
  font-size: 12px;
  color: var(--ink-whisper);
  display: flex;
  align-items: center;
  gap: 6px;
}

.field .error {
  font-size: 12px;
  color: var(--danger);
  font-weight: 500;
  min-height: 1em;
  display: none;
}

.field.has-error .error { display: block; }

.field.has-error .hint { display: none; }


/* Input com botão de ação (CEP) */
.input-with-action {
  display: flex;
  gap: 8px;
}

.input-with-action input { flex: 1; min-width: 0; }


/* Status pill (info da seção identificação) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--warning-soft);
  color: #92400e;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  min-height: 46px;
}

.status-pill i { color: var(--warning); }


/* Coord note (endereço) */
.coord-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--success-soft);
  color: #166534;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  border-left: 3px solid var(--success);
}

.coord-note i { color: var(--success); font-size: 15px; }


/* ------------------------------------------------------------------ */
/* 11. SUGGESTION CHIPS (horário) & SELECTABLE CHIPS (cat/srv)         */
/* ------------------------------------------------------------------ */
.suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.sugg-chip {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--r-pill);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.sugg-chip:hover {
  background: var(--orange-light);
  color: var(--orange-dark);
  border-color: var(--peach);
}


/* Chip grid para categorias e serviços */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.chip-loading {
  grid-column: 1 / -1;
  padding: 24px;
  text-align: center;
  color: var(--ink-whisper);
  font-size: 13px;
}

.chip-loading i { margin-right: 8px; }

.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  min-height: 48px;
  text-align: left;
  width: 100%;
  font-family: inherit;
}

.chip .chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--r-sm);
  background: var(--cream-deep);
  color: var(--ink-whisper);
  font-size: 12px;
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast);
}

.chip:hover {
  border-color: var(--peach);
  background: var(--orange-light);
  color: var(--orange-dark);
}

.chip:hover .chip-icon { background: var(--peach); color: var(--orange-dark); }

.chip.is-selected {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-peach);
  font-weight: 600;
}

.chip.is-selected .chip-icon {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
}


/* ------------------------------------------------------------------ */
/* 12. BUTTONS                                                         */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  min-height: 46px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover:not(:disabled) {
  background: var(--orange-hover);
  box-shadow: 0 16px 36px -10px rgba(234, 88, 12, 0.45);
}

.btn-primary:active:not(:disabled) {
  background: var(--orange-dark);
  transform: translateY(1px);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--orange-light);
  border-color: var(--peach);
  color: var(--orange-dark);
}

.btn-large {
  padding: 14px 28px;
  font-size: 15px;
  min-height: 54px;
  border-radius: var(--r-lg);
}


/* ------------------------------------------------------------------ */
/* 13. SUBMIT BAR                                                      */
/* ------------------------------------------------------------------ */
.submit-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  position: sticky;
  bottom: 16px;
  z-index: 5;
}

.submit-bar p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.submit-bar p i { color: var(--orange); }

.submit-bar .btn { width: 100%; }


/* ------------------------------------------------------------------ */
/* 14. SUCCESS PANEL                                                   */
/* ------------------------------------------------------------------ */
.success-panel {
  padding: 48px 0;
}

.success-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: 40px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.success-card::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, var(--mint) 0%, transparent 70%);
  opacity: 0.7;
}

.success-card::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, var(--peach) 0%, transparent 70%);
  opacity: 0.5;
}

.success-card > * { position: relative; z-index: 1; }

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success) 0%, #22c55e 100%);
  color: var(--white);
  font-size: 34px;
  margin-bottom: 20px;
  box-shadow: 0 18px 40px -14px rgba(22, 163, 74, 0.55);
}

.success-card h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 12px;
}

.success-card > p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.success-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
  background: var(--cream);
  border-radius: var(--r-lg);
  margin-bottom: 24px;
}

.success-info > div { text-align: left; }

.success-info small {
  display: block;
  font-size: 11px;
  color: var(--ink-whisper);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.success-info strong {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink);
}

.badge-pending {
  display: inline-block;
  padding: 3px 10px;
  background: var(--warning-soft);
  color: #92400e;
  border-radius: var(--r-pill);
  font-size: 12px !important;
}


/* ------------------------------------------------------------------ */
/* 15. FOOTER                                                          */
/* ------------------------------------------------------------------ */
.footer {
  margin-top: 40px;
  padding: 24px 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink-whisper);
  border-top: 1px solid var(--line);
}

.footer strong { color: var(--orange); font-family: var(--font-display); }


/* ------------------------------------------------------------------ */
/* 16. TOAST                                                           */
/* ------------------------------------------------------------------ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  max-width: calc(100vw - 48px);
}

.toast i { color: var(--peach); }

.toast.is-error i { color: var(--danger); }
.toast.is-error { background: #991b1b; }

.toast.is-success i { color: #86efac; }
.toast.is-success { background: #166534; }


/* ------------------------------------------------------------------ */
/* 17. UTILITY                                                         */
/* ------------------------------------------------------------------ */
[hidden] { display: none !important; }


/* ------------------------------------------------------------------ */
/* 18. RESPONSIVE — breakpoints 480 / 768 / 1024 / 1280                */
/* ------------------------------------------------------------------ */

/* ≥ 480px (mobile grande): formulário em 2 colunas */
@media (min-width: 480px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }

  .main { padding: 0 28px 48px; }
}

/* ≥ 768px (tablet): hero em 2 colunas, submit-bar horizontal */
@media (min-width: 768px) {
  body { font-size: 16px; }

  .hero {
    grid-template-columns: 1.3fr 1fr;
    padding: 40px;
    gap: 40px;
  }

  .hero-title { font-size: clamp(28px, 4vw, 38px); }

  .form-section { padding: 32px; }

  .submit-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
  }

  .submit-bar .btn { width: auto; }

  .chip-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}

/* ≥ 1024px (desktop): sidebar fixa sempre visível */
@media (min-width: 1024px) {
  .sidebar {
    position: fixed;
    transform: translateX(0);
    width: var(--sidebar-w);
    box-shadow: none;
    border-right: 1px solid var(--line);
  }

  .sidebar-close { display: none; }

  .sidebar-backdrop { display: none !important; }

  .menu-toggle { display: none; }

  .main {
    margin-left: var(--sidebar-w);
    max-width: none;
    padding: 0 40px 64px;
  }

  .topbar { padding: 32px 0 28px; }
}

/* ≥ 1280px (large desktop): content centered com max-width */
@media (min-width: 1280px) {
  .main {
    padding: 0 56px 64px;
  }

  .hero { padding: 48px; }

  .form-section { padding: 40px; }
}


/* ------------------------------------------------------------------ */
/* 19. REDUCED MOTION                                                  */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }

  html { scroll-behavior: auto; }
}
