/* Estilos do formulário do CRM, do banner de cookies e do link de privacidade.
   Usa as variáveis de cor e fontes do próprio site (--ink, --paper, --champagne...). */

.crm-contato {
  position: relative;
  padding: 7rem 1.25rem;
  border-top: 1px solid var(--line-soft);
}
.crm-contato__inner {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 900px) {
  .crm-contato { padding: 9rem 2.5rem; }
  .crm-contato__inner { grid-template-columns: 1fr 1.1fr; gap: 5rem; }
}
.crm-contato__titulo {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--paper);
  margin-top: 1.5rem;
  text-wrap: balance;
}
.crm-contato__sub {
  margin-top: 1.5rem;
  color: var(--mist);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 28rem;
}

.crm-form { display: grid; gap: 1.1rem; }
.crm-campo { display: grid; gap: 0.45rem; }
.crm-campo span {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}
.crm-campo em { font-style: normal; text-transform: none; letter-spacing: 0; }
.crm-campo input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-champagne);
  padding: 0.6rem 0;
  color: var(--paper);
  font: inherit;
  font-size: 1rem; /* 16px evita o zoom automático no iPhone */
  color-scheme: dark;
  transition: border-color 0.2s ease;
}
.crm-campo input::placeholder { color: oklch(66.5% 0.008 80 / 0.5); }
.crm-campo input:focus { outline: none; border-bottom-color: var(--champagne); }

.crm-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--mist);
  margin-top: 0.4rem;
}
.crm-check input { margin-top: 0.2rem; accent-color: var(--champagne); width: 1rem; height: 1rem; flex: none; }
.crm-check a, .crm-cookies a, .crm-privacidade a { color: var(--champagne); text-decoration: underline; text-underline-offset: 3px; }

.crm-botao {
  margin-top: 0.8rem;
  justify-self: start;
  border: 0;
  border-radius: 999px;
  padding: 1rem 2rem;
  background: var(--champagne);
  color: var(--ink);
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.15s ease;
}
.crm-botao:hover { background: var(--paper); }
.crm-botao:active { transform: scale(0.97); }
.crm-botao:disabled { opacity: 0.6; cursor: wait; }
.crm-status { min-height: 1.4em; font-size: 0.85rem; color: var(--champagne); }

.crm-isca { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.crm-cookies {
  position: fixed;
  z-index: 60;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line-champagne);
  border-radius: 1rem;
  background: oklch(14.5% 0.002 106 / 0.96);
  backdrop-filter: blur(8px);
  color: var(--paper);
  font-size: 0.85rem;
  line-height: 1.5;
  display: grid;
  gap: 0.9rem;
  box-shadow: 0 20px 60px -20px rgb(0 0 0 / 0.6);
}
.crm-cookies__acoes { display: flex; gap: 0.6rem; justify-content: flex-end; }
.crm-cookies button {
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.crm-cookies__recusar { background: transparent; color: var(--paper); border: 1px solid var(--line-champagne); }
.crm-cookies__aceitar { background: var(--champagne); color: var(--ink); border: 1px solid var(--champagne); }

.crm-privacidade { margin-top: 1rem; font-size: 0.75rem; color: var(--mist); }
.crm-privacidade button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--champagne);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ===================================================================
   Repaginação para celular (até 767px). Só sobrescreve estilos do site
   original; não muda textos, fotos nem a ordem das seções.
   =================================================================== */
@media (max-width: 767px) {
  /* Leitura: rótulos e títulos estavam pequenos demais no celular. */
  .eyebrow { font-size: 0.7rem !important; line-height: 1.4 !important; letter-spacing: 0.24em !important; }
  .display-section { font-size: 2rem !important; line-height: 1.08 !important; letter-spacing: 0 !important; text-wrap: balance; }
  h3.display-section { font-size: 1.75rem !important; }
  .display-quote { text-wrap: balance; }
  .body-lg { font-size: 1rem; line-height: 1.7; }
  main section { scroll-margin-top: 4.5rem; }

  /* Seções um pouco mais compactas: menos "vazio" entre blocos no celular. */
  main > section.py-24 { padding-top: 4.5rem !important; padding-bottom: 4.5rem !important; }
  main > section.py-28 { padding-top: 5.5rem !important; padding-bottom: 5.5rem !important; }

  /* Cartões de procedimento: superfície mais limpa, borda dourada suave e cantos consistentes. */
  #procedimentos .bg-card {
    border-radius: 1.5rem !important;
    padding: 1.75rem 1.4rem !important;
    border-color: var(--line-champagne) !important;
    background:
      linear-gradient(180deg, oklch(89.5% 0.033 88 / 0.06), transparent 40%),
      var(--ink-2, oklch(19.2% 0.004 135)) !important;
    box-shadow: 0 30px 60px -40px rgb(0 0 0 / 0.8);
  }
  #procedimentos .bg-card .display-price { font-size: 2.6rem !important; line-height: 1 !important; }
  #procedimentos .bg-card p[class*="tracking-[0.22em]"] { font-size: 0.68rem !important; padding: 0.4rem 0.9rem !important; }
  #procedimentos .bg-card img { height: 12rem !important; border-radius: 1rem !important; opacity: 1 !important; }
  #procedimentos .bg-card a {
    width: 100% !important;
    padding: 1.05rem 1rem !important;
    letter-spacing: 0.16em !important;
    text-align: center;
    white-space: nowrap;
  }

  /* Aviso "Condição válida...": de caixa verde centralizada para nota discreta. */
  #procedimentos .bg-olive-deep {
    background: transparent !important;
    border-left: 2px solid var(--champagne);
    border-radius: 0 !important;
    text-align: left !important;
    padding: 0.25rem 0 0.25rem 1rem !important;
    margin-top: 0.5rem;
  }
  #procedimentos .bg-olive-deep p { color: var(--mist) !important; font-size: 0.85rem !important; line-height: 1.6; }

  /* Unidades: cartões com o mesmo raio dos demais e mapa com cantos arredondados. */
  article.bg-card { border-radius: 1.25rem !important; border-color: var(--line-champagne) !important; }
  article.bg-card iframe { filter: grayscale(0.35) contrast(0.95); }
  article.bg-card .p-5 { padding: 1.25rem 1.25rem 1.4rem !important; }

  /* Lista "Quem vai te atender" e perguntas frequentes: toque mais confortável. */
  #duvidas button { padding-top: 1.35rem !important; padding-bottom: 1.35rem !important; }
  #duvidas button span { font-size: 1.2rem !important; line-height: 1.3; }

  /* Botão flutuante "Agendar": menor e sem cobrir o formulário nem o aviso de cookies. */
  a.fixed.bottom-5[href*="wa.me"] {
    right: 1rem !important;
    bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
    padding: 0.85rem 1.1rem !important;
  }
  body.crm-ocultar-flutuante a.fixed.bottom-5[href*="wa.me"] { opacity: 0; pointer-events: none; transform: translateY(1rem); }
  a.fixed.bottom-5[href*="wa.me"] { transition: opacity 0.25s ease, transform 0.25s ease !important; }

  /* Formulário de contato no celular. */
  .crm-contato { padding: 4.5rem 1.25rem 5rem; }
  .crm-contato__inner { gap: 2.25rem; }
  .crm-botao { justify-self: stretch; padding: 1.1rem 1.5rem; }
  .crm-cookies { bottom: calc(0.75rem + env(safe-area-inset-bottom)); left: 0.75rem; right: 0.75rem; }
  .crm-cookies__acoes button { flex: 1; }
}

/* ===================================================================
   "Como funciona" (#metodo): em vez de números duplicados (o número
   pequeno + o número gigante apagado) e blocos desalinhados em escada,
   uma linha do tempo com o número dentro de um círculo dourado.
   Vale para celular e computador.
   =================================================================== */
#metodo .relative[style*="margin-left"] { margin-left: 0 !important; }
#metodo span[aria-hidden="true"].font-display { display: none !important; }
#metodo .hairline { display: none !important; }
#metodo .mt-16 > .reveal > .relative > .relative {
  position: relative;
  padding: 0 0 2.75rem 4.25rem !important;
  overflow: visible !important;
}
/* Linha vertical ligando as etapas (não aparece depois da última). */
#metodo .mt-16 > .reveal > .relative > .relative::before {
  content: '';
  position: absolute;
  left: 1.375rem;
  top: 3.25rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(var(--line-champagne), transparent);
}
#metodo .mt-16 > .reveal:last-child > .relative > .relative::before { display: none; }
#metodo .mt-16 > .reveal:last-child > .relative > .relative { padding-bottom: 0.5rem !important; }
/* Número da etapa dentro de um círculo. */
#metodo .mt-16 span.eyebrow {
  position: absolute;
  left: -4.25rem;
  top: -0.15rem;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-champagne);
  border-radius: 999px;
  background: oklch(89.5% 0.033 88 / 0.06);
  font-family: 'Cormorant Garamond', 'Times New Roman', serif !important;
  font-size: 1.05rem !important;
  letter-spacing: 0 !important;
  color: var(--champagne);
}
#metodo .mt-16 h3.display-section { margin-top: 0.35rem !important; }
#metodo .mt-16 .body-lg { margin-top: 0.85rem !important; }
@media (min-width: 768px) {
  #metodo .mt-16 > .reveal > .relative > .relative { padding: 0 0 3.5rem 6rem !important; }
  #metodo .mt-16 > .reveal > .relative > .relative::before { left: 1.75rem; top: 4rem; }
  #metodo .mt-16 span.eyebrow { left: -6rem; width: 3.5rem; height: 3.5rem; font-size: 1.3rem !important; }
}
@media (max-width: 767px) {
  #metodo .mt-16 { margin-top: 2.75rem !important; }
}
