:root {
  --verde: #1a7a4c;
  --verde-escuro: #0f5c38;
  --azul: #1c3d5a;
  --bg: #f6f8f7;
  --card: #ffffff;
  --texto: #1f2a24;
  --texto-suave: #5a6b62;
  --borda: #e1e7e3;
  --erro: #b3261e;
  --radius: 10px;
  --sombra: 0 2px 10px rgba(15, 40, 25, .07);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--texto);
  line-height: 1.5;
}

a { color: var(--verde-escuro); }

.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 640px; margin: 0 auto; padding: 0 20px; }

header.site {
  background: var(--azul);
  color: #fff;
  padding: 16px 0;
}
header.site .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
header.site .logo { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; font-weight: 700; font-size: 1.1rem; color: #fff; text-decoration: none; }
header.site .brand-mark { display: block; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; }
header.site .brand-name { min-width: 0; white-space: nowrap; }
header.site .brand-name > span { color: #7fd9ac; }
header.site nav a { color: #dfe9f3; text-decoration: none; margin-left: 18px; font-size: .95rem; }
.header-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px 20px; }
.language-switcher { display: flex; align-items: center; gap: 6px; margin: 0; }
.language-switcher .language-flag { display: block; width: 24px; height: 18px; flex: 0 0 24px; object-fit: contain; border-radius: 2px; }
.language-switcher button img { filter: brightness(0) invert(1); }
header.site .language-switcher select { width: 112px; padding: 7px 6px; border: 1px solid #8aa1b3; border-radius: 4px; background: #1c3d5a; color: white; font: inherit; font-size: .9rem; }
.language-switcher button { border: 1px solid #8aa1b3; background: transparent; border-radius: 4px; padding: 6px; cursor: pointer; }
.language-switcher button[hidden] { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.radio-group { flex-wrap: wrap; }

.hero {
  background: linear-gradient(135deg, var(--azul), #12283d);
  color: #fff;
  padding: 56px 0 64px;
}
.hero h1 { font-size: 2.1rem; margin: 0 0 14px; max-width: 640px; }
.hero p.lead { font-size: 1.1rem; color: #cfe0ee; max-width: 560px; }
.energy-bar { display: flex; margin: 26px 0; border-radius: 6px; overflow: hidden; max-width: 420px; box-shadow: var(--sombra); }
.energy-bar div { flex: 1; padding: 8px 0; text-align: center; font-weight: 700; font-size: .85rem; color: #fff; }

.btn {
  display: inline-block;
  background: var(--verde);
  color: #fff;
  padding: 13px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: var(--verde-escuro); }
.btn.secondary { background: transparent; border: 1px solid #fff; color: #fff; }
.btn.secondary:hover { background: rgba(255,255,255,.12); }
.btn.outline { background: transparent; border: 1px solid var(--verde); color: var(--verde-escuro); }
.btn.small { padding: 8px 14px; font-size: .85rem; }
.btn.danger { background: var(--erro); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.home-request-action { max-width: 420px; text-align: center; }
.home-request-cta {
  max-width: 100%;
  padding: 24.05px 48.1px;
  font-size: 1.85rem;
  text-align: center;
  overflow-wrap: anywhere;
}

section.como-funciona { padding: 56px 0; }
section.como-funciona h2 { text-align: center; margin-bottom: 36px; }
.passos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
.passo { background: var(--card); border: 1px solid var(--borda); border-radius: var(--radius); padding: 20px; }
.passo .num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--verde); color: #fff; font-weight: 700; margin-bottom: 10px; }

section.para-peritos { background: #eef4f0; padding: 48px 0; }
section.para-peritos .grid { display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: center; justify-content: flex-start; }

footer.site { padding: 30px 0; color: var(--texto-suave); font-size: .85rem; text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; }
.footer-brand img { flex: 0 0 32px; border-radius: 50%; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

.pilot-notice { padding: 12px 20px; background: #e8f3ed; color: #17462e; text-align: center; border-bottom: 1px solid #c6ddd0; }
.pilot-page { padding-top: 44px; padding-bottom: 44px; }
.pilot-intro { max-width: 660px; }
.pilot-intro h1 { font-size: 2rem; line-height: 1.2; margin: 12px 0 20px; overflow-wrap: anywhere; }
.pilot-intro .lead { font-size: 1.3rem; font-weight: 600; }
.pilot-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 24px; }
.pilot-next { border-top: 1px solid var(--borda); margin-top: 40px; padding-top: 20px; max-width: 720px; }
.pilot-next h2 { font-size: 1.35rem; }
@media (max-width: 620px) {
  header.site .container { flex-wrap: wrap; gap: 12px; }
  header.site nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
  header.site nav a { margin-left: 0; }
  .pilot-page { padding-top: 28px; padding-bottom: 28px; }
  .pilot-actions .btn { max-width: 100%; text-align: center; }
}

.card {
  background: var(--card);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--sombra);
}

form .field { margin-bottom: 18px; }
form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
form .hint { color: var(--texto-suave); font-size: .82rem; margin-top: 4px; }
form .privacy-hint { margin: 12px 0 16px; overflow-wrap: anywhere; }
form .privacy-hint a { display: inline-block; padding-block: 6px; }
form input[type=text], form input[type=email], form input[type=tel], form input[type=number], form select, form textarea, form input[type=file] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--borda);
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  background: #fff;
}
form textarea { resize: vertical; min-height: 80px; }
.radio-group { display: flex; gap: 18px; }
.radio-group label { font-weight: 400; display: flex; align-items: center; gap: 6px; }
fieldset { border: none; padding: 0; margin: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .78rem; font-weight: 600; }
.badge.aberto { background: #fff3cd; color: #7a5c00; }
.badge.selecionado { background: #dbe8ff; color: #1c3d5a; }
.badge.pago { background: #d7f2e1; color: var(--verde-escuro); }
.badge.concluido { background: #e2e2e2; color: #444; }

table.tabela { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
table.tabela th, table.tabela td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--borda); font-size: .9rem; }
table.tabela th { background: #eef4f0; font-weight: 700; }
table.tabela tr:last-child td { border-bottom: none; }

.alert { padding: 14px 16px; border-radius: 8px; margin-bottom: 18px; font-size: .9rem; }
.alert.ok { background: #d7f2e1; color: var(--verde-escuro); }
.alert.info { background: #e6f0fa; color: #1c3d5a; }
.alert.warn { background: #fff3cd; color: #7a5c00; }
.alert.error { background: #fbe3e1; color: var(--erro); }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 6px 0; }
.checklist li.ok::before { content: "✔ "; color: var(--verde); }
.checklist li.falta::before { content: "⚠ "; color: #b57c00; }

.page-header { padding: 34px 0 10px; }
.page-header h1 { margin-bottom: 4px; }
.page-header p { color: var(--texto-suave); }

.stars { color: #d9a400; font-size: 1rem; }
.review-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.review-overall { margin: 0 0 20px; }
.review-breakdown { margin: 0 0 16px; }
.review-breakdown > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.review-breakdown dt { min-width: 0; }
.review-breakdown dd { margin: 0; white-space: nowrap; }
@media (max-width: 520px) { .review-fields { grid-template-columns: minmax(0, 1fr); } }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.proposal-breakdown { margin: 16px 0 8px; }
.proposal-breakdown > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; }
.proposal-breakdown dt { min-width: 0; overflow-wrap: anywhere; }
.proposal-breakdown dd { margin: 0; white-space: nowrap; }
.proposal-breakdown .proposal-total { border-top: 1px solid var(--border); font-size: 1.25rem; font-weight: 700; color: var(--verde); }
.proposal-total-field input[readonly] { background: #edf6f0; font-size: 1.25rem; font-weight: 700; color: var(--verde); min-height: 48px; }
.proposal-acceptance { display: flex; align-items: flex-start; gap: 12px; margin: 8px 0 20px; font-size: .9rem; }
.proposal-acceptance input { flex: 0 0 auto; margin: 5px 0 0; }
.proposal-acceptance span { min-width: 0; overflow-wrap: anywhere; }
.proposal-slot-title { font-size: 1.1rem; margin: 0 0 18px; }
.proposal-slot { min-width: 0; overflow-wrap: anywhere; }
.proposal-slot-waiting { border-style: dashed; background: transparent; box-shadow: none; }
.proposal-slot-waiting p:last-child { margin-bottom: 0; }
.proposal-request-summary { display: grid; gap: 8px; }
.proposal-request-summary p, .proposal-page > .hint, .proposal-page > .alert { margin: 0; }
