/* Email capture block, extracted from content-card.css 2026-08-21.
   It shipped inside content-card.css, which only the services/v3 tool pages
   link, so on 38 templates (21 features, 9 channels, 7 tools) the section
   rendered completely unstyled: full-bleed, flush left, no container. It is
   now its own file, linked from the shared style includes so every page that
   includes frontend_email_capture.pug gets it. */

/* ===================================================================
   EMAIL CAPTURE
   =================================================================== */

.cc-email-capture {
    padding: 50px 20px;
    text-align: center;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.cc-email-capture-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.cc-email-capture-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
}

.cc-email-form {
    display: flex;
    gap: 0;
    max-width: 460px;
    margin: 0 auto;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.cc-email-form:focus-within {
    border-color: #6366f1;
}

.cc-email-form input[type="email"].cc-email-input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    border-radius: 0;
    font-size: 15px;
    outline: none;
    background: transparent;
    color: #111827;
    height: auto;
    margin: 0;
    width: auto;
    display: inline-block;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-style: none;
}

.cc-email-form input[type="email"].cc-email-input:focus {
    border: none;
    background: transparent;
    box-shadow: none;
}

.cc-email-form input[type="email"].cc-email-input::placeholder {
    color: #9ca3af;
}

.cc-email-form button.cc-email-submit {
    padding: 14px 28px;
    background: #6366f1;
    color: #ffffff;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    margin: 0;
    box-shadow: none;
    line-height: normal;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.cc-email-form button.cc-email-submit:hover,
.cc-email-form button.cc-email-submit:focus {
    background: #4f46e5;
    color: #ffffff;
}

.cc-email-form button.cc-email-submit:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -2px;
    box-shadow: 0 0 0 4px #6366f1;
}

.cc-email-form button.cc-email-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #6366f1;
}

.cc-email-success {
    color: #10b981;
    font-weight: 600;
    font-size: 14px;
    margin-top: 12px;
}

.cc-email-error {
    color: #ef4444;
    font-size: 13px;
    margin-top: 10px;
}

/* Stack the field above the button on narrow screens. Moved out of
   content-card.css's shared 768px block along with the rules above. */
@media (max-width: 768px) {
    .cc-email-form {
        flex-direction: column;
        border-radius: 12px;
    }

    .cc-email-form button.cc-email-submit {
        border-radius: 0;
    }
}
