:root {
  --vinho: #9a1833;
  --vinho-escuro: #750b16;
  --fundo: #1c070c;
  --texto: #f8f1f2;
  --texto-suave: #ead9dd;
  --rosa: #ff5c7a;
  --erro: #ffb4c1;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

body {
  display: grid;
  place-items: center;
  padding: 32px 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--texto);
  background: var(--fundo) url("assets/fundo-clinica-laser.svg") center / cover no-repeat fixed;
}

.card {
  width: 100%;
  max-width: 560px;
  padding: 40px 36px 36px;
  border-radius: 24px;
  background: rgba(28, 7, 12, 0.8);
  border: 1px solid rgba(248, 241, 242, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.logo {
  display: block;
  width: 170px;
  height: auto;
  margin: 0 auto 24px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--texto);
}

h1 {
  margin: 0 0 10px;
  text-align: center;
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  line-height: 1.25;
}

.intro {
  margin: 0 0 28px;
  text-align: center;
  color: var(--texto-suave);
  line-height: 1.5;
}

form { display: grid; gap: 18px; }

.campo { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.campo > span, .campo > legend { font-size: 0.92rem; font-weight: 600; color: var(--texto); padding: 0; }
.campo > legend { margin-bottom: 10px; }

input[type="text"], input[type="tel"], input[type="email"] {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--texto);
  background: rgba(248, 241, 242, 0.06);
  border: 1px solid rgba(248, 241, 242, 0.2);
  border-radius: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
input::placeholder { color: rgba(234, 217, 221, 0.45); }
input:focus { outline: none; border-color: var(--rosa); background: rgba(248, 241, 242, 0.1); }

.opcoes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.opcoes label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 0.92rem;
  color: var(--texto-suave);
  border: 1px solid rgba(248, 241, 242, 0.14);
  border-radius: 10px;
  cursor: pointer;
}
.opcoes label:has(input:checked) { border-color: var(--rosa); background: rgba(194, 24, 63, 0.18); color: var(--texto); }
#segmento-outro { margin-top: 10px; }

input[type="checkbox"] { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--vinho); }

.consentimento {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--texto-suave);
  cursor: pointer;
}
.consentimento input { margin-top: 2px; }

.armadilha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.erro {
  margin: 0;
  padding: 12px 14px;
  font-size: 0.92rem;
  color: var(--erro);
  background: rgba(179, 38, 30, 0.18);
  border: 1px solid rgba(255, 180, 193, 0.35);
  border-radius: 10px;
}

.button {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 16px 24px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--vinho), var(--vinho-escuro));
  box-shadow: 0 10px 28px rgba(154, 24, 51, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(194, 24, 63, 0.6); }
.button:focus-visible, input:focus-visible { outline: 3px solid var(--rosa); outline-offset: 2px; }
.button:disabled { opacity: 0.7; cursor: wait; transform: none; }

.sucesso { text-align: center; outline: none; }
.sucesso h2 { margin: 8px 0 10px; font-size: 1.4rem; }
.sucesso p { margin: 0; color: var(--texto-suave); line-height: 1.5; }

[hidden] { display: none !important; }

@media (max-width: 700px) {
  body { background-position: 22% center; background-attachment: scroll; }
  .card { padding: 30px 20px 26px; }
}

@media (max-width: 420px) {
  .opcoes { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .button, input { transition: none; }
}
