/* ============================================================
   CanInvest — Lead Form Styles
   Premium multi-step quiz forms
   ============================================================ */

/* Form section layout */
.section-lead-form {
    background: var(--snow);
}

.lead-form-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.lead-form-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--charcoal);
    margin-top: 16px;
}

/* Form widget container */
.lead-form-widget {
    background: var(--white);
    border: 1px solid var(--silver);
    border-radius: var(--border-radius);
    padding: 36px;
    min-height: 380px;
}

/* Step transitions */
.lead-step {
    animation: leadFadeIn 0.3s ease;
}

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

/* Progress indicator */
.lead-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 28px;
}

.lead-progress-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: var(--ghost);
    color: var(--mist);
    flex-shrink: 0;
    transition: all var(--transition);
}

.lead-progress-dot.active {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(215, 38, 56, 0.15);
}

.lead-progress-dot.done {
    background: #059669;
    color: var(--white);
    font-size: 11px;
}

.lead-progress-line {
    flex: 1;
    height: 2px;
    background: var(--ghost);
    margin: 0 4px;
}

/* Question */
.lead-question {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Option buttons */
.lead-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lead-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    background: var(--white);
    border: 2px solid var(--silver);
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: all var(--transition);
    text-align: left;
}

.lead-option:hover {
    border-color: var(--red);
    background: var(--red-subtle);
}

.lead-option.selected {
    border-color: var(--red);
    background: var(--red-subtle);
    font-weight: 600;
}

.lead-option-icon {
    font-size: 20px;
    flex-shrink: 0;
}

/* Province grid */
.lead-options-provinces {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.lead-option-province {
    justify-content: center;
    padding: 14px 8px;
    font-size: 14px;
    font-weight: 700;
}

/* Back button */
.lead-back {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 0;
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--slate);
    cursor: pointer;
    transition: color var(--transition);
}

.lead-back:hover {
    color: var(--red);
}

/* Contact form (final step) */
.lead-contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lead-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate);
    margin-bottom: 6px;
}

.lead-field input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    background: var(--ghost);
    border: 2px solid transparent;
    border-radius: 12px;
    outline: none;
    transition: all var(--transition);
}

.lead-field input:focus {
    border-color: var(--red);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(215, 38, 56, 0.08);
}

.lead-field input::placeholder {
    color: var(--mist);
}

/* Contact preference select */
.lead-select {
    width: 100%;
    padding: 14px 44px 14px 16px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    background-color: var(--ghost);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    outline: none;
    transition: all var(--transition);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C7C7CC' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.lead-select:hover {
    border-color: var(--silver);
}

.lead-select:focus {
    border-color: var(--red);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(215, 38, 56, 0.08);
}

.lead-select option {
    font-weight: 500;
    padding: 8px;
}

/* Consent checkboxes */
.lead-consent {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lead-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.lead-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--red);
    cursor: pointer;
}

.lead-checkbox span {
    font-size: 13px;
    line-height: 1.5;
    color: var(--charcoal);
}

.lead-checkbox a {
    color: var(--red);
    font-weight: 500;
}

/* Turnstile widget */
.lead-turnstile {
    margin: 4px 0;
}

/* Submit button */
.lead-submit {
    width: 100%;
    font-size: 16px;
    padding: 16px 24px;
}

.lead-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Error message */
.lead-error {
    font-size: 14px;
    font-weight: 500;
    color: var(--red);
    min-height: 20px;
}

/* Thank you state */
.lead-thank-you {
    text-align: center;
    padding: 40px 20px;
}

.lead-thank-you-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #059669;
    color: var(--white);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.lead-thank-you h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
}

.lead-thank-you p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--charcoal);
}

/* Responsive */
@media (max-width: 768px) {
    .lead-form-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .lead-form-widget {
        padding: 28px;
    }

    .lead-options-provinces {
        grid-template-columns: repeat(5, 1fr);
    }

    .lead-question {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .lead-options-provinces {
        grid-template-columns: repeat(3, 1fr);
    }
}
