:root {
  --primary: #0046ad;
  --primary-dark: #003a90;
  --text: #1f2933;
  --muted: #54657a;
  --border: #d8e1eb;
  --bg: #f5f7fb;
  --card-bg: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #ffffff 0%, #f5f7fb 45%, #eef2f7 100%);
}

.page {
  min-height: 100vh;
}

.topbar {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 24px 24px 16px;
}

.logo {
  width: 82px;
  height: auto;
}

.topbar-text {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  text-align: center;
  max-width: 620px;
  justify-self: center;
}

.topbar-spacer {
  width: 64px;
}

.topbar-divider {
  height: 1px;
  background: var(--border);
  margin: 0 24px 24px;
}

.content {
  display: flex;
  justify-content: center;
  padding: 0 24px 48px;
}

.card {
  width: min(780px, 100%);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(12, 33, 70, 0.08);
}

.card-inner {
  padding: 36px;
}

.form-lead {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e9f1ff 0%, #f7faff 100%);
  border: 1px solid #dbe7f7;
  margin-bottom: 24px;
}

.lead-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 20px rgba(0, 70, 173, 0.22);
  flex-shrink: 0;
}

.lead-icon svg {
  width: 26px;
  height: 26px;
}

.lead-title {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: #0f2c5c;
}

.lead-text {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

h1,
h2,
h3,
h4 {
  font-family: "Poppins", sans-serif;
  margin-top: 0;
  color: #1b2a3a;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.intro {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.reminder {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.step {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.step:first-of-type {
  border-top: none;
  padding-top: 0;
}

.step-label {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 6px;
}

.field,
.field-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 18px;
  width: 100%;
}

.field {
  max-width: 340px;
}

.field.full-note {
  max-width: 100%;
}

.field.full-note .field-note {
  width: 100%;
}

.input-narrow {
  max-width: 340px;
}

.field-group {
  max-width: 640px;
}

.label {
  font-weight: 600;
  font-size: 0.95rem;
}

.field-note {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2354657a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 44px;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--primary);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 70, 173, 0.12);
}

.helper {
  font-size: 0.8rem;
  color: var(--muted);
}

.ghost-link {
  background: transparent;
  border: none;
  color: var(--primary);
  font-weight: 600;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin-bottom: 16px;
}

.ghost-link .chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  margin-top: -2px;
}

.inline-link {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--primary);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  align-self: flex-start;
  cursor: pointer;
}

.service-info {
  margin-bottom: 20px;
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 640px;
}

.radio-group {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
}

.radio:hover {
  border-color: var(--primary);
}

.checkbox-group {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 8px 0 18px;
  max-width: 640px;
  font-size: 0.9rem;
  color: var(--text);
}

.checkbox-group input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.primary {
  width: auto;
  min-width: 200px;
  padding: 12px 32px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 70, 173, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0, 70, 173, 0.25);
}

.primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
}

.primary.link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.privacy {
  margin-top: 24px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
}

.form-status {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

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

.footer {
  width: 100%;
  margin: 0 auto;
  padding: 24px 24px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}


.success {
  padding: 16px 0 10px;
}

.success-card {
  border-radius: 20px;
  padding: 28px;
  border: 1px solid #dbe7f7;
  background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
  box-shadow: 0 18px 40px rgba(12, 33, 70, 0.08);
}

.success-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(0, 70, 173, 0.25);
}

.success-icon svg {
  width: 28px;
  height: 28px;
}

.success-eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a62d4;
}

.success-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.success-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 18px 0 24px;
}

.success-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f0f5ff;
  border: 1px solid #dbe7f7;
}

.meta-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(0, 70, 173, 0.12);
  flex-shrink: 0;
}

.meta-icon svg {
  width: 18px;
  height: 18px;
}

.meta-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.meta-text {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.success-actions {
  display: flex;
  justify-content: center;
}

.hidden {
  display: none;
}

.conditional {
  display: none;
}

.conditional.active {
  display: block;
}

.sticky-tab {
  position: fixed;
  right: 0;
  top: 40%;
  transform: rotate(-90deg) translateX(50%);
  transform-origin: right top;
  background: #1aa896;
  color: #fff;
  border: none;
  padding: 8px 18px;
  font-weight: 600;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
}

.help-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 18, 38, 0.6);
}

.modal-content {
  position: relative;
  background: #fff;
  width: min(720px, 92vw);
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid #e4eaf2;
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  z-index: 1;
}

.modal-title {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  margin: 0 0 14px;
  color: #102a43;
  text-align: center;
  line-height: 1.2;
}

.modal-subtitle {
  margin: 0 0 18px;
  text-align: center;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

.modal-overview {
  margin: 0 0 18px;
  color: #4b5a6a;
  font-size: 1rem;
  line-height: 1.6;
}

.modal-benefits-lead {
  margin: 0 0 10px;
  font-weight: 700;
  color: #1b2a3a;
}

.modal-benefits {
  margin: 0;
  padding-left: 20px;
  color: #2f3b49;
  line-height: 1.6;
}

.modal-benefits li {
  margin-bottom: 10px;
}

.modal-label {
  font-weight: 700;
  margin: 12px 0 4px;
  color: #1b2a3a;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #6b7c93;
  cursor: pointer;
}

form.was-validated input:invalid,
form.was-validated select:invalid,
form.was-validated textarea:invalid {
  border-color: #d94444;
  box-shadow: 0 0 0 3px rgba(217, 68, 68, 0.12);
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 24px 16px;
  }

  .topbar-text {
    text-align: left;
    justify-self: flex-start;
  }

  .topbar-spacer {
    display: none;
  }

  .card-inner {
    padding: 26px;
  }

  .sticky-tab {
    display: none;
  }

  .grid.two,
  .field-group,
  .field {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.45rem;
    white-space: nowrap;
    letter-spacing: -0.01em;
  }

  .primary {
    min-width: 180px;
    padding: 10px 24px;
    font-size: 0.95rem;
  }

  .form-lead {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .lead-icon {
    width: 44px;
    height: 44px;
  }

  .success-card {
    padding: 22px;
  }

  .success-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .success-hero h2 {
    font-size: 1.35rem;
    line-height: 1.3;
    max-width: 260px;
    margin: 0.4rem auto 0;
  }

  .success-icon {
    margin: 0 auto;
  }

  .success-meta {
    grid-template-columns: 1fr;
  }

  .success-meta-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .meta-icon {
    margin-bottom: 6px;
  }

  .success-actions .primary {
    width: 100%;
    max-width: 260px;
  }
}
