/* ======================================= */
/* INTAKE FORM EMBED (TREG)                */
/* intake.css                              */
/* ======================================= */

.intake-form {
  padding: 2.25rem 0 3.25rem;
  background: #ffffff;
}

/* Keep the embed experience clean + readable across devices */
.intake-form .container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Card: premium + consistent with site (soft edge, subtle border, soft shadow) */
.intake-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden; /* ensures iframe corners match the card */
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
}

/* Iframe: let JotForm auto-resize; keep a safe minimum for multi-step */
.intake-form iframe {
  width: 100%;
  min-height: 980px;
  border: 0;
  display: block;
}

/* Note under the form */
.intake-note {
  max-width: 760px;
  margin: 1.25rem auto 0;
  padding: 0 0.25rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #373a3a;
  text-align: center;
}

/* ========================= */
/* MOBILE                    */
/* ========================= */

@media (max-width: 640px) {
  .intake-form {
    padding: 1.5rem 0 2.5rem;
    background: #fafafa; /* subtle contrast so the card feels intentional */
  }

  .intake-form .container {
    padding: 0 1rem;
  }

  .intake-card {
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
  }

  /* If the embed handler ever misses a resize, this prevents clipping */
  .intake-form iframe {
    min-height: 1120px;
  }

  .intake-note {
    margin-top: 1rem;
    font-size: 0.95rem;
  }
}
