/* ============================================================
   BASE RESET
   ============================================================ */
.ssm-cta-wrapper,
.ssm-cta-wrapper *,
.ssm-cta-wrapper *::before,
.ssm-cta-wrapper *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.ssm-cta-wrapper {
  font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.8;
  font-weight: 500;
  color: #0c2b48;
}
.ssm-cta-wrapper button,
.ssm-cta-wrapper input,
.ssm-cta-wrapper textarea,
.ssm-cta-wrapper label,
.ssm-cta-wrapper p,
.ssm-cta-wrapper h2 {
  font-family: inherit;
}

/* ============================================================
   INLINE CTA
   Pill container: email input + "Get Started" button
   Designed for a dark/colored hero background.
   ============================================================ */
.ssm-inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 22px;
  background: #f3f4f3;
  border: 1.5px solid #ddd;
  border-radius: 9999px;
  max-width: 480px;
  width: 100%;
}
.ssm-cta-wrapper .ssm-inline-email {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent !important;
  border: none !important;
  font-size: 15px !important;
  color: #0c2b48 !important;
  padding: 8px 0 !important;
  caret-color: #0c2b48;
  box-shadow: none !important;
  font-family: inherit !important;
}
.ssm-cta-wrapper .ssm-inline-email::placeholder { color: #888; }
.ssm-cta-wrapper .ssm-inline-email:focus        { outline: none !important; }
.ssm-get-started-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 26px;
  background: #0c2b48;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.1s ease;
}
.ssm-get-started-btn:hover  { background: #071c33; }
.ssm-get-started-btn:active { transform: scale(0.97); }
/* Arrow icon inside button */
.ssm-btn-arrow {
  display: none;
}

/* ============================================================
   MODAL OVERLAY
   Fixed full-screen dimmed backdrop
   ============================================================ */
.ssm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,20,40,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.ssm-overlay.ssm-open {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   MODAL CONTAINER
   Max 560px, scrollable, 14px radius
   ============================================================ */
.ssm-modal {
  position: relative;
  background: #f3f4f3;
  border-radius: 14px;
  max-width: 560px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 24px 72px rgba(0,0,0,0.28), 0 4px 16px rgba(0,0,0,0.12);
  scrollbar-width: thin;
  scrollbar-color: #d0d0d0 transparent;
}
.ssm-modal::-webkit-scrollbar       { width: 5px; }
.ssm-modal::-webkit-scrollbar-track { background: transparent; }
.ssm-modal::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 3px; }
.ssm-overlay.ssm-open .ssm-modal {
  transform: translateY(0) scale(1);
}

/* ============================================================
   CLOSE BUTTON (X)
   ============================================================ */
.ssm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  background: #f2f2f2;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.15s ease;
  flex-shrink: 0;
}
.ssm-close:hover  { background: #e4e4e4; }
.ssm-close:focus  { outline: 2px solid #0c2b48; outline-offset: 2px; }
.ssm-close-icon {
  display: block;
  position: relative;
  width: 14px;
  height: 14px;
}
.ssm-close-icon::before,
.ssm-close-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 0;
  width: 100%;
  height: 2px;
  background: #555;
  border-radius: 1px;
}
.ssm-close-icon::before { transform: translateY(-50%) rotate(45deg); }
.ssm-close-icon::after  { transform: translateY(-50%) rotate(-45deg); }

/* ============================================================
   MODAL BODY PADDING
   ============================================================ */
.ssm-body {
  padding: 40px 36px 36px;
}

/* ============================================================
   STEP LABEL + HEADINGS
   ============================================================ */
.ssm-step-label {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #0c2b48;
  margin-bottom: 10px;
}
.ssm-heading {
  font-size: 22px;
  font-weight: 700;
  color: #0c2b48;
  line-height: 1.25;
  margin-bottom: 6px;
}
.ssm-subheading {
  font-size: 15px;
  color: #555;
  margin-bottom: 18px;
}

/* ============================================================
   YES / NO TOGGLE
   ============================================================ */
.ssm-toggle-row {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}
.ssm-overlay .ssm-toggle {
  flex: 1;
  padding: 13px 16px !important;
  background: #fff !important;
  border: 2px solid #ddd !important;
  border-radius: 9999px !important;
  font-size: 14px !important;
  font-weight: 600;
  color: #444 !important;
  cursor: pointer;
  box-shadow: none !important;
  font-family: inherit !important;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.ssm-overlay .ssm-toggle:hover { border-color: #0c2b48 !important; color: #0c2b48 !important; }
.ssm-overlay .ssm-toggle.ssm-selected {
  background: #0c2b48 !important;
  border-color: #0c2b48 !important;
  color: #fff !important;
}
.ssm-toggle-err {
  font-size: 12.5px;
  color: #c62828;
  margin-bottom: 16px;
  display: none;
}
.ssm-toggle-err.ssm-visible { display: block; }

/* ============================================================
   2-COLUMN FIELD GRID
   ============================================================ */
.ssm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-top: 18px;
  margin-bottom: 22px;
}
.ssm-field {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ssm-field.ssm-full { grid-column: 1 / -1; }
.ssm-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.01em;
}
/* Visually hide labels in the field grid — placeholders serve as visual labels.
   Labels remain in the DOM for screen-reader accessibility. */
.ssm-grid .ssm-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.ssm-req { color: #c62828; margin-left: 2px; }
.ssm-overlay .ssm-input,
.ssm-overlay .ssm-textarea {
  padding: 13px 14px !important;
  border: 1.5px solid #ddd !important;
  border-radius: 8px !important;
  font-size: 14.5px !important;
  color: #0c2b48 !important;
  background: #ffffff !important;
  width: 100% !important;
  box-shadow: none !important;
  font-family: inherit !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ssm-overlay .ssm-input::placeholder,
.ssm-overlay .ssm-textarea::placeholder { color: #727272; }
.ssm-overlay .ssm-input:focus,
.ssm-overlay .ssm-textarea:focus {
  outline: none !important;
  border-color: #0c2b48 !important;
  background: #fff !important;
}
.ssm-overlay .ssm-input:user-invalid,
.ssm-overlay .ssm-textarea:user-invalid { border-color: #c62828 !important; }
.ssm-overlay .ssm-textarea {
  min-height: 110px !important;
  resize: vertical;
  line-height: 1.55 !important;
}

/* ============================================================
   DIVIDER BEFORE CONTINUE
   ============================================================ */
.ssm-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 0 0 22px;
}

/* ============================================================
   CONTINUE / SUBMIT (full-width pill)
   ============================================================ */
.ssm-btn-continue,
.ssm-btn-submit {
  display: block;
  width: 100%;
  padding: 15px 24px;
  background: #0c2b48;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.1s ease;
  margin-bottom: 14px;
}
.ssm-btn-continue:hover,
.ssm-btn-submit:hover  { background: #071c33; }
.ssm-btn-continue:active,
.ssm-btn-submit:active { transform: scale(0.98); }

/* ============================================================
   BACK BUTTON (outlined)
   ============================================================ */
.ssm-btn-back {
  display: block;
  width: 100%;
  padding: 15px 24px;
  background: transparent;
  color: #0c2b48;
  border: 2px solid #0c2b48;
  border-radius: 9999px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease;
  margin-bottom: 0;
}
.ssm-btn-back:hover  { background: #eef3f8; }
.ssm-btn-back:active { transform: scale(0.98); }

/* Step 2 button row */
.ssm-btn-row {
  display: flex;
  gap: 10px;
}
.ssm-btn-row .ssm-btn-back   { flex: 1; margin: 0; }
.ssm-btn-row .ssm-btn-submit { flex: 2; margin: 0; }

/* ============================================================
   FINEPRINT DISCLAIMER
   ============================================================ */
.ssm-fine {
  font-size: 11.5px;
  color: #767676; /* WCAG AA: 4.54:1 on #fff (was #999 at 2.85:1) */
  line-height: 1.55;
  text-align: left;
}
.ssm-fine a {
  color: #0c2b48;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   PROGRESS BAR (visual step indicator)
   ============================================================ */
.ssm-progress {
  height: 3px;
  background: #eee;
  border-radius: 0 0 0 0;
  overflow: hidden;
  margin-bottom: 0;
}
.ssm-progress-bar {
  height: 100%;
  background: #0c2b48;
  border-radius: 0;
  transition: width 0.35s ease;
}

/* ============================================================
   SUCCESS STATE
   ============================================================ */
.ssm-success {
  display: none;
  text-align: center;
  padding: 60px 36px 52px;
}
.ssm-success.ssm-visible { display: block; }
.ssm-success-check {
  width: 60px;
  height: 60px;
  background: #0c2b48;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
/* SVG checkmark drawn with CSS borders */
.ssm-check-icon {
  display: block;
  width: 22px;
  height: 13px;
  border-left: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  transform: rotate(-45deg) translateY(-3px);
}
.ssm-success-h {
  font-size: 20px;
  font-weight: 700;
  color: #0c2b48;
  margin-bottom: 8px;
}
.ssm-success-p {
  font-size: 14.5px;
  color: #666;
}

/* ============================================================
   STEP PANELS
   ============================================================ */
.ssm-step { display: block; }
.ssm-step.ssm-hidden { display: none; }

/* ============================================================
   RESPONSIVE — single column ≤ 480px
   ============================================================ */
@media (max-width: 480px) {
  .ssm-inline-cta {
    padding: 5px 5px 5px 18px;
  }
  .ssm-inline-email { font-size: 14px; }
  .ssm-get-started-btn {
    padding: 11px 18px;
    font-size: 11.5px;
  }
  .ssm-body { padding: 32px 20px 28px; }
  .ssm-heading { font-size: 19px; }
  .ssm-grid { grid-template-columns: 1fr; }
  .ssm-btn-row { flex-direction: column-reverse; gap: 8px; }
  .ssm-btn-row .ssm-btn-submit,
  .ssm-btn-row .ssm-btn-back { flex: none; width: 100%; }
}
