/* "Cadastre sua igreja" e o convite do responsável (D-29), refeitos pelo mockup aprovado em 14/11/2026
   (design/mockups/aprovados/cadastre-sua-igreja.html, que é a fonte da verdade desta tela). Mesma cara do site
   (site/index.html): papel claro, verde-pasto forte (D-28, valores dos tokens intactos), Bricolage nos títulos e Inter no
   texto. Foto primeiro, sem cartão, sem moldura em volta de grupo: só campo, botão, aviso e balão têm contorno.
   Sem estilo nem script embutido nas páginas: as duas leem este arquivo. */
:root {
  --pasto-950: #0a1d15;
  --pasto-900: #10291d;
  --pasto-800: #173a29;
  --pasto-600: #23603f;
  --pasto-500: #2c7a4f;
  --pasto-100: #e3eee6;
  --trigo-300: #f3cf78;
  --trigo-400: #e9b949;
  --trigo-800: #7d5710;
  --papel: #f6f7f2;
  --branco: #ffffff;
  --tinta: #14211a;
  --nevoa: #55655b;
  --linha: #d9e1da;
  --borda: #7c8b81;
  --erro: #a3271b;
  --display: "Bricolage Grotesque", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --texto: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --campo: clamp(46px, 5.6vh, 60px);
  --vao: clamp(2px, 1.1vh, 12px);
  --foto-x: clamp(24px, 3.6vw, 56px);
  --painel-x: clamp(28px, 4.2vw, 72px);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 16px/1.5 var(--texto); -webkit-font-smoothing: antialiased; }
a { color: var(--pasto-600); }
p { margin: 0; }
h1, h2 { margin: 0; font-family: var(--display); letter-spacing: -.02em; text-wrap: balance; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--trigo-400); outline-offset: 3px; }
.painel :focus-visible { outline-color: var(--pasto-600); }
.simbolos { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1em; height: 1em; flex: none; }
.nq { white-space: nowrap; }
.armadilha { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- a página: foto à esquerda, formulário direto no papel à direita ---------- */
.pagina { display: grid; position: relative; min-height: 100vh; min-height: 100svh;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); grid-template-rows: 1fr auto auto; }

.foto { grid-column: 1; grid-row: 1 / -1; position: relative; overflow: hidden; background: var(--pasto-950); }
.foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foto::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,29,21,.95) 0%, rgba(10,29,21,.8) 26%, rgba(10,29,21,.3) 52%, rgba(10,29,21,0) 70%),
              linear-gradient(180deg, rgba(10,29,21,.78) 0%, rgba(10,29,21,.42) 8%, rgba(10,29,21,0) 22%); }
.pagina--cadastro .foto img { object-position: 50% 30%; }
.pagina--convite .foto img { object-position: 58% 40%; }

.marca { position: absolute; z-index: 3; left: var(--foto-x); top: 20px; height: 44px; display: flex; align-items: center; gap: 10px; color: var(--branco); text-decoration: none; }
.marca__selo { width: 36px; height: 36px; border-radius: 9px; background: var(--pasto-600); display: grid; place-items: center; color: var(--trigo-400); }
.marca__selo svg { width: 23px; height: 23px; }
.marca__nome { font: 700 21px/1 var(--display); letter-spacing: -.01em; }
.entrar { position: absolute; z-index: 3; right: var(--painel-x); top: 20px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px;
  color: var(--nevoa); text-decoration: none; font-size: 15px; font-weight: 500; }
.entrar b { color: var(--pasto-600); font-weight: 600; }
.entrar:hover b { text-decoration: underline; }

.titulo { grid-column: 1; grid-row: 2; z-index: 2; position: relative; align-self: end; padding: 0 var(--foto-x); color: var(--branco); }
.titulo h1 { font-size: clamp(38px, 3.7vw, 64px); font-weight: 800; line-height: 1.04; }
.titulo h1 em { font-style: normal; color: var(--trigo-400); }
.titulo p { margin-top: 14px; max-width: 30em; font-size: 18px; line-height: 1.5; color: rgba(255,255,255,.9); }
.titulo p b { font-weight: 600; color: var(--branco); }
.titulo--fim { padding-bottom: clamp(40px, 8vh, 80px); }

.passos { grid-column: 1; grid-row: 3; z-index: 2; position: relative; list-style: none; margin: 0; counter-reset: p;
  padding: 22px var(--foto-x) clamp(32px, 6vh, 60px); display: flex; flex-direction: column; gap: 12px; color: var(--branco); }
.passos li { display: flex; gap: 12px; align-items: center; counter-increment: p; font-size: 15.5px; line-height: 1.35; color: rgba(255,255,255,.92); }
.passos li::before { content: counter(p); flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6);
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--branco); }
.passos[data-feito] li:nth-child(1)::before { content: ""; border-color: var(--trigo-400);
  background: var(--trigo-400) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5.5 12.5 4.2 4.2L18.5 8' fill='none' stroke='%230a1d15' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.passos[data-feito] li:nth-child(2) { font-weight: 700; color: var(--branco); }
.passos[data-feito] li:nth-child(2)::before { border-color: var(--branco); }
.passos[data-feito] li:nth-child(3) { color: rgba(255,255,255,.62); }

.painel { grid-column: 2; grid-row: 1 / -1; display: flex; flex-direction: column; justify-content: center; padding: 76px var(--painel-x) 64px; min-width: 0; }
.miolo { width: 100%; max-width: 720px; margin-inline: auto; container-type: inline-size; }

/* ---------- formulário ---------- */
.sec { display: flex; align-items: center; gap: 14px; margin: 0 0 8px; font: 700 12.5px/1.2 var(--texto); letter-spacing: .12em; text-transform: uppercase; color: var(--pasto-600); }
.sec::after { content: ""; flex: 1; height: 1px; background: var(--linha); }
.sec + .grade + .sec { margin-top: clamp(12px, 2.2vh, 24px); }
.grade { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; row-gap: var(--vao); }
.c12 { grid-column: span 12; } .c6 { grid-column: span 6; } .c4 { grid-column: span 4; } .c2 { grid-column: span 2; }
.campo { display: flex; flex-direction: column; min-width: 0; }
.rot { display: flex; align-items: center; height: 24px; }
.rot label { font-size: 14px; font-weight: 600; line-height: 24px; }
.req { color: var(--erro); font-weight: 600; }
.izinho { flex: none; width: 24px; height: 28px; margin: 0 0 0 4px; padding: 0; border: 0; background: none; cursor: pointer;
  font: italic 700 17px/1 Georgia, "Times New Roman", serif; color: var(--trigo-800); display: grid; place-items: center; }
.izinho:hover { font-size: 19px; }
.izinho[aria-expanded="true"] { font-size: 19px; }
.campo input, .campo select { width: 100%; height: var(--campo); border: 1.5px solid var(--borda); border-radius: 8px; padding: 0 14px;
  font: 16px var(--texto); color: var(--tinta); background: var(--branco); }
.campo input::placeholder { color: #6b7a70; }
.campo select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background: var(--branco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2355655b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 10px center / 18px no-repeat; }
.campo input:focus, .campo select:focus { border-color: var(--pasto-600); outline: 3px solid color-mix(in srgb, var(--pasto-500) 28%, transparent); outline-offset: 0; }
.campo input[aria-invalid="true"], .campo select[aria-invalid="true"] { border-color: var(--erro); }
.campo input[readonly] { background: #eef2ec; border-color: var(--linha); color: var(--tinta); padding-right: 44px; }
.erro { height: 22px; padding-top: 2px; font-size: 13px; line-height: 20px; color: var(--erro); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dentro { position: relative; }
.dentro > .lado { position: absolute; right: 0; top: 0; width: var(--campo); height: var(--campo); display: grid; place-items: center; color: var(--nevoa); }
.dentro > button.lado { border: 0; background: none; cursor: pointer; border-radius: 8px; }
.dentro > button.lado:hover { color: var(--pasto-600); }
.dentro .ico { width: 21px; height: 21px; }
.dentro input[type="password"], .dentro input[data-senha] { padding-right: 52px; }

.aceite { display: flex; flex-direction: column; min-width: 0; }
.aceite .rot { visibility: hidden; }
.aceite__linha { min-height: var(--campo); display: flex; align-items: center; gap: 12px; }
.aceite__linha input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--pasto-600); }
.aceite__linha { font-size: 14.5px; line-height: 1.35; cursor: pointer; }
.aceite[data-invalido] .aceite__linha input { outline: 2px solid var(--erro); outline-offset: 1px; }
.ligacao { color: var(--pasto-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.acoes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; align-items: center; margin-top: 8px; }
.acoes > .botao, .acoes > .botao-slot { grid-column: span 6; }
.acoes > .aviso, .acoes > .acoes__apoio { grid-column: span 6; }
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: var(--campo); padding: 0 26px; border-radius: 10px;
  font: 600 16px/1 var(--texto); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; background: var(--pasto-600); color: var(--branco); }
.botao:hover { background: var(--pasto-500); }
.botao[disabled] { opacity: .6; cursor: default; }
.botao--contorno { background: transparent; border-color: var(--pasto-600); color: var(--pasto-600); }
.botao--contorno:hover { background: var(--pasto-100); }
.aviso { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 10px; font-size: 14px; line-height: 1.4;
  background: color-mix(in srgb, var(--erro) 9%, transparent); color: var(--erro); }
.aviso .ico { margin-top: 1px; width: 18px; height: 18px; }

/* ---------- balão do izinho (sem véu) ---------- */
.balao { position: fixed; z-index: 60; width: min(330px, calc(100vw - 24px)); padding: 12px 14px 13px; border-radius: 10px; background: var(--branco); color: var(--tinta);
  box-shadow: 0 14px 40px rgba(10,29,21,.24), 0 0 0 1px var(--linha); font-size: 14px; line-height: 1.45; }
.balao strong { display: block; margin-bottom: 3px; font-size: 14px; font-weight: 700; }
.balao::before { content: ""; position: absolute; top: -6px; left: var(--seta, 24px); width: 11px; height: 11px; background: var(--branco); transform: rotate(45deg); box-shadow: -1px -1px 0 var(--linha); }
.balao[data-acima]::before { top: auto; bottom: -6px; box-shadow: 1px 1px 0 var(--linha); }

/* ---------- estados prontos (enviado, vencido, pronto) ---------- */
.feito:focus-visible { outline: none; }
.feito { max-width: 560px; margin-inline: auto; width: 100%; }
.selo { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--pasto-100); color: var(--pasto-600); }
.selo .ico { width: 30px; height: 30px; }
.selo--aviso { background: #fbf0d2; color: var(--trigo-800); }
.feito h2 { margin-top: 20px; font-size: clamp(32px, 3vw, 44px); font-weight: 800; line-height: 1.05; }
.feito > p { margin-top: 12px; font-size: 18px; line-height: 1.5; color: var(--nevoa); max-width: 34em; }
.feito > p b { color: var(--tinta); font-weight: 600; overflow-wrap: anywhere; }
.feito__acoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; max-width: 520px; }
.feito__acoes--um { grid-template-columns: minmax(0, 1fr); max-width: 260px; }

/* ---------- painel estreito (celular): uma coluna, alvos de 48px ou mais ---------- */
@container (max-width: 560px) {
  .c6, .c4, .c2 { grid-column: span 12; }
  .acoes > .botao, .acoes > .botao-slot, .acoes > .aviso, .acoes > .acoes__apoio { grid-column: span 12; }
  .acoes > .aviso { margin-top: 10px; }
  .aceite .rot { display: none; }
}
@media (max-width: 860px) {
  :root { --campo: 52px; --foto-x: 20px; --painel-x: 16px; }
  .pagina { grid-template-columns: minmax(0, 1fr); grid-template-rows: 340px auto auto; }
  .foto { grid-column: 1; grid-row: 1; }
  .foto::after { background: linear-gradient(0deg, rgba(10,29,21,.96) 0%, rgba(10,29,21,.78) 34%, rgba(10,29,21,0) 70%), linear-gradient(180deg, rgba(10,29,21,.84) 0%, rgba(10,29,21,.6) 15%, rgba(10,29,21,0) 36%); }
  .pagina--cadastro .foto img { object-position: 80% 20%; }
  .pagina--convite .foto img { object-position: 60% 30%; }
  .marca { left: 16px; top: 6px; height: 48px; }
  .entrar { right: 12px; top: 8px; min-height: 48px; padding: 0 4px; color: rgba(255,255,255,.92); }
  .entrar b { color: var(--branco); }
  .titulo { grid-row: 1; align-self: end; padding-bottom: 22px; }
  .titulo--fim { padding-bottom: 22px; }
  .titulo h1 { font-size: 33px; }
  .titulo p { margin-top: 8px; font-size: 15px; line-height: 1.42; }
  .painel { grid-column: 1; grid-row: 2; justify-content: flex-start; padding: 20px var(--painel-x) 16px; }
  .passos { grid-column: 1; grid-row: 3; padding: 8px 16px 40px; color: var(--tinta); }
  .passos li { color: var(--tinta); }
  .passos li::before { border: 0; background: var(--pasto-100); color: var(--pasto-600); }
  .passos[data-feito] li:nth-child(1)::before { background: var(--pasto-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5.5 12.5 4.2 4.2L18.5 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
  .passos[data-feito] li:nth-child(2) { color: var(--tinta); }
  .passos[data-feito] li:nth-child(2)::before { background: var(--pasto-100); box-shadow: 0 0 0 2px var(--pasto-600); }
  .passos[data-feito] li:nth-child(3) { color: var(--nevoa); }
  .passos { border-top: 1px solid var(--linha); margin: 8px 16px 0; padding-inline: 0; }
  .rot { height: 26px; }
  /* alvo de toque do izinho: 48 x 48, sem aumentar a linha do rótulo */
  .izinho { position: relative; z-index: 2; width: 48px; height: 48px; margin: -12px -26px -12px -6px; justify-content: start; padding-left: 12px; }
  .aceite__linha { padding-block: 2px; }
  .ligacao { padding-block: 16px; }
  .aceite__linha input { width: 26px; height: 26px; }
  .feito__acoes { grid-template-columns: minmax(0, 1fr); }
  .feito__acoes--um { max-width: none; }
  .entrar .so-largo { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .izinho { transition: font-size .12s; }
}
