/* Larson Family Orthodontics: inline appointment form, 2026-09-08.
 *
 * WHY
 * Every call to action on the ad landing pages (Gilbert location page + six treatment pages)
 * linked out to /appointment-request, so a paid click needed a second page load before it
 * could submit anything. 63 of 79 paid clicks in the prior 30 days were on mobile. This puts
 * the SAME Elementor form (same fields, hidden attribution fields, honeypot, disclosure, same
 * GHL webhook via assets/js/site.js) on those pages: a mint band directly under the hero with
 * reassurance copy left and the form card right, and the bottom band's button becomes a form.
 * The hero itself is untouched; its button now scrolls to the form section.
 *
 * Brand values only: ink #221F20, dark green #2F5E4B, mint #AED6C1 (as a fill, per the brand
 * kit), contrast-fixed orange #AB620C (see ob-fixes.css A20). No new colours. Fonts inherit.
 */

/* ---- Form section under the hero ---- */
.ob-form-section {
  background: #AED6C1;
  padding: 44px 20px;
  scroll-margin-top: 90px;
}
.ob-form-section__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 40px;
  align-items: center;
}
.ob-form-section__copy { color: #221F20; }
.ob-form-section__title {
  color: #221F20;
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.15;
}
.ob-form-section__copy p { margin: 0 0 14px; font-size: 1.05rem; line-height: 1.55; }
.ob-form-section__list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.ob-form-section__list li {
  position: relative;
  padding-left: 26px;
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.45;
}
.ob-form-section__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2F5E4B;
}
.ob-form-section__phone { font-size: 1rem; }
.ob-form-section__phone a { color: #2F5E4B; font-weight: 700; text-decoration: none; }
.ob-form-section__phone a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .ob-form-section { padding: 32px 16px; }
  .ob-form-section__inner { grid-template-columns: 1fr; gap: 22px; }
  .ob-form-section__title { font-size: 1.6rem; }
}

/* ---- The card ---- */
.ob-inline-form {
  background: #ffffff;
  border: 1px solid #e3e6e8;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(34, 31, 32, 0.14);
  padding: 26px 24px 20px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
}
.ob-inline-form--band { max-width: 420px; }
.ob-inline-form__title {
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 0 0 6px;
  color: #221F20;
}
.ob-inline-form__sub {
  margin: 0 0 14px;
  color: #4b4a4a;
  font-size: 0.95rem;
  line-height: 1.5;
}
.ob-inline-form .elementor-form-fields-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
}
.ob-inline-form .elementor-field-group { width: 100%; padding: 0; }
.ob-inline-form .elementor-field-textual {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #c9ced3;
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 16px; /* 16px stops iOS zooming the viewport on focus */
  line-height: 1.3;
  color: #221F20;
  background: #fff;
}
.ob-inline-form .elementor-field-textual:focus {
  outline: 2px solid #2F5E4B;
  outline-offset: 1px;
  border-color: #2F5E4B;
}
.ob-inline-form .e-form__buttons { margin-top: 4px; }
.ob-inline-form .elementor-button[type="submit"] {
  width: 100%;
  background-color: #AB620C; /* 4.68:1 with white, per ob-fixes.css A20 */
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  padding: 15px 18px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
}
.ob-inline-form .elementor-button[type="submit"]:hover,
.ob-inline-form .elementor-button[type="submit"]:focus-visible { background-color: #8f5209; }
.ob-inline-form .elementor-button[type="submit"][disabled] { opacity: 0.7; cursor: default; }
.ob-inline-form .form-msg.err {
  margin-top: 10px;
  color: #8a1f1f;
  font-size: 0.9rem;
  line-height: 1.45;
}
.ob-inline-form .form-msg.err a { color: #8a1f1f; }
.ob-inline-form .ob-disclosure {
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.75;
  margin: 10px 0 0;
}

/* Bottom band ("Ready to Take the Next Step?") sits on a dark ground: card keeps its
   white surface, the band's own text colours are untouched. */
.elementor-1539 .ob-inline-form { box-shadow: 0 12px 34px rgba(0, 0, 0, 0.25); }

/* ---- Mobile sticky call / request bar. Hidden on desktop. Optional: delete this block
        and the .ob-sticky-cta markup to remove it. ---- */
.ob-sticky-cta { display: none; }
@media (max-width: 767px) {
  .ob-sticky-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9990;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #e3e6e8;
    box-shadow: 0 -6px 20px rgba(34, 31, 32, 0.08);
  }
  .ob-sticky-cta a {
    display: block;
    text-align: center;
    padding: 13px 8px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    min-height: 48px;
    line-height: 1.3;
  }
  .ob-sticky-cta__call { background: #fff; color: #2F5E4B; border: 2px solid #2F5E4B; }
  .ob-sticky-cta__form { background: #AB620C; color: #fff; border: 2px solid #AB620C; }
  body { padding-bottom: 78px; } /* room so the bar never covers the footer */
}
