@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 100 900;
    src: url(https://fonts.gstatic.com/s/inter/v12/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');
}

/* Common form container styles */
#custom-sub-form-container .subscription-form {
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Space between input and button */
}

/* Input field (common) */
#custom-sub-form-container #userEmail {
    padding: 12px;
    border: none;
    font-size: 16px;
    background-color: white;
    color: black;
}

/* Button (common) */
#custom-sub-form-container #submitEmail {
    padding: 12px 20px;
    background-color: #242632;
    color: white;
    border: 1px solid white;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

#custom-sub-form-container #submitEmail:hover {
    background-color: rgb(254, 200, 50);
    color: #242632;
    border-color: rgb(254, 200, 50);
}

/* Vertical Layout */
#custom-sub-form-container .subscription-form:not(.horizontal) {
    flex-direction: column;
    align-items: stretch; /* Make input and button take full width */
}

#custom-sub-form-container .subscription-form:not(.horizontal) #userEmail {
    width: 100%;
}

#custom-sub-form-container .subscription-form:not(.horizontal) #submitEmail {
    width: 100%; /* Button occupies 25% of the space */
    align-self: flex-end; /* Align button to the right */
}

/* Horizontal Layout */
#custom-sub-form-container .subscription-form.horizontal {
    flex-direction: row;
}

#custom-sub-form-container .subscription-form.horizontal #userEmail {
    width: 75%; /* Input occupies 75% of space */
}

#custom-sub-form-container .subscription-form.horizontal #submitEmail {
    width: 100%; /* Button occupies 100% of the space (same width as input) */
}

/* Submission message styles */
#custom-sub-form-container #submissionMessage {
    margin-top: 10px;
    font-size: 14px;
    padding: 10px;
    display: none; /* Initially hidden */
}

#custom-sub-form-container #submissionMessage.success {
    background-color: #d4edda;
    color: #155724;
}

#custom-sub-form-container #submissionMessage.error {
    background-color: #f8d7da;
    color: #721c24;
}
