.welcome-anim-section {
  background-color: #06130d;
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -20%, rgba(74, 222, 128, 0.4), transparent 70%),
    radial-gradient(ellipse 80% 50% at 20% 30%, rgba(16, 185, 129, 0.3), transparent 60%),
    radial-gradient(ellipse 70% 60% at 85% 25%, rgba(0, 154, 228, 0.25), transparent 65%),
    radial-gradient(ellipse 60% 40% at 50% 60%, rgba(34, 197, 94, 0.15), transparent 50%),
    linear-gradient(180deg, #071710 0%, #05100b 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
  padding: 30px 15px;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  contain: layout style paint;
}
.welcome-anim {
  display: flex;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1310px;
  max-height: 100%;
  align-items: center;
  padding: 40px 30px;
  opacity: 0;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
}
@media (max-width: 768px) {
  .welcome-anim-section {
    min-height: 520px;
    padding: 30px 15px 20px;
  }
  .welcome-anim {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "headline"
      "titles"
      "anim"
      "cta";
    gap: 0;
    align-items: start;
    justify-items: center;
    height: auto;
    padding: 10px 15px 20px;
  }
  .welcome-anim__info {
    display: contents;
    padding-bottom: 0;
    padding-top: 0;
    width: 100%;
    max-width: 320px;
  }
  .welcome-anim .footer__text {
    grid-area: headline;
    width: 100%;
    margin-bottom: 8px;
  }
  .welcome-anim__info-wrapper {
    grid-area: titles;
    width: 100%;
    min-height: 100px;
    padding-bottom: 0;
  }
  .welcome-anim__anim {
    grid-area: anim;
    width: 100%;
    max-width: 320px;
    max-height: 260px;
    margin-top: 8px;
  }
  .welcome-anim__start {
    grid-area: cta;
    position: relative;
    transform: none !important;
    margin: 20px auto 8px;
    justify-self: center;
    align-self: center;
    z-index: 1;
  }
}
.welcome-anim__info {
  width: 45%;
  margin-right: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 1024px) {
  .welcome-anim__info { width: 34%; }
}
@media (max-width: 768px) {
  .welcome-anim__info {
    display: contents;
    padding-bottom: 0;
    padding-top: 0;
    width: 100%;
    margin: 0 auto;
    max-width: 320px;
  }
}
.welcome-anim__title {
  font-size: 45px;
  font-weight: 500;
  margin: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
}
.welcome-anim__title span {
  display: inline-block;
  will-change: transform, opacity;
}
@media (max-width: 1024px) {
  .welcome-anim__title { font-size: 35px; }
}
@media (max-width: 768px) {
  .welcome-anim__title { font-size: 30px; text-align: center; }
}
.welcome-anim__anim {
  width: 50%;
  height: 100%;
  max-height: 440px;
  display: flex;
}
@media (max-width: 1024px) {
  .welcome-anim__anim { max-height: 350px; }
}
@media (max-width: 768px) {
  .welcome-anim__anim {
    width: 100%;
    max-width: 320px;
    max-height: 260px;
  }
}
.welcome-anim__anim svg {
  opacity: 0;
  overflow: visible;
  width: calc(100% - 20px);
  height: auto;
}
.welcome-anim__start {
  padding: 0;
  margin: 28px 0 0 0;
  font-size: 28px;
  color: #009ae4;
  display: inline-flex;
  align-items: center;
  position: relative;
  opacity: 0;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 2;
  align-self: flex-start;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.welcome-anim__start:hover { opacity: 0.75 !important; }
@media (max-width: 768px) {
  .welcome-anim__start {
    position: relative;
    bottom: auto;
    left: auto;
    align-self: center;
  }
}
.welcome-anim__start-arrow {
  height: 25px;
  width: auto;
  margin-left: 10px;
  transition: transform 0.3s;
}
.welcome-anim__start:hover .welcome-anim__start-arrow {
  transform: translateX(10px) scale(1.1);
}
.welcome-anim__progress {
  display: flex;
  flex-direction: column;
  margin: auto;
}
.welcome-anim__progress-item {
  display: block;
  height: 12px;
  width: 7px;
  position: relative;
  padding: 0;
  margin: 0 0 10px 0;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.25);
  overflow: hidden;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  transform-origin: center;
  cursor: pointer;
  transition: height 0.3s, transform 0.3s, background-color 0.3s;
  border: none;
}
.welcome-anim__progress-item--active {
  height: 40px;
  background-color: rgba(255, 255, 255, 0.35);
}
.welcome-anim__progress-item:hover { transform: scale(1.1); }
.welcome-anim__progress-line {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #4ade80;
  transition: height 0.01s;
}
.welcome-anim__info-wrapper {
  min-height: 180px;
  position: relative;
  padding-bottom: 0;
}
@media (max-width: 1024px) {
  .welcome-anim__info-wrapper {
    min-height: 145px;
  }
}
@media (max-width: 768px) {
  .welcome-anim__info-wrapper {
    min-height: 120px;
    padding-bottom: 0;
    display: block;
    justify-content: center;
  }
}
.welcome-anim .footer__text {
  font-size: 4em;
  margin: 0 0 15px;
}
@media (max-width: 1330px) {
  .welcome-anim .footer__text { font-size: 2.5em; }
}
@media (max-width: 600px) {
  .welcome-anim .footer__text { font-size: 2em; text-align: center; }
}

/* Ambient Aurora Glow Ribbons */
.welcome-anim-section .aurora-ribbon {
  position: absolute;
  inset: -40%;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 35% at 50% 40%, rgba(74, 222, 128, 0.25) 0%, rgba(16, 185, 129, 0.18) 35%, rgba(5, 150, 105, 0.08) 55%, transparent 75%);
  filter: blur(50px);
  opacity: 0.9;
  transform-origin: center;
  animation: auroraFloat 16s ease-in-out infinite alternate;
}

.welcome-anim-section .aurora-ribbon-secondary {
  position: absolute;
  inset: -30%;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 25% at 40% 30%, rgba(52, 211, 153, 0.28) 0%, rgba(0, 168, 232, 0.15) 40%, transparent 70%);
  filter: blur(40px);
  opacity: 0.8;
  animation: auroraFloat 20s ease-in-out infinite alternate-reverse;
}

@keyframes auroraFloat {
  0% {
    transform: rotate(0deg) scale(1) translate(0, 0);
  }
  50% {
    transform: rotate(3deg) scale(1.08) translate(-2%, 3%);
  }
  100% {
    transform: rotate(-2deg) scale(0.95) translate(3%, -2%);
  }
}

/* ==========================================================================
   Lawyer Lead Capture Form (In-place animated app builder modal/card)
   ========================================================================== */
.lawyer-form-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 760px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 0 auto;
  padding: 10px 15px;
  box-sizing: border-box;
}

.lawyer-form-wrapper.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lawyer-form-wrapper.hidden {
  display: none;
}

.lawyer-form-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 30px 34px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.5), 0 0 35px rgba(74, 222, 128, 0.12);
  box-sizing: border-box;
}

.lawyer-form-card__header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.lawyer-form-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #86efac;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lawyer-form-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lawyer-form-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.lawyer-form-title {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin: 10px 0 6px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.lawyer-form-subtitle {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 20px;
  line-height: 1.5;
}

.lawyer-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.lawyer-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}

.lawyer-form-group--full {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.lawyer-form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.01em;
}

.lawyer-form-input,
.lawyer-form-select {
  background-color: rgba(6, 19, 13, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 12px !important;
  padding: 11px 14px !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  outline: none !important;
  box-sizing: border-box !important;
  width: 100% !important;
  caret-color: #4ade80 !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.lawyer-form-input::placeholder {
  color: rgba(255, 255, 255, 0.42) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.42) !important;
}

.lawyer-form-input:focus,
.lawyer-form-select:focus {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: #4ade80 !important;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25) !important;
  background-color: rgba(6, 19, 13, 0.95) !important;
}

/* Ensure text remains visible and sharp when input loses focus (blurred) */
.lawyer-form-input:not(:focus),
.lawyer-form-select:not(:focus) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Browser Autofill Support across Chrome, Edge, Safari, Firefox */
.lawyer-form-input:-webkit-autofill,
.lawyer-form-input:-webkit-autofill:hover,
.lawyer-form-input:-webkit-autofill:focus,
.lawyer-form-input:-webkit-autofill:active {
  -webkit-text-fill-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0px 1000px #091c14 inset !important;
  box-shadow: 0 0 0px 1000px #091c14 inset !important;
  caret-color: #ffffff !important;
  transition: background-color 5000s ease-in-out 0s !important;
  color: #ffffff !important;
}

.lawyer-form-input:-moz-autofill,
.lawyer-form-input:-moz-autofill-preview {
  filter: none !important;
  color: #ffffff !important;
  background-color: #091c14 !important;
}

.lawyer-form-input.is-invalid,
.lawyer-form-select.is-invalid {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.25) !important;
}

.lawyer-form-select option {
  background-color: #06130d !important;
  color: #ffffff !important;
}

.lawyer-form-error {
  font-size: 11.5px;
  color: #fca5a5;
  margin-top: 2px;
}

.lawyer-form-error.hidden {
  display: none;
}

/* SMS Consent Checkbox (TCPA & 10DLC Compliant) */
.lawyer-form-consent {
  margin-top: 14px;
  margin-bottom: 4px;
  padding: 12px 14px;
  background: rgba(6, 19, 13, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.lawyer-form-consent:hover {
  background: rgba(6, 19, 13, 0.85);
  border-color: rgba(0, 154, 228, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.lawyer-consent-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  cursor: pointer !important;
  user-select: none !important;
  text-align: left !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lawyer-consent-checkbox {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  margin: 2px 0 0 0 !important;
  padding: 0 !important;
  border-radius: 5px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  background-color: rgba(6, 19, 13, 0.85) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 11px 11px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.lawyer-consent-label:hover .lawyer-consent-checkbox {
  border-color: #009ae4 !important;
  box-shadow: 0 0 0 3px rgba(0, 154, 228, 0.2) !important;
}

.lawyer-consent-checkbox:checked {
  background-color: #009ae4 !important;
  border-color: #009ae4 !important;
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e") !important;
  box-shadow: 0 2px 8px rgba(0, 154, 228, 0.4) !important;
}

.lawyer-consent-checkbox:focus-visible {
  outline: none !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.35) !important;
}

.lawyer-consent-text {
  font-size: 11.5px !important;
  line-height: 1.5 !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-weight: 400 !important;
  flex: 1 !important;
}

.lawyer-consent-link {
  color: #38bdf8 !important;
  text-decoration: underline !important;
  text-underline-offset: 2.5px !important;
  font-weight: 500 !important;
  transition: color 0.15s ease !important;
}

.lawyer-consent-link:hover {
  color: #7dd3fc !important;
}

.lawyer-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.lawyer-form-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.lawyer-form-back-link:hover {
  color: #ffffff;
  transform: translateX(-2px);
}

.lawyer-form-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #009ae4 0%, #00b4d8 100%);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 154, 228, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.lawyer-form-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 154, 228, 0.55);
}

.lawyer-form-submit-btn:active {
  transform: translateY(0);
}

.lawyer-form-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Success Confirmation Card */
.lawyer-form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 10px 10px;
}

.lawyer-form-success.hidden {
  display: none;
}

.lawyer-form-success__icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.18);
  border: 1px solid rgba(74, 222, 128, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.lawyer-form-success__icon {
  font-size: 38px;
  color: #4ade80;
}

.lawyer-form-success__title {
  font-size: 23px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}

.lawyer-form-success__message {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  max-width: 500px;
  margin: 0 0 22px;
}

.lawyer-form-success__message strong {
  color: #ffffff;
  font-weight: 600;
}

.lawyer-form-success__actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.lawyer-form-success__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lawyer-form-success__btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .lawyer-form-card {
    padding: 20px 16px;
    border-radius: 20px;
  }
  .lawyer-form-title {
    font-size: 21px;
  }
  .lawyer-form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .lawyer-form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 12px;
  }
  .lawyer-form-submit-btn {
    width: 100%;
    justify-content: center;
  }
  .lawyer-form-back-link {
    justify-content: center;
  }
}


