.ap-page {
  background: #ffffff;
  color: #1c3b55;
}

.ap-page main {
  overflow: visible;
}

.ap-hero {
  padding-top: 64px;
  padding-bottom: 88px;
  background:
    radial-gradient(circle at 8% 10%, rgba(39, 145, 220, 0.09) 0%, rgba(39, 145, 220, 0) 34%),
    radial-gradient(circle at 95% 4%, rgba(22, 115, 189, 0.1) 0%, rgba(22, 115, 189, 0) 28%),
    linear-gradient(180deg, #ffffff 0%, #f5fbff 50%, #ffffff 100%);
}

.ap-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 44px;
  align-items: start;
}

.ap-left {
  color: #21425d;
}

.ap-eyebrow {
  margin: 0 0 12px;
  color: #177bc0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.7px;
}

.ap-left h1 {
  margin: 0;
  color: #123a5c;
  font-size: clamp(38px, 5.1vw, 66px);
  line-height: 1.02;
  font-weight: 900;
  max-width: 860px;
}

.ap-intro {
  margin: 16px 0 0;
  color: #4d6b83;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.65;
  max-width: 720px;
}

.ap-highlights {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ap-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #cfe3f1;
  background: #ffffff;
  color: #1f5b83;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(16, 71, 109, 0.08);
}

.ap-benefits {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.ap-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #35536b;
  font-size: 16px;
  line-height: 1.6;
}

.ap-benefits i {
  margin-top: 4px;
  color: #1387c8;
  font-size: 18px;
  flex: 0 0 auto;
}

.ap-media-stack {
  margin-top: 34px;
  max-width: 720px;
  position: relative;
  display: grid;
  gap: 18px;
  padding-right: 58px;
  padding-bottom: 118px;
}

.ap-media-main {
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid #d6e8f3;
  box-shadow: 0 24px 44px rgba(12, 58, 92, 0.12);
}

.ap-media-main img {
  display: block;
  width: 100%;
  height: auto;
}

.ap-media-float {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  width: min(46%, 290px);
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #cae1ef;
  padding: 12px;
  box-shadow: 0 18px 34px rgba(12, 58, 92, 0.12);
  transform: translateY(0%);
  z-index: 2;
}

.ap-media-float img {
  width: 100%;
  display: block;
  border-radius: 14px;
}

.ap-right {
  display: grid;
  gap: 24px;
}

.ap-form-card {
  position: relative;
  margin: 0 auto;
  background: linear-gradient(180deg, #ffffff 0%, #fafdff 100%);
  border-radius: 22px;
  border: 1px solid #bcd9ed;
  box-shadow:
    0 28px 60px rgba(12, 58, 92, 0.14),
    0 0 0 10px rgba(20, 146, 211, 0.08);
  padding: 28px;
  overflow: hidden;
}

.ap-submit-overlay {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
}

.ap-submit-overlay strong {
  color: #123a5c;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
}

.ap-submit-overlay p {
  margin: 0;
  max-width: 360px;
  color: #4d6b83;
  font-size: 15px;
  line-height: 1.7;
}

.ap-submit-overlay__spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid rgba(19, 135, 200, 0.16);
  border-top-color: #1387c8;
  animation: ap-submit-spin 0.85s linear infinite;
}

@keyframes ap-submit-spin {
  to {
    transform: rotate(360deg);
  }
}

.ap-form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, #1195d8 0%, #0c7ab5 55%, #7fd7ff 100%);
}

.ap-form-card::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116, 208, 255, 0.24) 0%, rgba(116, 208, 255, 0) 70%);
  pointer-events: none;
}

.ap-right-copy {
  padding: 28px 24px;
  border-radius: 18px;
  border: 1px solid #d9e8f2;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(12, 58, 92, 0.08);
  color: #31516b;
}

.ap-right-copy h3 {
  margin: 0;
  color: #123a5c;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.15;
  font-weight: 900;
}

.ap-right-copy h4 {
  margin: 14px 0 0;
  color: #123a5c;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
}

.ap-right-copy p {
  margin: 12px 0 0;
  color: #4e6c84;
  font-size: 16px;
  line-height: 1.7;
}

.ap-right-copy ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.ap-right-copy li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #31516b;
  font-size: 15px;
  line-height: 1.6;
}

.ap-right-copy li i {
  margin-top: 4px;
  color: #1387c8;
  font-size: 15px;
  flex: 0 0 auto;
}

.ap-right-copy .ap-right-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #d6e5ef;
  color: #62809a;
  font-size: 14px;
}

.ap-right-copy .ap-right-note-last {
  margin-top: 10px;
}

.ap-right-list {
  margin-top: 12px;
}

.ap-right-list li {
  font-size: 14px;
}

.ap-progress {
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.ap-progress-bar {
  width: 100%;
  height: 7px;
  background: #e8f0f6;
  border-radius: 999px;
  overflow: hidden;
}

.ap-progress-bar span {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f9adb 0%, #0a75af 100%);
  transition: width 0.3s ease;
}

.ap-progress-mobile {
  display: none;
}

.ap-stepper {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.ap-stepper li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7b96a9;
}

.ap-stepper li span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #bcd0df;
  background: #f5fbff;
}

.ap-stepper li small {
  font-size: 12px;
  font-weight: 700;
}

.ap-stepper li.is-active {
  color: #103c5e;
}

.ap-stepper li.is-active span {
  border-color: #0980c1;
  background: #dff2ff;
  color: #0c7ab5;
}

.ap-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.ap-form h2 {
  margin: 0 0 14px;
  color: #103b5d;
  font-size: clamp(28px, 2.2vw, 38px);
  line-height: 1.08;
  font-weight: 900;
  position: relative;
  z-index: 1;
}

.ap-form label {
  display: inline-block;
  margin: 0 0 6px;
  color: #355d7a;
  font-size: 13px;
  font-weight: 700;
}

.ap-form input,
.ap-form select {
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  min-height: 52px;
  border: 1px solid #b9cfdf;
  border-radius: 10px;
  background: #ffffff;
  color: #204f6f;
  font-size: 15px;
  line-height: 1.2;
  padding: 0 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ap-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23103b5d' d='M6 7.4a1 1 0 0 1-.7-.29L.3 2.11A1 1 0 1 1 1.7.7L6 5l4.3-4.3a1 1 0 1 1 1.4 1.41l-5 5A1 1 0 0 1 6 7.4Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

.ap-form input:focus,
.ap-form select:focus {
  outline: 0;
  border-color: #0b85c7;
  box-shadow: 0 0 0 3px rgba(11, 131, 194, 0.15);
}

.ap-form input::placeholder {
  color: #7d95a8;
}

.ap-field-error {
  display: none;
  color: #c23333;
  font-size: 12px;
  line-height: 1.4;
}

.has-error .ap-field-error {
  display: block;
  margin-top: 6px;
}

.has-error input:not([type="checkbox"]),
.has-error select {
  border-color: #d43d3d;
  box-shadow: 0 0 0 3px rgba(212, 61, 61, 0.12);
}

.ap-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.ap-page.ap-is-submitting .ap-actions button,
.ap-page.ap-is-submitting .ap-form input,
.ap-page.ap-is-submitting .ap-form select {
  pointer-events: none;
}

.ap-next,
.ap-submit,
.ap-outline {
  min-height: 45px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  padding: 0 22px;
  cursor: pointer;
}

.ap-next,
.ap-submit {
  color: #ffffff;
  border: 0;
  background: linear-gradient(180deg, #0f94d8 0%, #096fa8 100%);
  box-shadow: 0 12px 24px rgba(9, 116, 174, 0.3);
}

.ap-next:hover,
.ap-submit:hover {
  transform: translateY(-1px);
}

.ap-outline {
  border: 1.5px solid #1492d3;
  background: #ffffff;
  color: #0d7fbb;
}

.ap-outline:hover {
  background: #edf7ff;
}

.ap-consent {
  margin-top: 38px;
  padding-top: 14px;
  border-top: 1px solid #d6e4ef;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ap-consent input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 4px;
  padding: 0;
}

.ap-consent span {
  color: #4e6e85;
  font-size: 14px;
  line-height: 1.65;
}

.ap-consent a {
  color: #0e85c6;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ap-consent a:hover {
  color: #0b6ea5;
}

.ap-consent.has-error,
.has-error.ap-consent {
  border-top-color: #e7b4b4;
}

.ap-consent .ap-field-error {
  flex: 0 0 100%;
  margin: 0 0 0 32px;
}

.ap-lookup-note {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.ap-lookup-note[hidden] {
  display: none !important;
}

.ap-bank-card {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #d7e3f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  width: 100%;
}

.ap-bank-card[hidden] {
  display: none !important;
}

.ap-bank-card.is-text-only {
  gap: 0;
}

.ap-bank-card.is-text-only .ap-bank-copy {
  width: 100%;
}

.ap-bank-media {
  width: 128px;
  height: 78px;
  flex: 0 0 128px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #dde7f1;
  overflow: hidden;
}

.ap-bank-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.ap-bank-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ap-bank-copy strong {
  color: #103b5d;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0;
  word-break: break-word;
}

.ap-bank-copy span {
  color: #5d788f;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  word-break: break-word;
}

@media (min-width: 992px) {
  .ap-bank-card {
    min-height: 140px;
    padding: 18px 20px;
    gap: 20px;
  }

  .ap-bank-media {
    width: 200px;
    height: 100px;
    flex-basis: 200px;
  }
}

@media (max-width: 1199.98px) {
  .ap-bank-copy strong {
    font-size: 16px;
  }
}

.pac-container {
  z-index: 99999 !important;
  border: 1px solid #d4e6f2;
  border-radius: 14px;
  box-shadow: 0 18px 32px rgba(12, 58, 92, 0.14);
  font-family: inherit;
}

@media (max-width: 1399.98px) {
  .ap-left h1 {
    font-size: clamp(36px, 4.5vw, 58px);
  }
}

@media (max-width: 1199.98px) {
  .ap-layout {
    gap: 28px;
  }

  .ap-form-card {
    padding: 24px;
  }
}

@media (max-width: 991.98px) {
  .ap-hero {
    padding-top: 116px;
    padding-bottom: 72px;
  }

  .ap-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ap-right {
    order: 1;
  }

  .ap-left {
    order: 2;
  }

  .ap-left h1 {
    font-size: clamp(34px, 7.2vw, 52px);
    max-width: 100%;
  }

  .ap-intro {
    max-width: 100%;
  }

  .ap-media-stack {
    max-width: 680px;
    padding-right: 0;
    padding-bottom: 26px;
  }

  .ap-media-float {
    position: relative;
    width: min(66%, 300px);
    right: auto;
    bottom: auto;
    margin: 14px 0 0 auto;
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .ap-hero {
    padding-top: 72px;
    padding-bottom: 56px;
  }

  .ap-intro {
    font-size: 16px;
  }

  .ap-benefits li {
    font-size: 15px;
  }

  .ap-form-card {
    border-radius: 16px;
    padding: 18px;
  }

  .ap-progress {
    margin-bottom: 18px;
  }

  .ap-progress-mobile {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .ap-progress-mobile strong {
    color: #0c7ab5;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
  }

  .ap-progress-mobile span {
    color: #69839a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
  }

  .ap-stepper {
    display: none;
  }

  .ap-actions {
    flex-direction: column;
  }

  .ap-actions .ap-next,
  .ap-actions .ap-submit {
    order: 1;
  }

  .ap-actions .ap-prev,
  .ap-actions .ap-outline {
    order: 2;
  }

  .ap-bank-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ap-bank-media {
    width: min(180px, 100%);
    height: 92px;
    flex-basis: auto;
  }

  .ap-bank-copy {
    align-items: center;
  }

  .ap-bank-copy strong {
    font-size: 14px;
  }

  .ap-bank-copy span {
    font-size: 13px;
  }

  .ap-next,
  .ap-submit,
  .ap-outline {
    width: 100%;
  }
}
