/* ==========================================================================
   apply-step1.css — Step 1 Lead Capture Page
   ========================================================================== */

/* ── Page base ── */
.step1-page {
  background: #F4F6F8;
  min-height: 100vh;
}

/* ── Main wrapper ── */
.step1-main {
  padding: 3rem 1.25rem 5rem;
}

.step1-container {
  max-width: 560px;
  margin: 0 auto;
}

/* ── Step Indicator ── */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
  position: relative;
}

.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .9rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-dot--active {
  background: #00A551;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,165,81,.4);
}

.step-dot--inactive {
  background: #DFE3E8;
  color: #9BA3AC;
}

.step-line {
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, #00A551 0%, #DFE3E8 100%);
  margin: 0 6px;
}

.step-labels {
  display: none; /* handled by screen-reader, visual is implicit */
}

/* ── Card ── */
.step1-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,.10);
  overflow: hidden;
  border-top: 5px solid #00A551;
}

.step1-card__header {
  padding: 2.25rem 2.25rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #ECF0F1;
}

.step1-card__icon {
  font-size: 2.6rem;
  margin-bottom: .75rem;
}

.step1-card__title {
  font-size: 1.65rem;
  font-weight: 900;
  color: #111827;
  margin-bottom: .5rem;
  letter-spacing: -.4px;
}

.step1-card__sub {
  font-size: .95rem;
  color: #6B7280;
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto;
}

/* ── Lead form body ── */
#leadForm {
  padding: 2rem 2.25rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.lead-form__group {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.lead-form__group label {
  font-weight: 700;
  font-size: .9rem;
  color: #374151;
}

.req { color: #D32F2F; }

.lead-form__group input {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid #DFE3E8;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: #111827;
  transition: border-color .2s, box-shadow .2s;
  background: #FAFAFA;
  outline: none;
}

.lead-form__group input:focus {
  border-color: #00A551;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,165,81,.1);
}

.lead-form__group input.is-error {
  border-color: #D32F2F;
  box-shadow: 0 0 0 3px rgba(211,47,47,.08);
}

.lead-form__error {
  font-size: .8rem;
  color: #D32F2F;
  min-height: 1rem;
  font-weight: 600;
}

/* ── Submit button ── */
.lead-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  width: 100%;
  padding: 16px;
  background: #00A551;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 8px 24px rgba(0,165,81,.35);
  margin-top: .25rem;
  letter-spacing: .2px;
}

.lead-form__submit:hover {
  background: #008c44;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,165,81,.45);
}

.lead-form__submit:active { transform: scale(.98); }

.lead-form__submit:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.lead-form__spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

.lead-form__privacy {
  text-align: center;
  font-size: .8rem;
  color: #9BA3AC;
  margin-top: -.25rem;
}

/* ── Success state ── */
.step1-success {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,.10);
  padding: 2.5rem 2.25rem;
  text-align: center;
  animation: popIn .4s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.step1-success__icon { font-size: 3.5rem; margin-bottom: 1rem; }

.step1-success__title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #111827;
  margin-bottom: .6rem;
  letter-spacing: -.4px;
}

.step1-success__msg {
  font-size: .97rem;
  color: #6B7280;
  line-height: 1.7;
  margin-bottom: .75rem;
}

.step1-success__next {
  font-size: .97rem;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ── CTA Button ── */
.cta-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #00A551, #008c44);
  color: #fff;
  text-decoration: none;
  border-radius: 16px;
  padding: 1.1rem 1.5rem;
  box-shadow: 0 10px 32px rgba(0,165,81,.38);
  transition: transform .2s, box-shadow .2s;
  margin-bottom: 1.25rem;
  text-align: left;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,165,81,.5);
}

.cta-btn__icon {
  font-size: 2rem;
  flex-shrink: 0;
  background: rgba(255,255,255,.15);
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-btn__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cta-btn__text strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .1px;
}

.cta-btn__text small {
  font-size: .82rem;
  opacity: .82;
}

.cta-btn__arrow {
  font-size: 1.5rem;
  font-weight: 900;
  flex-shrink: 0;
  opacity: .85;
}

/* Pulse animation on CTA */
.cta-btn {
  animation: pulse-cta 2.5s ease-in-out infinite;
}

@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 10px 32px rgba(0,165,81,.38); }
  50%       { box-shadow: 0 14px 44px rgba(0,165,81,.6); }
}

.cta-btn:hover { animation: none; }

.step1-success__reassure {
  font-size: .82rem;
  color: #9BA3AC;
  line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .step1-main { padding: 1.5rem .75rem 4rem; }

  .step1-card__header { padding: 1.75rem 1.25rem 1.25rem; }
  #leadForm { padding: 1.5rem 1.25rem; }

  .step1-card__title { font-size: 1.4rem; }

  .step1-success { padding: 2rem 1.25rem; }

  .cta-btn { padding: .9rem 1.1rem; gap: .75rem; }
  .cta-btn__icon { width: 44px; height: 44px; font-size: 1.6rem; }
  .cta-btn__text strong { font-size: .95rem; }
}