/* =========================================================
   OPEN CLINIC · INSTITUTO UNIQUE (02/10/2026) · só formulário
   Padrão do Instituto: tokens, botão e painel do formulário copiados
   do Medical Business (lp.css + aplicacao.css). Título do formulário
   em Montserrat reto (regra do Higor, 29/09); Playfair só no destaque da capa.
   ========================================================= */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 200 700; font-display: swap; src: url('assets/fonts/montserrat-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 200 700; font-display: swap; src: url('assets/fonts/montserrat-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap; src: url('assets/fonts/playfair-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap; src: url('assets/fonts/playfair-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --brand: #C5A572; --brand-darker: #8B7047; --brand-light: #D4B987; --ouro: #aa7e32;
  --white: #FFFFFF; --black: #0A0A0A; --bg-alt: #F2ECE3;
  --text-darker: #1A1A1A; --text-gray: #6B6B6B; --text-gray-lt: #9E9E9E;
  --border: #E8E5DF; --border-gold: rgba(197, 165, 114, 0.22);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, Arial, sans-serif; font-size: 16px; line-height: 1.7;
  color: var(--text-darker); background: var(--black); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; }
::selection { background: var(--brand); color: var(--white); }

/* ---------- capa: foto do Instituto ao fundo, texto à esquerda, formulário à direita ---------- */
.capa { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--black); }
.capa__foto { position: absolute; inset: 0; background: url('assets/capa.webp') 30% center / cover no-repeat; transform: scale(1.04); animation: fotoEntra 1.6s var(--ease) both; }
.capa__veu { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.72) 45%, rgba(10,10,10,.55) 100%),
  linear-gradient(180deg, rgba(10,10,10,.2) 0%, rgba(10,10,10,.6) 78%, #0A0A0A 100%); }
@keyframes fotoEntra { from { opacity: 0; transform: scale(1.1); } to { opacity: 1; transform: scale(1.04); } }

.capa__inner { position: relative; z-index: 1; width: 100%; max-width: 1180px; margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(36px, 5vw, 64px); align-items: center; }

.capa__texto { color: var(--white); animation: sobe .9s .15s var(--ease) both; }
.capa__logo { width: clamp(120px, 12vw, 156px); height: auto; filter: brightness(0) invert(1); opacity: .94; margin-bottom: clamp(36px, 5vw, 64px); }
.tag { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 22px; font-size: 10.5px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--brand-light); }
.tag::before { content: ""; width: 28px; height: 1px; background: var(--brand); }
.titulo { margin: 0 0 22px; font-size: clamp(2.1rem, 3.9vw, 3.2rem); font-weight: 300; line-height: 1.12; letter-spacing: -.015em; }
.titulo em { display: block; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 400; color: var(--brand-light); font-size: 1.12em; }
.sub { margin: 0; max-width: 460px; font-size: clamp(15px, 1.25vw, 17px); line-height: 1.8; color: rgba(255,255,255,.72); }

@keyframes sobe { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- painel do formulário (1:1 com Medical Business / Diagnóstico Medical) ---------- */
.painel { background: var(--white); border: 1px solid var(--border-gold); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.38);
  padding: clamp(28px, 3.6vw, 44px); position: relative; overflow: hidden; animation: sobe .9s .3s var(--ease) both; }
.painel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--brand-darker), var(--brand), var(--brand-light)); }

.form__tag { margin: 0 0 10px; font-size: 10px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--brand-darker); }
.form__tit { margin: 0 0 26px; font-family: 'Montserrat', sans-serif; font-style: normal; font-size: clamp(1.35rem, 2vw, 1.65rem); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--text-darker); }

.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.campo { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.campo--cheio { grid-column: 1 / -1; }
.campo label { font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-darker); }
.campo input { padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-alt); font: inherit; font-size: 15px; color: var(--text-darker);
  width: 100%; min-width: 0; transition: border-color .3s ease, box-shadow .3s ease; }
.campo input::placeholder { color: var(--text-gray-lt); }
.campo input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(197,165,114,.18); }
.campo.is-erro input, .campo.is-erro .campo__arroba { border-color: #b4552e; }
.campo__arroba { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-alt); transition: border-color .3s ease, box-shadow .3s ease; }
.campo__arroba > span { padding-left: 16px; color: var(--brand-darker); font-weight: 600; font-size: 15px; }
.campo__arroba input { border: 0; background: transparent; padding-left: 4px; box-shadow: none !important; }
.campo__arroba:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(197,165,114,.18); }

.consenti { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: center; margin: 22px 0 2px; cursor: pointer; }
.consenti input { position: absolute; opacity: 0; width: 0; height: 0; }
.consenti__caixa { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-alt);
  display: inline-flex; align-items: center; justify-content: center; color: transparent; transition: border-color .25s ease, background .25s ease, color .25s ease; }
.consenti__caixa svg { width: 13px; height: 13px; }
.consenti input:checked + .consenti__caixa { background: var(--ouro); border-color: var(--ouro); color: #fff; }
.consenti input:focus-visible + .consenti__caixa { outline: 2px solid var(--brand); outline-offset: 3px; }
.consenti.is-erro .consenti__caixa { border-color: #b4552e; }
.consenti__texto { font-size: 13px; line-height: 1.6; color: var(--text-gray); }
.consenti__texto a { color: var(--brand-darker); border-bottom: 1px solid var(--border-gold); }

.form__erro { margin: 10px 0 14px; min-height: 1.2em; color: #b4552e; font-size: 13px; font-weight: 500; }

.btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 18px 28px;
  font-family: 'Montserrat', sans-serif; font-size: 14.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--white);
  background: linear-gradient(135deg, var(--brand-darker) 0%, var(--brand) 50%, var(--brand-light) 100%); background-size: 200% 200%;
  border-radius: 999px; box-shadow: 0 10px 30px rgba(139,112,71,.32), 0 0 0 1px rgba(255,255,255,.08) inset;
  position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); animation: gradientShift 6s ease-in-out infinite; }
.btn::before { content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .8s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(139,112,71,.46), 0 0 0 1px rgba(255,255,255,.15) inset; }
.btn:hover::before { left: 120%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- recebido ---------- */
.ok { text-align: center; padding: 18px 0 8px; outline: none; }
.ok__icone { display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px; margin-bottom: 20px; border-radius: 50%;
  border: 1px solid var(--border-gold); background: linear-gradient(135deg, rgba(197,165,114,.16), rgba(197,165,114,.05)); color: var(--ouro); }
.ok__icone svg { width: 26px; height: 26px; }
.ok .form__tit { margin-bottom: 14px; }
.ok__txt { margin: 0 auto; max-width: 380px; color: var(--text-gray); font-size: 15.5px; line-height: 1.8; }

/* ---------- rodapé do Instituto (igual Medical Business) ---------- */
.rodape { padding: clamp(56px, 8vw, 96px) 20px clamp(28px, 3.5vw, 40px); background: linear-gradient(180deg, #0A0A0A 0%, #050505 100%); color: rgba(255,255,255,.7); text-align: center; border-top: 1px solid rgba(197,165,114,.14); }
.rodape__inner { display: flex; flex-direction: column; align-items: center; gap: clamp(22px, 2.6vw, 32px); }
.rodape__logo { height: clamp(36px, 4.5vw, 52px); width: auto; opacity: .92; filter: brightness(0) invert(1); }
.rodape__redes { margin: 0; font-size: 13px; color: rgba(255,255,255,.66); letter-spacing: .02em; }
.rodape__redes-icons { display: flex; justify-content: center; gap: 14px; margin-top: 14px; }
.rodape__social { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease); }
.rodape__social img { width: 18px; height: 18px; object-fit: contain; filter: brightness(0) invert(1); opacity: .85; }
.rodape__social:hover { transform: translateY(-3px); border-color: var(--brand); background: rgba(197,165,114,.08); }
.rodape__divisor { width: 100%; max-width: 280px; height: 1px; background: linear-gradient(90deg, transparent, rgba(197,165,114,.4), transparent); }
.rodape__contato { display: flex; flex-direction: column; align-items: center; gap: 6px; font-style: normal; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.6); }
.rodape__contato a:hover { color: var(--brand-light); }
.rodape__copy { margin: 0; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.4); }

/* ---------- celular ---------- */
@media (max-width: 900px) {
  .capa { display: block; min-height: 0; }
  .capa__foto { background-position: 40% top; bottom: auto; height: 520px; }
  .capa__veu { bottom: auto; height: 560px; background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.82) 60%, #0A0A0A 100%); }
  .capa__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 32px 16px 56px; }
  .capa__texto { text-align: center; }
  .capa__logo { margin: 0 auto 40px; }
  .tag { justify-content: center; }
  .sub { margin: 0 auto; }
}
@media (max-width: 560px) {
  .campos { grid-template-columns: minmax(0, 1fr); }
  .campo label { letter-spacing: .1em; font-size: 10.5px; }
  .painel { padding: 28px 20px; }
  .btn { letter-spacing: .16em; }
  .rodape__contato { gap: 0; }
  .rodape__contato a { padding: 10px 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
