.elm-form-wrapper {
    max-width: 600px;
    margin: 2em auto;
    padding: 1.5em;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Hide honeypot field */
.elm-hp-field {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
}

.elm-subscription-form {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.elm-form-row {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.elm-form-row label {
    font-weight: 600;
    color: #333;
}

.elm-form-row label .required {
    color: #d63638;
}

.elm-form-row input[type="text"],
.elm-form-row input[type="email"] {
    padding: 0.75em;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    line-height: 1.4;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.elm-form-row input[type="text"]:focus,
.elm-form-row input[type="email"]:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 2px solid transparent;
}

/* Disclaimer styles */
.elm-disclaimer {
    margin-top: 0.5em;
}

.elm-disclaimer-text {
    font-size: 0.875em;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.elm-submit-button {
    background: #2271b1;
    border: none;
    color: #fff;
    padding: 0.75em 1.5em;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.elm-submit-button:hover,
.elm-submit-button:focus {
    background: #135e96;
}

.elm-submit-button:disabled {
    background: #ddd;
    cursor: not-allowed;
}

.elm-message {
    padding: 1em;
    border-radius: 4px;
    font-weight: 600;
}

.elm-message.elm-success {
    background: #edfaef;
    color: #0a5132;
    border: 1px solid #c3e6cb;
}

.elm-message.elm-error {
    background: #fbeaea;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* Accessibility improvements */
.elm-form-row input[aria-invalid="true"] {
    border-color: #d63638;
}

.elm-form-row .error-message {
    color: #d63638;
    font-size: 0.875em;
    margin-top: 0.25em;
}

/* Focus styles for keyboard navigation */
.elm-form-row input:focus-visible,
.elm-submit-button:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .elm-form-wrapper {
        margin: 1em;
        padding: 1em;
    }
    
    .elm-form-row {
        gap: 0.25em;
    }
} 