/* ─────────────────────────────────────────────────────────────
   DOCTOR PAGE — call to action with the lead form
   (template-parts/doctor-cta.php, printed under the hero and at the foot)

   The block itself is the treatment page's "ייעוץ ראשוני או בדיקת התאמה"
   (.dmc-clinic-contact-sec / .dmc-clinic-hor-form), whose card and fields
   are already styled by team-member.css on this page. Set here: the visible
   labels kept for screen readers only (the design shows placeholders), and
   the doctor's own heading, which runs longer than the treatment page's.
   ───────────────────────────────────────────────────────────── */

.dmc-dr-page-wrapper.dmc-dr-story .dmc-dr-cta__label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.dmc-dr-page-wrapper.dmc-dr-story .dmc-dr-cta .dmc-clinic-hor-form__input-wrap {
  position: relative;
}

/* Heading, subtitle, phone link and card background — restated from the
   treatment page, where they sit in an inline <style> in
   single-dmc_treatment.php ("Footer Contact Form Redesign"), so they do not
   reach this page. Scoped to .dmc-dr-cta, which is one class heavier. */
.dmc-dr-page-wrapper.dmc-dr-story .dmc-dr-cta .dmc-clinic-contact-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 16px !important;
  margin-bottom: 10px !important;
  text-align: center !important;
  width: 100% !important;
}

.dmc-dr-page-wrapper.dmc-dr-story .dmc-dr-cta .dmc-clinic-contact-title {
  font-family: 'Polin', sans-serif !important;
  font-style: normal !important;
  font-weight: 700 !important;
  /* The treatment page's clamp(32px, 4.5vw, 52px). The doctor lines run
     longer than its four words, so the top is 44 and the line is capped
     to keep it to two lines on a desktop card. */
  font-size: clamp(28px, 3.4vw, 44px) !important;
  line-height: 1.2 !important;
  text-align: center !important;
  color: #283565 !important;
  margin: 0 !important;
  max-width: 1000px;
}

.dmc-dr-page-wrapper.dmc-dr-story .dmc-dr-cta .dmc-clinic-contact-subtitle {
  font-family: 'Polin', sans-serif !important;
  font-style: normal !important;
  font-weight: 500 !important;
  font-size: clamp(16px, 1.8vw, 20px) !important;
  line-height: 1.4 !important;
  text-align: center !important;
  color: #283565 !important;
  margin: 0 !important;
}

.dmc-dr-page-wrapper.dmc-dr-story .dmc-dr-cta .dmc-clinic-contact-accent {
  color: #087CF5 !important;
}

.dmc-dr-page-wrapper.dmc-dr-story .dmc-dr-cta .dmc-phone-link {
  color: #087CF5 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}

.dmc-dr-page-wrapper.dmc-dr-story .dmc-dr-cta .dmc-phone-link:hover,
.dmc-dr-page-wrapper.dmc-dr-story .dmc-dr-cta .dmc-phone-link:focus-visible {
  text-decoration: underline !important;
}

.dmc-dr-page-wrapper.dmc-dr-story .dmc-dr-cta .dmc-clinic-hor-form {
  background-image: url('/wp-content/uploads/2026/06/hor-form-bg3.png') /* root-relative: survives the move off the staging domain */ !important;
  background-size: cover !important;
}

/* Under the hero the block is followed straight by another section with its
   own 100px top padding; the treatment page's 150px bottom (meant for the
   gap above the footer) would leave a 250px hole. The foot copy keeps it. */
.dmc-dr-page-wrapper.dmc-dr-story .dmc-dr-cta--top.dmc-clinic-contact-sec {
  padding-bottom: 20px !important;
}

@media (max-width: 767px) {
  /* The longest doctor lines ran to five lines at 28px on a 390 phone. */
  .dmc-dr-page-wrapper.dmc-dr-story .dmc-dr-cta .dmc-clinic-contact-title {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }

  /* Form fields at least 48px tall on a phone (the site-wide 46). */
  .dmc-dr-page-wrapper.dmc-dr-story .dmc-dr-cta .dmc-clinic-hor-form__input,
  .dmc-dr-page-wrapper.dmc-dr-story .dmc-dr-cta .dmc-clinic-hor-form__submit {
    height: 48px !important;
    min-height: 48px !important;
  }
}

/* Hero → call to action. The hero carries an inline padding-bottom of 100px
   and the block its own 60px top, a 160px gap under the photo frame. Brought
   down to 40px (24 on a phone), at the client's request. */
.dmc-dr-page-wrapper.dmc-dr-story #sec-about.dmc-dr-bio-sec {
  padding-bottom: 0 !important;
}

.dmc-dr-page-wrapper.dmc-dr-story .dmc-dr-cta--top.dmc-clinic-contact-sec {
  padding-top: 40px !important;
}

@media (max-width: 767px) {
  .dmc-dr-page-wrapper.dmc-dr-story .dmc-dr-cta--top.dmc-clinic-contact-sec {
    padding-top: 24px !important;
  }
}
