/* AM Newsletter Form – minimal layout overrides only */

/* Form spacing */
.am-newsletter-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

/* Inputs fill their container */
.am-newsletter-form input[type="text"],
.am-newsletter-form input[type="email"],
.am-newsletter-form input[type="tel"] {
    width: 100% !important;
    box-sizing: border-box;
    padding: 6px 10px !important;
}

/* Submit button: shrink to fit content */
.am-newsletter-form .am-nl-submit {
    align-self: flex-start;
}

/* Name row: side-by-side on larger screens, stacked on small */
.am-nl-name-row {
    display: flex !important;
    gap: 10px !important;
}

.am-nl-name-row > .am-nl-field {
    flex: 1 1 0% !important;
    min-width: 0;
}

@media (max-width: 480px) {
    .am-nl-name-row {
        flex-direction: column !important;
    }
}

/* SMS consent: checkbox beside legal text */
.am-nl-sms-consent label {
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
    font-weight: normal;
    font-size: 0.8em;
    line-height: 1.4;
}

.am-nl-sms-consent input[type="checkbox"] {
    margin-top: 0.2em;
    flex-shrink: 0;
}

/* Validation error */
.am-nl-error {
    color: #d63638;
}

.am-nl-error:empty {
    display: none;
}
