.email-signup {
    display: flex;
    max-width: 700px;
    margin: 2rem auto;
    position: relative;
}

.email-signup input[type="email"] {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background-color: white;
    color: var(--slate-grey);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: box-shadow 0.3s ease;
}

.email-signup input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--forest-green);
}

.email-signup input[type="email"].error {
    box-shadow: 0 0 0 2px #e74c3c;
}

.email-signup button {
    padding: 1rem 1.5rem;
    border: none;
    background-color: var(--forest-green);
    color: white;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    min-width: 180px;
}

.email-signup button:hover:not(:disabled) {
    background-color: var(--muted-brown);
}

.email-signup button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-message {
    padding: 1rem;
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    margin: 1rem auto;
    max-width: 700px;
    font-size: 0.9rem;
    display: none;
}

@media (max-width: 768px) {
    .email-signup {
        flex-direction: column;
        gap: 1rem;
    }

    .email-signup input[type="email"],
    .email-signup button {
        width: 100%;
    }
}