/* ==========================================================================
   Tapetes Pelo Meu Neto — Styles
   Original Node LP design ported to Go+Templ.
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #4d5e53;
  --primary-dark: #3b4a41;
  --primary-light: #e8edea;
  --bg-main: #f5f5f4;
  --bg-card: #ffffff;
  --accent: #e67e22;
  --text-primary: #1a1a1a;
  --text-secondary: #666;
  --text-muted: #999;
  --border-color: #e5e5e5;
  --highlight-bg: #eef3f6;
  --success: #22c55e;
  --error: #ef4444;
  --font-main: Tahoma, 'Trebuchet MS', Geneva, Verdana, sans-serif;
  --font-code: 'Lucida Console', Monaco, 'Courier New', monospace;
}

/* ---------- Reset ---------- */
*, ::before, ::after { margin: 0; padding: 0; box-sizing: border-box }
html, body { max-width: 100%; overflow-x: hidden }
body {
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-main);
  font-size: 16.5px;
  line-height: 1.72;
  color: #2c2c2c;
  background: var(--bg-main);
}
h1, h2, h3 { letter-spacing: -.02em; font-weight: 700; font-family: var(--font-main) }
img { display: block; max-width: 100%; height: auto }
button, input { font-family: inherit }

/* ---------- @font-face (for obrigado page) ---------- */
@font-face { font-family: 'Montserrat'; src: url('/static/fonts/montserrat.woff2') format('woff2'); font-display: swap; font-weight: 100 900; }
@font-face { font-family: 'Inter'; src: url('/static/fonts/inter.woff2') format('woff2'); font-display: swap; font-weight: 100 900; }
@font-face { font-family: 'Roboto'; src: url('/static/fonts/roboto.woff2') format('woff2'); font-display: swap; font-weight: 100 900; }
@font-face { font-family: 'Nunito'; src: url('/static/fonts/nunito.woff2') format('woff2'); font-display: swap; font-weight: 100 900; }

/* Font stacks (obrigado page) */
.font-inter      { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif }
.font-roboto     { font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif }
.font-montserrat { font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif }
.font-nunito     { font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif }
.font-system     { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif }
.font-georgia    { font-family: Georgia, 'Times New Roman', Times, serif }

/* ==========================================================================
   Layout
   ========================================================================== */

.envoltorio {
  margin: 0 auto;
  max-width: 100%;
  background: #fff;
}
@media(min-width:768px) {
  .envoltorio { box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 2px 12px rgba(0,0,0,.06); max-width: 720px }
}
@media(min-width:1024px) {
  .envoltorio { max-width: 840px }
}

/* ==========================================================================
   Header
   ========================================================================== */

.cabecalho-marca {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid #eee;
  background: #fff;
}
.cabecalho-marca img { height: auto; max-width: 200px }
@media(min-width:768px) {
  .cabecalho-marca { padding: 19px 28px }
  .cabecalho-marca img { max-width: 260px }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.secao-principal { position: relative }

.titulo-principal {
  text-align: center;
  font-size: 1.38rem;
  line-height: 1.32;
  font-weight: 750;
  color: #1a1a1a;
  padding: 20px 20px 16px;
  letter-spacing: -.02em;
}
@media(min-width:768px) {
  .titulo-principal { font-size: 1.98rem; padding: 31px 40px 23px; max-width: 88%; margin: 0 auto }
}

.imagem-principal {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}
@media(min-width:768px) {
  .imagem-principal { max-width: 520px; margin: 0 auto; max-height: 480px; border-radius: 11px }
}

/* ==========================================================================
   Progress Bar
   ========================================================================== */

.area-progresso { background: #fff; padding: 18px 20px 9px }
@media(min-width:768px) {
  .area-progresso { padding: 27px 40px 13px; max-width: 520px; margin: 0 auto }
}

.dados-progresso { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 7px }
.total-arrecadado { font-weight: 700; font-size: 1.06rem; color: var(--primary) }
.meta-campanha { font-weight: 450; font-size: .91rem; color: #888 }

.barra-andamento { height: 10px; width: 100%; background: #e8e8e8; border-radius: 22px; overflow: hidden }
.preenchimento-andamento { height: 100%; border-radius: 22px; background: var(--primary); transition: width 1s ease }

.apoiadores-total { font-size: .91rem; text-align: center; color: #777; margin-top: 11px; font-weight: 450 }
.apoiadores-total strong { font-weight: 600; color: #2c2c2c }

/* ==========================================================================
   Story / Relato
   ========================================================================== */

.relato-pessoal { padding: 24px 20px 13px }
@media(min-width:768px) { .relato-pessoal { padding: 39px 48px 21px } }

.relato-pessoal p {
  font-size: 1.06rem;
  color: #3a3a3a;
  line-height: 1.76;
  margin-bottom: 13px;
  font-weight: 400;
}
@media(min-width:768px) {
  .relato-pessoal p { font-size: 1.13rem; margin-bottom: 17px }
}
.relato-pessoal p strong { color: #1d1d1d; font-weight: 660 }

.foto-relato { border-radius: 7px; width: 100%; aspect-ratio: 1/1; object-fit: cover; margin: 17px 0 }
@media(min-width:768px) {
  .foto-relato { max-width: 420px; margin: 27px auto; border-radius: 9px }
}

/* CTA Button */
.area-acao { text-align: center; padding: 15px 0 19px }
@media(min-width:768px) { .area-acao { padding: 23px 0 29px } }

.botao-acao {
  display: inline-block;
  width: 100%;
  max-width: 338px;
  padding: 14px 28px;
  background: var(--primary);
  color: #fff;
  font-size: 1.07rem;
  font-weight: 620;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: background .25s, box-shadow .25s;
  box-shadow: 0 2px 8px rgba(77,94,83,.22);
  letter-spacing: -.01em;
}
@media(min-width:768px) {
  .botao-acao { max-width: 378px; padding: 16px 32px; font-size: 1.15rem }
}
.botao-acao:hover { background: var(--primary-dark); box-shadow: 0 4px 16px rgba(77,94,83,.3) }
.botao-acao:active { transform: scale(.98) }

/* ==========================================================================
   Product / Donation Section
   ========================================================================== */

.secao-produto { padding: 30px 20px 0; border-top: 1px solid #eaeaea; background: #fff }
@media(min-width:768px) { .secao-produto { padding: 46px 48px 0 } }

.titulo-produto { text-align: center; font-size: 1.3rem; font-weight: 700; color: #1a1a1a; margin-bottom: 7px }
@media(min-width:768px) { .titulo-produto { font-size: 1.58rem; margin-bottom: 9px } }

.subtitulo-produto {
  text-align: center;
  font-size: .97rem;
  color: #777;
  font-weight: 400;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 17px;
  line-height: 1.52;
}
@media(min-width:768px) { .subtitulo-produto { margin-bottom: 19px } }

.imagem-tapete { max-width: 340px; width: 100%; margin: 0 auto 23px; border-radius: 9px }
@media(min-width:768px) { .imagem-tapete { max-width: 420px; margin-bottom: 33px; border-radius: 11px } }

.pergunta-valor {
  text-align: center;
  font-size: 1.16rem;
  font-weight: 680;
  color: #2c2c2c;
  margin-bottom: 17px;
  letter-spacing: -.01em;
}
@media(min-width:768px) { .pergunta-valor { font-size: 1.38rem; margin-bottom: 23px } }

/* Value Grid */
.opcoes-valor {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 100%;
  margin: 0 auto 23px;
}
@media(min-width:640px) { .opcoes-valor { max-width: 418px; gap: 14px } }
@media(min-width:768px) { .opcoes-valor { max-width: 458px; gap: 17px; margin-bottom: 33px } }

.opcao-valor {
  position: relative;
  background: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 7px;
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  transition: all .25s;
  box-shadow: 0 1px 4px rgba(77,94,83,.12);
}
@media(min-width:768px) { .opcao-valor { padding: 21px 14px } }
.opcao-valor:hover { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: 0 3px 12px rgba(77,94,83,.22) }
.opcao-valor:active { transform: scale(.97) }

.opcao-valor .exibicao-preco { display: block; font-size: 1.48rem; font-weight: 750; color: #fff }
@media(min-width:768px) { .opcao-valor .exibicao-preco { font-size: 1.73rem } }

.opcao-valor.favorito { background: var(--primary); border: 2px solid var(--primary); box-shadow: 0 2px 10px rgba(77,94,83,.2) }
.opcao-valor.favorito:hover { background: var(--primary-dark); border-color: var(--primary-dark) }

.etiqueta-favorito {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #D4A020;
  color: #fff;
  font-size: .73rem;
  font-weight: 650;
  padding: 3px 13px;
  border-radius: 22px;
  white-space: nowrap;
  letter-spacing: .01em;
  box-shadow: 0 2px 6px rgba(77,94,83,.2);
}

/* Custom Value */
.secao-livre { max-width: 100%; margin: 0 auto 0; padding: 0 0 30px }
@media(min-width:640px) { .secao-livre { max-width: 418px } }
@media(min-width:768px) { .secao-livre { max-width: 458px; padding-bottom: 40px } }

.separador-livre {
  text-align: center;
  font-size: .94rem;
  color: #999;
  margin: 0 0 19px;
  font-weight: 450;
  position: relative;
}
.separador-livre::before, .separador-livre::after {
  content: '';
  position: absolute;
  top: 50%;
  height: 1px;
  background: #e0e0e0;
  width: calc(50% - 60px);
}
.separador-livre::before { left: 0 }
.separador-livre::after { right: 0 }

.linha-livre { display: flex; align-items: center; gap: 10px; margin-bottom: 14px }
.linha-livre .cifrao { flex-shrink: 0; font-size: 1.09rem; font-weight: 600; color: #555 }
.linha-livre input,
.linha-livre .custom-input {
  flex: 1;
  height: 49px;
  border: 1.5px solid #d0d0d0;
  border-radius: 7px;
  font-size: 1.28rem;
  text-align: center;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  transition: border-color .2s;
  appearance: textfield;
  -moz-appearance: textfield;
  padding: 0 12px;
  min-width: 0;
}
.linha-livre input::-webkit-outer-spin-button,
.linha-livre input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0 }
.linha-livre input:focus,
.linha-livre .custom-input:focus { outline: none; border-color: var(--primary); background: #fafafa }
.linha-livre input::placeholder,
.linha-livre .custom-input::placeholder { color: #bbb; font-size: 1.09rem; font-weight: 500 }

.botao-livre {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 1.07rem;
  font-weight: 620;
  cursor: pointer;
  transition: all .25s;
  box-shadow: 0 2px 8px rgba(77,94,83,.2);
  letter-spacing: -.005em;
}
@media(min-width:768px) { .botao-livre { padding: 16px; font-size: 1.15rem } }
.botao-livre:hover { background: var(--primary-dark); box-shadow: 0 4px 14px rgba(77,94,83,.28) }
.botao-livre:active { transform: scale(.98) }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testemunhos {
  text-align: center;
  background: #f9faf9;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
  padding: 28px 20px;
}
@media(min-width:768px) { .testemunhos { padding: 40px 48px } }

.contador-apoios { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 17px }
.icone-apoio {
  width: 37px; height: 37px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.14rem; flex-shrink: 0;
}
.numero-apoio { font-size: 1.1rem; font-weight: 650; color: #2c2c2c }
.numero-apoio strong { color: var(--primary) }

.citacoes { max-width: 478px; margin: 0 auto }
.citacao { padding: 12px 0; border-bottom: 1px solid #e8e8e8 }
.citacao:last-child { border-bottom: none }
.texto-citacao { font-size: 1rem; color: #555; line-height: 1.6; font-style: italic; margin-bottom: 5px }
.autor-citacao { font-size: .88rem; color: #999; font-weight: 550 }

.verificacoes { display: flex; flex-direction: column; gap: 10px; max-width: 358px; margin: 21px auto 0; text-align: left }
.verificacao { display: flex; align-items: center; gap: 10px; font-size: .97rem; color: #444; font-weight: 450 }
.icone-verificacao {
  width: 21px; height: 21px; min-width: 21px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .69rem; flex-shrink: 0; font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.rodape { text-align: center; padding: 17px; background: #fafafa; border-top: 1px solid #eee }
.rodape p { font-size: .84rem; color: #aaa; font-weight: 400 }

/* ==========================================================================
   Address Modal (pre-payment step)
   ========================================================================== */

.address-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  display: none; align-items: center; justify-content: center;
  z-index: 9997; padding: 12px;
}
.address-overlay.show { display: flex !important }
.address-overlay .address-backdrop { position: absolute; inset: 0 }
.address-overlay .address-panel {
  transform: translateY(-16px); opacity: 0;
  transition: transform .3s, opacity .3s;
}
.address-overlay.show .address-panel { transform: translateY(0); opacity: 1 }

.address-panel {
  background: #fff; border-radius: 11px; max-width: 460px; width: 100%;
  position: relative; max-height: 90vh; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.address-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #eee;
}
.address-header h3 { font-size: 1.14rem; font-weight: 650; color: #1a1a1a; margin: 0 }
.address-close-btn {
  width: 35px; height: 35px; border: none; background: transparent;
  font-size: 22px; color: #999; cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.address-close-btn:hover { background: #f0f0f0; color: #333 }

.address-body {
  padding: 20px; overflow-y: auto; max-height: calc(90vh - 70px);
  display: flex; flex-direction: column; gap: 14px;
}
.address-field label {
  display: block; font-size: .94rem; font-weight: 520; color: #444; margin-bottom: 5px;
}
.address-field input {
  width: 100%; padding: 13px 14px; border: 1.5px solid #ddd; border-radius: 7px;
  font-size: .97rem; color: #2c2c2c; transition: border-color .2s; background: #fff;
}
.address-field input:focus { outline: none; border-color: var(--primary); background: #fafbfa }
.address-field input::placeholder { color: #aaa }

.address-submit {
  width: 100%; padding: 15px; background: var(--primary); color: #fff;
  border: none; border-radius: 9px; font-size: 1.06rem; font-weight: 620;
  cursor: pointer; transition: background .25s; margin-top: 5px;
}
.address-submit:hover { background: var(--primary-dark) }

@media(max-width:480px) {
  .address-body { padding: 17px; gap: 13px }
  .address-field input { padding: 12px 13px }
  .address-submit { padding: 14px }
}
@media(min-width:768px) {
  .address-body { padding: 24px 28px; gap: 16px }
}

/* ==========================================================================
   PIX Modal (app.js compatible)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  padding: 12px;
}

.modal-overlay.show {
  display: flex !important;
}

.modal-overlay .modal-backdrop {
  position: absolute;
  inset: 0;
}

.modal-overlay .modal-panel {
  transform: translateY(-16px);
  opacity: 0;
  transition: transform .3s, opacity .3s;
}

.modal-overlay.show .modal-panel {
  transform: translateY(0);
  opacity: 1;
}

.painel-pix {
  background: #fff;
  border-radius: 11px;
  max-width: 440px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

.topo-pix {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.titulo-pix { font-size: 1.07rem; font-weight: 650; color: #1a1a1a }
.fechar-pix-btn {
  width: 33px; height: 33px;
  border: none; background: transparent;
  font-size: 22px; color: #999; cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.fechar-pix-btn:hover { background: #f0f0f0; color: #333 }

.resumo-pix {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  background: #f8f9f8;
  border-bottom: 1px solid #eee;
}
.rotulo-resumo { display: block; font-size: .84rem; color: #888; font-weight: 450 }
.valor-resumo { font-size: 1.06rem; font-weight: 650; color: var(--primary) }
.tempo-resumo { font-size: 1.06rem; font-weight: 650; color: #e67e22 }

.conteudo-pix { padding: 20px; overflow-y: auto; max-height: calc(90vh - 120px) }

.status-pix {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.area-qrcode { text-align: center; margin-bottom: 15px }
.quadro-qrcode {
  width: 148px; height: 148px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 7px;
  padding: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quadro-qrcode svg, .quadro-qrcode img { width: 100%; height: 100%; border-radius: 0 !important }

.rotulo-chave { font-size: .9rem; color: #666; font-weight: 480; margin-bottom: 7px }
.entrada-chave {
  width: 100%;
  padding: 10px;
  border: 1.5px solid #ddd;
  border-radius: 7px;
  font-size: .87rem;
  text-align: center;
  background: #fafafa;
  font-family: var(--font-code);
  color: #555;
  font-weight: 500;
  margin-bottom: 11px;
  word-break: break-all;
  cursor: pointer;
}
.entrada-chave:focus { outline: none; border-color: var(--primary) }

.copiar-chave {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: .99rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s;
}
.copiar-chave:hover { background: var(--primary-dark) }

.instrucoes-pix {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}
.instrucao { display: flex; align-items: center; gap: 10px }
.numero-instrucao {
  width: 22px; height: 22px; min-width: 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 650;
}
.texto-instrucao { font-size: .93rem; color: #666; font-weight: 400 }

.confirmacao-pix { display: none; text-align: center; padding: 23px 0 }
.confirmacao-pix[style*="display: block"],
.confirmacao-pix[style*="display:block"] { display: block !important }
.icone-confirmacao {
  width: 63px; height: 63px;
  margin: 0 auto 13px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.18rem;
  color: #fff;
}
.titulo-confirmacao { font-size: 1.19rem; font-weight: 650; color: #1a1a1a; margin-bottom: 5px }
.msg-confirmacao { font-size: .97rem; color: #777 }

@media(max-width:480px) {
  .conteudo-pix { padding: 17px }
  .quadro-qrcode { width: 138px; height: 138px; padding: 8px }
  .copiar-chave { padding: 12px }
}
@media(min-width:768px) {
  .conteudo-pix { padding: 24px 28px }
  .quadro-qrcode { width: 160px; height: 160px }
  .copiar-chave { padding: 14px; font-size: 1.01rem }
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes blink {
  0%   { opacity: 1 }
  50%  { opacity: .45 }
  100% { opacity: 1 }
}
.blink { animation: blink 1.6s ease-in-out infinite }

@keyframes spin {
  from { transform: rotate(0deg) }
  to   { transform: rotate(360deg) }
}

/* Icon helper */
.icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; vertical-align: middle }
.icon-spin { animation: spin 1s linear infinite }

/* ==========================================================================
   Obrigado Page — Utility classes (shared with Go framework)
   ========================================================================== */

/* Background */
.bg-bg-main      { background-color: var(--bg-main) }
.bg-bg-card      { background-color: var(--bg-card) }
.bg-primary      { background-color: var(--primary) }
.bg-primary-dark { background-color: var(--primary-dark) }
.bg-success      { background-color: var(--success) }
.bg-white        { background-color: #fff }

/* Text Color */
.text-primary        { color: var(--primary) }
.text-text-primary   { color: var(--text-primary) }
.text-text-secondary { color: var(--text-secondary) }
.text-text-muted     { color: var(--text-muted) }
.text-white          { color: #fff }
.text-red-500        { color: var(--error) }

/* Typography */
.font-bold     { font-weight: 700 }
.font-semibold { font-weight: 600 }
.text-xs       { font-size: .75rem; line-height: 1rem }
.text-sm       { font-size: .875rem; line-height: 1.25rem }
.text-base     { font-size: 1rem; line-height: 1.5rem }
.text-lg       { font-size: 1.125rem; line-height: 1.75rem }
.text-xl       { font-size: 1.25rem; line-height: 1.75rem }
.text-2xl      { font-size: 1.5rem; line-height: 2rem }
.text-center   { text-align: center }
.antialiased   { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale }
.italic        { font-style: italic }

/* Spacing */
.p-4  { padding: 1rem }
.p-6  { padding: 1.5rem }
.px-4 { padding-left: 1rem; padding-right: 1rem }
.py-3 { padding-top: .75rem; padding-bottom: .75rem }
.mb-1 { margin-bottom: .25rem }
.mb-2 { margin-bottom: .5rem }
.mb-4 { margin-bottom: 1rem }
.mt-2 { margin-top: .5rem }
.mx-auto { margin-left: auto; margin-right: auto }

/* Layout */
.flex { display: flex }
.items-center { align-items: center }
.justify-center { justify-content: center }
.gap-2 { gap: .5rem }
.block { display: block }
.hidden { display: none }
.max-w-2xl { max-width: 42rem }
.w-full { width: 100% }

/* Border & Shadow */
.rounded-lg  { border-radius: .5rem }
.rounded-xl  { border-radius: .75rem }
.rounded-2xl { border-radius: 1rem }
.shadow-md   { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1) }
.shadow-sm   { box-shadow: 0 1px 2px 0 rgba(0,0,0,.05) }
.border-t    { border-top: 1px solid var(--border-color) }
.space-y-4 > * + * { margin-top: 1rem }

/* Obrigado page components */
.success-banner { background-color: var(--success); color: #fff; text-align: center; padding: 1.5rem 1rem; margin-bottom: 2.5rem }
.success-banner h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: .25rem }
.success-banner p { font-size: .875rem; opacity: .9 }

.form-card { background-color: var(--bg-card); border-radius: 1rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); padding: 1.5rem; margin: -1rem 1rem 1rem; position: relative; z-index: 1 }
.form-group { margin-bottom: 1rem }
.form-group label { display: block; font-size: .875rem; font-weight: 600; color: var(--text-primary); margin-bottom: .375rem }
.form-group input { width: 100%; padding: .75rem 1rem; border: 1px solid var(--border-color); border-radius: .5rem; font-size: 1rem; transition: border-color .2s, box-shadow .2s; background: #fff }
.form-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(77,94,83,.1) }
.form-group input.error { border-color: var(--error) }
.form-error { font-size: .75rem; color: var(--error); margin-top: .25rem; display: none }
.form-error.visible { display: block }

.btn-submit { width: 100%; padding: .875rem 1.5rem; background: var(--primary); color: #fff; border: none; border-radius: .75rem; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background .2s; display: flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none }
.btn-submit:hover { background: var(--primary-dark) }
.btn-submit:disabled { opacity: .6; cursor: not-allowed }
.form-footer { text-align: center; font-size: .75rem; color: var(--text-muted); margin-top: .75rem }
.hint { margin-top: .375rem; font-size: .75rem; color: var(--text-muted) }

.quote-section { padding: 1.5rem; margin: 0 1rem 1.5rem; background: var(--highlight-bg); border-left: 4px solid var(--primary); border-radius: 0 .5rem .5rem 0; font-style: italic; font-size: .875rem; line-height: 1.625; color: var(--text-secondary) }
.quote-section cite { display: block; font-style: normal; font-weight: 600; margin-top: .5rem; color: var(--text-primary); font-size: .75rem }

/* Overflow fix */
table { max-width: 100%; width: 100%; table-layout: fixed }
iframe, video, embed, object { max-width: 100% }

/* ==========================================================================
   V1 Template — index.html styles
   ========================================================================== */

.moldura-pagina { margin: 0 auto; max-width: 100%; background: #fff }
@media(min-width:768px) { .moldura-pagina { max-width: 720px; box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 2px 12px rgba(0,0,0,.06) } }
@media(min-width:1024px) { .moldura-pagina { max-width: 860px } }

.barra-artesao { text-align: center; background: #fff; padding: 1.05rem 1.2rem; border-bottom: 1px solid #ebebeb }
.barra-artesao img { margin: 0 auto; max-width: 200px; height: auto }
@media(min-width:768px) { .barra-artesao { padding: 1.45rem 2rem } .barra-artesao img { max-width: 250px } }

.abertura-relato { text-align: center; padding: 1.5rem 1.2rem 0 }
.abertura-relato h1 { font-size: 1.44rem; font-weight: 740; color: #1e1e1e; line-height: 1.32; letter-spacing: -.02em; margin-bottom: 1.2rem; max-width: 95%; margin-left: auto; margin-right: auto }
@media(min-width:768px) { .abertura-relato { padding: 2.4rem 2.4rem 0 } .abertura-relato h1 { font-size: 2.08rem; max-width: 85% } }

.foto-destaque { width: 100%; height: auto; max-height: 380px; object-fit: cover; display: block; margin: 0 }
@media(min-width:768px) { .foto-destaque { max-height: 440px; border-radius: 11px; margin: 0 auto; max-width: 560px } }

/* V1 narrative */
.narrativa-avo { padding: 1.5rem 1.2rem 1rem }
@media(min-width:768px) { .narrativa-avo { padding: 2.2rem 2.6rem 1.4rem } }
.narrativa-avo p { font-size: 1.08rem; line-height: 1.78; color: #3d3d3d; margin-bottom: 1.05rem; font-weight: 390 }
.narrativa-avo p strong { color: #1e1e1e; font-weight: 650 }
@media(min-width:768px) { .narrativa-avo p { font-size: 1.14rem; margin-bottom: 1.12rem } }

.foto-contexto { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 7px; margin: 1.15rem 0 }
@media(min-width:768px) { .foto-contexto { max-width: 420px; margin: 1.65rem auto; border-radius: 9px } }

.narrativa-avo .chamada-interna { text-align: center; margin: 1.65rem 0 }
.botao-tapete {
  display: inline-block; width: 100%; max-width: 340px; padding: 1.08rem 1.6rem;
  background: var(--primary); color: #fff; font-size: 1.08rem; font-weight: 600;
  text-align: center; text-decoration: none; border: none; border-radius: 9px;
  cursor: pointer; transition: background .25s, box-shadow .25s;
  box-shadow: 0 2px 8px rgba(77,94,83,.22); letter-spacing: -.01em;
}
.botao-tapete:hover { background: var(--primary-dark); box-shadow: 0 4px 14px rgba(77,94,83,.3) }
.botao-tapete:active { transform: scale(.98) }
@media(min-width:768px) { .botao-tapete { max-width: 380px; padding: 1.18rem 2rem; font-size: 1.13rem } }

/* V1 product section */
.secao-pecas { padding: 1.8rem 1.2rem 0; border-top: 1px solid #eaeaea; background: #fff }
@media(min-width:768px) { .secao-pecas { padding: 2.6rem 2.6rem 0 } }
.titulo-peca { font-size: 1.33rem; font-weight: 680; color: #1e1e1e; text-align: center; margin-bottom: .55rem; letter-spacing: -.015em; white-space: pre-line }
@media(min-width:768px) { .titulo-peca { font-size: 1.58rem } }
.subtitulo-peca { font-size: .99rem; color: #777; text-align: center; margin-bottom: 1.5rem; line-height: 1.52; max-width: 420px; margin-left: auto; margin-right: auto; font-weight: 400 }
@media(min-width:768px) { .subtitulo-peca { font-size: 1.03rem; margin-bottom: 1.85rem } }
.imagem-produto { width: 100%; max-width: 360px; margin: 0 auto 1.65rem; border-radius: 9px }
@media(min-width:768px) { .imagem-produto { max-width: 440px; margin-bottom: 2.05rem; border-radius: 11px } }
.pergunta-preco { font-size: 1.18rem; font-weight: 660; color: #1e1e1e; text-align: center; margin-bottom: 1.15rem; letter-spacing: -.01em }
@media(min-width:768px) { .pergunta-preco { font-size: 1.38rem; margin-bottom: 1.35rem } }

/* V1 3-column grid */
.grade-opcoes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .72rem; max-width: 100%; margin: 0 auto 1.45rem }
@media(min-width:640px) { .grade-opcoes { max-width: 420px; gap: .88rem } }
@media(min-width:768px) { .grade-opcoes { max-width: 460px; gap: 1.02rem; margin-bottom: 1.85rem } }
.cartao-valor {
  background: var(--primary); border: 2px solid var(--primary); border-radius: 9px;
  padding: .92rem .5rem; text-align: center; cursor: pointer; transition: all .22s; position: relative;
}
.cartao-valor:hover { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: 0 3px 10px rgba(77,94,83,.25) }
.cartao-valor:active { transform: scale(.96) }
.cartao-valor.sel { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: 0 2px 12px rgba(77,94,83,.3) }
.cartao-valor .cifra { font-size: 1.2rem; font-weight: 750; color: #fff; display: block; letter-spacing: -.01em }
@media(min-width:768px) { .cartao-valor { padding: 1.08rem .6rem } .cartao-valor .cifra { font-size: 1.35rem } }

/* V1 custom value stepper */
.divisor-alternativa { text-align: center; font-size: .94rem; color: #999; margin: 1.45rem 0 1.25rem; font-weight: 450; position: relative }
.divisor-alternativa::before, .divisor-alternativa::after { content: ''; position: absolute; top: 50%; height: 1px; background: #e0e0e0; width: calc(50% - 60px) }
.divisor-alternativa::before { left: 0 }
.divisor-alternativa::after { right: 0 }
@media(min-width:768px) { .divisor-alternativa { margin: 1.85rem 0 1.65rem } }

.bloco-personalizar {
  max-width: 100%; margin: 0 auto; padding: 1.45rem 1.2rem 1.65rem;
  background: #fafaf9; border: 1px solid #e8e8e6; border-radius: 9px;
}
@media(min-width:640px) { .bloco-personalizar { max-width: 420px; padding: 1.85rem 1.6rem } }
.rotulo-personalizar { text-align: center; font-size: .99rem; color: #555; margin-bottom: 1.1rem; font-weight: 480 }
@media(min-width:768px) { .rotulo-personalizar { font-size: 1.03rem } }

.controle-ajuste { display: flex; align-items: center; justify-content: center; gap: .82rem; margin-bottom: 1.25rem }
@media(min-width:768px) { .controle-ajuste { gap: 1.02rem; margin-bottom: 1.45rem } }
.botao-incremento {
  width: 48px; height: 48px; min-width: 48px; border: 1.5px solid #ccc;
  background: #fff; color: #555; border-radius: 7px; font-size: 1.5rem;
  font-weight: 600; cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: all .2s; line-height: 1;
}
.botao-incremento:hover { border-color: var(--primary); color: var(--primary); background: #f8faf9 }
.botao-incremento:active { transform: scale(.94) }
.botao-incremento:disabled { opacity: .35; cursor: not-allowed }
.botao-incremento:disabled:hover { border-color: #ccc; color: #555; background: #fff; transform: none }
@media(min-width:768px) { .botao-incremento { width: 52px; height: 52px; font-size: 1.6rem } }

.campo-quantia {
  width: 140px; height: 48px; border: 1.5px solid #ccc; border-radius: 7px;
  font-size: 1.68rem; text-align: center; background: #fff; color: var(--primary);
  font-weight: 720; transition: border-color .2s; -moz-appearance: textfield;
  appearance: textfield; padding: 0 8px;
}
.campo-quantia::-webkit-outer-spin-button, .campo-quantia::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0 }
.campo-quantia:focus { outline: none; border-color: var(--primary); background: #fafffe }
.campo-quantia::placeholder { color: #bbb; font-size: 1.28rem }
@media(min-width:768px) { .campo-quantia { width: 160px; height: 52px; font-size: 1.88rem } }

.botao-prosseguir {
  width: 100%; padding: 1.08rem; background: var(--primary); color: #fff;
  border: none; border-radius: 9px; font-size: 1.06rem; font-weight: 620;
  cursor: pointer; transition: all .25s; box-shadow: 0 2px 8px rgba(77,94,83,.2);
  letter-spacing: -.005em;
}
.botao-prosseguir:hover { background: var(--primary-dark); box-shadow: 0 4px 14px rgba(77,94,83,.3) }
.botao-prosseguir:active { transform: scale(.98) }
@media(min-width:768px) { .botao-prosseguir { padding: 1.18rem; font-size: 1.11rem } }

/* V1 reviews */
.depoimentos { padding: 2rem 1.2rem 1.8rem; background: #fafaf9; border-top: 1px solid #eaeaea; margin: 1.8rem -1.2rem 0 }
@media(min-width:768px) { .depoimentos { padding: 2.6rem 2.6rem 2.4rem; margin: 2.4rem -2.6rem 0 } }
.titulo-depoimentos { font-size: 1.23rem; font-weight: 640; color: #1e1e1e; text-align: center; margin-bottom: 1.45rem; letter-spacing: -.01em }
@media(min-width:768px) { .titulo-depoimentos { font-size: 1.43rem; margin-bottom: 1.85rem } }
.lista-relatos { display: flex; flex-direction: column; gap: 1.05rem; max-width: 100% }
@media(min-width:768px) { .lista-relatos { gap: 1.25rem; max-width: 560px; margin: 0 auto } }

.cartao-relato {
  display: flex; align-items: flex-start; gap: .88rem; background: #fff;
  border: 1px solid #e6e6e4; border-radius: 7px; padding: 1.12rem 1rem;
  transition: box-shadow .3s;
}
.cartao-relato:hover { box-shadow: 0 2px 8px rgba(0,0,0,.05) }
@media(min-width:768px) { .cartao-relato { padding: 1.32rem 1.18rem; gap: 1.02rem } }

.inicial-pessoa {
  width: 42px; height: 42px; min-width: 42px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: .94rem; font-weight: 640;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  text-transform: uppercase; margin-top: 2px;
}
.conteudo-relato { flex: 1; min-width: 0 }
.nome-avaliador { font-size: 1.01rem; font-weight: 620; color: #2c2c2c; margin-bottom: .18rem }
.estrelas { font-size: .87rem; color: #e8a824; letter-spacing: .02em; margin-bottom: .4rem }
.texto-relato { font-size: .99rem; line-height: 1.62; color: #5e5e5e; font-weight: 400; margin: 0 }
@media(min-width:768px) { .nome-avaliador { font-size: 1.05rem } .texto-relato { font-size: 1.01rem } }

/* V1 footer */
.rodape-info { padding: 1.35rem 1.2rem; text-align: center; font-size: .82rem; color: #aaa; border-top: 1px solid #eee; background: #fff; line-height: 1.5 }
@media(min-width:768px) { .rodape-info { padding: 1.65rem 2rem; font-size: .85rem } }

/* V1 small screen */
@media(max-width:374px) {
  .abertura-relato h1 { font-size: 1.3rem }
  .grade-opcoes { gap: .55rem }
  .cartao-valor { padding: .82rem .35rem }
  .cartao-valor .cifra { font-size: 1.1rem }
  .bloco-personalizar { padding: 1.25rem 1rem 1.45rem }
}
