/* ==================================================================
   LUXUS BR — Página: Contato
   Formulário em etapas, canais de contato e confirmação.
   Complementa /assets/css/styles.css.
   ================================================================== */

.ct-text { color: var(--text-muted); font-size: var(--fs-lead); }
.ct-text-sm { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Hero ---------- */
.ct-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(2rem, 1.5rem + 3vw, 4rem)) 0 clamp(3rem, 2.5rem + 3vw, 5rem);
}
.ct-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(42rem 30rem at 85% 30%, rgba(201, 162, 75, 0.14), transparent 62%),
    linear-gradient(180deg, #0c0c0d 0%, var(--bg) 100%);
}
.ct-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--gold-line); opacity: 0.45; }
.ct-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: end; }
.ct-hero__title { font-size: clamp(2.1rem, 1.25rem + 3.2vw, 3.8rem); font-weight: 200; letter-spacing: -0.035em; line-height: 1.06; max-width: 17ch; }
.ct-hero__title .text-gold { font-weight: 300; }
.ct-hero__lead { max-width: 40rem; margin: 1.75rem 0 2.25rem; font-size: var(--fs-lead); color: var(--text-muted); }
.ct-hero__copy > * { animation: rise 0.9s var(--ease) both; }
.ct-hero__copy > :nth-child(n + 3) { animation-delay: 0.08s; }

.ct-channels { display: grid; gap: 0.9rem; animation: rise 1s 0.15s var(--ease) both; }
.channel {
  position: relative;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}
.channel--form { border-color: var(--gold-edge); background: radial-gradient(120% 120% at 100% 0%, rgba(201, 162, 75, 0.14), rgba(16, 16, 15, 0.9)); }
.channel__num { position: absolute; right: 1.25rem; top: 1rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; color: var(--gold); }
.channel__title { font-size: 1.3rem; font-weight: 300; margin-bottom: 0.4rem; }
.channel p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.5rem; }

/* ---------- Introdução ---------- */
.ct-intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: start; }

/* ---------- Formulário ---------- */
.ct-form-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.ct-form-head { position: sticky; top: calc(var(--header-h) + 2rem); }
.ct-form-head .ct-text { margin-top: 1.25rem; }

.stepper[role="list"] { display: grid; gap: 0; margin: 2rem 0; border-left: 1px solid var(--line-strong); }
.stepper li { position: relative; display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem 0 0.7rem 1.4rem; color: var(--text-muted); font-size: 0.95rem; }
.stepper li span {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-size: 0.8rem;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.stepper li::before { content: ""; position: absolute; left: -1px; top: 0.7rem; bottom: 0.7rem; width: 2px; background: transparent; transition: background-color 0.3s var(--ease); }
.stepper li.is-done { color: var(--silver); }
.stepper li.is-done span { border-color: var(--gold-edge); color: var(--gold-light); }
.stepper li[aria-current="step"] { color: var(--text); }
.stepper li[aria-current="step"]::before { background: var(--gold); }
.stepper li[aria-current="step"] span { background: var(--gold-grad); border-color: transparent; color: #111; font-weight: 700; }

.ct-direct { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; padding: 1.1rem 1.25rem; border: 1px dashed var(--line-strong); border-radius: 14px; }
.ct-direct p { color: var(--text-muted); font-size: 0.95rem; }
.ct-direct strong { font-weight: 500; color: var(--text); }

.ct-form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border: 1px solid var(--gold-edge);
  border-radius: calc(var(--radius-lg) + 4px);
  background: radial-gradient(60rem 20rem at 100% 0%, rgba(201, 162, 75, 0.08), transparent 60%), linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: var(--shadow-deep);
}
.ct-noscript { padding: 1rem 1.2rem; border: 1px solid var(--gold-edge); border-radius: 12px; color: var(--silver); }
.ct-noscript a { color: var(--gold-light); }

.lead-form__progress { margin-bottom: 0.5rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); }
.form-alert { margin-bottom: 1.25rem; padding: 0.9rem 1.1rem; border: 1px solid rgba(224, 138, 122, 0.55); border-radius: 12px; background: rgba(224, 138, 122, 0.08); color: #f0c2b8; font-size: 0.95rem; }

.step { margin: 0; padding: 0; border: 0; min-width: 0; }
.step__title { float: left; width: 100%; margin-bottom: 1.5rem; padding: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 300; letter-spacing: -0.02em; }
.step__title:focus { outline: none; }
.step__title + * { clear: both; }

.fld { margin-bottom: 1.25rem; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.lead-form label, .choices__legend { display: block; margin-bottom: 0.45rem; font-size: 0.92rem; color: var(--silver); }
.req, .opt { margin-left: 0.35rem; font-size: 0.72rem; letter-spacing: 0.04em; }
.req { color: var(--gold-light); }
.opt { color: var(--text-muted); }
.lead-form input[type="text"], .lead-form input[type="tel"], .lead-form input[type="email"], .lead-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(10, 10, 11, 0.7);
  color: var(--text);
  font: inherit;
  font-size: 1rem; /* evita zoom automático no iOS */
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.lead-form textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: rgba(214, 214, 214, 0.38); }
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.2); }
.lead-form [aria-invalid="true"] { border-color: #e08a7a; }
.fld__hint { margin-top: 0.4rem; font-size: 0.82rem; color: var(--text-muted); }
.fld__error { margin-top: 0.4rem; font-size: 0.85rem; color: #f0b3a6; }
.fld__error::before { content: "! "; font-weight: 700; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: 0 0 0.5rem; padding: 0; border: 0; min-width: 0; }
.choices__legend { grid-column: 1 / -1; float: left; width: 100%; padding: 0; margin-bottom: 0.6rem; }
.choice { position: relative; display: block; margin: 0 !important; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0.75rem 1rem 0.75rem 2.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(10, 10, 11, 0.6);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.35;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.choice span::before {
  content: "";
  position: absolute;
  left: 1rem; top: 50%;
  width: 18px; height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.choice:hover span { border-color: var(--gold-edge); }
.choice input:checked + span { border-color: var(--gold); background: rgba(201, 162, 75, 0.1); }
.choice input:checked + span::before { border-color: var(--gold-light); box-shadow: inset 0 0 0 4px #141413, inset 0 0 0 9px var(--gold-light); }
.choice input:focus-visible + span { box-shadow: var(--focus); }
.choices[aria-describedby] ~ .fld__error { margin: -0.1rem 0 1rem; }
.choice input[aria-invalid="true"] + span { border-color: rgba(224, 138, 122, 0.6); }

/* Revisão */
.review { display: grid; gap: 0.9rem; margin: 1.25rem 0 1.5rem; }
.review__group { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 10, 11, 0.5); }
.review__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.review__head h3 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); }
.review__edit { min-height: 36px; padding: 0.3rem 0.8rem; border: 1px solid var(--line-strong); border-radius: 999px; background: none; color: var(--silver); font: inherit; font-size: 0.82rem; cursor: pointer; }
.review__edit:hover { border-color: var(--gold-edge); color: var(--gold-light); }
.review dl { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.35rem 1rem; margin: 0; font-size: 0.93rem; }
.review dt { color: var(--text-muted); }
.review dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Consentimento */
.consent { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: start; padding: 1rem 1.1rem; border: 1px solid var(--gold-edge); border-radius: 12px; background: rgba(201, 162, 75, 0.05); }
.consent input { width: 22px; height: 22px; margin: 0.15rem 0 0; accent-color: var(--gold); cursor: pointer; }
.consent label { margin: 0 !important; color: var(--text) !important; font-size: 0.95rem !important; line-height: 1.5; cursor: pointer; }
.consent__note { margin-top: 0.7rem; }
.consent__note a, .consent label a { color: var(--gold-light); }
.link-btn { padding: 0; border: 0; background: none; color: var(--gold-light); font: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }

.lead-form__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.lead-form__nav [data-next], .lead-form__nav [data-submit] { margin-left: auto; min-width: 12rem; }
.lead-form[aria-busy="true"] [data-submit] { cursor: progress; }

/* Campo-armadilha (fora da tela, ignorado por leitores de tela) */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Confirmação */
.done { text-align: center; padding: 1rem 0; }
.done__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1.25rem; border-radius: 50%; background: var(--gold-grad); color: #111; box-shadow: 0 0 0 10px rgba(201, 162, 75, 0.1); }
.done__title { margin-bottom: 1rem; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); font-weight: 300; }
.done__title:focus { outline: none; }
.done p { max-width: 34rem; margin-inline: auto; color: var(--text-muted); }
.done .btn { margin: 1.25rem 0 0.75rem; }
.done__note { font-size: 0.85rem; }
.done .link-arrow { margin-top: 1rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .ct-hero__grid, .ct-intro__grid, .ct-form-grid { grid-template-columns: minmax(0, 1fr); }
  .ct-form-head { position: static; }
  .stepper[role="list"] { display: flex; margin: 1.5rem 0; border-left: 0; overflow-x: auto; }
  .stepper li { flex: 1 0 auto; flex-direction: column; gap: 0.35rem; padding: 0 0.5rem; font-size: 0.75rem; text-align: center; }
  .stepper li::before { display: none; }
}
@media (max-width: 600px) {
  .fld-row, .choices { grid-template-columns: minmax(0, 1fr); }
  .review dl { grid-template-columns: minmax(0, 1fr); }
  .review dd { margin-bottom: 0.4rem; }
  .ct-hero .btn, .done .btn { width: 100%; }
  .lead-form__nav .btn { flex: 1 1 100%; min-width: 0; }
  .lead-form__nav [data-prev] { order: 2; }
  .stepper li { font-size: 0; gap: 0; }
  .stepper li span { font-size: 0.8rem; }
}
