/* EWB Lead Form — brand-aligned styling.
   Theme defines --cyan, --lime, --navy-deep; fallbacks below. */

.ewb-form {
    --ewb-cyan: var(--cyan, #00B8FF);
    --ewb-lime: var(--lime, #A6FF00);
    --ewb-navy: var(--navy-deep, #0A1330);
    --ewb-grey: #B8C0D0;

    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 480px;
    margin: 0 auto;
    padding: 24px;
    border-radius: 14px;
    background: var(--ewb-navy);
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    font-family: inherit;
}

.ewb-form__heading {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.ewb-form__row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ewb-form__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ewb-grey);
    letter-spacing: 0.01em;
}

.ewb-form__input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ewb-form__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.ewb-form__input:focus {
    outline: none;
    border-color: var(--ewb-cyan);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 184, 255, 0.18);
}

.ewb-form__input--textarea {
    min-height: 80px;
    resize: vertical;
}

.ewb-form__honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ewb-form__submit {
    appearance: none;
    border: none;
    cursor: pointer;
    background: var(--ewb-lime);
    color: var(--ewb-navy);
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 18px;
    border-radius: 10px;
    letter-spacing: 0.02em;
    transition: transform 0.1s ease, filter 0.15s ease;
}

.ewb-form__submit:hover:not(:disabled),
.ewb-form__submit:focus:not(:disabled) {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.ewb-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ewb-form__status {
    margin: 4px 0 0;
    min-height: 1.2em;
    font-size: 0.9rem;
    color: var(--ewb-grey);
}

.ewb-form__status--success {
    color: var(--ewb-lime);
}

.ewb-form__status--error {
    color: #FF8A8A;
}

@media (max-width: 480px) {
    .ewb-form {
        padding: 18px;
        border-radius: 12px;
    }
}
