/* Pedido de retorno: complemento local da landing, carregado depois de style.css. */
.pedido-retorno {
  max-width: 42rem;
  margin-top: 1.75rem;
  padding: clamp(1.25rem, 4vw, 1.75rem);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 26px -22px rgba(51, 38, 42, 0.48);
}

.pedido-retorno [hidden] {
  display: none !important;
}

.pedido-retorno h2 {
  font-size: clamp(1.25rem, 2vw + 0.55rem, 1.6rem);
  margin-bottom: 0.35rem;
}

.pedido-retorno__intro {
  margin-bottom: 1.15rem;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.pedido-retorno__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
}

.pedido-retorno__field {
  min-width: 0;
}

.pedido-retorno label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 700;
}

.pedido-retorno input[type="text"],
.pedido-retorno input[type="tel"] {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.pedido-retorno input[type="text"]:focus,
.pedido-retorno input[type="tel"]:focus,
.pedido-retorno input[type="checkbox"]:focus-visible,
.pedido-retorno__again:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.pedido-retorno input[aria-invalid="true"] {
  border-color: #9A304F;
}

.pedido-retorno__help,
.pedido-retorno__error,
.pedido-retorno__status,
.pedido-retorno__noscript {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
}

.pedido-retorno__help {
  color: var(--text-muted);
}

.pedido-retorno__error,
.pedido-retorno__status.is-error {
  color: #8A2441;
  font-weight: 600;
}

.pedido-retorno__consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  margin-top: 1rem;
}

.pedido-retorno__consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.22rem 0 0;
  accent-color: var(--accent-btn);
}

.pedido-retorno__consent label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
}

.pedido-retorno__consent a,
.pedido-retorno__noscript a {
  color: var(--primary);
  text-underline-offset: 2px;
}

.pedido-retorno__submit {
  width: 100%;
  margin-top: 1.1rem;
}

.pedido-retorno__submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.pedido-retorno__status {
  min-height: 1.3em;
}

.pedido-retorno__success {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.pedido-retorno__success p {
  width: 100%;
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.pedido-retorno__success .btn {
  min-height: 46px;
}

.pedido-retorno__again {
  min-height: 44px;
  padding: 0.45rem 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pedido-retorno__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
}

.pedido-retorno__noscript {
  color: var(--text-muted);
}

/* O formulário é uma alternativa logo no primeiro contato: no celular, o
   retrato continua presente sem empurrar os campos para depois da dobra. */
@media (max-width: 899px) {
  .hero {
    padding-block: 1.25rem 2rem;
  }

  .hero .container {
    gap: 0.75rem;
  }

  .hero-photo {
    width: clamp(5.5rem, 27vw, 7rem);
    margin: 0;
  }

  .hero-photo img {
    aspect-ratio: 1;
    border-radius: 50%;
    object-position: 50% 28%;
  }

  .hero-copy .credential {
    margin-bottom: 0.75rem;
    padding: 0.35em 0.75em;
    font-size: 0.78rem;
  }

  .hero h1 {
    margin-bottom: 0.45em;
    font-size: clamp(1.75rem, 7.2vw, 2rem);
  }

  .hero .lede {
    font-size: 1rem;
  }

  .hero-actions {
    gap: 0.35rem 0.65rem;
    margin-top: 0.85rem;
  }

  .hero-actions .btn-ghost {
    align-self: flex-start;
    min-height: 0;
    padding: 0.15rem 0;
    border-color: transparent;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .hero-actions .btn-ghost:hover {
    border-color: transparent;
    background: transparent;
  }

  .hero-note {
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-size: 0.82rem;
  }

  .pedido-retorno {
    margin-top: 1.15rem;
  }
}

@media (min-width: 560px) {
  .pedido-retorno__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pedido-retorno__submit {
    width: auto;
    min-width: 14rem;
  }
}

@media (min-width: 900px) {
  .hero {
    padding-block: clamp(2.25rem, 4vw, 3.5rem);
  }

  .hero .container {
    gap: clamp(2rem, 4vw, 3rem);
  }

  .hero h1 {
    font-size: clamp(2.3rem, 3.1vw, 2.65rem);
  }

  .hero-copy .credential {
    margin-bottom: 1rem;
  }

  .hero-actions {
    margin-top: 1.25rem;
  }

  .hero-note {
    margin-top: 0.75rem;
  }

  .pedido-retorno {
    margin-top: 1.25rem;
  }
}
