/* Walker's Lab newsletter opt-in form — shared component styles.
   Designed for dark contexts (hero, blog CTA boxes). */

.wl-form {
    max-width: 760px;
    width: 100%;
}

.wl-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.wl-form input[type="text"],
.wl-form input[type="email"] {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    outline: none;
    transition: border-color 0.2s ease;
}

.wl-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.wl-form input:focus {
    border-color: rgba(255, 255, 255, 0.5);
}

.wl-form input.wl-invalid {
    border-color: rgba(255, 138, 138, 0.7);
}

.wl-form button {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    background: #fff;
    color: #000;
    border: 2px solid #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wl-form button:hover:not(:disabled) {
    background: transparent;
    color: #fff;
}

.wl-form button:disabled {
    opacity: 0.6;
    cursor: default;
}

.wl-form-error {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #ff8a8a;
    display: none;
}

.wl-form-error.visible {
    display: block;
}

/* honeypot — visually gone, still in the DOM for bots */
.wl-form .wl-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 640px) {
    .wl-form-row {
        grid-template-columns: 1fr;
    }
}

/* Light-background variant. Additive only, dark behaviour unchanged.
   Applies wherever the form sits inside a .section-white block. */
.section-white .wl-form input[type="text"],
.section-white .wl-form input[type="email"] {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.22);
    color: #000;
}

.section-white .wl-form input::placeholder {
    color: rgba(0, 0, 0, 0.42);
}

.section-white .wl-form input:focus {
    border-color: rgba(0, 0, 0, 0.55);
}

.section-white .wl-form input.wl-invalid {
    border-color: rgba(190, 40, 40, 0.75);
}

.section-white .wl-form button {
    background: #000;
    color: #fff;
    border-color: #000;
}

.section-white .wl-form button:hover:not(:disabled) {
    background: transparent;
    color: #000;
}

.section-white .wl-form-error {
    color: #b02020;
}
