/* ============================================================
 * RdS soluções — Wizard de contato
 * Mecânica herdada da i9, identidade própria da RdS
 * ============================================================ */

.contato-hero {
  padding: 100px 40px 60px;
}
.contato-hero .h1 {
  max-width: 720px;
  margin-bottom: 20px;
}
.contato-hero .lead {
  max-width: 580px;
}

.contato-wizard-section {
  padding: 40px 40px 120px;
  background: var(--paper);
}
.contato-wizard-section .inner {
  max-width: 720px;
}

/* ---------- Container do wizard ---------- */
.contact-wizard {
  background: var(--paper-bright);
  border: 1px solid var(--rule-soft);
  padding: 48px 48px 32px;
}

/* ---------- Barra de progresso ---------- */
.wizard-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
}
.wp-step {
  flex: 1;
  height: 2px;
  background: var(--rule-soft);
  transition: background .25s ease;
}
.wp-step.active { background: var(--ocre); }
.wp-step.done   { background: var(--ocre); }

/* ---------- Body — steps ---------- */
.wizard-body {
  min-height: 360px;
}
.wizard-step {
  display: none;
  animation: fadeIn .3s ease;
}
.wizard-step.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wizard-q-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 16px;
}
.wizard-question {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--text-body);
  margin-bottom: 28px;
}
.wizard-question .wq-opt {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  font-style: normal;
  color: var(--text-mute);
  letter-spacing: 0;
  margin-left: 8px;
}

/* ---------- Opções (cartões) ---------- */
.wizard-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wizard-opt {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
  cursor: pointer;
  width: 100%;
}
.wizard-opt:hover {
  border-color: var(--ocre);
  background: var(--paper-bright);
}
.wizard-opt.selected {
  border-color: var(--ocre);
  background: var(--ocre-wash);
}
.wo-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  color: var(--ocre);
  margin-top: 2px;
}
.wizard-opt.selected .wo-icon {
  border-color: var(--ocre);
  background: var(--paper);
}
.wo-content { flex: 1; }
.wo-text {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-body);
  margin-bottom: 4px;
}
.wo-desc {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-soft);
}

/* ---------- Campos (textarea, input) ---------- */
.wizard-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.wizard-fields textarea,
.wizard-fields input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-body);
  background: var(--paper);
  border: 1px solid var(--rule);
  outline: none;
  line-height: 1.7;
  transition: border-color .15s ease;
}
.wizard-fields textarea { resize: vertical; min-height: 140px; }
.wizard-fields textarea:focus,
.wizard-fields input:focus { border-color: var(--ocre); }
.wizard-fields .field { display: flex; flex-direction: column; gap: 6px; }
.wizard-fields .field label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ocre);
}
.wizard-fields .field .req { color: var(--ocre); }
.wizard-fields input.error,
.wizard-fields textarea.error { border-color: #6b2a2a; }
.field-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  line-height: 1.7;
  color: var(--text-mute);
  margin-top: 4px;
}

/* ---------- Footer do wizard ---------- */
.wizard-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
}
.wizard-back {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  transition: color .15s ease;
}
.wizard-back:hover { color: var(--ocre); }

.btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--ocre);
  border-color: var(--ocre);
}

/* ---------- Tela de sucesso ---------- */
.wizard-success {
  text-align: center;
  padding: 80px 40px;
  background: var(--paper-bright);
  border: 1px solid var(--rule-soft);
}
.success-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--ocre);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}
.success-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: var(--text-body);
  margin-bottom: 16px;
}
.success-text {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 480px;
  margin: 0 auto;
}

/* ---------- Responsivo ---------- */
@media (max-width: 760px) {
  .contato-hero { padding: 64px 24px 40px; }
  .contato-wizard-section { padding: 32px 24px 80px; }
  .contact-wizard { padding: 32px 24px 24px; }
  .wizard-body { min-height: 320px; }
  .wizard-opt { padding: 14px 16px; gap: 12px; }
  .wo-icon { width: 28px; height: 28px; }
  .wo-text { font-size: 14.5px; }
  .wo-desc { font-size: 13px; }
  .wizard-footer { grid-template-columns: auto 1fr auto; gap: 12px; }
  .btn { padding: 12px 20px; font-size: 10px; }
}
