/* -------------------------------------------------------------------------- */
/* CTA Footer — Apply Now + Copyright                                         */
/* Figma: node 17:792                                                         */
/* -------------------------------------------------------------------------- */

.scdjj-cta-footer {
  background:
    radial-gradient(circle at 22% 25%, rgba(48, 111, 228, 0.38) 0%, transparent 65%),
    radial-gradient(circle at 78% 75%, rgba(48, 111, 228, 0.65) 0%, transparent 65%),
    linear-gradient(135deg, #102449 0%, #050a19 50%, #0a1328 100%);
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

/* Two-column layout — Figma: w-[1153px] */
.scdjj-cta-footer__inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  width: min(1153px, calc(100% - 2.5rem)) !important;
  margin-inline: auto;
}

/* -------------------------------------------------------------------------- */
/* Left column                                                                 */
/* -------------------------------------------------------------------------- */

.scdjj-cta-footer__left {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
}

.scdjj-cta-footer__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.scdjj-cta-footer__heading {
  font-family: "Franklin Gothic ATF", "franklin-gothic-atf", sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
}

.scdjj-cta-footer__body {
  font-family: "Inter", "inter-18pt", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.16px;
  color: #c6cdd8;
  margin: 0;
}

.scdjj-cta-footer__body p {
  margin: 0;
  line-height: 1.4;
  letter-spacing: 0.16px;
}

/* Social icons */
.scdjj-cta-footer__socials {
  display: flex;
  align-items: center;
  gap: 15px;
}

.scdjj-cta-footer__social-link {
  display: block;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.scdjj-cta-footer__social-link:hover {
  opacity: 0.7;
}

.scdjj-cta-footer__social-link img {
  width: 100%;
  height: 100%;
  display: block;
}

/* -------------------------------------------------------------------------- */
/* Right column — Form card                                                    */
/* -------------------------------------------------------------------------- */

.scdjj-cta-footer__form-wrap {
  width: 650px;
  flex-shrink: 0;
  background: var(--color-white);
  border: 2px solid var(--color-blue-25);
  border-radius: 30px;
  overflow: hidden;
}

/* -------------------------------------------------------------------------- */
/* GF wrapper & body reset                                                     */
/* -------------------------------------------------------------------------- */

.scdjj-cta-footer__form-wrap .gform_wrapper,
.scdjj-cta-footer__form-wrap .gform_wrapper.gravity-theme {
  margin: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  /* Override GF's inline CSS variable overrides */
  --gf-ctrl-border-color: #c6cdd8 !important;
  --gf-ctrl-border-color-focus: #1c3664 !important;
  --gf-ctrl-border-color-error: #89171a !important;
  --gf-radius: 8px !important;
  --gf-ctrl-bg-color: #ffffff !important;
  --gf-ctrl-shadow: none !important;
  --gf-ctrl-btn-bg-color: #1c3664 !important;
  --gf-ctrl-btn-bg-color-hover: #15284a !important;
  --gf-ctrl-btn-color: #ffffff !important;
  --gf-ctrl-btn-font-size: 16px !important;
  --gf-ctrl-btn-border-radius: 0 0 30px 30px !important;
}

/* Remove blank heading area GF outputs above the form */
.scdjj-cta-footer__form-wrap .gform_heading {
  display: none;
}

.scdjj-cta-footer__form-wrap .gform-body,
.scdjj-cta-footer__form-wrap .gform_body {
  padding: 30px 30px 0;
}

/* Override GF's grid layout on the fields list — Figma: gap-[24px] */
.scdjj-cta-footer__form-wrap .gform_fields {
  display: flex !important;
  flex-direction: column;
  gap: 24px !important;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: none !important;
}

.scdjj-cta-footer__form-wrap .gfield {
  margin: 0 !important;
  padding: 0;
  max-width: 100%;
  grid-column: auto !important;
}

/* -------------------------------------------------------------------------- */
/* Hide labels for simple input fields (using placeholders instead)           */
/* -------------------------------------------------------------------------- */

.scdjj-cta-footer__form-wrap .gfield--type-text .gfield_label,
.scdjj-cta-footer__form-wrap .gfield--type-text .gform-field-label,
.scdjj-cta-footer__form-wrap .gfield--type-email .gfield_label,
.scdjj-cta-footer__form-wrap .gfield--type-email .gform-field-label,
.scdjj-cta-footer__form-wrap .gfield--type-phone .gfield_label,
.scdjj-cta-footer__form-wrap .gfield--type-phone .gform-field-label,
.scdjj-cta-footer__form-wrap .gfield--type-html .gfield_label,
.scdjj-cta-footer__form-wrap .gfield--type-html .gform-field-label {
  display: none !important;
}

/* Hide all required markers */
.scdjj-cta-footer__form-wrap .gfield_required,
.scdjj-cta-footer__form-wrap .gfield_required_text,
.scdjj-cta-footer__form-wrap .gfield_required_asterisk,
.scdjj-cta-footer__form-wrap .gfield_required_custom {
  display: none !important;
}

/* -------------------------------------------------------------------------- */
/* HTML intro field (bold blue intro copy)                                     */
/* -------------------------------------------------------------------------- */

/* GF HTML field: gfield_html + scdjj-form__intro are on the SAME element,
   so the <p> is a direct child — not nested under another container */
.scdjj-cta-footer__form-wrap .scdjj-form__intro > p,
.scdjj-cta-footer__form-wrap .scdjj-form__intro p {
  font-family: "Franklin Gothic ATF", "franklin-gothic-atf", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: #1c3664;
  margin: 0;
}

/* -------------------------------------------------------------------------- */
/* Text / email / phone inputs                                                 */
/* -------------------------------------------------------------------------- */

.scdjj-cta-footer__form-wrap input[type="text"],
.scdjj-cta-footer__form-wrap input[type="email"],
.scdjj-cta-footer__form-wrap input[type="tel"] {
  display: block !important;
  width: 100% !important;
  height: 48px !important;
  padding: 0 12px !important;
  border: 1px solid #c6cdd8 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  font-family: var(--font-body) !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  letter-spacing: 0.16px !important;
  color: var(--color-black-100) !important;
  box-shadow: none !important;
  box-sizing: border-box;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.scdjj-cta-footer__form-wrap .gfield--type-text .ginput_container,
.scdjj-cta-footer__form-wrap .gfield--type-email .ginput_container,
.scdjj-cta-footer__form-wrap .gfield--type-phone .ginput_container {
  margin: 0 !important;
  padding: 0 !important;
}

.scdjj-cta-footer__form-wrap input[type="text"]::placeholder,
.scdjj-cta-footer__form-wrap input[type="email"]::placeholder,
.scdjj-cta-footer__form-wrap input[type="tel"]::placeholder {
  font-family: var(--font-body);
  color: var(--color-blue-75);
}

.scdjj-cta-footer__form-wrap input[type="text"]:focus,
.scdjj-cta-footer__form-wrap input[type="email"]:focus,
.scdjj-cta-footer__form-wrap input[type="tel"]:focus {
  border-color: #1c3664 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(28, 54, 100, 0.15) !important;
}

/* -------------------------------------------------------------------------- */
/* Preferred Location — checkbox group                                         */
/* JS replaces <fieldset><legend> with <div role="group"><div> so standard   */
/* flexbox can lay out label + description on the first row, inputs below.      */
/* -------------------------------------------------------------------------- */

.scdjj-cta-footer__form-wrap .scdjj-form__locations {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  border: none;
  padding: 0 0 24px;
  margin: 0;
  border-bottom: 1px solid var(--color-blue-10);
}

/* GF injects an empty validation container — hide it */
.scdjj-cta-footer__form-wrap .scdjj-form__locations > .gfield_validation_container {
  display: none;
}

/* Label — "Preferred Location" (pushed to left via margin-right: auto) */
.scdjj-cta-footer__form-wrap .scdjj-form__locations > #scdjj-locations-label,
.scdjj-cta-footer__form-wrap .scdjj-form__locations > .gfield_label {
  flex: 0 0 auto;
  margin-right: auto;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  color: var(--color-blue-100);
  white-space: nowrap;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}

/* Description — "Please select at least one from the following" */
.scdjj-cta-footer__form-wrap .scdjj-form__locations > .gfield_description {
  flex: 0 0 auto;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: #8d9ab1;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

/* Checkbox inputs container — full-width, forced to next row */
.scdjj-cta-footer__form-wrap .scdjj-form__locations > .ginput_container,
.scdjj-cta-footer__form-wrap .scdjj-form__locations > .ginput_container_checkbox {
  width: 100%;
  margin-top: 16px;
}

/* Validation message */
.scdjj-cta-footer__form-wrap .scdjj-form__locations > .gfield_validation_message,
.scdjj-cta-footer__form-wrap .scdjj-form__locations > .validation_message {
  width: 100%;
  font-size: 14px;
  color: var(--color-red-100);
  margin-top: 8px;
}

/* Checkbox choices — vertical list (Figma: flex-wrap gap-[24px]) */
.scdjj-cta-footer__form-wrap .gfield_checkbox {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.scdjj-cta-footer__form-wrap .gform_wrapper.gform-theme .scdjj-form__locations .gchoice,
.scdjj-cta-footer__form-wrap .scdjj-form__locations .gchoice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
}

.scdjj-cta-footer__form-wrap .gchoice input[type="checkbox"],
.scdjj-cta-footer__form-wrap .gchoice .gfield-choice-input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  border: 1px solid #c6cdd8 !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  box-shadow: inset 0px 2px 2px -1px rgba(74, 74, 104, 0.1) !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.scdjj-cta-footer__form-wrap .gchoice input[type="checkbox"]:checked,
.scdjj-cta-footer__form-wrap .gchoice .gfield-choice-input[type="checkbox"]:checked {
  background-color: var(--color-blue-100);
  border-color: var(--color-blue-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 16px;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: none;
}

.scdjj-cta-footer__form-wrap .gform_wrapper.gform-theme .scdjj-form__locations .gchoice label.gform-field-label.gform-field-label--type-inline,
.scdjj-cta-footer__form-wrap .gform_wrapper.gform-theme .scdjj-form__locations .gchoice label.gform-field-label,
.scdjj-cta-footer__form-wrap .gform_wrapper.gform-theme .scdjj-form__locations .gchoice .gform-field-label {
  font-family: "Inter", sans-serif !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  letter-spacing: 0.16px !important;
  color: #425563 !important;
  cursor: pointer;
  margin: 0 !important;
  padding: 0 !important;
}

/* -------------------------------------------------------------------------- */
/* "What strengths…" — textarea field                                         */
/* Label shown as a section heading, textarea borderless                       */
/* -------------------------------------------------------------------------- */

/* Textarea section: bottom border + compact padding (Figma: border-b #e8eaef pb-[8px]) */
.scdjj-cta-footer__form-wrap .gfield--type-textarea {
  border-bottom: 1px solid #e8eaef;
  padding-bottom: 8px;
}

.scdjj-cta-footer__form-wrap .gfield--type-textarea .gfield_label,
.scdjj-cta-footer__form-wrap .gfield--type-textarea .gform-field-label {
  display: block !important;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  color: var(--color-blue-100);
  margin: 0 0 16px;
}

.scdjj-cta-footer__form-wrap .ginput_container_textarea {
  margin: 0;
}

/* Override GF's CSS custom props + foundation min-block-size on textarea.
   rows="10" in HTML would make it tall — explicit height overrides the attribute. */
.scdjj-cta-footer__form-wrap textarea,
.scdjj-cta-footer__form-wrap textarea.small,
.scdjj-cta-footer__form-wrap textarea.medium,
.scdjj-cta-footer__form-wrap textarea.large {
  display: block;
  width: 100% !important;
  min-height: auto !important;
  min-block-size: auto !important;
  height: 28px !important;
  padding: 0 !important;
  border: none !important;
  border-width: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 28px;
  color: var(--color-blue-50);
  resize: none;
  box-sizing: border-box;
  /* Override GF CSS custom properties */
  --gf-ctrl-border-width: 0px;
  --gf-ctrl-border-color: transparent;
  --gf-local-border-color: transparent;
  --gf-ctrl-shadow: none;
  --gf-local-bg-color: transparent;
}

.scdjj-cta-footer__form-wrap textarea::placeholder {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: var(--color-blue-50);
}

/* -------------------------------------------------------------------------- */
/* Submit button                                                               */
/* -------------------------------------------------------------------------- */

.scdjj-cta-footer__form-wrap .gform_footer,
.scdjj-cta-footer__form-wrap .gform-footer,
.scdjj-cta-footer__form-wrap .gform_page_footer {
  margin: 0;
  padding: 0;
}

.scdjj-cta-footer__form-wrap .gform_footer input[type="submit"],
.scdjj-cta-footer__form-wrap .gform-footer input[type="submit"],
.scdjj-cta-footer__form-wrap .gform_page_footer input[type="submit"],
.scdjj-cta-footer__form-wrap input[type="submit"].gform_button,
.scdjj-cta-footer__form-wrap .gform_button {
  display: block !important;
  width: 100% !important;
  padding: 20px !important;
  background-color: #1c3664 !important;
  border: none !important;
  border-radius: 0 0 30px 30px !important;
  color: #ffffff !important;
  font-family: var(--font-display-bold) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  letter-spacing: 1.6px !important;
  text-transform: uppercase !important;
  text-align: center !important;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05) !important;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
}

.scdjj-cta-footer__form-wrap .gform_footer input[type="submit"]:hover,
.scdjj-cta-footer__form-wrap .gform-footer input[type="submit"]:hover,
.scdjj-cta-footer__form-wrap input[type="submit"].gform_button:hover,
.scdjj-cta-footer__form-wrap .gform_button:hover {
  background-color: #15284a !important;
}

/* -------------------------------------------------------------------------- */
/* Copyright bar                                                               */
/* -------------------------------------------------------------------------- */

.scdjj-cta-footer__copyright {
  text-align: center;
}

.scdjj-cta-footer__copyright p {
  font-family: "Inter", "inter-18pt", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.16px;
  color: #c6cdd8;
  margin: 0;
}

/* -------------------------------------------------------------------------- */
/* Confirmation message                                                        */
/* -------------------------------------------------------------------------- */

.scdjj-cta-footer__form-wrap .gform_confirmation_wrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 100% !important;
}

.scdjj-cta-footer__form-wrap .gform_confirmation_message {
  background: #e8eaef !important;
  border: none !important;
  border-radius: 30px !important;
  padding: 48px 40px !important;
  text-align: center !important;
  font-family: "franklin-gothic-atf", "Franklin Gothic ATF", sans-serif !important;
  font-size: 24px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: #1c3664 !important;
  box-shadow: none !important;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                  */
/* -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .scdjj-cta-footer__inner {
    flex-direction: column;
    gap: 40px;
  }

  .scdjj-cta-footer__left {
    gap: 40px;
  }

  .scdjj-cta-footer__form-wrap {
    width: 100%;
  }

  .scdjj-cta-footer {
    gap: 60px;
  }

  .scdjj-cta-footer__form-wrap .scdjj-form__locations {
    grid-template-areas:
      "label label"
      "desc  desc"
      "inputs inputs"
      "error  error";
  }

  .scdjj-cta-footer__form-wrap .scdjj-form__locations > .gfield_description {
    text-align: left;
    font-size: 14px;
    line-height: 1.4;
  }
}

@media (max-width: 600px) {
  .scdjj-cta-footer {
    padding: 48px 0;
    gap: 40px;
  }

  .scdjj-cta-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  /* Unwrap the left column so children can be reordered */
  .scdjj-cta-footer__left {
    display: contents;
  }

  /* Order: 1 = content (heading + body) */
  .scdjj-cta-footer__content {
    order: 1;
  }

  /* Order: 2 = form */
  .scdjj-cta-footer__form-wrap {
    order: 2;
    border-radius: 30px;
  }

  /* Order: 3 = social icons */
  .scdjj-cta-footer__socials {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 40px;
  }

  .scdjj-cta-footer__form-wrap .gform-body,
  .scdjj-cta-footer__form-wrap .gform_body {
    padding: 20px;
  }

  .scdjj-cta-footer__form-wrap .gform_footer {
    border: none !important;
  }

  .scdjj-cta-footer__form-wrap .gform_footer input[type="submit"],
  .scdjj-cta-footer__form-wrap input[type="submit"].gform_button,
  .scdjj-cta-footer__form-wrap .gform_button {
    border-radius: 0 0 30px 30px;
    padding: 16px;
  }

  /* Hide form field borders on mobile */
  .scdjj-cta-footer__form-wrap .gfield {
    border-bottom: none !important;
  }

  /* Copyright bottom spacing */
  .scdjj-cta-footer__copyright {
    padding-bottom: 8rem;
  }
}
