/* =========================================================
   FINAL CTA
   ========================================================= */

.final-cta-section {
  position: relative;
  overflow: hidden;

  background: #ffffff;
  color: #03183f;

  padding: 110px 0 0;

  isolation: isolate;
}

/* =========================================================
   Background
   ========================================================= */

.final-cta-watermark {
  position: absolute;

  right: -45px;
  bottom: -185px;

  font-size: 540px;
  line-height: 1;

  font-weight: 800;
  letter-spacing: -0.1em;

  color: rgba(3, 58, 161, 0.025);

  pointer-events: none;
  user-select: none;

  z-index: -1;
}

/* =========================================================
   Container
   ========================================================= */

.final-cta-container {
  width: min(1180px, calc(100% - 48px));

  margin: 0 auto;
}

/* =========================================================
   Eyebrow
   ========================================================= */

.final-cta-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;

  padding-bottom: 30px;

  border-bottom: 1px solid #e5eaf1;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.2em;

  color: #52627c;
}

.final-cta-eyebrow-mark {
  position: relative;

  width: 46px;
  height: 1px;

  background: rgba(3, 58, 161, 0.55);
}

.final-cta-eyebrow-mark::before {
  content: "";

  position: absolute;

  left: 0;
  top: 50%;

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #dd031b;

  transform: translateY(-50%);

  box-shadow: 0 0 0 3px rgba(221, 3, 27, 0.12);
}

/* =========================================================
   Main Layout
   ========================================================= */

.final-cta-main {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(390px, 0.72fr);

  gap: 100px;

  align-items: center;

  padding: 82px 0 95px;
}

/* =========================================================
   LEFT COPY
   ========================================================= */

.final-cta-copy {
  max-width: 690px;
}

.final-cta-small-label {
  display: block;

  margin-bottom: 20px;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 0.18em;

  color: #033aa1;
}

.final-cta-copy h2 {
  margin: 0;

  font-size: clamp(52px, 6vw, 82px);

  line-height: 0.97;

  letter-spacing: -0.06em;

  font-weight: 800;

  color: #03183f;
}

.final-cta-copy h2 span {
  color: #033aa1;
}

.final-cta-copy p {
  max-width: 540px;

  margin: 30px 0 26px;

  font-size: 15px;

  line-height: 1.75;

  color: #68758b;
}

/* =========================================================
   Small Note
   ========================================================= */

.final-cta-note {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 11px;
  font-weight: 600;

  color: #8a95a7;
}

.final-cta-note-dot {
  width: 6px;
  height: 6px;

  flex: 0 0 auto;

  border-radius: 50%;

  background: #dd031b;

  box-shadow: 0 0 0 3px rgba(221, 3, 27, 0.1);
}

/* =========================================================
   FORM WRAPPER
   ========================================================= */

.final-cta-form-wrap {
  position: relative;

  padding: 34px 34px 32px;

  background: #f7f9fc;

  border: 1px solid #e2e8f0;

  box-shadow: 0 20px 55px rgba(3, 24, 63, 0.07);
}

/*
 * Small blue accent on top
 */

.final-cta-form-wrap::before {
  content: "";

  position: absolute;

  left: 0;
  top: 0;

  width: 72px;
  height: 3px;

  background: linear-gradient(90deg, #033aa1, #80aaff);
}

/*
 * Red accent point
 */

.final-cta-form-wrap::after {
  content: "";

  position: absolute;

  right: 27px;
  top: -4px;

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #dd031b;

  box-shadow: 0 0 0 4px rgba(221, 3, 27, 0.08);
}

/* =========================================================
   Form Header
   ========================================================= */

.final-cta-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  padding-bottom: 22px;

  border-bottom: 1px solid #dfe5ed;
}

.form-label {
  display: block;

  margin-bottom: 8px;

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 0.17em;

  color: #033aa1;
}

.final-cta-form-header h3 {
  margin: 0;

  font-size: 23px;

  line-height: 1.2;

  letter-spacing: -0.025em;

  font-weight: 750;

  color: #03183f;
}

.form-number {
  font-size: 10px;
  font-weight: 800;

  letter-spacing: 0.15em;

  color: #a0a9b8;
}

/* =========================================================
   Form
   ========================================================= */

.final-cta-form {
  display: flex;

  flex-direction: column;

  gap: 18px;

  padding-top: 23px;
}

/* =========================================================
   Fields
   ========================================================= */

.form-field {
  position: relative;
}

.form-field label {
  display: block;

  margin-bottom: 8px;

  font-size: 8px;
  font-weight: 800;

  letter-spacing: 0.15em;

  color: #69768b;
}

.form-field input,
.form-field select,
.form-field textarea {
  display: block;

  width: 100%;

  border: 0;
  border-bottom: 1px solid #cfd7e3;

  border-radius: 0;

  outline: none;

  background: transparent;

  color: #03183f;

  font-family: inherit;

  font-size: 13px;

  transition:
    border-color 0.25s ease,
    padding-left 0.25s ease;
}

.form-field input,
.form-field select {
  height: 38px;
}

.form-field textarea {
  min-height: 68px;

  padding: 9px 0;

  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #a5afbd;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #033aa1;

  padding-left: 5px;
}

/* =========================================================
   Select
   ========================================================= */

.select-wrap {
  position: relative;
}

.form-field select {
  appearance: none;

  -webkit-appearance: none;

  cursor: pointer;

  padding-right: 30px;
}

.select-arrow {
  position: absolute;

  right: 4px;
  bottom: 10px;

  font-size: 13px;

  color: #033aa1;

  pointer-events: none;
}

/* =========================================================
   Error
   ========================================================= */

.field-error {
  display: block;

  min-height: 0;

  margin-top: 4px;

  font-size: 9px;

  color: #dd031b;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #dd031b;
}

/* =========================================================
   Submit
   ========================================================= */

.form-submit-row {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  padding-top: 4px;
}

.final-cta-submit {
  display: inline-flex;

  align-items: center;

  gap: 18px;

  min-height: 48px;

  padding: 0 6px 0 19px;

  border: 0;

  border-radius: 100px;

  background: #033aa1;

  color: #ffffff;

  font-family: inherit;

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 0.04em;

  cursor: pointer;

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.submit-arrow {
  display: grid;

  place-items: center;

  width: 36px;
  height: 36px;

  border-radius: 50%;

  background: #dd031b;

  font-size: 16px;

  transition: transform 0.3s ease;
}

.final-cta-submit:hover {
  background: #0648bd;

  transform: translateY(-2px);

  box-shadow: 0 10px 25px rgba(3, 58, 161, 0.18);
}

.final-cta-submit:hover .submit-arrow {
  transform: rotate(45deg);
}

.final-cta-submit:disabled {
  opacity: 0.65;

  cursor: wait;

  transform: none;

  box-shadow: none;
}

/* =========================================================
   Form Status
   ========================================================= */

.form-status {
  max-width: 170px;

  font-size: 10px;

  line-height: 1.4;

  color: #6d798c;
}

.form-status.success {
  color: #176b46;
}

.form-status.error {
  color: #dd031b;
}

/* =========================================================
   Bottom
   ========================================================= */

.final-cta-bottom {
  padding-bottom: 28px;
}

.final-cta-bottom-line {
  width: 100%;

  height: 1px;

  margin-bottom: 22px;

  background: #e3e8f0;
}

.final-cta-bottom-content {
  display: flex;

  align-items: center;

  justify-content: space-between;
}

.final-cta-brand {
  display: flex;

  align-items: center;

  gap: 9px;

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 0.16em;

  color: #05225e;
}

.brand-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #dd031b;
}

.final-cta-message {
  display: flex;

  align-items: center;

  gap: 11px;

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 0.18em;

  color: #8994a6;
}

.final-cta-message strong {
  color: #033aa1;
}

.cta-slash {
  color: #c8ced8;
}

/* =========================================================
   Reveal Animation
   ========================================================= */

.final-cta-copy,
.final-cta-form-wrap {
  opacity: 0;

  transform: translateY(25px);

  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.final-cta-section.is-visible .final-cta-copy,
.final-cta-section.is-visible .final-cta-form-wrap {
  opacity: 1;

  transform: translateY(0);
}

.final-cta-section.is-visible .final-cta-form-wrap {
  transition-delay: 0.12s;
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 950px) {
  .final-cta-main {
    grid-template-columns: 1fr;

    gap: 60px;

    padding: 70px 0 80px;
  }

  .final-cta-copy {
    max-width: 760px;
  }

  .final-cta-form-wrap {
    width: min(100%, 620px);
  }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {
  .final-cta-section {
    padding-top: 78px;
  }

  .final-cta-container {
    width: min(100% - 34px, 1180px);
  }

  .final-cta-eyebrow {
    padding-bottom: 25px;
  }

  .final-cta-main {
    padding: 54px 0 65px;

    gap: 48px;
  }

  .final-cta-small-label {
    margin-bottom: 16px;

    font-size: 9px;
  }

  .final-cta-copy h2 {
    font-size: clamp(43px, 12vw, 61px);

    line-height: 0.99;
  }

  .final-cta-copy p {
    margin: 24px 0 23px;

    font-size: 14px;
  }

  .final-cta-form-wrap {
    padding: 28px 21px 25px;
  }

  .final-cta-form-header h3 {
    font-size: 20px;
  }

  .final-cta-form {
    gap: 16px;
  }

  .form-submit-row {
    align-items: flex-start;

    flex-direction: column;

    gap: 12px;
  }

  .form-status {
    max-width: 100%;
  }

  .final-cta-watermark {
    right: -65px;
    bottom: -75px;

    font-size: 310px;
  }

  .final-cta-bottom-content {
    align-items: flex-start;

    flex-direction: column;

    gap: 18px;
  }

  .final-cta-message {
    flex-wrap: wrap;
  }
}

/* =========================================================
   Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .final-cta-copy,
  .final-cta-form-wrap {
    opacity: 1;

    transform: none;

    transition: none;
  }
}
