/* Native Gravity Forms states, loaded after the plugin and page styles. */
.ds-site :is(.contact-form-panel,.application-dialog) .gform_confirmation_wrapper {
  position:relative; margin-block:24px 8px; padding:26px 26px 26px 82px;
  border:1px solid #b6dfc8; border-left:5px solid #238653; border-radius:16px;
  background:linear-gradient(120deg,#edf9f1,#f7fcf9); color:#17663d;
  box-shadow:0 10px 28px #14532d0a; overflow-wrap:anywhere;
}
.ds-site :is(.contact-form-panel,.application-dialog) .gform_confirmation_wrapper::before {
  content:''; position:absolute; left:24px; top:26px; width:36px; height:36px;
  border-radius:50%; background:#238653; box-shadow:0 0 0 5px #23865312;
}
.ds-site :is(.contact-form-panel,.application-dialog) .gform_confirmation_wrapper::after {
  content:''; position:absolute; left:36px; top:35px; width:11px; height:17px;
  border:solid white; border-width:0 3px 3px 0; transform:rotate(45deg);
}
.ds-site :is(.contact-form-panel,.application-dialog) .gform_confirmation_wrapper .gform_confirmation_message {
  padding:0; margin:0; color:inherit; font:500 18px/1.6 "Inter Tight",sans-serif;
}
.ds-site :is(.contact-form-panel,.application-dialog) .gform_confirmation_wrapper .gform_confirmation_message p { margin:0; color:inherit; }
.ds-site :is(.contact-form-panel,.application-dialog) .gform_wrapper .gform_validation_errors {
  margin:20px 0; padding:18px 20px; border:1px solid #edc3c8; border-left:4px solid #b42335;
  border-radius:10px; background:#fff4f5; color:#8e1c2c; box-shadow:none;
}
.ds-site :is(.contact-form-panel,.application-dialog) .gform_wrapper .gform_validation_errors .gform_submission_error {
  margin:0; padding:0; color:inherit; font:600 16px/1.5 "Inter Tight",sans-serif;
}
.ds-site :is(.contact-form-panel,.application-dialog) .gform_wrapper .gform_validation_errors .gform-icon { display:none; }
.ds-site :is(.contact-form-panel,.application-dialog) .gform_wrapper .gform_validation_errors:focus { outline:2px solid #b42335; outline-offset:3px; }
.ds-site .draft-contact-form :is(.gfield_validation_message,.validation_message,.ds-phone-feedback) {
  padding:9px 12px; margin:8px 0 0; border:1px solid #f0ccd1; border-radius:7px;
  background:#fff4f5; color:#9f2032; font:500 14px/1.5 "Inter Tight",sans-serif;
  overflow-wrap:anywhere;
}
/* Keep labels and controls aligned even when only one column has an error.
   Exclude hidden/conditional and honeypot fields; let messages grow below controls. */
.ds-site .draft-contact-form .gfield:not(.gfield--type-hidden):not(.gfield_visibility_hidden):not(.gform_validation_container):not([hidden]) {
  display:flex; flex-direction:column; justify-content:flex-start;
}
.ds-site .draft-contact-form .gfield > .gfield_label { order:0; }
.ds-site .draft-contact-form .gfield > .gfield_description:not(.validation_message) { order:1; }
.ds-site .draft-contact-form .gfield > .ginput_container { order:2; flex:0 0 auto; }
.ds-site .draft-contact-form .gfield.field_description_below > .gfield_description:not(.validation_message) { order:3; }
.ds-site .draft-contact-form .gfield > :is(.gfield_validation_message,.validation_message,.ds-phone-feedback) {
  order:4; margin:8px 0 0;
}
.ds-site .draft-contact-form :is(.gfield_validation_message,.validation_message,.ds-phone-feedback)[hidden] { display:none; }
.ds-site .draft-contact-form .gfield_error :is(input:not([type="hidden"]):not([type="submit"]),textarea,select),
.ds-site .draft-contact-form input.ds-phone-invalid { border-color:#c44455!important; }
.ds-site .draft-contact-form :is([aria-invalid="true"],.ds-phone-invalid):focus-visible {
  outline:2px solid #c44455; outline-offset:3px;
}
@media(max-width:767px) {
  .ds-site :is(.contact-form-panel,.application-dialog) .gform_confirmation_wrapper { padding:22px 18px 22px 68px; border-radius:12px; }
  .ds-site :is(.contact-form-panel,.application-dialog) .gform_confirmation_wrapper::before { left:18px; top:22px; width:30px; height:30px; }
  .ds-site :is(.contact-form-panel,.application-dialog) .gform_confirmation_wrapper::after { left:28px; top:29px; width:9px; height:15px; }
  .ds-site :is(.contact-form-panel,.application-dialog) .gform_confirmation_wrapper .gform_confirmation_message { font-size:16px; }
}


/* Contact CAPTCHA: explicit tracks prevent the plugin's mobile reset selector
   from retaining a third column; keep Gravity Forms from shrinking the input. */
:is(.contact-page, .careers-page) .custom-all-captcha-field .caac-control {
  box-sizing: border-box;
  border-radius: 0;
  width: min(100%, 460px);
  max-width: 100%;
  height: 56px;
  min-height: 56px;
  grid-template-columns: minmax(170px, 1fr) minmax(90px, 1fr);
  grid-template-rows: 54px;
}
:is(.contact-page, .careers-page) .custom-all-captcha-field .caac-control.has-reset-button {
  grid-template-columns: minmax(170px, 1fr) minmax(90px, 1fr) 44px;
}
:is(.contact-page, .careers-page) .custom-all-captcha-field .caac-challenge-row {
  grid-column: 1;
  grid-row: 1;
  height: 54px;
}
:is(.contact-page, .careers-page) .custom-all-captcha-field input.caac-answer-field {
  grid-column: 2;
  grid-row: 1;
  height: 54px !important;
  min-height: 54px !important;
  font-size: 16px !important;
}
:is(.contact-page, .careers-page) .custom-all-captcha-field .caac-refresh-button {
  border-radius: 0 !important;
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  width: 44px;
  height: 100%;
}
@media (max-width: 767px) {
  :is(.contact-page, .careers-page) .custom-all-captcha-field .caac-control,
  :is(.contact-page, .careers-page) .custom-all-captcha-field .caac-control.has-reset-button {
    grid-template-columns: minmax(0, 1fr) 44px;
    grid-template-rows: 54px 54px;
    height: 110px;
  }
  :is(.contact-page, .careers-page) .custom-all-captcha-field .caac-control.has-no-reset-button {
    grid-template-columns: minmax(0, 1fr);
  }
  :is(.contact-page, .careers-page) .custom-all-captcha-field .caac-challenge-row {
    border-bottom: 1px solid #d8dee5;
    border-right: 0;
  }
  :is(.contact-page, .careers-page) .custom-all-captcha-field input.caac-answer-field {
    grid-column: 1;
    grid-row: 2;
  }
  :is(.contact-page, .careers-page) .custom-all-captcha-field .caac-refresh-button {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}

/* Match each CAPTCHA label to its form's existing field-label scale. */
.ds-site :is(.contact-form-panel, .application-dialog) .custom-all-captcha-field > label {
  display: block;
  font-family: inherit;
  font-size: var(--ds-body);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.28px;
  color: var(--text-label);
  margin: 0 0 10px;
}
.ds-site.contact-page .custom-all-captcha-field > label {
  font-size: var(--ds-card);
  line-height: 1.071428571;
  margin-bottom: 26px;
}
.ds-site.contact-page .custom-all-captcha-field > label .required {
  color: #df1936;
}
.ds-site .application-dialog .custom-all-captcha-field > label .required {
  color: #c02b0a;
}
@media (min-width: 992px) and (max-width: 1919px) {
  .ds-site.contact-page .custom-all-captcha-field > label {
    margin-bottom: 1.354167vw;
  }
}
@media (max-width: 991px) {
  .ds-site.contact-page .custom-all-captcha-field > label {
    margin-bottom: 14px;
  }
}
@media (max-width: 767px) {
  .ds-site .application-dialog .custom-all-captcha-field > label {
    letter-spacing: 0;
  }
  .ds-site.contact-page .custom-all-captcha-field > label {
    margin-bottom: 10px;
    letter-spacing: 0;
  }
}
