/* ================================================
   LEAD CAPTURE FORM (multi-step)  ThisUncle Technologies
   Mobile-first. Matches contact-minimal.css tokens:
   dark #0a0a0a, body #555, muted #888/#777, border #e0e0e0/#eeeeee.
   ================================================ */

/* == Progress indicator =========================== */
.lead-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.25rem;
}
.lead-progress-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #999;
}
.lead-progress-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.lead-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: background 0.25s ease, transform 0.25s ease;
}
.lead-dot.is-active {
    background: #0a0a0a;
    transform: scale(1.35);
}
.lead-dot.is-done {
    background: #0a0a0a;
}

/* == Form / steps =================================== */
.lead-form {
    position: relative;
}
.lead-step {
    display: none;
}
.lead-step.is-active {
    display: block;
}
.lead-step.is-active.dir-fwd {
    animation: leadStepInRight 0.38s ease both;
}
.lead-step.is-active.dir-back {
    animation: leadStepInLeft 0.38s ease both;
}
@keyframes leadStepInRight {
    from { opacity: 0; transform: translateX(28px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes leadStepInLeft {
    from { opacity: 0; transform: translateX(-28px); }
    to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
    .lead-step.is-active.dir-fwd,
    .lead-step.is-active.dir-back {
        animation: none;
    }
}

.lead-question {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    font-weight: 700;
    color: #0a0a0a;
    letter-spacing: -0.01em;
    margin: 0 0 1.5rem;
}
.lead-subtext {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #777;
    margin: -0.9rem 0 1.5rem;
}

/* == Step 1: service chips ========================== */
.lead-chip-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}
@media (min-width: 640px) {
    .lead-chip-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.lead-chip-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.lead-chip {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 56px;
    padding: 1rem 1.25rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0a0a0a;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.lead-chip i {
    width: 22px;
    flex-shrink: 0;
    font-size: 1.05rem;
    color: #999;
    text-align: center;
    transition: color 0.2s ease;
}
.lead-chip:hover {
    border-color: #0a0a0a;
}
.lead-chip:active {
    transform: scale(0.98);
}
.lead-chip-input:checked + .lead-chip {
    background: #0a0a0a;
    border-color: #0a0a0a;
    color: #ffffff;
}
.lead-chip-input:checked + .lead-chip i {
    color: #ffffff;
}
.lead-chip-input:focus-visible + .lead-chip {
    outline: 2px solid #0a0a0a;
    outline-offset: 2px;
}

.lead-other-wrap {
    margin-top: 1.1rem;
}
.lead-other-wrap[hidden] {
    display: none;
}
.lead-mini-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #999;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* == Steps 2 & 3: single big text input ============= */
.lead-text-input {
    width: 100%;
    padding: 0.75rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #0a0a0a;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    transition: border-color 0.25s;
    -webkit-appearance: none;
}
.lead-text-input:focus {
    border-bottom: 2px solid #0a0a0a;
    outline: none;
}
.lead-text-input::placeholder {
    color: #ccc;
    font-weight: 300;
}
.lead-text-input-lg {
    font-size: clamp(1.2rem, 4.5vw, 1.6rem);
    padding: 0.6rem 0 0.9rem;
    border-bottom: 2px solid #ddd;
}
.lead-text-input.invalid,
.lead-text-input-lg.invalid {
    border-bottom-color: #c0392b;
}

.lead-error {
    display: block;
    min-height: 1.2em;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: #c0392b;
    margin-top: 0.6rem;
}

/* == Actions (Continue / Back / Submit) ============= */
.lead-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2.25rem;
}
.lead-step[data-step="2"] .lead-actions,
.lead-step[data-step="3"] .lead-actions {
    justify-content: space-between;
}
.lead-btn-next,
.lead-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 52px;
    padding: 1rem 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    background: #0a0a0a;
    border: 2px solid #0a0a0a;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.22s, transform 0.22s, box-shadow 0.22s;
}
.lead-btn-next:hover,
.lead-btn-submit:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.lead-btn-next:disabled,
.lead-btn-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.lead-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 52px;
    padding: 1rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #555;
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.22s, color 0.22s;
}
.lead-btn-back:hover {
    border-color: #0a0a0a;
    color: #0a0a0a;
}

/* Step 1 continue button spans full width on mobile for a bigger tap target */
@media (max-width: 480px) {
    .lead-step[data-step="1"] .lead-actions {
        justify-content: stretch;
    }
    .lead-step[data-step="1"] .lead-btn-next {
        width: 100%;
        justify-content: center;
    }
}

/* == Success state =================================== */
.lead-success {
    text-align: center;
    padding: 2rem 1rem 1rem;
}
.lead-success[hidden] {
    display: none;
}
.lead-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.3rem;
}
.lead-success h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 3.5vw, 1.7rem);
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 0.6rem;
    letter-spacing: -0.01em;
}
.lead-success p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #777;
    margin: 0;
}

/* == Responsive tweaks =============================== */
@media (max-width: 480px) {
    .lead-progress {
        margin-bottom: 1.75rem;
    }
    .lead-chip {
        padding: 0.9rem 1rem;
    }
}
