/* New Customers page shell. Field layout belongs to Gravity Forms. */
.page-template-page-newcustomers{
  .dbd-pharmacy-summary > .gfield_label,
  .dbd-pharmacy-summary > .ginput_container { display: none; }
  .dbd-pharmacy-summary:not(.gfield_error) { display: none !important; }
  .dbd-pharmacy-rows .dbd-pharmacy-row { min-width: 0; margin: 24px 0 0; padding: 20px 0 0; border: 0; border-top: 1px solid #d5e2de; }
  .dbd-pharmacy-row > legend { padding: 0 12px 0 0 !important; color: #354f48; font-weight: 600; }
  .dbd-pharmacy-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
  .dbd-pharmacy-actions button { padding: 12px 20px; border: 1px solid #008d79; border-radius: 8px; background: #008d79; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
  .dbd-pharmacy-actions button:last-child { background: #fff; color: #007d6b; }
  .dbd-pharmacy-actions button:hover { background: #e7f4f0; color: #006b5c; }
  .dbd-pharmacy-actions button:focus-visible { outline: 2px solid #006b5c; outline-offset: 3px; }
  .dbd-pharmacy-actions button[hidden] { display: none; }
}

.page-template-page-newcustomers,
.page-template-page-newcustomers #page-container,
.page-template-page-newcustomers #main-content {
  overflow-x: hidden;
  overflow-x: clip;
}

.page-template-page-newcustomers #hero .row,
.page-template-page-newcustomers #assets .row,
.page-template-page-newcustomers #register > .row {
  box-sizing: border-box;
  width: calc(100% - 60px);
}

.page-template-page-newcustomers #hero .row {
  padding-right: 0;
  padding-left: 0;
}

.page-template-page-newcustomers #assets .row {
  padding-right: 0;
  padding-left: 0;
}

.page-template-page-newcustomers #assets .row .flex .flex2 {
  margin-right: -8px;
  margin-left: -8px;
}

.page-template-page-newcustomers #assets .row .flex .flex2 .box,
.page-template-page-newcustomers #assets .row .flex .flex2 .box .content,
.page-template-page-newcustomers .dbd-form-card,
.page-template-page-newcustomers .dbd-form-card * {
  box-sizing: border-box;
}

.page-template-page-newcustomers #register {
  padding: 58px 0 78px;
  overflow: hidden;
  background: #eef8f6;
}

.page-template-page-newcustomers #register > .row {
  width: calc(100% - 48px);
  max-width: 940px;
  margin: 0 auto;
}

.page-template-page-newcustomers .dbd-register-intro {
  margin: 0 auto 24px;
  text-align: center;
}

.page-template-page-newcustomers .dbd-register-intro h2 {
  margin: 0 0 10px;
  padding: 0;
  color: #10241f;
  font-family: "Sora", sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.page-template-page-newcustomers .dbd-register-intro p {
  margin: 0;
  color: #60736e;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.page-template-page-newcustomers .dbd-customer-types {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid #d7e2df;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(16, 36, 31, 0.04);
}

.page-template-page-newcustomers .dbd-customer-types button {
  min-width: 220px;
  padding: 11px 18px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #39504a;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.page-template-page-newcustomers .dbd-customer-types .is-active {
  background: #0c4b40;
  color: #fff;
}

.page-template-page-newcustomers .dbd-form-panel[hidden] {
  display: none !important;
}

.page-template-page-newcustomers .dbd-form-card {
  position: relative;
  padding: 34px 36px 32px;
  border: 1px solid #dfe9e6;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(16, 66, 56, 0.08);
}

.page-template-page-newcustomers .dbd-form-help {
  margin: 22px 0 0;
  color: #60736e;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 12px;
  line-height: 1.5;
}

.page-template-page-newcustomers .dbd-form-help a {
  color: inherit;
}

@media (max-width: 900px) {
.page-template-page-newcustomers #hero {
    padding-top: 40px;
    padding-bottom: 46px;
  }

.page-template-page-newcustomers #assets {
    padding-top: 46px;
    padding-bottom: 54px;
  }

.page-template-page-newcustomers #assets .row .flex {
    display: block;
  }

.page-template-page-newcustomers #assets .row .flex .txt,
  .page-template-page-newcustomers #assets .row .flex .flex2 {
    max-width: none;
    padding-right: 0;
  }

.page-template-page-newcustomers #assets .row .flex .txt {
    margin-bottom: 30px;
  }

.page-template-page-newcustomers #assets .row .flex .txt p {
    max-width: 720px;
  }

.page-template-page-newcustomers #register > .row {
    max-width: 760px;
  }

.page-template-page-newcustomers .dbd-form-card {
    padding-right: 30px;
    padding-left: 30px;
  }

.page-template-page-newcustomers .dbd-form-help {
    left: 30px;
  }
}

@media (max-width: 700px) {
.page-template-page-newcustomers #hero {
    padding: 34px 0 40px;
  }

.page-template-page-newcustomers #hero .row,
  .page-template-page-newcustomers #assets .row,
  .page-template-page-newcustomers #register > .row {
    width: calc(100% - 36px);
  }

.page-template-page-newcustomers #register {
    padding: 42px 0 54px;
  }

.page-template-page-newcustomers #register > .row {
    max-width: none;
  }

.page-template-page-newcustomers .dbd-register-intro h2 {
    font-size: 26px;
  }

.page-template-page-newcustomers .dbd-customer-types {
    width: 100%;
  }

.page-template-page-newcustomers .dbd-customer-types button {
    min-width: 0;
    padding: 10px 8px;
    font-size: 12px;
  }

.page-template-page-newcustomers .dbd-form-card {
    padding: 25px 20px 24px;
    border-radius: 15px;
  }

.page-template-page-newcustomers .dbd-form-help {
    position: static;
    max-width: none;
    margin-top: 18px;
    font-size: 11px;
  }

.page-template-page-newcustomers #hero .row,
  .page-template-page-newcustomers #assets .row {
    padding-right: 0;
    padding-left: 0;
  }

.page-template-page-newcustomers #hero .row h1 {
    font-size: 38px;
  }

.page-template-page-newcustomers #hero .row p {
    font-size: 15px;
  }

.page-template-page-newcustomers #assets {
    padding: 42px 0 48px;
  }

.page-template-page-newcustomers #assets .row .flex .txt {
    margin-bottom: 24px;
  }

.page-template-page-newcustomers #assets .row .flex .txt h2 {
    font-size: 27px;
    line-height: 1.15;
  }

.page-template-page-newcustomers #assets .row .flex .txt p {
    font-size: 14px;
    line-height: 1.7;
  }

.page-template-page-newcustomers #assets .row .flex .flex2 {
    margin-right: 0;
    margin-left: 0;
  }

.page-template-page-newcustomers #assets .row .flex .flex2 .box {
    flex-basis: 100%;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
  }
}

@media (max-width: 480px) {
.page-template-page-newcustomers #hero {
    padding: 28px 0 34px;
  }

.page-template-page-newcustomers #hero .row,
  .page-template-page-newcustomers #assets .row,
  .page-template-page-newcustomers #register > .row {
    width: calc(100% - 28px);
  }

.page-template-page-newcustomers #hero .row nav {
    margin-bottom: 10px;
    font-size: 12px;
  }

.page-template-page-newcustomers #hero .row h1 {
    margin: 10px 0 12px;
    font-size: clamp(31px, 10vw, 36px);
    line-height: 1.08;
    letter-spacing: -0.6px;
  }

.page-template-page-newcustomers #hero .row p {
    font-size: 14px;
    line-height: 1.6;
  }

.page-template-page-newcustomers #assets {
    padding: 34px 0 38px;
  }

.page-template-page-newcustomers #assets .row .flex .txt h2 {
    font-size: 25px;
  }

.page-template-page-newcustomers #assets .row .flex .flex2 .box {
    padding-bottom: 12px;
  }

.page-template-page-newcustomers #assets .row .flex .flex2 .box .content {
    padding: 20px 18px;
    border-radius: 14px;
  }

.page-template-page-newcustomers #assets .row .flex .flex2 .box .content .img {
    width: 38px;
    height: 38px;
  }

.page-template-page-newcustomers #register {
    padding: 36px 0 44px;
  }

.page-template-page-newcustomers .dbd-register-intro {
    margin-bottom: 18px;
  }

.page-template-page-newcustomers .dbd-register-intro h2 {
    margin-bottom: 8px;
    font-size: 24px;
  }

.page-template-page-newcustomers .dbd-register-intro p {
    font-size: 13px;
  }

.page-template-page-newcustomers .dbd-customer-types {
    margin-top: 18px;
  }

.page-template-page-newcustomers .dbd-customer-types button {
    min-height: 44px;
    padding: 8px 5px;
    font-size: 11px;
    line-height: 1.25;
  }

.page-template-page-newcustomers .dbd-form-card {
    padding: 20px 14px;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(16, 66, 56, 0.07);
  }
}

@media (max-width: 360px) {
.page-template-page-newcustomers .dbd-customer-types {
    grid-template-columns: 1fr;
    width: 100%;
  }

.page-template-page-newcustomers .dbd-customer-types button {
    width: 100%;
  }

.page-template-page-newcustomers .dbd-form-card {
    padding-right: 12px;
    padding-left: 12px;
  }
}

/* Diagnostic form 6 and RX form 7: shared appearance only. No field IDs, column overrides,
   label reordering or generated headings. Sections are authored in Gravity. */
.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) {
  --gf-color-primary: #0c4b40;
  --gf-color-primary-darker: #087665;
  --gf-color-primary-contrast: #fff;
  --gf-color-in-ctrl-primary: #0c4b40;
  --gf-color-in-ctrl-border: #d6e1de;
  --gf-color-in-ctrl-bg: #fff;
  --gf-radius: 8px;
  color: #243c36;
  font-family: "IBM Plex Sans", sans-serif;
}

.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) .gform_heading {
  margin-bottom: 16px;
}

.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) :is(.gform_title, .gfield--type-html h2) {
  margin: 0 0 12px;
  padding: 0;
  color: #0c4b40;
  font-family: "Sora", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) :is(.gform_required_legend, .gform_description, .gfield_description, .gsection_description, .gform_fileupload_rules) {
  color: #60736e;
  font-size: 13px;
  line-height: 1.5;
}

.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) .gsection {
  margin-top: 12px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #dfe9e6;
}

.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) .gsection_title {
  margin: 0;
  padding: 0;
  color: #153d34;
  font-family: "Sora", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) .gsection .gsection_title::before {
  content: var(--dbd-section-number, none);
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 28px;
  margin-right: 10px;
  border-radius: 7px;
  background: #e0f6f1;
  color: #087866;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}

/* Explicit classes are the numbering source, even if sections are reordered. */
.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) .labelno1 { --dbd-section-number: "01"; }
.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) .labelno2 { --dbd-section-number: "02"; }
.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) .labelno3 { --dbd-section-number: "03"; }
.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) .labelno4 { --dbd-section-number: "04"; }
.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) .labelno5 { --dbd-section-number: "05"; }
.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) .labelno6 { --dbd-section-number: "06"; }
.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) .labelno7 { --dbd-section-number: "07"; }
.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) .labelno8 { --dbd-section-number: "08"; }
.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) .labelno9 { --dbd-section-number: "09"; }
.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) .labelno10 { --dbd-section-number: "10"; }

.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) :is(.gfield_label, .gform-field-label) {
  color: #344b45;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) :is(.ginput_complex label, .gfield_checkbox label, .gfield_radio label) {
  color: #60736e;
  font-size: 13px;
  font-weight: 400;
}

.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) :is(.gfield_required, .gfield_required_asterisk, .gfield_required_text) {
  color: #078c76;
  font-style: normal;
}

.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="url"], input[type="date"], select, textarea) {
  padding: 11px 13px;
  border: 1px solid #d6e1de;
  border-radius: 8px;
  background-color: #fff;
  color: #1f3731;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) :is(input, textarea)::placeholder {
  color: #84958f;
  opacity: 1;
}

.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) :is(input, select, textarea):focus-visible {
  border-color: #078c76;
  outline: 2px solid #078c76;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #e0f6f1;
}

.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) :is(input[type="checkbox"], input[type="radio"]) {
  accent-color: #078c76;
  cursor: pointer;
}

.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) :is(.gfield_checkbox, .gfield_radio) label {
  cursor: pointer;
}

.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) input[type="file"] {
  padding: 9px;
  border: 1px dashed #b9d7d0;
  border-radius: 8px;
  color: #60736e;
  font-family: inherit;
  font-size: 13px;
}

.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 7px 12px;
  border: 0;
  border-radius: 6px;
  background: #e0f6f1;
  color: #087866;
  font: inherit;
  cursor: pointer;
}

.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) .gform_footer {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #e6eeec;
}

.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) :is(.gform_button, .gform_next_button, .gform_previous_button) {
  padding: 12px 24px;
  border: 1px solid #0c4b40;
  border-radius: 9px;
  background: #0c4b40;
  color: #fff;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) :is(.gform_button, .gform_next_button, .gform_previous_button):hover {
  background: #087665;
  border-color: #087665;
}

.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) .gform_validation_errors {
  padding: 16px 16px 16px 52px;
  margin:0 0 20px 0;
  border: 1px solid #e8b4ae;
  border-radius: 8px;
  background: #fff5f3;
  color: #a43b32;
  box-shadow: none;
}

.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) .gfield_validation_message {
  margin-top: 6px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: #fff0ef;
  color: #a43b32;
  font-size: 13px;
}

.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) [aria-invalid="true"] {
  border-color: #b44337;
}

@media (max-width: 700px) {
  .page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="url"], input[type="date"], select, textarea) {
    font-size: 16px;
  }
}

/* The form contains its own public-facing HTML title. Keep the existing
   presentation of the Gravity Forms heading, with its required-field legend. */
.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) .gform_heading :is(.gform_title, .gform_description) {
  display: none;
}

.page-template-page-newcustomers :is(#gform_wrapper_6, #gform_wrapper_7) .gform_button::after {
  content: none;
}

/* Diagnostic application: native radio choices presented as toggle buttons. */
.page-template-page-newcustomers #gform_wrapper_6 .gfield_radio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.page-template-page-newcustomers #gform_wrapper_6 .gfield_radio .gchoice { position: relative; min-width: 0; margin: 0; }
.page-template-page-newcustomers #gform_wrapper_6 .gfield_radio input[type="radio"] { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.page-template-page-newcustomers #gform_wrapper_6 .gfield_radio input[type="radio"] + label { display: flex; align-items: center; justify-content: center; width: 100%; max-width: none; min-height: 44px; margin: 0; padding: 10px 16px; border: 1px solid #d6e1de; border-radius: 8px; background: #fff; color: #344b45; font-size: 13px; font-weight: 600; line-height: 1.5; text-align: center; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.page-template-page-newcustomers #gform_wrapper_6 .gfield_radio input[type="radio"] + label:hover { border-color: #078c76; background: #eef8f6; }
.page-template-page-newcustomers #gform_wrapper_6 .gfield_radio input[type="radio"]:checked + label { border-color: #0c4b40; background: #0c4b40; color: #fff; }
.page-template-page-newcustomers #gform_wrapper_6 .gfield_radio input[type="radio"]:focus-visible + label { outline: 2px solid #078c76; outline-offset: 3px; }
.page-template-page-newcustomers #gform_wrapper_6 .gfield_radio input[type="radio"]:disabled + label { opacity: .5; cursor: not-allowed; }
