/* ==========================================================================
   Inscrição · Aulas — /inscricao
   Implementa `Inscrição · Aulas.dc.html`. Autocontido, mesmo racional de
   lives.css. content-box de propósito: ver docs/LIVES-AUDITORIA.md.
   ========================================================================== */

:root {
  /* Plum / ink */
  --plum-800: #2f182a;
  --ink: #2f182a;

  /* Rose — escala suave da arte. Atenção: aqui o artboard NÃO sobrescreve
     --rose-700, então ele continua sendo o #C0185C do design system. O rosa
     médio usado em ícones/links é aplicado direto, via --rose-mid. */
  --rose-700: #c0185c;
  --rose-500: #d78cac;
  --rose-300: #e9afc9;
  --rose-200: #f0c6da;
  --rose-100: #f5c9dc;
  --rose-tint-1: #fcf4f8;
  --rose-tint-2: #f7e6ee;
  --rose-tint-border: #efd4e0;
  --rose-mid: #c97b98;

  /* Superfícies */
  --cream-50: #faf7f2;
  --white: #ffffff;

  /* Linhas */
  --line: #e7dad0;
  --line-soft: #efe6df;

  /* Texto */
  --text-body: #5e4a55;
  --text-muted: #7a6470;
  --text-faint: #9a8a93;

  --grad-mauve: linear-gradient(150deg, #e7c8d6, #a8758c);

  --radius-xl: 28px;
  --radius-pill: 999px;
  --shadow-card: 0 2px 4px rgba(47, 24, 42, 0.05);

  /* O rosa da marca, como na arte. Ver nota de acessibilidade em lives.css. */
  --cta: #e84e82;
  --cta-hover: #d33f71;
  --shadow-cta: 0 14px 30px -12px rgba(232, 78, 130, 0.5);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* Sem reset de box-sizing de propósito. content-box já é o valor inicial, que
   é como o artboard foi desenhado; e assim os controles de formulário mantêm o
   padrão do browser — o <button> do Chrome é border-box, e o `width:100%` do
   botão da arte depende disso. Ver docs/LIVES-AUDITORIA.md. */

body {
  margin: 0;
  background: var(--cream-50);
  color: var(--ink);
  font-family: var(--font-body);
}

a {
  color: var(--plum-800);
  text-decoration: none;
}

a:hover {
  color: var(--rose-mid);
}

h1 {
  margin: 0;
}

p {
  margin: 0;
}

::placeholder {
  color: var(--text-faint);
}

input[type='radio'] {
  accent-color: var(--cta);
}

[hidden] {
  display: none !important;
}

/* --- Casca ---------------------------------------------------------------- */
.shell {
  min-height: 100svh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  background: var(--cream-50);
  padding: clamp(20px, 3vw, 36px) clamp(20px, 4vw, 48px);
}

.shell__grid {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: clamp(26px, 4vw, 64px);
  align-items: center;
}

.col-form {
  min-width: 0;
}

/* --- Coluna da esquerda --------------------------------------------------- */
.brand {
  width: clamp(140px, 13vw, 168px);
  height: auto;
  display: block;
}

.title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: clamp(14px, 2.4vw, 26px);
  text-wrap: balance;
}

/* O passo 2 abre com o selo "inscrição confirmada", que já dá o respiro */
.title--passo2 {
  margin-top: clamp(14px, 2vw, 20px);
}

.subtitle {
  font-size: clamp(16px, 1.9vw, 18px);
  line-height: 1.55;
  color: var(--text-body);
  margin-top: clamp(10px, 1.6vw, 14px);
  max-width: 380px;
}

.subtitle--wide {
  max-width: 400px;
}

.evento {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: clamp(14px, 2.4vw, 24px);
  padding-top: clamp(14px, 2.2vw, 20px);
  border-top: 1px solid var(--line);
}

.evento span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(15px, 1.8vw, 16px);
  color: var(--ink);
}

.evento svg {
  flex: 0 0 auto;
  stroke: var(--rose-mid);
}

.selo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(18px, 2.4vw, 26px);
  padding: 8px 16px 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--rose-tint-2);
}

.selo span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--plum-800);
}

.selo svg {
  stroke: var(--cta);
}

.assinatura {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: clamp(20px, 2.8vw, 28px);
}

.assinatura__avatar {
  position: relative;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--grad-mauve);
  display: block;
}

.assinatura__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 8%;
  display: block;
}

.assinatura__txt {
  font-size: 14px;
  color: var(--text-muted);
}

/* Área de toque: ver nota equivalente em lives.css */
.assinatura__txt a {
  position: relative;
  font-weight: 600;
  color: var(--rose-mid);
}

.assinatura__txt a::after {
  content: '';
  position: absolute;
  inset: -6px -4px;
}

/* --- Barra de progresso --------------------------------------------------- */
.passos {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.passos__label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--rose-mid);
  white-space: nowrap;
}

.passos__track {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--rose-tint-2);
  overflow: hidden;
}

.passos__fill {
  display: block;
  height: 100%;
  background: var(--cta);
  border-radius: 999px;
}

/* --- Cartão --------------------------------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 2.8vw, 30px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card--obrigada {
  padding: clamp(26px, 3.2vw, 36px);
  align-items: center;
  gap: 18px;
  text-align: center;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.field input {
  padding: 15px 17px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
}

.field input:focus {
  border-color: var(--rose-300);
}

.field__hint {
  font-size: 13px;
  color: var(--text-muted);
}

.btn {
  width: 100%;
  padding: 19px 30px;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.9vw, 17px);
  font-weight: 700;
  color: var(--white);
  background: var(--cta);
  border: none;
  border-radius: 13px;
  box-shadow: var(--shadow-cta);
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.btn:hover {
  background: var(--cta-hover);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.legal {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

/* --- Passo 2 -------------------------------------------------------------- */

.card__pergunta {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.opcoes {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.opcao {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream-50);
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
}

.opcao:hover {
  border-color: var(--rose-300);
}

.opcao input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
}

/* --- Obrigada ------------------------------------------------------------- */
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--rose-tint-2);
}

.check svg {
  stroke: var(--cta);
}

.btn-whats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 19px 26px;
  border-radius: 13px;
  background: var(--cta);
  color: var(--white);
  font-size: clamp(16px, 1.9vw, 17px);
  font-weight: 700;
  box-shadow: var(--shadow-cta);
  transition: background-color 0.18s ease;
}

.btn-whats:hover {
  background: var(--cta-hover);
  color: var(--white);
}

.btn-whats svg {
  flex: 0 0 auto;
}

/* O link do grupo vem do banco (a fila de grupos do CMS), então o botão nasce
   sem destino e ganha o href quando a resposta chega. São décimos de segundo,
   mas precisam ser visíveis: botão cheio que não faz nada ao clique parece
   defeito. */
.btn-whats[aria-disabled='true'],
.btn-whats[aria-disabled='true']:hover {
  background: var(--cta);
  opacity: 0.55;
  box-shadow: none;
  cursor: default;
}

.quando {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 15px;
  color: var(--text-body);
}

.quando span:last-child {
  color: var(--text-muted);
}

/* --- Erro de envio (não existe na arte; só aparece se o POST falhar) ------- */
.erro {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #b3261e;
  text-align: center;
}

.erro:empty {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 700px) {
  .subtitle--some {
    display: none;
  }

  .assinatura {
    margin-top: 16px;
  }
}
