/* ==========================================================================
   GIA Health · contato.css
   Página de contato v1 (somente envio de mensagem). Frame 2539:3683 do Figma.
   Tokens, reset e ícones vêm de base.css.
   ========================================================================== */
:root {
  /* apelidos para os tokens de base.css */
  --white: #ffffff;
  --coral-logo: #f75d60;
  --stroke: var(--linha);
  --ink: var(--t1);
  --mute: var(--t2);
  --subtle: var(--t3);
  --lateral: var(--mauve);
  --font-title: var(--inter);
  --hint: #a1a6ad;
  --bloqueado: #c9cdd2;
  --hover-row: #f6f7f8;
}
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--noite); outline-offset: 2px; }

.ct { display: flex; min-height: 100vh; }

/* Principal --------------------------------------------------------------- */
.ct-main { position: relative; flex: 1 1 0; min-width: 0; background: var(--white); }

.ct-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 40px 24px 0;
}
.ct-brand { display: flex; align-items: center; gap: 9px; height: 32px; }
.ct-brand img { width: 34px; height: 31.4px; }
.ct-brand span {
  font-weight: 500; font-size: 19.2px; line-height: 22.4px; letter-spacing: -0.384px;
  color: var(--coral-logo); white-space: nowrap;
}
.ct-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px 10px 14px; border: 1px solid var(--stroke); border-radius: 999px;
  font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: -0.21px; color: var(--ink);
  transition: border-color .2s;
}
.ct-back:hover { border-color: var(--noite); }

.ct-wrap {
  width: 100%; max-width: 648px; margin: 46px auto 0; padding: 0 24px 80px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.ct-title { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.ct-title h1, .ct-title h2 {
  font-family: var(--font-title); font-weight: 400;
  font-size: 32px; line-height: 40px; letter-spacing: -1.4px; color: var(--ink);
}
.ct-title p { font-size: 15px; line-height: 24px; letter-spacing: -0.3px; color: var(--mute); }

/* Formulário -------------------------------------------------------------- */
.ct-form { width: 100%; display: flex; flex-direction: column; gap: 24px; }
.ct-fields { position: relative; display: flex; flex-direction: column; gap: 20px; }
.ct-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.ct-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ct-field--select { position: relative; }

.ct-field > label, .ct-label {
  font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: -0.21px; color: var(--ink);
}
.ct-optional { font-weight: 400; color: var(--subtle); }

.campo {
  display: flex; align-items: center; height: 48px; padding: 0 16px;
  background: var(--white); border: 1px solid var(--stroke);
  transition: border-color .2s;
}
.campo:focus-within { border-color: var(--noite); }
.campo.invalido { border-color: var(--erro); }
.campo :focus-visible { outline: none; }
.campo input, .campo textarea {
  width: 100%; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 15px; line-height: 24px; letter-spacing: -0.3px; color: var(--ink);
}
.campo ::placeholder { color: var(--hint); opacity: 1; }
.campo--tel { gap: 12px; }
.ct-ddi { font-size: 15px; line-height: 24px; font-weight: 500; letter-spacing: -0.3px; color: var(--ink); }
.ct-sep { width: 1px; height: 20px; background: var(--stroke); flex: none; }
.campo--area { display: block; height: auto; padding: 0; }
.campo--area textarea { display: block; height: 94px; resize: none; padding: 12px 16px 0; }

.ct-error { font-size: 13px; line-height: 20px; letter-spacing: -0.195px; color: var(--erro); }

/* Aceite obrigatório */
.ct-aceite-bloco { display: flex; flex-direction: column; gap: 6px; }
.ct-aceite { display: flex; align-items: flex-start; gap: 12px; }
.ct-aceite input {
  appearance: none; -webkit-appearance: none; flex: none; position: relative;
  width: 18px; height: 18px; margin: 1px 0 0; border: 1px solid var(--hint); background: var(--white);
  cursor: pointer; transition: background-color .2s, border-color .2s;
}
.ct-aceite input:hover { border-color: var(--ink); }
.ct-aceite input:checked { background: var(--noite); border-color: var(--noite); }
.ct-aceite input:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ct-aceite.invalido input { border-color: var(--erro); }
.ct-aceite label { font-size: 13px; line-height: 20px; letter-spacing: -0.195px; color: var(--mute); cursor: pointer; }
.ct-aceite a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--stroke); text-underline-offset: 3px; transition: text-decoration-color .25s; }
.ct-aceite a:hover { text-decoration-color: var(--coral); }
.ct-aceite-bloco .ct-error { padding-left: 30px; animation: ct-surge .4s var(--ease); }

/* Seletor de tema */
.campo--select {
  width: 100%; justify-content: space-between; gap: 12px; text-align: left; cursor: pointer;
}
.ct-select__value {
  font-size: 15px; line-height: 24px; letter-spacing: -0.3px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ct-select__value.is-placeholder { color: var(--hint); }
.ct-select__arrow { font-size: 18px; color: var(--mute); transition: transform .3s var(--ease); }
.ct-list {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: -1px; z-index: 20;
  background: var(--white); border: 1px solid var(--stroke);
}
.ct-list li {
  padding: 12px 16px; cursor: pointer;
  font-size: 15px; line-height: 24px; letter-spacing: -0.3px; color: var(--ink);
}
.ct-list li:hover, .ct-list li.is-hover { background: var(--hover-row); }

.js .ct-fields[data-stagger] > .ct-trap { opacity: 1; transform: none; }
.ct-trap { position: absolute; left: -9999px; width: 0; height: 0; overflow: hidden; }

/* Botão de envio */
.ct-submit {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 5px 5px 5px 22px; border-radius: 999px;
  background: var(--noite); color: #fff; cursor: pointer;
  font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: -0.3px;
  transition: background-color .2s, color .2s;
}
.ct-submit__arrow {
  width: 38px; height: 38px; border-radius: 999px; background: var(--coral); color: #fff;
  display: grid; place-items: center; transition: background-color .2s, transform .25s;
}
.ct-submit:not(:disabled):hover .ct-submit__arrow { transform: rotate(45deg); }
.ct-submit:disabled { background: var(--stroke); color: var(--hint); cursor: not-allowed; }
.ct-submit:disabled .ct-submit__arrow { background: var(--bloqueado); }

.ct-help {
  text-align: center; font-size: 13px; line-height: 20px; letter-spacing: -0.195px; color: var(--subtle);
}
.ct-help.is-error { color: var(--erro); animation: ct-surge .4s var(--ease); }
.ct-help a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--stroke); text-underline-offset: 3px; }
.ct-help a:hover { text-decoration-color: var(--coral); }

.ct-success { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.ct-success .ct-title { gap: 12px; }
.ct-success .ct-title p { max-width: 440px; }
.ct-success .ct-title strong { font-weight: 500; color: var(--ink); }
.ct-success .ct-submit { width: auto; min-width: 280px; gap: 32px; }

/* Depois do envio, a confirmação fica no centro da área branca */
.ct-main.is-enviado { display: flex; flex-direction: column; }
.ct-main.is-enviado .ct-wrap { flex: 1; justify-content: center; margin-top: 0; padding-bottom: 72px; }

/* Envio: carregando no botão, ✓ ao concluir, tremida no erro */
.ct-submit.is-sending, .ct-submit.is-done { background: var(--noite); color: #fff; cursor: progress; }
.ct-submit.is-sending .ct-submit__arrow, .ct-submit.is-done .ct-submit__arrow { position: relative; background: var(--coral); transform: none; }
.ct-submit.is-sending .ct-submit__arrow .ms { opacity: 0; }
.ct-submit.is-sending .ct-submit__arrow::after {
  content: ""; position: absolute; inset: 11px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: ct-gira .7s linear infinite;
}
.ct-submit.is-done .ct-submit__arrow .ms { animation: ct-pop .45s var(--ease); }
/* Erro: botão fica vermelho, treme com força decrescente e mostra ✕ */
.ct-submit.is-erro, .ct-submit.is-erro:disabled {
  background: var(--erro); color: #fff; cursor: default;
  animation: ct-tremor .6s cubic-bezier(.36,.07,.19,.97);
}
.ct-submit.is-erro .ct-submit__arrow { background: #fff; color: var(--erro); transform: none; }
.ct-submit.is-erro .ct-submit__arrow .ms { animation: ct-pop .45s var(--ease); }
@keyframes ct-gira { to { transform: rotate(360deg); } }
@keyframes ct-pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes ct-tremor {
  10% { transform: translateX(-9px); } 25% { transform: translateX(8px); } 40% { transform: translateX(-6px); }
  55% { transform: translateX(4px); } 70% { transform: translateX(-2px); } 85% { transform: translateX(1px); }
}
@keyframes ct-surge { from { opacity: 0; transform: translateY(-4px); } }

/* Saída do formulário e entrada da confirmação */
.ct-saindo { opacity: 0; transform: translateY(-12px); filter: blur(4px); transition: opacity .45s var(--ease), transform .45s var(--ease), filter .45s var(--ease); }
.ct-success > * { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.ct-success.is-in > * { opacity: 1; transform: none; }
.ct-success.is-in > :nth-child(2) { transition-delay: .45s; }
.ct-success.is-in > :nth-child(3) { transition-delay: .6s; }
.ct-ok { position: relative; width: 64px; height: 64px; }
.ct-ok svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ct-ok__circ { stroke: var(--coral); stroke-width: 2; stroke-dasharray: 189; stroke-dashoffset: 189; transform: rotate(-90deg); transform-origin: center; }
.ct-ok__check { stroke: var(--noite); stroke-width: 2.5; stroke-dasharray: 36; stroke-dashoffset: 36; }
.ct-ok::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--coral); opacity: 0; }
.ct-success.is-in .ct-ok__circ { animation: ct-traco .7s var(--ease) .1s forwards; }
.ct-success.is-in .ct-ok__check { animation: ct-traco .45s var(--ease) .65s forwards; }
.ct-success.is-in .ct-ok::after { animation: ct-onda 1s var(--ease) 1s; }
@keyframes ct-traco { to { stroke-dashoffset: 0; } }
@keyframes ct-onda { from { opacity: .5; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }

/* Lateral ----------------------------------------------------------------- */
.ct-side { display: none; flex: none; width: 30%; min-width: 432px; }
.ct-side__panel {
  position: relative; height: 100%; min-height: max(100vh, 820px);
  background: var(--noite); overflow: hidden;
}
.ct-side__glow {
  position: absolute; left: 50%; top: 75px; width: 520px; height: 520px; transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(242,94,98,.26) 0%, rgba(242,94,98,.09) 42%, rgba(242,94,98,0) 70%);
}
.ct-slides { position: absolute; inset: 0; }

.ct-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.ct-slide.ativo { opacity: 1; visibility: visible; }
.ct-stage {
  position: absolute; left: 50%; margin-left: -216px;
  width: 432px; height: 380px;
  top: max(48px, calc(50vh - 305px));
}
.ct-orbit { position: absolute; }
.ct-orbit--a { left: 66px; top: 40px; }
.ct-orbit--b { left: 28px; top: 2px; }

.ct-chip {
  position: absolute; display: flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 10px; background: var(--white);
}
.ct-chip i { width: 6px; height: 6px; border-radius: 50%; display: block; }
.ct-chip span { font-weight: 500; font-size: 12px; line-height: 16px; letter-spacing: -0.12px; color: var(--ink); white-space: nowrap; }

/* Ilustrações opcionais (SVGs exportados). Sem o arquivo, entra o fallback em pontos. */
.ct-art { position: absolute; }
.ct-art > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ct-art--mapa > img { object-fit: contain; } /* webp com fundo transparente: sem mix-blend-mode, que piscava preto no fade */
.ct-art::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(247,169,171,.55) 1.1px, transparent 1.5px);
  background-size: 10px 10px;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 35%, transparent 72%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 35%, transparent 72%);
}
.ct-art.is-loaded::before { display: none; }
.ct-art--mapa { left: 90.76px; top: 59.32px; width: 250.47px; height: 261.36px; }
.ct-art--half { left: 110.6px; top: 84.6px; width: 210.8px; height: 210.8px; }

.ct-pulse {
  position: absolute; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,94,98,.55) 0%, rgba(242,94,98,0) 70%);
  animation: ct-pulso 2.4s ease-in-out infinite;
}
.ct-pulse-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
@keyframes ct-pulso { 0%, 100% { transform: scale(.7); opacity: .55; } 50% { transform: scale(1); opacity: 1; } }

.ct-copy {
  position: absolute; left: 40px; right: 40px; top: max(472px, calc(50vh + 99px));
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.ct-copy__title {
  font-family: var(--font-title); font-weight: 400;
  font-size: 28px; line-height: 36px; letter-spacing: -0.84px; color: #fff;
}
.ct-copy__rule { display: block; height: 2px; background: var(--coral); }
.ct-copy__text { font-size: 15px; line-height: 24px; letter-spacing: -0.3px; color: var(--lateral); }

.ct-controls {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
}
.ct-ctrl {
  width: 32px; height: 32px; border-radius: 50%; color: #fff;
  border: 1px solid rgba(230,232,235,.14); display: grid; place-items: center;
  transition: border-color .2s;
}
.ct-ctrl:hover { border-color: rgba(230,232,235,.4); }
.ct-ctrl:focus-visible, .ct-dots button:focus-visible { outline-color: #fff; }
.ct-dots { display: flex; align-items: center; gap: 6px; }
.ct-dots button {
  height: 6px; width: 6px; border-radius: 999px; background: rgba(255,255,255,.3);
  transition: width .3s, background-color .3s;
}
.ct-dots button.is-active { width: 24px; background: var(--coral); }

/* Responsivo -------------------------------------------------------------- */
@media (min-width: 640px) {
  .ct-head { padding-inline: 48px; }
  .ct-grid { grid-template-columns: 1fr 1fr; }
  .ct-title h1, .ct-title h2 { font-size: 40px; line-height: 48px; }
}
@media (min-width: 1024px) {
  .ct-side { display: block; }
}
@media (max-width: 400px) {
  .ct-brand span { font-size: 17px; }
  .ct-back { padding-inline: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-pulse { animation: none; }
  .ct-slide { transition: none; }
  .ct-ok__circ, .ct-ok__check { stroke-dashoffset: 0; }
}
