:root {
  --brand-900: #18588a;
  --brand-800: #007ac7;
  --brand-700: #00a4db;
  --brand-500: #02d1a1;
  --brand-red: #ec3f45;
  --ink: #102033;
  --muted: #637083;
  --line: rgba(255, 255, 255, 0.42);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --shadow: 0 28px 80px rgba(12, 54, 92, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(2, 209, 161, 0.24), transparent 32rem),
    radial-gradient(circle at 85% 12%, rgba(0, 164, 219, 0.22), transparent 34rem),
    linear-gradient(135deg, #eef8fb 0%, #f7fbff 45%, #f3f7fb 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  min-height: 430px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.36));
  box-shadow: var(--shadow);
  backdrop-filter: blur(30px) saturate(160%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.9), transparent 38%, rgba(255, 255, 255, 0.24));
}

.hero__content,
.hero__visual {
  position: relative;
  z-index: 1;
}

.hero__content {
  align-self: center;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: 190px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 16px 42px rgba(24, 88, 138, 0.11);
  backdrop-filter: blur(20px);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.brand-promo {
  min-width: 0;
  color: var(--brand-900);
  font-size: clamp(0.95rem, 1.7vw, 1.2rem);
  font-weight: 800;
  line-height: 1.35;
}

.brand-promo .typed-cursor {
  color: var(--brand-red);
  font-weight: 700;
}

.eyebrow,
.section-kicker {
  margin: 28px 0 10px;
  color: var(--brand-900);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  color: #0a3151;
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: 0.96;
}

h2 {
  color: #123c5e;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
}

.hero__lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: #33475f;
  font-size: 1.04rem;
  line-height: 1.75;
}

.hero__visual {
  display: grid;
  place-items: center;
  min-height: 330px;
  align-self: stretch;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(232, 249, 255, 0.62)),
    rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 20px 70px rgba(11, 77, 126, 0.18);
}

.hero__visual img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  padding: 18px;
  object-fit: contain;
  object-position: center;
}

.hero__metric {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 22px;
  color: white;
  background: rgba(10, 49, 81, 0.58);
  backdrop-filter: blur(22px) saturate(160%);
}

.hero__metric span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #baf7e7;
}

.hero__metric strong {
  font-size: 1rem;
}

.form-card {
  margin-top: -24px;
  padding: 30px;
  position: relative;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(34px) saturate(170%);
}

.form-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.form-card__header--spaced {
  margin-top: 34px;
}

.section-kicker {
  margin: 0 0 8px;
}

.required-note {
  flex: 0 0 auto;
  color: var(--brand-red);
  font-size: 0.88rem;
  font-weight: 800;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field,
.choice-block {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 22px;
  background: var(--glass-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 14px 35px rgba(24, 88, 138, 0.08);
}

.field {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.field--wide {
  grid-column: 1 / -1;
}

.field span,
.choice-block legend,
.choice-inline legend {
  color: #173752;
  font-weight: 800;
  line-height: 1.35;
}

b {
  color: var(--brand-red);
}

small,
.choice-block p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  border: 1px solid rgba(24, 88, 138, 0.16);
  border-radius: 16px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  min-height: 50px;
  padding: 0 14px;
}

textarea {
  min-height: 112px;
  resize: vertical;
  padding: 14px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0, 164, 219, 0.76);
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 164, 219, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: #9aa6b4;
}

.choice-block {
  min-inline-size: 0;
  margin: 18px 0;
  padding: 18px;
}

.choice-block legend,
.choice-inline legend {
  padding: 0;
}

.choice-block p {
  margin: 6px 0 14px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice-grid--dense {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-grid label,
.choice-inline label {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(24, 88, 138, 0.11);
  border-radius: 16px;
  color: #274156;
  background: rgba(255, 255, 255, 0.7);
  line-height: 1.35;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.choice-grid label:hover,
.choice-inline label:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 164, 219, 0.34);
  background: white;
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: var(--brand-800);
}

.choice-inline {
  align-content: start;
  gap: 10px;
  margin: 0;
}

.choice-other {
  flex-wrap: wrap;
}

.choice-other input[type="text"] {
  flex: 1 1 170px;
  min-width: 150px;
  min-height: 40px;
}

.error-message {
  display: none;
  margin-top: 10px;
  color: var(--brand-red);
  font-size: 0.88rem;
  font-weight: 700;
}

.is-invalid {
  border-color: rgba(236, 63, 69, 0.55);
  box-shadow: 0 0 0 4px rgba(236, 63, 69, 0.08);
}

.is-invalid .error-message {
  display: block;
}

.submit-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(24, 88, 138, 0.86), rgba(0, 164, 219, 0.78));
  color: white;
  box-shadow: 0 20px 50px rgba(24, 88, 138, 0.24);
}

.submit-panel p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.submit-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.learn-more-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.learn-more-button {
  border: 1px solid rgba(255, 255, 255, 0.54);
  color: white;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(18px);
}

.submit-button {
  position: relative;
  color: #08324f;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff, #dff9ff);
  box-shadow: 0 14px 36px rgba(4, 28, 48, 0.24), inset 0 1px 0 white;
}

.learn-more-button:hover,
.submit-button:hover {
  transform: translateY(-1px);
}

.learn-more-button:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 14px 28px rgba(4, 28, 48, 0.14);
}

.submit-button:hover {
  box-shadow: 0 18px 42px rgba(4, 28, 48, 0.28), inset 0 1px 0 white;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.button-loader {
  display: none;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  border: 2px solid rgba(8, 50, 79, 0.22);
  border-top-color: #08324f;
  border-radius: 50%;
  animation: spin 850ms linear infinite;
}

.is-submitting .button-label {
  display: none;
}

.is-submitting .button-loader {
  display: block;
}

.form-status {
  min-height: 24px;
  margin: 16px 4px 0;
  color: var(--brand-900);
  font-weight: 800;
}

.form-status.is-error {
  color: var(--brand-red);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 22, 38, 0.45);
  backdrop-filter: blur(18px);
}

.modal__panel {
  position: relative;
  width: min(520px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 34px 100px rgba(4, 28, 48, 0.28);
  text-align: center;
  backdrop-filter: blur(30px) saturate(170%);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(24, 88, 138, 0.12);
  border-radius: 50%;
  color: #264257;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.modal__icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-800));
  box-shadow: 0 18px 42px rgba(0, 164, 219, 0.24);
}

.modal__panel h2 {
  color: #0a3151;
}

.modal__panel p {
  margin: 14px auto 0;
  color: #33475f;
  line-height: 1.75;
}

.modal__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.modal__button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}

.modal__button--ghost {
  color: var(--brand-900);
  background: rgba(0, 164, 219, 0.1);
}

.modal__button--facebook {
  color: white;
  background: #1877f2;
}

.modal__button--primary {
  color: white;
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 280px;
  }

  .hero__visual img {
    min-height: 280px;
  }

  .grid,
  .choice-grid,
  .choice-grid--dense {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding: 10px 0 32px;
  }

  .hero,
  .form-card {
    border-radius: 24px;
    padding: 20px;
  }

  .hero {
    min-height: auto;
  }

  .brand {
    width: 160px;
  }

  .brand-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .brand-promo {
    min-height: 2.7em;
  }

  .form-card {
    margin-top: 14px;
  }

  .form-card__header,
  .submit-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .submit-actions {
    width: 100%;
    flex-direction: column-reverse;
  }

  .submit-button,
  .learn-more-button {
    width: 100%;
  }

  .modal__panel {
    padding: 28px 18px 20px;
  }

  .modal__actions {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.45rem;
  }
}
