:root {
  --etslf-primary-color: #11845b;
  --etslf-primary-dark: #0b5f45;
  --etslf-primary-soft: #e8f7f0;
  --etslf-accent-color: #d7a94b;
  --etslf-bg-color: #f4fbf7;
  --etslf-card-color: #ffffff;
  --etslf-text-color: #243631;
  --etslf-muted-color: #687a74;
  --etslf-border-color: #cfe4db;
  --etslf-shadow: 0 18px 48px rgba( 17, 132, 91, 0.14 );
  --etslf-radius: 0;
}

.etslf-form-wrap {
  box-sizing: border-box;
  width: min( 100%, 720px );
  margin: 0 auto;
  color: var( --etslf-text-color );
  font-family: inherit;
}

.etslf-form-wrap *,
.etslf-form-wrap *::before,
.etslf-form-wrap *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.etslf-success {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba( 17, 132, 91, 0.22 );
  border-radius: 0;
  background: #edf9f3;
  color: var( --etslf-primary-dark );
  font-weight: 700;
  text-align: center;
}

.etslf-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 18px;
  padding: clamp( 28px, 5vw, 44px ) clamp( 20px, 5vw, 42px ) clamp( 30px, 5vw, 46px );
  border-radius: 0;
  background:
    radial-gradient( circle at 50% 36%, rgba( 17, 132, 91, 0.18 ) 0 12%, transparent 34% ),
    radial-gradient( circle at 50% 68%, rgba( 125, 181, 64, 0.14 ) 0 10%, transparent 32% ),
    linear-gradient( 135deg, #f7fbf8 0%, #edf7f1 46%, #f9fcfa 100% );
  border: 1px solid rgba( 17, 132, 91, 0.16 );
  box-shadow: var( --etslf-shadow );
  text-align: center;
}

.etslf-hero-brand {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: clamp( 18px, 3.2vw, 28px ) 0;
}

.etslf-hero-logo {
  display: block;
  width: min( 54vw, 260px );
  height: auto;
}

.etslf-hero::before,
.etslf-hero::after {
  content: '';
  position: absolute;
  border-radius: 0;
  pointer-events: none;
}

.etslf-hero::before {
  width: 180px;
  height: 180px;
  right: -64px;
  top: -58px;
  background: rgba( 17, 132, 91, 0.13 );
}

.etslf-hero::after {
  width: 120px;
  height: 120px;
  left: -44px;
  bottom: -48px;
  background: rgba( 11, 95, 69, 0.1 );
}

.etslf-hero-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp( 14px, 2.4vw, 20px );
  padding: 8px 16px;
  border-radius: 0;
  background: rgba( 255, 255, 255, 0.86 );
  color: var( --etslf-primary-dark );
  font-size: clamp( 13px, 1.7vw, 15px );
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 20px rgba( 17, 132, 91, 0.12 );
}

.etslf-hero-badge::before {
  content: '✓';
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 0;
  background: var( --etslf-primary-color );
  color: #fff;
  font-size: 13px;
}

.etslf-hero-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 clamp( 10px, 2vw, 14px );
  color: var( --etslf-text-color );
  font-size: clamp( 18px, 3vw, 26px );
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.etslf-hero-title {
  position: relative;
  z-index: 1;
  max-width: 11em;
  margin: 0 auto;
  color: var( --etslf-primary-dark );
  font-size: clamp( 34px, 7vw, 58px );
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.etslf-hero-title strong {
  display: inline-block;
  padding: 0.03em 0.22em 0.08em;
  border-radius: 0;
  background: var( --etslf-primary-color );
  color: #fff;
  line-height: 1.08;
}

.etslf-hero-subcopy {
  position: relative;
  z-index: 1;
  max-width: 31em;
  margin: clamp( 14px, 2.8vw, 22px ) auto 0;
  color: var( --etslf-muted-color );
  font-size: clamp( 15px, 2vw, 18px );
  font-weight: 700;
  line-height: 1.8;
}


.etslf-hero-points {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.etslf-hero-point {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 18px 12px 46px;
  border: 1px solid rgba( 17, 132, 91, 0.14 );
  border-radius: 999px;
  background: rgba( 255, 255, 255, 0.82 );
  color: var( --etslf-primary-dark );
  font-size: clamp( 15px, 2.6vw, 20px );
  font-weight: 800;
  line-height: 1.5;
  box-shadow: 0 10px 24px rgba( 17, 132, 91, 0.1 );
}

.etslf-hero-point::before {
  content: '✦';
  position: absolute;
  left: 20px;
  color: var( --etslf-accent-color );
  font-size: 18px;
  line-height: 1;
  text-shadow: 0 0 14px rgba( 215, 169, 75, 0.42 );
}

.etslf-hero-point:nth-child( 2n )::before {
  content: '✧';
  color: var( --etslf-primary-color );
}

.etslf-form {
  overflow: hidden;
  padding: clamp( 22px, 4vw, 36px );
  border: 1px solid var( --etslf-border-color );
  border-radius: var( --etslf-radius );
  background: var( --etslf-card-color );
  box-shadow: var( --etslf-shadow );
}

.etslf-progress {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect( 0 0 0 0 );
  white-space: nowrap;
  border: 0;
}

.etslf-steps {
  display: grid;
  overflow: hidden;
}

.etslf-step {
  grid-area: 1 / 1;
  display: none;
  opacity: 0;
  transform: translateX( 0 );
  transition: opacity 0.24s ease, transform 0.24s ease;
  will-change: opacity, transform;
}

.etslf-step:focus {
  outline: none;
}

.etslf-step.is-active {
  display: block;
  opacity: 1;
  transform: translateX( 0 );
}

.etslf-step.is-entering-right,
.etslf-step.is-entering-left,
.etslf-step.is-exiting-left,
.etslf-step.is-exiting-right {
  display: block;
}

.etslf-step.is-entering-right {
  opacity: 0;
  transform: translateX( 28px );
}

.etslf-step.is-entering-left {
  opacity: 0;
  transform: translateX( -28px );
}

.etslf-step.is-exiting-left {
  opacity: 0;
  transform: translateX( -28px );
}

.etslf-step.is-exiting-right {
  opacity: 0;
  transform: translateX( 28px );
}

.etslf-label {
  margin: 0 0 24px;
  color: var( --etslf-text-color );
  font-size: clamp( 22px, 3.4vw, 30px );
  font-weight: 850;
  line-height: 1.45;
  text-align: center;
}

.etslf-label::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 0;
  background: linear-gradient( 90deg, var( --etslf-primary-color ), var( --etslf-accent-color ) );
}

.etslf-fieldset {
  display: grid;
  grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
}

.etslf-option[hidden] {
  display: none;
}

.etslf-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  margin: 0;
  padding: 18px 20px;
  border: 2px solid var( --etslf-border-color );
  border-radius: 0;
  background: #fff;
  color: var( --etslf-text-color );
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  user-select: none;
  -webkit-touch-callout: none;
}

.etslf-option:active {
  -webkit-tap-highlight-color: transparent;
}

.etslf-option:hover,
.etslf-option:focus-within {
  transform: translateY( -2px );
  border-color: var( --etslf-primary-color );
  box-shadow: 0 14px 26px rgba( 17, 132, 91, 0.14 );
}

.etslf-option:has(input:checked) {
  border-color: var( --etslf-primary-color );
  background: linear-gradient( 135deg, var( --etslf-primary-color ), var( --etslf-primary-dark ) );
  color: #fff;
  box-shadow: 0 14px 28px rgba( 17, 132, 91, 0.22 );
}

.etslf-option input[type='radio'],
.etslf-option input[type='checkbox'] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.etslf-option-text {
  position: relative;
  z-index: 1;
}


.etslf-option--acceptance {
  justify-content: flex-start;
  min-height: 64px;
  gap: 12px;
  text-align: left;
}

.etslf-option--acceptance input[type='checkbox'] {
  position: static;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  opacity: 1;
  accent-color: var( --etslf-primary-color );
}

.etslf-option--acceptance a {
  position: relative;
  z-index: 2;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}


.etslf-field-group {
  display: grid;
  gap: 18px;
}

.etslf-field-group__item {
  display: grid;
  gap: 8px;
}

.etslf-field-label {
  color: var( --etslf-text-color );
  font-size: 16px;
  font-weight: 800;
}

.etslf-field-label + .etslf-option--acceptance {
  margin-top: 2px;
}

.etslf-input {
  width: 100%;
  min-height: 64px;
  padding: 14px 18px;
  border: 2px solid var( --etslf-border-color );
  border-radius: 0;
  background: #fff;
  color: var( --etslf-text-color );
  font-size: 18px;
  font-weight: 700;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.etslf-input:focus {
  outline: none;
  border-color: var( --etslf-primary-color );
  box-shadow: 0 0 0 4px rgba( 17, 132, 91, 0.14 );
}

.etslf-error {
  margin: 16px 0 0;
  color: #c62828;
  font-weight: 700;
  text-align: center;
}

.etslf-nav {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.etslf-submit,
.etslf-next {
  width: 100%;
  min-height: 64px;
  border: 0;
  border-radius: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.etslf-next,
.etslf-submit {
  background: linear-gradient( 135deg, var( --etslf-primary-color ), var( --etslf-primary-dark ) );
  box-shadow: 0 14px 26px rgba( 17, 132, 91, 0.26 );
}

.etslf-prev {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  color: var( --etslf-primary-dark );
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.etslf-submit:hover,
.etslf-next:hover,
.etslf-submit:focus-visible,
.etslf-next:focus-visible {
  transform: translateY( -2px );
  box-shadow: 0 18px 30px rgba( 17, 132, 91, 0.28 );
}

.etslf-prev:hover,
.etslf-prev:focus-visible {
  color: var( --etslf-primary-color );
  text-decoration-thickness: 2px;
}

.etslf-submit:disabled,
.etslf-next:disabled,
.etslf-prev:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
}

.etslf-honeypot {
  position: absolute;
  left: -9999px;
}

.etslf-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect( 0 0 0 0 );
  white-space: nowrap;
  border: 0;
}

@media ( prefers-reduced-motion: reduce ) {
  .etslf-step {
    transition: none;
  }
}

/* Per-form CSS customization examples */
.etslf-form--care-worker {
  --etslf-primary-color: #11845b;
  --etslf-primary-dark: #0b5f45;
  --etslf-primary-soft: #e8f7f0;
  --etslf-accent-color: #d7a94b;
  --etslf-bg-color: #f4fbf7;
}

.etslf-style--dark {
  --etslf-primary-color: #111827;
  --etslf-primary-dark: #030712;
  --etslf-bg-color: #1f2937;
  --etslf-text-color: #f9fafb;
  --etslf-card-color: #111827;
  --etslf-border-color: #374151;
}

@media ( max-width: 640px ) {
  .etslf-form-wrap {
    width: 100%;
  }

  .etslf-hero {
    padding: 24px 18px 28px;
    border-radius: 0;
  }

  .etslf-hero-logo {
    width: min( 58vw, 180px );
  }

  .etslf-hero-title {
    max-width: 10em;
  }

  .etslf-fieldset {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .etslf-option {
    min-height: 64px;
    font-size: 16px;
  }

}

.etslf-thanks-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 20px;
  text-align: center;
}

.etslf-thanks-page__article {
  padding: 48px 28px;
  border: 1px solid var( --etslf-border-color );
  background: #fff;
  box-shadow: 0 18px 40px rgba( 13, 37, 28, 0.08 );
}

.etslf-thanks-page__title {
  margin: 0 0 24px;
  color: var( --etslf-text-color );
  font-size: clamp( 28px, 4vw, 42px );
  font-weight: 900;
  line-height: 1.35;
}

.etslf-thanks-page__content {
  color: var( --etslf-muted-color );
  font-size: 18px;
  font-weight: 700;
  line-height: 1.9;
}
