/* =====================================================================
   Divine Healthcare Services - migration layer
   Loaded AFTER the page's original stylesheet. Restores behaviour that the
   original Divi scripts provided and fixes responsive spacing. Brand teal
   #13a89e is the original header/JotForm colour.
   ===================================================================== */

@import url("/original/fonts/inter.local.css");
:root { --dhs-teal: #13a89e; --dhs-teal-dark: #0f8c84; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.dhs-root { overflow-x: clip; min-height: 100dvh; }
#page-container { overflow-x: clip; }
.dhs-root img { max-width: 100%; height: auto; }

/* headings visible with scroll-margin for hash links */
.dhs-root h1, .dhs-root h2, .dhs-root h3, .dhs-root h4, .dhs-root [id] { scroll-margin-top: var(--dhs-sticky-height, 160px); }

/* Divi entrance animations were triggered by JS - keep everything visible */
.et_animated, .et-waypoint, .et_pb_animation_top, .et_pb_animation_bottom,
.et_pb_animation_left, .et_pb_animation_right, .et_pb_animation_fade_in {
  opacity: 1 !important; animation: none !important; transform: none !important;
}

/* Header sits above the hero that is pulled up underneath it */
.et-l--header { position: relative; z-index: 10000; }
.et-l--header .et_pb_section { position: relative; }
.et-l--header .dhs-sticky-menu {
  position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important;
  width: 100% !important; margin: 0 !important; z-index: 10001 !important;
  transform: none !important;
}
.et-l--header > .et_builder_inner_content .et_pb_section_2_tb_header,
.et-l--header > .et_builder_inner_content .et_pb_section_3_tb_header {
  background-color: rgba(0,0,0,0.48) !important;
}
.et-l--header .et_pb_fullwidth_menu_0_tb_header.et_pb_fullwidth_menu { background: transparent !important; }
.dhs-menu-spacer { width: 100%; pointer-events: none; }
.et_mobile_nav_menu .et_mobile_menu { max-height: calc(100dvh - var(--dhs-sticky-height, 126px)); overflow-y: auto; }

/* ------------------------------ mobile menu ------------------------------ */
.et_mobile_nav_menu .mobile_nav { position: static; }
.mobile_menu_bar { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mobile_menu_bar:focus-visible { outline: 2px solid var(--dhs-teal); outline-offset: 3px; border-radius: 2px; }
.et_mobile_nav_menu .et_mobile_menu { display: none; }
.et_mobile_nav_menu .mobile_nav.opened .et_mobile_menu { display: block; }
.et_pb_fullwidth_menu .et_mobile_menu, .et_pb_menu .et_mobile_menu {
  border-top-color: var(--dhs-teal) !important; text-align: left;
}
.et_mobile_menu li a { display: block; padding: 12px 5%; font-weight: 600; }
.et_mobile_menu li.current-menu-item > a { color: var(--dhs-teal) !important; }
.et_mobile_menu .sub-menu { display: none !important; }
.et_mobile_menu li.visible > .sub-menu { display: block !important; }
.et_mobile_menu li.menu-item-has-children { position: relative; }
.dhs-submenu-toggle {
  position: absolute; right: 8px; top: 6px; width: 36px; height: 36px;
  border: 0; background: rgba(19,168,158,.1); color: var(--dhs-teal);
  font-size: 22px; line-height: 36px; border-radius: 3px; cursor: pointer;
}
.et_mobile_menu li.visible > .dhs-submenu-toggle { transform: rotate(45deg); }

/* --------------------------- card / blurb titles -------------------------- */
.et_pb_blurb .et_pb_module_header, .et_pb_blurb h4, .et_pb_blurb h3,
.et_pb_text h1, .et_pb_text h2, .et_pb_text h3 {
  overflow-wrap: normal; word-break: normal; hyphens: none; -webkit-hyphens: none;
}
.et_pb_blurb .et_pb_main_blurb_image { display: flex; justify-content: center; }
.et_pb_blurb_content { max-width: 100%; }
.et_pb_blurb a, .et_pb_button { cursor: pointer; }
.et_pb_button { display: inline-block; text-align: center; }

@media (max-width: 980px) {
  .et_pb_blurb .et_pb_module_header { font-size: clamp(16px, 2.6vw, 22px) !important; }
  .et_pb_row { width: 88% !important; }
  .et_pb_column { min-width: 0; }
}
@media (max-width: 767px) {
  .et_pb_row { width: 90% !important; }
  .et_pb_section { padding-left: 0; padding-right: 0; }
  .et_pb_text h1 { font-size: clamp(26px, 7.4vw, 40px) !important; line-height: 1.2 !important; }
  .et_pb_text h2 { font-size: clamp(18px, 5vw, 26px) !important; line-height: 1.4 !important; }
  .et_pb_blurb .et_pb_module_header { font-size: clamp(16px, 4.8vw, 21px) !important; }
  .et_pb_button_module_wrapper { text-align: center; }
  .et-l--footer .et_pb_column { text-align: center; }
  .et-l--footer .et_pb_image { margin-left: auto !important; margin-right: auto !important; }
}

/* code modules that host native forms */
.et_pb_code, .et_pb_code_inner { min-width: 0; max-width: 100%; }

/* --------------------------- partner carousel ---------------------------- */
.dhs-carousel { --dhs-per: var(--dhs-per-desktop); position: relative; padding: 0; }
@media (max-width: 980px) { .dhs-carousel { --dhs-per: var(--dhs-per-tablet); } }
@media (max-width: 767px) { .dhs-carousel { --dhs-per: var(--dhs-per-phone); } }
.dhs-carousel-viewport { overflow: hidden; height: 150px; }
@media (max-width: 767px) { .dhs-carousel-viewport { height: 120px; } }
.dhs-carousel-track {
  display: flex; list-style: none; margin: 0 !important; padding: 0 !important; height: 100%;
  gap: var(--dhs-gap);
  transform: translateX(calc(var(--dhs-index) * -1 * ((100% - (var(--dhs-per) - 1) * var(--dhs-gap)) / var(--dhs-per) + var(--dhs-gap))));
  transition: transform var(--dhs-speed) ease; will-change: transform;
}
.dhs-carousel-slide {
  flex: 0 0 calc((100% - (var(--dhs-per) - 1) * var(--dhs-gap)) / var(--dhs-per));
  height: 100%; display: flex; align-items: center; justify-content: center;
  list-style: none; padding: 0 !important;
}
.dhs-carousel-slide img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }

/* ================== native forms (match original JotForm) ================== */
.dhs-form {
  font-family: "Inter", "Mulish", "Open Sans", system-ui, sans-serif;
  color: #000; font-size: 16px; line-height: 1.45; width: 100%; text-align: left;
}
.dhs-form *, .dhs-form *::before, .dhs-form *::after { box-sizing: border-box; }
.dhs-form .form-all {
  width: 100%; max-width: 752px; margin: 0 auto; background: #fff; color: #000;
  border-radius: 6px;
}
.dhs-form--careers .form-all, .dhs-form--timesheet .form-all { border: 2px solid #f6f6f6; }
.dhs-form .form-section { list-style: none; margin: 0; padding: 22px 38px 28px !important; }
@media (max-width: 767px) { .dhs-form .form-section { padding: 14px 16px 22px !important; } }
.dhs-form .form-line { list-style: none; margin: 12px 0; padding: 12px 10px; border-radius: 4px; }
.dhs-form .form-line-heading { padding: 0; }
.dhs-form .form-header-group {
  margin: 4px -10px 0; padding: 20px 10px 14px; border-bottom: 1px solid #f3f3fe;
}
.dhs-form .form-header-group.header-large { padding: 28px 10px 20px; }
.dhs-form .form-header {
  font-family: inherit; color: #000; margin: 0 0 6px; padding: 0; font-weight: 600;
  line-height: 1.3; text-transform: none; letter-spacing: 0;
}
.dhs-form h1.form-header { font-size: 2em; }
.dhs-form h2.form-header { font-size: 1.5em; }
@media (max-width: 767px) {
  .dhs-form h1.form-header { font-size: 1.55em; }
  .dhs-form h2.form-header { font-size: 1.25em; }
}
.dhs-form .form-subHeader { font-size: .875em; color: #000; line-height: 1.55; white-space: pre-line; }
.dhs-form .form-label {
  display: block; font-size: 16px; font-weight: 500; color: #000; margin-bottom: 10px;
  padding: 0; line-height: 1.4; text-transform: none;
}
.dhs-form .form-required { color: #000; margin-left: 4px; }
.dhs-form .form-sub-label { display: block; font-size: 13px; color: #57647e; margin-top: 6px; }
.dhs-form .form-input-wide { width: 100%; }
.dhs-form .form-textbox, .dhs-form .form-textarea, .dhs-form .form-radio-other-input {
  width: 100%; height: 48px; padding: 8px 12px; font: inherit; font-size: 16px; color: #2c3345;
  background: #fff; border: 1px solid #b8bdc9; border-radius: 4px; box-shadow: none; margin: 0;
  transition: border-color .15s ease, box-shadow .15s ease; -webkit-appearance: none; appearance: none;
}
.dhs-form input[type="date"].form-textbox { min-height: 48px; line-height: 30px; }
.dhs-form .form-textarea { height: 163px; resize: vertical; }
.dhs-form .form-textbox::placeholder, .dhs-form .form-textarea::placeholder, .dhs-form .form-radio-other-input::placeholder { color: #8d8fa8; opacity: 1; }
.dhs-form .form-textbox:hover, .dhs-form .form-textarea:hover { border-color: #2e69ff; }
.dhs-form .form-textbox:focus, .dhs-form .form-textarea:focus, .dhs-form .form-radio-other-input:focus {
  outline: none; border-color: #2e69ff; box-shadow: 0 0 0 3px #e3eafb;
}
.dhs-form .dhs-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dhs-form--contact .form-section { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0 8px; }
.dhs-form--contact .form-line { grid-column:1/-1; }
.dhs-form--contact .form-line { margin:8px 0; padding:6px 0; }
.dhs-form--contact [data-field="id_4"], .dhs-form--contact [data-field="id_5"] { grid-column:auto; }
.dhs-form--contact .form-textbox { height:40px; }
@media(max-width:600px){
  .dhs-form--contact .form-section { grid-template-columns:minmax(0,1fr); }
  .dhs-form--contact [data-field="id_4"], .dhs-form--contact [data-field="id_5"] { grid-column:1/-1; }
}
.dhs-form .dhs-address { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.dhs-form .dhs-addr-0, .dhs-form .dhs-addr-1 { grid-column: 1 / -1; }
@media (max-width: 480px) {
  .dhs-form .dhs-row-2, .dhs-form .dhs-address { grid-template-columns: 1fr; }
}
.dhs-form .dhs-options { display: flex; flex-direction: column; gap: 10px; }
.dhs-form .dhs-options-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px 14px; }
.dhs-form .form-radio-item, .dhs-form .form-checkbox-item {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #1a1a1a;
}
.dhs-form .form-radio-item label, .dhs-form .form-checkbox-item label { cursor: pointer; color: #1a1a1a; font-size: 15px; }
.dhs-form input.form-radio, .dhs-form input.form-checkbox {
  width: 20px; height: 20px; margin: 0; accent-color: var(--dhs-teal); cursor: pointer; flex: none;
}
.dhs-form .form-radio-item .form-radio-other-input { flex: 1 1 220px; height: 40px; max-width: 360px; }
.dhs-form .form-radio-other-input:disabled { background: #f5f6fa; }

/* errors */
.dhs-form .form-line-error { background: #fff4f4; }
.dhs-form .form-line-error .form-textbox, .dhs-form .form-line-error .form-textarea { border-color: #f23a3c; }
.dhs-form .form-error-message {
  margin-top: 8px; display: inline-block; padding: 4px 10px; font-size: 14px; color: #fff;
  background: #f23a3c; border-radius: 4px;
}
.dhs-form .dhs-form-alert {
  margin: 0 0 16px; padding: 12px 14px; border-radius: 4px; background: #fff4f4;
  border: 1px solid #f23a3c; color: #b01d1f; font-size: 15px;
}

/* signature */
.dhs-sig-pad { position: relative; width: 100%; max-width: 420px; height: 160px; }
.dhs-sig-canvas {
  display: block; width: 100%; height: 100%; background: #fff; border: 1px solid #b8bdc9;
  border-radius: 4px; touch-action: none; cursor: crosshair;
}
.dhs-sig.is-invalid .dhs-sig-canvas { border-color: #f23a3c; }
.dhs-sig-canvas:focus-visible { outline: none; border-color: #2e69ff; box-shadow: 0 0 0 3px #e3eafb; }
.dhs-sig-placeholder {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center;
  color: #b8bdc9; font-size: 15px; pointer-events: none;
}
.dhs-sig-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 420px; }
.dhs-sig-actions .form-sub-label { margin-top: 6px; }
.dhs-sig-clear {
  margin-top: 6px; padding: 6px 14px; font: inherit; font-size: 14px; color: #2c3345; background: #fff;
  border: 1px solid #b8bdc9; border-radius: 4px; cursor: pointer;
}
.dhs-sig-clear:hover { border-color: var(--dhs-teal); color: var(--dhs-teal); }

/* upload */
.dhs-upload {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 26px 16px; border: 1px dashed #b8bdc9; border-radius: 4px; background: #f8f8fc;
  cursor: pointer; text-align: center; color: #2c3345;
}
.dhs-upload:hover { border-color: var(--dhs-teal); }
.dhs-upload-icon { color: var(--dhs-teal); }
.dhs-upload-title { font-weight: 600; word-break: break-all; }
.dhs-upload-sub { font-size: 13px; color: #57647e; }
.dhs-upload-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.dhs-upload:focus-within { border-color: #2e69ff; box-shadow: 0 0 0 3px #e3eafb; }

/* honeypot */
.dhs-form .dhs-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* submit (original teal) */
.dhs-form .dhs-submit-line { text-align: center; padding-top: 18px; border-top: 1px solid #f3f3fe; }
.dhs-form .form-submit-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 180px; height: 48px; padding: 0 24px; font: inherit; font-size: 16px; font-weight: 500;
  color: #fff; background: #13a89e; border: 1px solid #13a89e; border-radius: 4px;
  box-shadow: none; text-shadow: none; cursor: pointer; transition: background-color .15s ease;
}
.dhs-form .form-submit-button:hover { background: #0f8c84; border-color: #0f8c84; }
.dhs-form .form-submit-button:focus-visible { outline: 3px solid #e3eafb; outline-offset: 2px; }
.dhs-form .form-submit-button:disabled { opacity: .75; cursor: progress; }
.dhs-spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
  border-radius: 50%; animation: dhs-spin .7s linear infinite;
}
@keyframes dhs-spin { to { transform: rotate(360deg); } }

/* ----------------------------------- 404 ----------------------------------- */
.dhs-404 {
  min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 40px 20px; text-align: center; font-family: "Mulish", "Open Sans", sans-serif; background: #f4fbfa;
}
.dhs-404-logo img { width: min(320px, 80vw); height: auto; }
.dhs-404 h1 { font-size: 34px; color: #1a1a1a; margin: 10px 0 0; }
.dhs-404 p { color: #444; margin: 0; }
.dhs-404-btn {
  margin-top: 8px; display: inline-block; padding: 12px 28px; background: var(--dhs-teal); color: #fff;
  border-radius: 4px; text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.dhs-404-btn:hover { background: var(--dhs-teal-dark); }
