/* Cro Lead Form Module
 * Block 5
 * ------------------------------------------------------------------------------------------------------------------ */



/* Hero Section - Mobile First */
.cro-lead-form.hero {
background: var(--color-secondary-normal-bg);
color: white;
padding: 100px 1.5rem 60px;
position: relative;
overflow: hidden;
}

/* WAVE3-F09 (2026-05-08): was bare `.hero::before` — would apply a 70%-wide
   absolute-positioned ::before to ANY .hero element site-wide (homepage uses
   .hero heavily — collision risk). Scope under `.cro-lead-form`. */
.cro-lead-form .hero::before {
content: '';
position: absolute;
top: -50%;
right: 0;
width: 70%;
height: 220%;
/* background: radial-gradient(circle, color-mix(in srgb, var(--color-secondary-normal-bg) 85%, transparent) 0%, transparent 65%); */
}

.hero-container {
max-width: 1400px;
margin: 0 auto;
display: grid;
grid-template-columns: 1fr;
gap: 3rem;
align-items: start;
position: relative;
z-index: 1;
}

.hero-badges {
display: flex;
gap: 0.75rem;
margin-bottom: 1.25rem;
flex-wrap: wrap;
animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.hero-badge {
display: inline-flex;
align-items: center;
gap: 0.5rem;
background: rgba(255, 255, 255, 0.12);
backdrop-filter: blur(12px);
border: 1.5px solid rgba(255, 255, 255, 0.25);
padding: 0.5rem 1rem;
border-radius: 50px;
font-weight: 600;
font-size: 0.75rem;
transition: all 0.3s;
box-shadow: var(--shadow-sm);
}

.hero-badge.primary {
background: var(--warning-light);
color: var(--color-secondary-normal-bg);
border: 2px solid var(--warning);
box-shadow: var(--ds-shadow-warn, 0 4px 12px rgba(217,118,6,0.3));
}

/* WAVE3-F09: scope `.hero h1` under `.cro-lead-form` (was bare → would
   override site-wide hero h1s). */
.cro-lead-form .hero h1 {
font-size: 2.25rem;
font-weight: 900;
line-height: 1.15;
margin-bottom: 1.25rem;
letter-spacing: -0.03em;
animation: fadeInUp 1s ease-out 0.2s both;
}

.cro-lead-form .hero h1 .highlight {
position: relative;
display: inline-block;
opacity: .8;
}

.hero-subtitle {
font-size: 1.1rem;
color: rgba(255, 255, 255, 0.9);
margin-bottom: 1.75rem;
line-height: 1.6;
font-weight: 500;
animation: fadeInUp 1s ease-out 0.4s both;
border-left: 4px solid var(--color-primary-normal-bg);
padding-left: 1rem;
}

.hero-benefits {
list-style: none;
margin-bottom: 2rem;
display: grid;
gap: 0.875rem;
animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-benefits li {
display: flex;
align-items: center;
gap: 0.875rem;
font-size: 0.95rem;
padding: 0.875rem 1rem;
background: rgba(255, 255, 255, 0.08);
border-radius: var(--ds-radius);
transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
border: 1.5px solid rgba(255, 255, 255, 0.15);
position: relative;
overflow: hidden;
}

.hero-benefits li::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.12) 100%);
opacity: 0;
transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 0;
}

.hero-benefits li.highlight-active {
background: rgba(255, 255, 255, 0.16);
border-color: rgba(16, 185, 129, 0.5);
box-shadow: var(--ds-shadow-md);
transform: translateX(4px);
}

.hero-benefits li.highlight-active::before {
opacity: 1;
}

.hero-benefits li.highlight-active .icon {
transform: scale(1.15);
filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.7));
}

.hero-benefits li > * {
position: relative;
z-index: 1;
}

.hero-benefits li .icon {
color: var(--success);
font-size: var(--ds-fs-h3);
flex-shrink: 0;
transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes benefitPulse {
0%, 100% {
transform: translateX(4px);
}
50% {
transform: translateX(6px);
}
}

.hero-cta-group {
display: flex;
gap: var(--ds-space-4);
margin-bottom: 2rem;
flex-wrap: wrap;
animation: fadeInUp 1s ease-out 0.8s both;
}

/* WAVE3-F09 (2026-05-08): SCOPED `.btn-primary` family under `.cro-lead-form`
   (was bare → collides with site-wide `.btn-primary`). Background pinned to
   `--ds-cta` (brand orange) — was `--color-primary-normal-bg` which resolved
   to Tailwind blue `#2b65e8` via theme.min.css. The legacy alias is now
   token-mapped to --ds-cta in design-system.css (F10), but the explicit token
   here is doctrine-correct. */
.cro-lead-form .btn-primary {
/* background: linear-gradient(135deg, var(--ds-cta) 0%, var(--ds-cta-dk) 100%); */
background: var(--ds-cta);
color: white;
padding: 1rem 2rem;
border-radius: var(--ds-radius);
text-decoration: none;
font-weight: 700;
font-size: var(--ds-fs-body-sm);
transition: all 0.3s;
box-shadow: var(--shadow-primary);
display: inline-flex;
flex-direction: column;
align-items: center;
gap: 0.25rem;
border: none;
cursor: pointer;
min-height: 48px;
justify-content: center;
}

.cro-lead-form .btn-primary .btn-main-text {
font-size: var(--ds-fs-body-sm);
font-weight: 700;
}

.cro-lead-form .btn-primary .btn-sub-text {
font-size: 0.75rem;
opacity: 0.9;
font-weight: 500;
}

.cro-lead-form .btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 15px 25px -5px color-mix(in srgb, var(--ds-cta) 60%, transparent);
}

.cro-lead-form .btn-secondary {
background: transparent;
color: white;
padding: 1rem 2rem;
border: 2.5px solid white;
border-radius: var(--ds-radius);
text-decoration: none;
font-weight: 700;
font-size: var(--ds-fs-body-sm);
transition: all 0.3s;
display: inline-flex;
flex-direction: column;
align-items: center;
gap: 0.25rem;
min-height: 48px;
justify-content: center;
}

.cro-lead-form .btn-secondary:hover {
background: rgba(255, 255, 255, 0.1);
transform: translateY(-2px);
}

.hero-phone-cta {
display: flex;
align-items: center;
gap: var(--ds-space-4);
padding: 1rem 1.5rem;
background: rgba(255, 255, 255, 0.1);
border-radius: 16px;
border: 2px solid rgba(16, 185, 129, 0.3);
transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
animation: fadeInUp 1s ease-out 1s both;
max-width: 70%;
cursor: pointer;
position: relative;
overflow: hidden;
backdrop-filter: blur(8px);
}

@media screen and (max-width: 991px) {
.hero-phone-cta {
max-width: 100%;
}
}

.hero-phone-cta::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.15), transparent);
transition: left 0.7s ease;
}

.hero-phone-cta:hover::before,
.hero-phone-cta:active::before {
left: 100%;
}

.hero-phone-cta:hover,
.hero-phone-cta:active {
background: rgba(255, 255, 255, 0.16);
border-color: rgba(16, 185, 129, 0.6);
transform: translateX(4px) scale(1.02);
box-shadow: var(--ds-shadow-md);
}

.hero-phone-cta .phone-icon {
font-size: 2.5rem;
transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3));
}

.hero-phone-cta:hover .phone-icon,
.hero-phone-cta:active .phone-icon {
transform: scale(1.15) rotate(12deg);
filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.6));
}

.hero-phone-cta .phone-text {
font-size: 0.75rem;
color: rgba(255, 255, 255, 0.85);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}

.hero-phone-cta .phone-number {
font-size: var(--ds-fs-h3);
font-weight: 900;
color: var(--success);
text-decoration: none;
transition: all 0.3s ease;
letter-spacing: 1px;
}

.hero-phone-cta:hover .phone-number,
.hero-phone-cta:active .phone-number {
color: #34d399;
transform: translateX(2px);
}

.hero-phone-cta .phone-hint {
font-size: 0.7rem;
color: rgba(255, 255, 255, 0.7);
font-style: italic;
transition: color 0.3s ease;
}

.hero-phone-cta:hover .phone-hint,
.hero-phone-cta:active .phone-hint {
color: rgba(16, 185, 129, 0.9);
}

/* Hero Form - Mobile Optimized */
.hero-form-card {
background: white;
padding: 2rem 1.5rem;
border-radius: var(--ds-radius-lg);
box-shadow: var(--ds-shadow-lg);
position: relative;
border: 2px solid var(--gray-200);
animation: fadeInRight 1s ease-out 0.4s both;
order: -1;
}

@keyframes fadeInRight {
from {
opacity: 0;
transform: translateX(30px);
}
to {
opacity: 1;
transform: translateX(0);
}
}

.form-urgency-banner {
position: absolute;
top: -14px;
left: 50%;
transform: translateX(-50%);
background: linear-gradient(135deg, var(--warning) 0%, #D97706 100%);
color: var(--color-secondary-normal-bg);
padding: 0.5rem 1.25rem;
border-radius: 50px;
font-weight: 700;
font-size: 0.75rem;
box-shadow: var(--ds-shadow-warn, 0 4px 12px rgba(217,118,6,0.3));
border: 2px solid white;
white-space: nowrap;
}

.form-header {
text-align: center;
margin-bottom: 1.5rem;
}

.form-header h3 {
color: var(--color-secondary-normal-bg);
font-size: var(--ds-fs-h3);
margin-bottom: 0.5rem;
font-weight: 800;
line-height: 1.3;
}

.form-header .form-subheader {
color: var(--gray-600);
font-size: 0.85rem;
display: flex;
justify-content: center;
gap: 0.75rem;
flex-wrap: wrap;
margin-top: 0.75rem;
}

.form-subheader span {
display: flex;
align-items: center;
gap: 0.25rem;
padding: 0.25rem 0.625rem;
background: var(--gray-100);
border-radius: var(--ds-radius-sm);
font-weight: 600;
font-size: 0.75rem;
}

.form-group {
margin-bottom: 1.25rem;
position: relative;
}

.form-group label {
display: block;
color: var(--gray-900);
font-weight: 600;
margin-bottom: 0.5rem;
font-size: 0.85rem;
}

.form-group label .required {
color: var(--color-primary-normal-bg);
}

.form-input-wrapper {
position: relative;
}

.form-input-icon {
position: absolute;
left: 1rem;
top: 50%;
transform: translateY(-50%);
color: var(--gray-600);
font-size: var(--ds-fs-body-sm);
}

.form-group input,
.form-group select {
width: 100%;
padding: 0.875rem 0.875rem 0.875rem 2.75rem;
border: 2px solid var(--gray-300);
border-radius: 10px;
font-size: 0.95rem;
transition: all 0.3s;
font-family: inherit;
background: white;
min-height: 48px;
}

.form-group input:focus,
.form-group select:focus {
outline: none;
border-color: var(--color-primary-normal-bg);
box-shadow: var(--ds-focus-ring, 0 0 0 3px rgba(196, 30, 58, 0.1));
}

.form-trust-indicators {
display: flex;
gap: 0.5rem;
margin-top: 0.5rem;
font-size: 0.7rem;
color: var(--gray-600);
flex-wrap: wrap;
}

.form-trust-indicators span {
display: flex;
align-items: center;
gap: 0.25rem;
padding: 0.25rem 0.5rem;
background: var(--success-light);
border-radius: var(--ds-radius-xs);
}

.submit-btn {
width: 100%;
/* background: linear-gradient(135deg, var(--color-primary-normal-bg) 0%, var(--color-primary-hover-bg) 100%); */
background: var(--color-primary-normal-bg);
color: white;
padding: 1.125rem;
border: none;
border-radius: var(--ds-radius);
font-size: var(--ds-fs-body-sm);
font-weight: 700;
cursor: pointer;
transition: all 0.3s;
box-shadow: var(--shadow-primary);
margin-top: 1rem;
min-height: 52px;
}

.submit-btn:hover {
transform: translateY(-2px);
box-shadow: 0 15px 25px -5px color-mix(in srgb, var(--color-primary-normal-bg) 60%, transparent);
}

.submit-btn .btn-text-main {
font-size: var(--ds-fs-body-sm);
font-weight: 700;
}

.submit-btn .btn-text-sub {
font-size: 0.75rem;
opacity: 0.9;
font-weight: 500;
margin-top: 0.25rem;
}

.form-footer {
margin-top: 1.5rem;
padding-top: 1.5rem;
border-top: 2px solid var(--gray-200);
}

.form-footer-trust {
display: flex;
justify-content: center;
gap: var(--ds-space-4);
flex-wrap: wrap;
font-size: 0.75rem;
color: var(--gray-600);
}

.form-footer-trust span {
display: flex;
align-items: center;
gap: 0.25rem;
font-weight: 600;
padding: 0.375rem 0.625rem;
background: var(--gray-100);
border-radius: var(--ds-radius-sm);
}

/* Desktop Responsive
   WAVE3-F09 (2026-05-08): scoped `.hero`, `.btn-primary`, `.btn-secondary`
   under `.cro-lead-form` to prevent global leakage. */
@media (min-width: 768px) {
.cro-lead-form .hero {
padding: 120px 2rem 80px;
}

.cro-lead-form .hero-container {
grid-template-columns: 1fr 1fr;
gap: 4rem;
align-items: center;
}

.cro-lead-form .hero-form-card {
order: 0;
}

.cro-lead-form .hero h1 {
font-size: 3rem;
}

.cro-lead-form .hero-subtitle {
font-size: 1.2rem;
}

.cro-lead-form .hero-cta-group {
flex-wrap: nowrap;
}
}

@media (max-width: 767px) {
.cro-lead-form .hero {
padding: 80px 1.25rem 50px;
}

.cro-lead-form .hero-cta-group {
flex-wrap: nowrap;
gap: 0.75rem;
}

.cro-lead-form .btn-primary,
.cro-lead-form .btn-secondary {
padding: 0.875rem 1.25rem;
font-size: var(--ds-fs-eyebrow);
min-width: 0;
flex: 1;
}

.cro-lead-form .btn-primary .btn-main-text,
.cro-lead-form .btn-secondary .btn-main-text {
font-size: var(--ds-fs-eyebrow);
}

.cro-lead-form .btn-primary .btn-sub-text,
.cro-lead-form .btn-secondary .btn-sub-text {
font-size: var(--ds-fs-eyebrow, 0.875rem); /* F3 2026-05-08: 0.65rem → 14px floor */
}
}

/* F3 2026-05-08: senior-UX text floor — A4 audit found 8 instances of
   <14px text in this module (form helpers, fineprint, hero-badge,
   hero-phone-cta phone-text/phone-hint, form-trust-indicators,
   form-footer-trust, form-subheader span, btn-sub-text). Bump every
   rule rendering 11–13.6px to 14px. */
.cro-lead-form .hero-badge,
.cro-lead-form .hero-phone-cta .phone-text,
.cro-lead-form .hero-phone-cta .phone-hint,
.cro-lead-form .risk-reversal-isolated,
.cro-lead-form .form-urgency-banner,
.cro-lead-form .form-subheader span,
.cro-lead-form .form-trust-indicators,
.cro-lead-form .form-footer-trust,
.cro-lead-form .submit-btn .btn-text-sub,
.cro-lead-form .btn-primary .btn-sub-text,
.cro-lead-form .btn-secondary .btn-sub-text,
.cro-lead-form .cta-final-trust,
.cro-lead-form .cta-guarantee {
  font-size: max(var(--ds-fs-eyebrow, 0.875rem), 14px);
  line-height: 1.4;
}

/* F3 2026-05-08: form-group label was 0.85rem (13.6px) — bump to senior
   AARP floor (16px). */
.cro-lead-form .form-group label,
.cro-lead-form .form-header .form-subheader {
  font-size: var(--ds-fs-body-sm, 1rem);
}

/* ------------------------------------------------------------------------------------------------------------------ *
