/* Lead capture form embedded inside blog content via the CMS editor's
   "Insert Lead Capture Form" toolbar button. Scoped to .blog-lead-form-block
   so it renders consistently wherever a blog embeds it. */
.blog-lead-form-block {
    margin: 2.5em 0;
}

.blog-lead-form {
    background: #fff8f8;
    border: 1px solid #f3d3d5;
    border-left: 4px solid #E10712;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(225, 7, 18, 0.06);
}

/* !important here overrides the site's dark-theme blog typography (e.g.
   .blog-detail-section .blog-content h3 { color:#fff }), which otherwise
   outranks these single-class selectors and makes the heading invisible
   against this card's light background. */
.blog-lead-form-title {
    margin: 0 0 6px !important;
    font-size: 1.4em !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
}

.blog-lead-form-subtitle {
    margin: 0 0 20px !important;
    color: #666 !important;
    font-size: 0.95em !important;
}

.blog-lead-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.blog-lead-form-field {
    display: flex;
    flex-direction: column;
}

.blog-lead-form-field label {
    font-size: 0.85em;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.blog-lead-form-field label span {
    color: #E10712;
}

.blog-lead-form-field input,
.blog-lead-form-field select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95em;
    font-family: inherit;
    background: #fff;
    color: #212529;
}

.blog-lead-form-field input:focus,
.blog-lead-form-field select:focus {
    outline: none;
    border-color: #E10712;
    box-shadow: 0 0 0 3px rgba(225, 7, 18, 0.12);
}

.blog-lead-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #E10712;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.blog-lead-form-submit:hover {
    background: #c30610;
    transform: translateY(-1px);
}

.blog-lead-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.blog-lead-form-message {
    margin-top: 14px;
    font-size: 0.9em;
    display: none;
}

.blog-lead-form-message.is-visible {
    display: block;
}

.blog-lead-form-message.is-success {
    color: #1e7e34;
}

.blog-lead-form-message.is-error {
    color: #c30610;
}

@media (max-width: 600px) {
    .blog-lead-form {
        padding: 20px;
    }

    .blog-lead-form-grid {
        grid-template-columns: 1fr;
    }
}
