@import url(https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Montserrat:wght@300;400;500;600;700&display=swap);
/* ==========================================================================
   Life Policy Express — Design Tokens
   Source: https://lead.lifepolicyexpress.com/css/lep-lp2/style.css
   ========================================================================== */

/* Google Fonts (Roboto + Montserrat) — match the live site */

:host {
  --lp-brand:        #580C82;   /* deep purple */
  --lp-brand-dark:   #4A0A6E;   /* hover */
  --lp-gold:         #DBC078;   /* gold border / accents */
  --lp-text:         #2A2A2A;
  --lp-muted:        #6B7280;
  --lp-track:        #EEEEEE;
  --lp-border:       #DEE2E6;
  --lp-border-soft:  #EEF2F7;
  --lp-bg:           #FFFFFF;

  --lp-font-heading: 'Montserrat', sans-serif;
  --lp-font-body:    'Roboto', sans-serif;
}

/* ============================================================
   LifePolicySelect — custom dropdown
   ============================================================ */

.lpe-select-wrap {
  position: relative;
  width: 100%;
  font-family: var(--lp-font-body);
}

/* ── Trigger button (looks like an input) ── */

.lpe-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  color: var(--lp-text);
  text-align: left;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  box-shadow: none;
}

.lpe-select-trigger:hover {
  border-color: #D1D5DB;
}

.lpe-select-trigger:focus-visible,
.lpe-select-wrap--open .lpe-select-trigger {
  outline: none;
  border-color: var(--lp-brand);
  box-shadow: 0 0 0 3px rgba(88, 12, 130, 0.15);
}

.lpe-select-wrap--error .lpe-select-trigger {
  border-color: #DC2626;
}

.lpe-select-wrap--error.lpe-select-wrap--open .lpe-select-trigger {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

.lpe-select-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: var(--lp-text);
}

.lpe-select-value--placeholder {
  color: #9AA1AB;
  font-weight: 400;
}

.lpe-select-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lp-brand);
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lpe-select-wrap--open .lpe-select-chevron {
  transform: rotate(180deg);
}

/* ── Searchable variant — trigger is a combobox input ── */

.lpe-select-trigger--input {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  padding: 0 4px 0 0;
  background: #fff;
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.lpe-select-trigger--input:hover {
  border-color: #D1D5DB;
}

.lpe-select-wrap--searchable.lpe-select-wrap--open .lpe-select-trigger--input,
.lpe-select-trigger--input:focus-within {
  border-color: var(--lp-brand);
  box-shadow: 0 0 0 3px rgba(88, 12, 130, 0.15);
}

.lpe-select-wrap--error.lpe-select-wrap--searchable .lpe-select-trigger--input {
  border-color: #DC2626;
}

.lpe-select-wrap--error.lpe-select-wrap--searchable .lpe-select-trigger--input:focus-within {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

.lpe-select-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 8px 0 14px;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--lp-text);
}

.lpe-select-input::placeholder {
  color: #9AA1AB;
  font-weight: 400;
}

.lpe-select-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--lp-brand);
  flex-shrink: 0;
}

.lpe-select-toggle:focus-visible {
  outline: none;
}

/* ── Empty state ── */

.lpe-select-wrap .lpe-select-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 10px;
  color: #9AA1AB;
  font-size: 14px;
  font-style: italic;
}

/* ── Floating panel ── */

.lpe-select-wrap .lpe-select-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 12px 32px rgba(15, 23, 42, 0.14);
  padding: 6px;
  margin: 0;
  list-style: none;
  z-index: 20;
  transform-origin: top center;
  animation: lpe-select-fade-down 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.lpe-select-wrap.lpe-select-wrap--up .lpe-select-panel {
  top: auto;
  bottom: calc(100% + 6px);
  transform-origin: bottom center;
  animation-name: lpe-select-fade-up;
}

@keyframes lpe-select-fade-down {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lpe-select-fade-up {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Options ── */

.lpe-select-wrap .lpe-select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--lp-text);
  font-size: 15px;
  font-weight: 400;
  user-select: none;
  transition: background-color 0.1s ease, color 0.1s ease;
}

.lpe-select-wrap .lpe-select-option--active {
  background: rgba(88, 12, 130, 0.08);
  color: var(--lp-brand);
}

.lpe-select-wrap .lpe-select-option--selected {
  font-weight: 600;
  color: var(--lp-brand);
}

.lpe-select-wrap .lpe-select-option--selected.lpe-select-option--active {
  background: rgba(88, 12, 130, 0.12);
}

.lpe-select-option-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lpe-select-option-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lp-brand);
  flex-shrink: 0;
}

/* ── Custom scrollbar inside panel ── */

.lpe-select-panel::-webkit-scrollbar {
  width: 10px;
}

.lpe-select-panel::-webkit-scrollbar-track {
  background: transparent;
}

.lpe-select-panel::-webkit-scrollbar-thumb {
  background: #E5E7EB;
  border: 2px solid #fff;
  border-radius: 999px;
}

.lpe-select-panel::-webkit-scrollbar-thumb:hover {
  background: #D1D5DB;
}

/* ── Mobile tweaks ── */

@media (max-width: 600px) {
  .lpe-select-panel {
    max-height: 240px;
  }
  .lpe-select-option {
    min-height: 44px;
    font-size: 16px;
  }
}

/* ============================================================
   Life Policy Wizard — matches lead.lifepolicyexpress.com
   ============================================================ */

.lpe-wizard {
  width: 100%;
  background: var(--lp-bg);
  border: 1px solid #ECECEC;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  padding: 3rem 2rem 2rem;
  color: var(--lp-text);
  font-family: var(--lp-font-body);
  scroll-margin-top: 16px;
  box-sizing: border-box;
}

.lpe-wizard *,
.lpe-wizard *::before,
.lpe-wizard *::after { box-sizing: border-box; }

.lpe-wizard h1, .lpe-wizard h2, .lpe-wizard h3, .lpe-wizard h4, .lpe-wizard h5, .lpe-wizard h6,
.lpe-wizard p, .lpe-wizard ul, .lpe-wizard li { margin: 0; padding: 0; }

.lpe-wizard ul { list-style: none; }

/* ── Headings ── */

.lpe-heading {
  font-family: var(--lp-font-heading);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  color: var(--lp-brand);
  margin-top: 40px;
  margin-bottom: 0.5rem;
}

.lpe-heading--centered { text-align: center; }

.lpe-sub {
  color: var(--lp-muted);
  font-size: 0.95rem;
  font-family: var(--lp-font-body);
  margin-bottom: 1.5rem;
}

.lpe-sub--centered { text-align: center; }

/* ── Progress bar ── */

.lpe-progress-wrap {
  position: relative;
  height: 18px;
  margin: 30px 5% 60px;
}

.lpe-progress-track {
  position: absolute;
  inset: 0 0 0 0;
  top: 50%;
  transform: translateY(-50%);
  height: 10px;
  background: var(--lp-track);
  border-radius: 999px;
}

.lpe-progress-fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 10px;
  background: var(--lp-brand);
  border-radius: 999px;
  transition: width 0.35s ease;
}

/* Gold knob sitting on the track at the leading edge of the fill */
.lpe-progress-knob {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  background: var(--lp-gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: left 0.35s ease;
  z-index: 1;
  box-shadow: 0 0 0 2px #fff;
}

.lpe-progress-dot {
  position: absolute;
  top: 0;
  transform: translate(-50%, -115%);
  width: 46px;
  height: 46px;
  background: var(--lp-brand);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 46px;
  transition: left 0.35s ease;
  z-index: 2;
}

.lpe-progress-dot::before {
  content: '';
  position: absolute;
  top: 45px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--lp-brand);
}

/* ── Form layout ── */

.lpe-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.lpe-form--narrow {
  max-width: 480px;
}

.lpe-form--contact { gap: 16px; }

.lpe-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lpe-label {
  color: #1F2937;
  font-family: var(--lp-font-body);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 0;
}

/* ── Inputs (override the shared TextInput/.wf-field look) ── */

.lpe-wizard .wf-field { width: 100%; }

.lpe-wizard .wf-field__label { display: none; }

.lpe-wizard .wf-field__input {
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--lp-border);
  background: #fff;
  color: var(--lp-text);
  font-family: var(--lp-font-body);
  font-size: 16px;
  font-weight: 400;
  padding: 0 16px;
  box-shadow: none;
  width: 100%;
}

.lpe-wizard .wf-field__input::placeholder {
  color: #9AA1AB;
  font-weight: 400;
}

.lpe-wizard .wf-field__input:focus {
  border-color: var(--lp-brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(88, 12, 130, 0.12);
}

/* Joined input+icon: hover and focus highlight both halves uniformly */
.lpe-input--icon .wf-field__input-wrap:hover .wf-field__input,
.lpe-input--icon .wf-field__input-wrap:hover .wf-field__status {
  border-color: #D1D5DB;
}

.lpe-input--icon .wf-field__input-wrap {
  border-radius: 12px;
  transition: box-shadow 0.15s ease;
}

.lpe-input--icon .wf-field__input,
.lpe-input--icon .wf-field__status {
  transition: border-color 0.15s ease;
}

.lpe-input--icon .wf-field__input-wrap:focus-within {
  box-shadow: 0 0 0 3px rgba(88, 12, 130, 0.15);
}

.lpe-input--icon .wf-field__input-wrap:focus-within .wf-field__input,
.lpe-input--icon .wf-field__input-wrap:focus-within .wf-field__status {
  border-color: var(--lp-brand);
}

/* Cancel the per-input focus ring when the input is joined — the wrap owns the ring */
.lpe-input--icon .wf-field__input:focus {
  box-shadow: none;
}

/* Error state on joined fields gets a matching red ring */
.lpe-input--icon.wf-field--error .wf-field__input-wrap {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.lpe-wizard .wf-field--error .wf-field__input { border-color: #DC2626; }
.lpe-wizard .wf-field--error .wf-field__status {
  border-color: #DC2626;
  color: #DC2626;
}

.lpe-wizard .wf-field__error {
  color: #DC2626;
  font-family: var(--lp-font-body);
  font-size: 13px;
}

/* Highlighting strategy: per-field red borders only, with a single top-level
   summary message above the actions. Hide per-field error text in the contact form. */
.lpe-wizard .lpe-form--contact .wf-field__error { display: none; }

/* Trailing icon — joined to the input as an input-group: shared border,
   input has rounded left corners only, icon box has rounded right corners only */
.lpe-input--icon .wf-field__input-wrap {
  display: flex;
  align-items: stretch;
}

.lpe-input--icon .wf-field__input,
.lpe-input--icon .wf-field__input--has-status {
  flex: 1;
  padding-right: 16px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 0;
}

.lpe-input--icon .wf-field__status {
  position: static;
  transform: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--lp-border);
  border-left: 1px solid var(--lp-border);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  background: #fff;
  color: #103630;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  pointer-events: none;
}


/* ── Buttons ── */

.lpe-btn {
  font-family: var(--lp-font-body);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  border-radius: 12px;
  padding: 16px 24px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
  border: 1px solid transparent;
  min-width: 160px;
}

.lpe-btn--primary {
  background: var(--lp-brand);
  border-color: var(--lp-brand);
  color: #fff;
}

.lpe-btn--primary:hover:not(:disabled) {
  background: var(--lp-brand-dark);
  border-color: var(--lp-brand-dark);
}

.lpe-btn--primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(88, 12, 130, 0.25);
}

.lpe-btn--outline {
  background: #fff;
  border-color: #ced4da;
  color: var(--lp-text);
  padding: 16px 30px;
  font-size: 18px;
}

.lpe-btn--outline:hover:not(:disabled) {
  background: #f8f9fa;
}

.lpe-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.lpe-btn:active:not(:disabled) { transform: translateY(1px); }

/* ── Actions row ── */

.lpe-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.lpe-actions--centered { justify-content: center; }

/* ── Processing ── */

.lpe-processing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 48px;
  margin-top: 24px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  min-height: 260px;
}

.lpe-processing-card {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.lpe-processing-card--visible {
  opacity: 1;
  transform: translateY(0);
}

.lpe-processing-card h6 {
  font-family: var(--lp-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--lp-text);
  margin-bottom: 12px;
}

.lpe-processing-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lpe-processing-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--lp-text);
  font-size: 14px;
}

.lpe-processing-list li svg { flex-shrink: 0; }

/* ── Thank you ── */

.lpe-thank-you {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 32px 0;
}

.lpe-thank-you__icon { display: inline-flex; }

.lpe-thank-you h3 {
  font-family: var(--lp-font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--lp-brand);
}

.lpe-thank-you p {
  color: var(--lp-text);
  max-width: 480px;
  font-size: 16px;
  line-height: 1.5;
}

/* ── Disclaimer + Error ── */

.lpe-disclaimer {
  color: var(--lp-muted);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  margin-top: 8px;
}

.lpe-disclaimer a {
  color: var(--lp-brand);
  text-decoration: underline;
}

.lpe-error {
  color: #c0392b;
  text-align: center;
  font-size: 14px;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .lpe-wizard { padding: 2.5rem 1rem 1.5rem; }

  .lpe-heading { font-size: 20px; margin-top: 24px; }

  .lpe-progress-wrap { margin: 24px 4% 56px; }

  .lpe-progress-dot {
    width: 38px;
    height: 38px;
    font-size: 12px;
    line-height: 38px;
  }

  .lpe-progress-dot::before { top: 37px; }

  .lpe-processing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 320px;
  }

  .lpe-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .lpe-btn {
    font-size: 18px;
    min-width: 0;
    padding: 14px 20px;
  }

  .lpe-btn--primary,
  .lpe-btn--outline {
    width: 100%;
  }
}

