/* Shared consultation surfaces. Keep the original fields and copy.
   DESIGN_VARIANCE: 5 / MOTION_INTENSITY: 4 / VISUAL_DENSITY: 4.
   Navy anchors the panel; gold marks the consultation label, focus and submit action. */
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form {
  position: relative;
  isolation: isolate;
  --db-form-border-width: 1px;
  --db-form-padding: 28px;
  --db-form-title-size: 30px;
  --db-form-gap: 20px;
  --db-form-max-width: 700px;
  container: db-contact / inline-size;
  min-width: 0;
  width: 100%;
  max-width: var(--db-form-max-width);
  margin-inline: auto;
  padding: var(--db-form-padding);
  border: var(--db-form-border-width) solid var(--db-yellow, #f4bc41);
  border-radius: 24px;
  background: var(--db-blue, #283954);
  background-image: linear-gradient(180deg, var(--db-blue, #283954), #1d2d45);
  color: var(--db-off-white, #edebeb);
  color-scheme: dark;
  box-shadow: 0 20px 48px rgb(5 15 28 / 0.18);
}

/* Page roles change the footprint, not the visual language. */
body #page :is(#content, #colophon) .db-contact-form[data-contact-variant="featured"],
body #page :is(#content, #colophon) .db-contact-form[data-contact-variant="spacious"] {
  --db-form-padding: clamp(28px, 3vw, 40px);
  --db-form-title-size: 36px;
  --db-form-gap: 24px;
  --db-form-max-width: 800px;
}
body #page :is(#content, #colophon) .db-contact-form[data-contact-variant="spacious"] {
  --db-form-max-width: 900px;
}

/* A single expanding outline introduces the panel, then disappears. */
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: var(--db-form-border-width) solid var(--db-yellow, #f4bc41);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
}
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form.db-form-arriving::after {
  animation: db-form-outline 3100ms linear both;
}
@keyframes db-form-outline {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  16% {
    opacity: 0.9;
    transform: scale(1.008, 1.004);
  }
  78% {
    opacity: 0.7;
    transform: scale(1.023, 1.01);
  }
  100% {
    opacity: 0;
    transform: scale(1.03, 1.014);
  }
}
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form.db-form-pending {
  opacity: 0;
}
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form .gform_heading {
  margin: 0 0 24px;
  padding: 0 0 24px;
  border-bottom: 1px solid rgb(237 235 235 / 0.14);
}
body
  #page
  :is(#content, #colophon)
  .gform_wrapper.db-contact-form
  :is(
    .gform_title,
    .gform_description,
    .home-contact-eyebrow,
    label,
    legend,
    .gform-field-label,
    .gfield_required,
    .gfield_required_text,
    .gfield_description,
    .ginput_container_consent
  ) {
  color: var(--db-off-white, #edebeb);
}
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form .home-contact-eyebrow {
  color: var(--db-yellow, #f4bc41);
}
body
  #page
  :is(#content, #colophon)
  .gform_wrapper.db-contact-form
  :is(.gform_description, .gfield_required, .gfield_required_text) {
  color: rgb(237 235 235 / 0.85);
}
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form .gform_title {
  margin: 0;
  padding: 0;
  font-size: var(--db-form-title-size);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
  text-transform: none;
  text-shadow: none;
}
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form .gform_description {
  display: block;
  margin: 12px 0 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.6;
  opacity: 1;
}
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form .gfield_required {
  color: var(--db-yellow, #f4bc41);
  font-size: 12px;
  font-weight: 700;
}
/* Field groups respond to the panel width, including narrow desktop columns. */
body #page :is(#content, #colophon) .db-contact-form .gform_fields {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--db-form-gap) 20px;
}
body #page :is(#content, #colophon) .db-contact-form .gform_fields > .gfield {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
body #page :is(#content, #colophon) .db-contact-form .gform_fields > .gfield--type-hidden {
  display: none;
}
body #page :is(#content, #colophon) .db-contact-form :is(label, legend) {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
body #page :is(#content, #colophon) .db-contact-form label {
  display: block;
  margin: 0 0 8px;
}
body #page :is(#content, #colophon) .db-contact-form legend {
  margin: 0 0 8px;
  padding: 0;
}
body #page :is(#content, #colophon) .db-contact-form .ginput_container_name {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}
body #page :is(#content, #colophon) .db-contact-form .ginput_container_name > span {
  min-width: 0;
  width: auto;
  margin: 0;
  padding: 0;
}
@container db-contact (min-width: 520px) {
  body
    #page
    :is(#content, #colophon)
    .db-contact-form
    .gform_fields
    > :is(
      .gfield--type-phone,
      .gfield--type-email,
      .gfield--type-select:has(~ .gfield--type-select),
      .gfield--type-select ~ .gfield--type-select
    ) {
    grid-column: span 6;
  }
}
@container db-contact (max-width: 399px) {
  body #page :is(#content, #colophon) .db-contact-form .ginput_container_name {
    grid-template-columns: 1fr;
    gap: var(--db-form-gap);
  }
}
body
  #page
  :is(#content, #colophon)
  .gform_wrapper.db-contact-form
  :is(
    input:not([type="submit"]):not([type="button"]):not([type="hidden"]):not([type="checkbox"]):not(
        [type="radio"]
      ),
    select,
    textarea
  ) {
  min-width: 0;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid var(--db-yellow, #f4bc41);
  border-radius: 10px;
  background: var(--db-off-white, #edebeb);
  background-clip: padding-box;
  color: var(--db-blue, #283954);
  /* Reinforce every edge inside the control, including the bottom border. */
  box-shadow: inset 0 0 0 1px var(--db-yellow, #f4bc41);
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  caret-color: var(--db-blue, #283954);
  color-scheme: light;
  font-size: 16px;
  line-height: 1.5;
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease;
}
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form select {
  padding-right: 32px;
}
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form textarea {
  height: 140px;
  min-height: 140px;
  resize: vertical;
}
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form ::placeholder {
  color: #536078;
  opacity: 1;
}
body
  #page
  :is(#content, #colophon)
  .gform_wrapper.db-contact-form
  :is(input, select, textarea):focus {
  border-color: var(--db-yellow, #f4bc41);
}
body
  #page
  :is(#content, #colophon)
  .gform_wrapper.db-contact-form
  :is(input, select, textarea, button, a):focus-visible {
  outline: 2px solid var(--db-yellow, #f4bc41);
  outline-offset: 3px;
  box-shadow: none;
}
/* Email endings are optional actions beneath the original native email field. */
body
  #page
  :is(#content, #colophon)
  .gform_wrapper.db-contact-form
  .db-email-field
  > input:focus-visible {
  outline-offset: -2px;
}
body #page :is(#content, #colophon) .db-contact-form .db-email-field,
body #page :is(#content, #colophon) .db-contact-form .db-email-open {
  position: relative;
}
body #page :is(#content, #colophon) .db-contact-form .db-email-open {
  z-index: 5;
}
body #page :is(#content, #colophon) .db-contact-form .db-email-suggestions {
  position: absolute;
  z-index: 6;
  inset-inline: 0;
  top: calc(100% + 6px);
  max-height: 272px;
  max-height: min(272px, 42svh);
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom;
  border: 1px solid #b8c0cc;
  border-radius: 10px;
  background: #fff;
  color: var(--db-blue, #283954);
  color-scheme: light;
  scrollbar-width: thin;
  scrollbar-color: #8793a5 #fff;
}
body #page :is(#content, #colophon) .db-contact-form .db-email-suggestions[hidden] {
  display: none;
}
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form .db-email-option {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--db-blue, #283954);
  box-shadow: none;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: start;
  text-transform: none;
  overflow-wrap: anywhere;
  cursor: pointer;
  transform: none;
}
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form .db-email-option:hover,
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form .db-email-option:focus-visible {
  background: #f9e8bd;
  color: var(--db-blue, #283954);
}
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form .db-email-option:focus-visible {
  outline: none;
  box-shadow: none;
}
body #page :is(#content, #colophon) .db-contact-form .db-email-help {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media print {
  body #page :is(#content, #colophon) .db-contact-form .db-email-suggestions {
    display: none;
  }
}

body
  #page
  :is(#content, #colophon)
  .gform_wrapper.db-contact-form
  :is(input[type="checkbox"], input[type="radio"]) {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: 0 0 20px;
  accent-color: var(--db-yellow, #f4bc41);
  color-scheme: light;
}
body #page :is(#content, #colophon) .db-contact-form .ginput_container_consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
body #page :is(#content, #colophon) .db-contact-form .ginput_container_consent label {
  margin: 0;
  font-weight: 400;
}
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form .gfield_consent_description {
  max-height: none;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgb(237 235 235 / 0.18);
  border-radius: 10px;
  background: rgb(237 235 235 / 0.035);
  color: var(--db-off-white, #edebeb);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
body #page :is(#content, #colophon) .db-contact-form .gfield_consent_description_text {
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
body
  #page
  :is(#content, #colophon)
  .gform_wrapper.db-contact-form
  :is(.gfield_consent_description a, .recaptcha-notice a) {
  color: var(--db-yellow, #f4bc41);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body
  #page
  :is(#content, #colophon)
  .gform_wrapper.db-contact-form
  :is(.recaptcha-notice, .local-form-notice) {
  color: rgb(237 235 235 / 0.85);
  margin: 16px 0 0;
  font-size: 14px;
  opacity: 1;
  line-height: 1.6;
}
body
  #page
  :is(#content, #colophon)
  .gform_wrapper.db-contact-form
  .local-form-response:not(:empty) {
  padding: 14px 16px;
  border: 1px solid var(--db-blue, #283954);
  border-radius: 10px;
  background: var(--db-off-white, #edebeb);
  color: var(--db-blue, #283954);
}
/* Approved next steps sit before submission; receipt details share one calm reading surface. */
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form .db-contact-expectations {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgb(237 235 235 / 22%);
  opacity: 1;
}
body #page :is(#content, #colophon) .db-contact-expectations-title,
body #page :is(#content, #colophon) .db-contact-expectations-copy {
  display: block;
  font-size: 16px;
  line-height: 1.55;
}
body #page :is(#content, #colophon) .db-contact-expectations-title {
  margin-bottom: 6px;
  color: var(--db-yellow, #f4bc41);
  font-weight: 700;
}
body #page :is(#content, #colophon) .db-contact-expectations-copy {
  max-width: 65ch;
  color: var(--db-off-white, #edebeb);
  font-weight: 400;
}
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form .local-form-response {
  scroll-margin-block: 124px;
}
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form .db-contact-confirmation {
  --db-confirmation-padding: 24px;
  padding: var(--db-confirmation-padding);
  border-radius: 14px;
  line-height: 1.55;
}
body #page :is(#content, #colophon) .db-contact-confirmation-header {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
body #page :is(#content, #colophon) .db-contact-confirmation-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--db-blue, #283954);
  background: var(--db-yellow, #f4bc41);
}
body #page :is(#content, #colophon) .db-contact-confirmation-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form .db-contact-confirmation-title {
  margin: 0;
  color: inherit;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form .db-contact-confirmation-next,
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form .db-contact-confirmation-help {
  margin: 20px 0 0;
  color: inherit;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  text-wrap: pretty;
}
body #page :is(#content, #colophon) .db-contact-confirmation-next :is(strong, span) {
  display: block;
}
body #page :is(#content, #colophon) .db-contact-confirmation-next strong {
  margin-bottom: 6px;
  color: inherit;
  font-size: 16px;
  font-weight: 700;
}
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form .db-contact-confirmation-help {
  padding-top: 16px;
  border-top: 1px solid rgb(40 57 84 / 22%);
  font-size: 16px;
}
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form .db-contact-confirmation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-size: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
body
  #page
  :is(#content, #colophon)
  .gform_wrapper.db-contact-form
  .db-contact-confirmation
  a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
@media (max-width: 575px) {
  body #page :is(#content, #colophon) .gform_wrapper.db-contact-form .db-contact-confirmation {
    --db-confirmation-padding: 18px;
  }
  body
    #page
    :is(#content, #colophon)
    .gform_wrapper.db-contact-form
    .db-contact-confirmation-title {
    font-size: 22px;
  }
}
body #page :is(#content, #colophon) .db-contact-form .gform_footer {
  margin: 24px 0 0;
  padding: 0;
}
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form .gform_footer .gform_button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  margin: 0;
  text-align: center;
  padding: 16px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--db-yellow, #f4bc41);
  background-image: var(--db-gold-gradient);
  color: var(--db-blue, #283954);
  box-shadow: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  transform: none;
  scale: 1;
  transition: scale 450ms cubic-bezier(0.22, 0.7, 0.3, 1);
}
@media (hover: hover) and (pointer: fine) {
  body
    #page
    :is(#content, #colophon)
    .gform_wrapper.db-contact-form
    .gform_footer
    .gform_button:not(:disabled):hover {
    transform: none;
    scale: 1.025;
  }
}
body
  #page
  :is(#content, #colophon)
  .gform_wrapper.db-contact-form
  .gform_footer
  .gform_button:active {
  transform: none;
  scale: 0.99;
}
body
  #page
  :is(#content, #colophon)
  .gform_wrapper.db-contact-form
  .gform_footer
  .gform_button:focus-visible {
  outline: 2px solid var(--db-yellow, #f4bc41);
  outline-offset: 4px;
  scale: 1;
}
/* Error states use the same high-contrast palette without changing validation. */
body
  #page
  :is(#content, #colophon)
  .gform_wrapper.db-contact-form
  :is(.gfield_validation_message, .gform_validation_errors, .validation_message) {
  border: 1px solid var(--db-yellow, #f4bc41);
  background: var(--db-off-white, #edebeb);
  color: var(--db-blue, #283954);
}
body
  #page
  :is(#content, #colophon)
  .gform_wrapper.db-contact-form
  .gform_validation_errors
  :is(h2, a) {
  color: var(--db-blue, #283954);
}
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form [aria-invalid="true"] {
  border-color: var(--db-yellow, #f4bc41);
}
/* Shared entrances replace overlapping About-specific form reveals. */
body #page :is(#content, #colophon) .gform_wrapper.db-contact-form [data-about-reveal] {
  opacity: 1;
  transform: none;
  animation: none;
  transition: none;
}
@media (max-width: 575px) {
  body #page :is(#content, #colophon) .gform_wrapper.db-contact-form {
    --db-form-padding: 24px 18px;
    --db-form-title-size: 28px;
    --db-form-gap: 20px;
    border-radius: 18px;
  }
  body #page :is(#content, #colophon) .gform_wrapper.db-contact-form .gform_footer .gform_button {
    padding-inline: 18px;
    font-size: 16px;
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  body #page :is(#content, #colophon) .gform_wrapper.db-contact-form,
  body #page :is(#content, #colophon) .gform_wrapper.db-contact-form * {
    animation: none !important;
    transition: none !important;
  }
  body #page :is(#content, #colophon) .gform_wrapper.db-contact-form.db-form-pending {
    opacity: 1;
  }
  body #page :is(#content, #colophon) .gform_wrapper.db-contact-form::after {
    display: none;
  }
  body #page :is(#content, #colophon) .gform_wrapper.db-contact-form .gform_footer .gform_button {
    scale: 1 !important;
  }
}
body.local-reduce-motion .db-contact-form,
body.local-reduce-motion .db-contact-form * {
  animation: none !important;
  transition: none !important;
}
body.local-reduce-motion .db-contact-form::after {
  display: none;
}
body.local-reduce-motion .db-contact-form.db-form-pending {
  opacity: 1;
}
body.local-reduce-motion .db-contact-form .gform_button {
  scale: 1 !important;
}
@media print {
  body #page :is(#content, #colophon) .gform_wrapper.db-contact-form.db-form-pending {
    opacity: 1;
  }
  body #page :is(#content, #colophon) .gform_wrapper.db-contact-form::after {
    display: none;
  }
}

/* Give paired name fields a readable width on phones. */
@media (max-width: 575px) {
  body #page :is(#content, #colophon) .gform_wrapper.db-contact-form .ginput_container_name {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-inline: 0;
  }
  body #page :is(#content, #colophon) .gform_wrapper.db-contact-form .ginput_container_name > span {
    width: 100%;
    margin: 0;
    padding: 0;
  }
}
