:root {
  --bg: #0f1720;
  --card: #ffffff;
  --ink: #1a2330;
  --muted: #6b7785;
  --brand: #1f7a8c;
  --brand-dark: #155e6e;
  --ok: #1f9d55;
  --err: #c0392b;
  --line: #e2e8f0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  background: linear-gradient(160deg, #efe6d6 0%, #d8c7a8 100%);
  min-height: 100vh;
  color: var(--ink);
  padding: 16px;
}
.card {
  max-width: 560px;
  margin: 24px auto;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  padding: 28px 22px 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  backdrop-filter: blur(4px);
}
h1 { margin: 0 0 4px; font-size: 1.6rem; }
.sub { margin: 0 0 18px; color: var(--muted); font-size: .95rem; }
.req { color: var(--err); }

label {
  display: block;
  margin: 0 0 14px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
}
input, select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 12px;
  font-size: 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31,122,140,.15);
}
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .row.two { grid-template-columns: 1fr; } }

button, .btn {
  display: inline-block;
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
button:hover, .btn:hover { background: var(--brand-dark); }
.btn.outline {
  background: #fff;
  color: var(--brand-dark);
  border: 2px solid var(--brand);
}
.btn.outline:hover { background: #f0fafb; }

.nota { font-size: .78rem; color: var(--muted); margin-top: 14px; line-height: 1.45; }
.link { display: inline-block; margin-top: 18px; color: var(--brand-dark); font-weight: 600; text-decoration: none; }

.site-header {
  text-align: center;
  padding: 32px 16px 16px;
}
.site-logo {
  max-width: 420px;
  width: 90%;
  height: auto;
}
.lang-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.lang-btn {
  background: rgba(255,255,255,0.7);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  transition: background .15s, border-color .15s;
  width: auto;
  display: inline-block;
}
.lang-btn:hover { background: #fff; border-color: var(--brand); }
.lang-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.sucesso-card { text-align: center; }
.sucesso-titulo { font-size: 1.8rem; margin: 0 0 8px; }
.sucesso-nome { font-size: 1.05rem; margin: 0 0 4px; color: var(--ink); }
.sucesso-resumo {
  display: flex;
  justify-content: center;
  gap: 32px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 24px;
  margin: 20px 0;
  font-size: 1rem;
}
.sucesso-resumo div { display: flex; flex-direction: column; gap: 4px; }
.sucesso-resumo span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.sucesso-resumo b { font-size: 1.1rem; color: var(--ink); }
.sucesso-nota { font-size: .95rem; line-height: 1.7; color: var(--muted); }
@media (max-width: 400px) { .sucesso-resumo { flex-direction: column; gap: 14px; } }

.apt-badge {
  text-align: center;
  font-size: .95rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin: 0 0 12px;
  letter-spacing: .02em;
}

.site-footer {
  text-align: center;
  padding: 24px 16px 32px;
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.8;
}
.footer-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}
.site-footer a {
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 600;
}
.site-footer a:hover { text-decoration: underline; }

.erros {
  background: #fdecea; border: 1px solid #f5c6cb; color: var(--err);
  padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: .9rem;
}
.erros ul { margin: 6px 0 0; padding-left: 18px; }

.ok-badge, .err-badge {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; color: #fff; margin: 0 0 12px;
}
.ok-badge { background: var(--ok); }
.err-badge { background: var(--err); }

.resumo {
  display: grid; gap: 8px; margin: 18px 0;
  background: #f7fafc; border: 1px solid var(--line);
  border-radius: 12px; padding: 14px;
}
.resumo div { font-size: .95rem; }
.resumo span { display: inline-block; min-width: 120px; color: var(--muted); font-weight: 600; }

.downloads { display: grid; gap: 10px; margin: 18px 0; }
.resposta {
  background: #0f1720; color: #d7e3ea; padding: 12px; border-radius: 10px;
  font-size: .82rem; white-space: pre-wrap; word-break: break-word; overflow-x: auto;
}
code { background: #eef2f5; padding: 1px 5px; border-radius: 4px; font-size: .85em; }

/* ---- Multi-hóspede ---- */
fieldset.estadia, fieldset.hospede {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 4px;
  margin: 0 0 16px;
  background: rgba(255,255,255,0.5);
}
fieldset.hospede legend, fieldset.estadia legend {
  font-weight: 700;
  font-size: .95rem;
  color: var(--brand-dark);
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
fieldset.hospede .hnum {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--brand); color: #fff; border-radius: 11px; font-size: .8rem;
}
.rm-hospede {
  width: auto; margin: 0; padding: 4px 10px;
  font-size: .75rem; font-weight: 600;
  background: #fdecea; color: var(--err);
  border: 1px solid #f5c6cb; border-radius: 8px;
}
.rm-hospede:hover { background: #f8d7da; }
.add-btn {
  background: #fff; color: var(--brand-dark);
  border: 2px dashed var(--brand); margin-bottom: 6px;
}
.add-btn:hover { background: #f0fafb; }
.rem-count { font-weight: 600; opacity: .8; }
.submit-btn { margin-top: 10px; }
