/* WordPress / Divi integration.
   Each section of the design is its own Divi section > row > column > Code
   Module. The design system controls its own spacing and widths: these rules
   only undo what Divi adds around it (margins, backgrounds, gutters, element
   styles). They weigh one class, like Divi's own defaults, so a padding,
   margin or background set from a module's Divi settings still wins. */

#page-container, #et-main-area, #main-content { padding: 0; margin: 0; background: none; overflow: visible; }
#main-content:focus { outline: none; }
#main-content .container { width: auto; max-width: none; padding: 0; }
#main-content .container::before { display: none; }
#main-content article.type-page, #main-content .entry-content { padding: 0; margin: 0; }

:where(.et-l) :is(.et_pb_section, .et_pb_row, .et_pb_column, .et_pb_code, .et_pb_code_inner) { margin: 0; background-color: transparent; }
:where(.et-l) :is(.et_pb_column, .et_pb_code, .et_pb_code_inner) { width: auto; max-width: none; padding: 0; }
:where(.et-l) .et_pb_row { display: block; }
:where(.et-l) .et_pb_column { float: none; }
/* Same full-width, flush values the build sets on every module: Divi only
   writes them to its per-page CSS cache, and while it regenerates, rows fall
   back to 80% wide and would crop the design. */
.et-l .et_pb_section:has(.et_pb_code) { padding: 0; }
.et-l .et_pb_row:has(.et_pb_code) { width: 100%; max-width: none; padding: 0; }

/* The points that hang from a section into the next one and the "&" between
   the doctors overflow their own section: no wrapper may clip them, and each
   wrapper may clip them or open a stacking layer of its own (their z-index
   has to reach the page, above the next section). */
.et-l--post :is(.et_pb_section, .et_pb_row, .et_pb_column, .et_pb_code, .et_pb_code_inner) { overflow: visible; z-index: auto; }

/* Header and footer: Divi gives its wrappers position and z-index, which
   makes each layout its own stacking layer. The header would sit below the
   hero and position itself against the wrapper. They step back to plain boxes. */
:is(.et-l--header, .et-l--footer),
:is(.et-l--header, .et-l--footer) :is(.et_builder_inner_content, .et_pb_section, .et_pb_row, .et_pb_column, .et_pb_code, .et_pb_code_inner) {
  position: static; z-index: auto; overflow: visible; transform: none;
}

/* Logged in, the WordPress admin bar is fixed at the top: the header goes below it */
.admin-bar { --wpab: 32px; }
@media (max-width: 782px) { .admin-bar { --wpab: 46px; } }
@media (max-width: 600px) { .admin-bar { --wpab: 0px; } }
.admin-bar .site-header { top: var(--wpab); }

/* The Divi Theme Customizer sets body 14px with line-height 1.7em (inherited as
   fixed pixels) and colors text and headings. One extra element beats it and any
   design class still wins. */
html body { color: var(--ink); font-family: var(--f-body); font-size: var(--t-body); line-height: 1.8; font-weight: 400; }
html :is(h1, h2, h3, h4, h5, h6) { color: inherit; }
html :is(p, h1, h2, h3, h4, h5, h6) { padding-bottom: 0; }
html blockquote { margin: 0; padding: 0; border: 0; }
/* Divi adds bullets and padding to every list in its layouts. Design lists carry role="list". */
:is(#page-container, #et-boc) :is(ul, ol)[role="list"] { list-style: none; padding: 0; line-height: inherit; }
:is(#page-container, #et-boc) ul.jgd-svc__track[role="list"] { padding-inline: max(var(--gutter), (100% - var(--wrap-max)) / 2); padding-bottom: 4px; }

/* The hero sits under the absolute header: no gap above the first section */
.et-l--post > .et_builder_inner_content > .et_pb_section:first-child { margin-top: 0; }

/* Cookie notice (Delmain mu-plugin cookie-consent-banner) in the site colors and button shape */
:root { --ccb-bar: var(--navy); --ccb-bar-text: #fff; --ccb-btn: var(--gold); --ccb-btn-text: var(--navy-2); }
html #ccb-banner { font-family: var(--f-body); }
html #ccb-banner .ccb-accept {
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font-family: var(--f-btn); font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
}
html #ccb-banner .ccb-accept:is(:hover, :focus) { background: #E2C25A; opacity: 1; }
@media (max-width: 767px) { html:has(.mbar.is-visible) { --ccb-bottom-gap: calc(60px + 12px); } }

/* Request form: Gravity Forms in the white card of the design, same pill fields and gold button.
   The Orbital theme of Gravity Forms is driven by variables; what they do not reach goes with !important. */
.req-form--gf { display: block; }
.req-form--gf .gform_wrapper.gform-theme {
  --gf-color-primary: var(--navy); --gf-color-primary-darker: var(--navy-2); --gf-color-primary-contrast: #fff;
  --gf-ctrl-border-color: #C9D3DA; --gf-ctrl-border-color-focus: var(--navy); --gf-ctrl-bg-color: #fff; --gf-ctrl-color: var(--navy);
  --gf-ctrl-radius: 999px; --gf-ctrl-font-size: var(--t-small); --gf-ctrl-size: clamp(56px, 5.1vw, 88px); --gf-ctrl-padding-x: 1.4em;
  --gf-ctrl-label-color-primary: var(--navy); --gf-ctrl-label-font-size-primary: var(--t-small); --gf-ctrl-label-font-weight-primary: 400;
  --gf-ctrl-label-color-req: var(--navy); --gf-ctrl-choice-check-color: #fff; --gf-ctrl-shadow: none;
  --gf-form-gap-y: clamp(18px, 2vw, 32px); --gf-form-gap-x: clamp(14px, 1.4vw, 24px); --gf-ctrl-outline-color-focus: rgba(9, 45, 69, .25);
  font-family: var(--f-body);
}
.req-form--gf .gform_wrapper.gform-theme :is(input[type="text"], input[type="tel"], input[type="email"], select) {
  border-radius: 999px !important; font-family: var(--f-body) !important; color: var(--navy) !important;
}
.req-form--gf .gform_wrapper.gform-theme ::placeholder { color: #8796A1 !important; opacity: 1; }
.req-form--gf .gform_wrapper.gform-theme .gfield_required { color: var(--navy) !important; }
.req-form--gf .gform_wrapper.gform-theme .gform_required_legend { font-size: .85em; color: #5E6E79; }
.req-form--gf .gform_wrapper.gform-theme .jgd-consent .gchoice { align-items: flex-start; gap: 14px; }
.req-form--gf .gform_wrapper.gform-theme .jgd-consent input[type="checkbox"] { width: 30px !important; height: 30px !important; border-radius: 50% !important; flex: none; }
.req-form--gf .gform_wrapper.gform-theme .jgd-consent label { font-size: clamp(.85rem, .3vw + .75rem, 1.25rem) !important; line-height: 1.6 !important; font-weight: 400 !important; color: #5E6E79 !important; }
.req-form--gf .gform_wrapper.gform-theme .jgd-consent label b { color: var(--navy); font-weight: 700; }
.req-form--gf .gform_wrapper.gform-theme .gform_footer { padding: 0 !important; margin-top: clamp(18px, 2vw, 32px) !important; }
.req-form--gf .gform_wrapper.gform-theme .gform_footer .gform_button {
  width: 100% !important; min-height: clamp(56px, 4.8vw, 68px) !important; padding: .9em 2em !important;
  font-family: var(--f-btn) !important; font-weight: 600 !important; font-size: var(--t-btn) !important; letter-spacing: .08em !important; line-height: 1.2 !important;
  text-transform: uppercase !important; color: var(--navy-2) !important; background: var(--gold) !important; border: 0 !important; box-shadow: none !important; border-radius: 999px !important;
}
.req-form--gf .gform_wrapper.gform-theme .gform_footer .gform_button:hover { background: #E2C25A !important; }
