/* ========================================================================
   FORMS — estilo padrão para páginas com formulário
   Base: marfim (herda de .cb-marfim), inputs sóbrios, CTA dourado
   ======================================================================== */

.fm-section {
  min-height: calc(100vh - 96px);
  padding: 2rem 1.5rem 3rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fm-wrap {
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}
.fm-eyebrow {
  font-family: 'Albert Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #A57F4F;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.fm-eyebrow::before, .fm-eyebrow::after {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  background: #A57F4F;
  opacity: .5;
}
.fm-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  color: #1B1814;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}
.fm-title em { font-style: italic; color: #A57F4F; }
.fm-sub {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(27,24,20,.72);
  line-height: 1.55;
  margin: 0 0 40px;
}

/* Form */
.fm-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
  margin-top: 24px;
}
.fm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fm-label {
  font-family: 'Albert Sans', sans-serif;
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #A57F4F;
  font-weight: 500;
}
.fm-input, .fm-select, .fm-textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(27,24,20,.18);
  border-radius: 0;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 16px;
  color: #1B1814;
  transition: border-color .25s ease, background .25s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.fm-input:focus, .fm-select:focus, .fm-textarea:focus {
  border-color: #A57F4F;
  background: rgba(255,255,255,.9);
}
.fm-textarea { min-height: 110px; resize: vertical; font-family: 'Source Serif 4', serif; }

/* Phone: país + número lado a lado */
.fm-phone { display: flex; gap: 8px; }
.fm-phone-country {
  flex: 0 0 130px;
  padding-right: 36px;
  background-position: right 12px center;
}
.fm-phone-number { flex: 1; }
.fm-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A57F4F' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

/* Radio cards (perguntas do diagnóstico) */
.fm-choices {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.fm-choice {
  display: block;
  padding: 18px 20px;
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(27,24,20,.18);
  cursor: pointer;
  transition: all .25s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  color: #1B1814;
  line-height: 1.4;
}
.fm-choice input { position: absolute; opacity: 0; pointer-events: none; }
.fm-choice:hover {
  border-color: #A57F4F;
  background: rgba(255,255,255,.85);
  transform: translateY(-1px);
}
.fm-choice.is-selected, .fm-choice:has(input:checked) {
  border-color: #CE9D62;
  background: rgba(206,157,98,.10);
  box-shadow: 0 4px 16px -8px rgba(206,157,98,.4);
}

/* CTA submit */
.fm-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 40px;
  background: #CE9D62;
  color: #1B1814;
  font-family: 'Albert Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  border: 1px solid #CE9D62;
  border-radius: 0;
  cursor: pointer;
  transition: all .35s cubic-bezier(0.22, 1, 0.36, 1);
  align-self: center;
  margin-top: 12px;
  min-width: 260px;
  line-height: 1;
}
.fm-submit:hover:not(:disabled) {
  background: #A57F4F;
  color: #E8E6DF;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -16px rgba(206,157,98,.6);
}
.fm-submit:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.fm-submit:disabled { opacity: .5; cursor: not-allowed; }

/* Multi-step wrapper */
.fm-steps { display: flex; flex-direction: column; gap: 12px; }
.fm-step { display: none; }
.fm-step.is-active { display: flex; flex-direction: column; gap: 18px; animation: fmFade .35s ease; }
@keyframes fmFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.fm-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 32px;
  justify-content: center;
}
.fm-progress-dot {
  width: 32px;
  height: 3px;
  background: rgba(27,24,20,.18);
  transition: background .3s ease;
}
.fm-progress-dot.is-done { background: #A57F4F; }
.fm-progress-dot.is-active { background: #CE9D62; }

/* Nav step buttons */
.fm-step-nav {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 16px;
}
.fm-step-nav .fm-back { flex: 0 0 30%; }
.fm-step-nav .fm-submit, .fm-step-nav .fm-next { flex: 1; margin-top: 0 !important; min-width: 0 !important; }
.fm-back {
  background: transparent;
  border: 1px solid rgba(27,24,20,.25);
  color: rgba(27,24,20,.7);
  padding: 18px 24px;
  font-family: 'Albert Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s ease;
  line-height: 1;
}
.fm-back:hover { background: rgba(27,24,20,.06); border-color: #A57F4F; color: #A57F4F; }
.fm-back:hover { background: rgba(27,24,20,.06); border-color: #A57F4F; color: #A57F4F; }
.fm-next { flex: 1; }

/* Status (loading, success, error) */
.fm-status {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 14px;
  color: rgba(27,24,20,.7);
  margin-top: 12px;
  text-align: center;
  min-height: 20px;
}
.fm-status.is-error { color: #B54B3B; }
.fm-status.is-success { color: #4a7f4f; }

/* Página de agradecimento */
.fm-thanks-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  color: #CE9D62;
}
.fm-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 44px;
  background: #CE9D62;
  color: #1B1814;
  font-family: 'Albert Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  transition: all .35s cubic-bezier(0.22, 1, 0.36, 1);
  margin-top: 32px;
}
.fm-cta-link:hover { background: #A57F4F; color: #E8E6DF; transform: translateY(-2px); box-shadow: 0 14px 32px -16px rgba(206,157,98,.6); }

/* Rating estrelas */
.fm-rating { display: flex; gap: 8px; justify-content: center; margin: 8px 0 16px; }
.fm-star {
  cursor: pointer;
  width: 42px;
  height: 42px;
  color: rgba(27,24,20,.25);
  transition: color .2s ease, transform .2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fm-star:hover, .fm-star.is-active { color: #CE9D62; transform: scale(1.15); }

/* Mobile */
@media (max-width: 600px) {
  .fm-section { padding: 5rem 1rem 3rem !important; }
  .fm-submit { min-width: 100%; }
  .fm-step-nav { flex-direction: column-reverse; }
  .fm-back { width: 100%; }
}
