/* Lead-magnet section — checklist offer + email form.
   contact.css scopes all its form styles under #contact-1388, so they do NOT
   apply here — the same field/label/button styles are mirrored below under
   #lead-magnet to keep the form visually identical to /contact and /free-audit. */

#lead-magnet .cs-form {
    width: 100%;
    padding: 0;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

#lead-magnet .cs-label {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-family: var(--headerFont);
    text-transform: uppercase;
    font-weight: 700;
    width: 100%;
    color: var(--headerColor);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.25rem;
}

#lead-magnet .cs-input {
    font-size: 1rem;
    width: 100%;
    height: 3.5rem;
    padding: 0;
    padding-left: 1.5rem;
    color: var(--headerColor);
    background-color: #f7f7f7;
    border-radius: 0.5rem;
    border: 1px solid #e6e8ee;
    box-sizing: border-box;
}

#lead-magnet .cs-input::placeholder {
    color: #7d799c;
    opacity: 0.6;
}

#lead-magnet .cs-submit {
    width: 100%;
    min-width: 12.5rem;
    border: none;
}

#lead-magnet .cs-submit:hover {
    cursor: pointer;
}

body.dark-mode #lead-magnet .cs-label {
    color: var(--bodyTextColorWhite);
}

body.dark-mode #lead-magnet .cs-input {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #1e2d44;
    color: #fff;
}

body.dark-mode #lead-magnet .cs-input::placeholder {
    color: #fff;
    opacity: 0.8;
}

.cs-lead-section {
    padding: clamp(3rem, 6vw, 6rem) 1rem;
}

.cs-lead-section .cs-container {
    width: 100%;
    max-width: 80rem;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 58rem) {
    .cs-lead-section .cs-container {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 4rem;
        align-items: center;
    }
}

.cs-lead-content .cs-topper {
    display: block;
    font-family: var(--headerFont);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.cs-lead-title {
    font-family: var(--headerFont);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--headerColor);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.cs-lead-content .cs-text {
    color: var(--bodyTextColor);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.cs-lead-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cs-lead-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--bodyTextColor);
    line-height: 1.4;
}

.cs-lead-check {
    flex: none;
    width: 1.4rem;
    height: 1.4rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--secondary);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
}

/* Form card */
.cs-lead-formwrap {
    background: #fff;
    border: 1px solid #e6e8ee;
    border-radius: 1rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: 0 10px 36px rgba(0, 31, 63, 0.10);
}

.cs-lead-form .cs-h3,
.cs-lead-success .cs-h3 {
    font-family: var(--headerFont);
    color: var(--headerColor);
    margin-bottom: 1rem;
}

/* GDPR consent row */
.cs-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 1rem 0 1.25rem;
}

.cs-consent-box {
    flex: none;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    accent-color: var(--secondary);
}

.cs-consent-label {
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--bodyTextColor);
}

.cs-consent-label a {
    color: var(--secondary);
    text-decoration: underline;
}

.cs-lead-privacy {
    font-size: 0.8125rem;
    margin-top: 0.75rem;
    opacity: 0.8;
    color: var(--bodyTextColor);
}

/* Success / thank-you state */
.cs-lead-success {
    text-align: center;
}

.cs-success-check {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--secondary);
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
}

/* Dark mode */
body.dark-mode .cs-lead-formwrap { background: #0f1b2d; border-color: #1e2d44; }
body.dark-mode .cs-lead-title,
body.dark-mode .cs-lead-form .cs-h3,
body.dark-mode .cs-lead-success .cs-h3 { color: var(--bodyTextColorWhite); }
body.dark-mode .cs-lead-content .cs-text,
body.dark-mode .cs-lead-list li,
body.dark-mode .cs-consent-label,
body.dark-mode .cs-lead-privacy { color: #c4ccd8; }
