:root {
  --rancho-terracota: #B9773E;
  --rancho-verde: #4A5E52;
  --rancho-verde-dark: #384a40;
  --rancho-sand: #F5EEE3;
  --rancho-paper: #FAF6EF;
  --text: #2B2B2B;
  --text-muted: #6B6B6B;
  --border: #E5DDD0;
  --danger: #B01818;
  --success: #0D6A2E;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--rancho-paper);
  line-height: 1.55;
}

.hidden { display: none !important; }
img { max-width: 100%; height: auto; }

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: 14px 28px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn--primary {
  background: var(--rancho-terracota);
  color: #fff;
  letter-spacing: .02em;
}
.btn--primary:hover { background: #A1642F; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(185, 119, 62, .3); }
.btn--primary:active { transform: translateY(0); }

/* ======== CAPA ======== */
.cover {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background:
    radial-gradient(ellipse at top, rgba(185,119,62,.08), transparent 60%),
    linear-gradient(180deg, var(--rancho-paper), #F2E9D6);
}
.cover__content {
  max-width: 720px;
  width: 100%;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 56px 48px;
  box-shadow: 0 20px 60px rgba(56, 74, 64, .08);
}
.cover__logo {
  max-width: 360px;
  margin: 0 auto 32px;
  display: block;
}
.cover__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 34px;
  font-weight: 600;
  color: var(--rancho-verde);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.cover__subtitle {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--rancho-terracota);
  margin: 0 0 40px;
  font-weight: 500;
}
.cover__why {
  text-align: left;
  margin: 0 0 40px;
  color: var(--text);
}
.cover__why p { margin: 0 0 16px; font-size: 15.5px; }
.cover__note {
  font-size: 14px !important;
  color: var(--text-muted);
  font-style: italic;
  padding: 12px 16px;
  background: var(--rancho-sand);
  border-radius: 4px;
  margin-top: 20px !important;
}
.cover__footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.cover__octo { max-height: 28px; width: auto; opacity: .8; }

/* ======== FORM ======== */
.form { max-width: 820px; margin: 0 auto; padding: 40px 24px 80px; }
.form__header {
  position: sticky;
  top: 0;
  background: var(--rancho-paper);
  padding: 16px 0;
  margin-bottom: 32px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}
.form__logo { max-height: 40px; width: auto; }
.form__progress {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.form__progressBar { height: 100%; background: var(--rancho-terracota); width: 0; transition: width .3s ease; }
.form__status {
  font-size: 12px;
  color: var(--text-muted);
  min-width: 140px;
  text-align: right;
}

.section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 28px;
  margin-bottom: 24px;
}
.section__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  color: var(--rancho-verde);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--rancho-terracota);
  font-weight: 600;
}
.subsection__title {
  font-size: 15px;
  color: var(--rancho-verde-dark);
  margin: 28px 0 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}

.hint {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px;
  font-style: italic;
}

label {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
label input,
label select,
label textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color .15s;
}
label input:focus,
label select:focus,
label textarea:focus {
  outline: none;
  border-color: var(--rancho-terracota);
  box-shadow: 0 0 0 3px rgba(185, 119, 62, .15);
}
label textarea { resize: vertical; min-height: 80px; }

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 20px;
}
@media (max-width: 520px) {
  .grid2 { grid-template-columns: 1fr; }
}

.chk {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 400;
  cursor: pointer;
}
.chk input { width: auto; margin: 0; flex: 0 0 auto; }

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px 16px;
  margin: 8px 0 16px;
}

/* Chalé card */
.chale {
  background: var(--rancho-paper);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 20px;
}
.chale__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  color: var(--rancho-terracota);
  margin: 0 0 16px;
  font-weight: 600;
}

.form__footer {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 0;
}
.form__credits {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 16px;
}
.form__credits img { max-height: 22px; opacity: .7; }

#sendStatus.ok { color: var(--success); font-weight: 600; }
#sendStatus.err { color: var(--danger); font-weight: 600; }

/* ======== TELA DE AGRADECIMENTO ======== */
.thanks__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(13, 106, 46, .25);
}
