/*
 * Laudivo — página de contato. Usa os tokens e os componentes do site
 * (landing.css); aqui ficam só o layout da página e o formulário.
 */

.ct {
  padding-top: clamp(7rem, 5.5rem + 5vw, 10rem);
  padding-bottom: var(--pad-section);
}

.ct__grid {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  align-items: start;
}

.ct__intro {
  display: grid;
  gap: 1.25rem;
}

.ct__notes {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-line);
}

.ct__notes dt {
  color: var(--c-heading);
  font-weight: 600;
}

.ct__notes dd {
  max-width: 34rem;
  margin: 0.25rem 0 0;
  color: var(--c-muted);
  line-height: 1.55;
}

.ct__notes a {
  color: var(--c-heading);
  text-decoration-color: var(--slate-300);
  text-underline-offset: 0.2em;
}

.ct__card {
  /* Ao rolar até o cartão, ele para abaixo do menu fixo. */
  scroll-margin-top: 6rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--c-line);
  border-radius: var(--card-radius);
  background: var(--c-surface);
  box-shadow: 0 1px 2px rgb(var(--c-shadow) / 0.04), 0 18px 40px rgb(var(--c-shadow) / 0.06);
}

/* ---------- Formulário ---------- */

.ct__form {
  display: grid;
  gap: 1.25rem;
}

.ct__row {
  display: grid;
  gap: 1.25rem;
}

.ct__field {
  display: grid;
  gap: 0.375rem;
  min-width: 0;
}

.ct__field label {
  color: var(--c-heading);
  font-size: 0.9375rem;
  font-weight: 600;
}

.ct__optional {
  color: var(--c-muted);
  font-weight: 400;
}

.ct__field input,
.ct__field select,
.ct__field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--slate-300);
  border-radius: 0.625rem;
  background: var(--white);
  color: var(--c-heading);
  /* 16 px evita o zoom automático do iOS ao focar um campo. */
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.ct__field textarea {
  min-height: 9rem;
  resize: vertical;
}

.ct__field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2346585e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 0.875rem center;
  background-repeat: no-repeat;
}

.ct__field input:hover,
.ct__field select:hover,
.ct__field textarea:hover {
  border-color: var(--slate-500);
}

.ct__field input:focus-visible,
.ct__field select:focus-visible,
.ct__field textarea:focus-visible {
  border-color: var(--teal-600);
  outline: none;
  box-shadow: 0 0 0 3px rgb(13 122 112 / 0.18);
}

.ct__field[data-invalid] input,
.ct__field[data-invalid] select,
.ct__field[data-invalid] textarea {
  border-color: var(--red-700);
}

.ct__error {
  margin: 0;
  color: var(--red-700);
  font-size: 0.875rem;
}

.ct__alert {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  background: var(--red-50);
  color: var(--red-800);
  font-size: 0.9375rem;
}

/* Fora da tela e fora da ordem de foco: só robôs preenchem. */
.ct__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ct__actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

/* O componente nasceu para links; num <button> tira a borda do navegador. */
.ct__actions .lp-button {
  justify-self: start;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.ct__actions .lp-button[aria-disabled="true"] {
  opacity: 0.7;
  cursor: progress;
}

.ct__privacy {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.875rem;
}

/* ---------- Confirmação ---------- */

.ct__done {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  padding-block: 1rem;
}

.ct__done:focus {
  outline: none;
}

.ct__done-symbol {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.5rem;
}

.ct__done h2 {
  color: var(--c-heading);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ct__done p {
  max-width: 30rem;
  line-height: 1.55;
}

.ct__done strong {
  color: var(--c-heading);
  overflow-wrap: anywhere;
}

@media (min-width: 40rem) {
  .ct__row {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

@media (min-width: 56rem) {
  .ct__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .ct__intro {
    position: sticky;
    top: 7rem;
  }
}

@media (max-width: 39.99rem) {
  .ct__actions .lp-button {
    justify-self: stretch;
  }
}
