.revamped-email-sub {
    background-color: #F9F9F9;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.revamped-email-sub .catchyah {
    position: fixed;
    left: -999em;
}

.revamped-email-sub .subscribe-message {
    color: #333333;
    margin-bottom: 15px;
}

.revamped-email-sub .subscribe-message h4 {
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 5px;
}

.revamped-email-sub .field.has-addons,
.subscribe-input {
    display: flex;
    align-items: center;
    width: 100%;
}

.revamped-email-sub .field.has-addons .control {
    flex: 1 1 auto;
}

.revamped-email-sub .field.has-addons .control.is-expanded {
    flex-grow: 1;
}

.revamped-email-sub .recipient_email {
    width: 100%;
    border-radius: 3px 0 0 3px !important; /* Smoothly merge with button */
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border: 2px solid #cccccc; /* Thicker border to match */
    border-right-width: 0; /* Remove the right border to avoid overlap */
    height: 38px; /* Consistent height with button */
    padding: 0 10px;
    font-size: 1rem;
    box-sizing: border-box; /* Ensure padding is included in the width */
    outline: none; /* Remove outline on focus */
}

.revamped-email-sub .recipient_email:focus {
    border-color: #333333; /* Border color on focus */
}

.revamped-email-sub .recipient_email::placeholder {
    text-align: center;
    font-weight: bold;
    color: #aaaaaa;
}

.revamped-email-sub .subscribe {
    height: 38px; /* Match height with input */
    border: 2px solid #5b882b; /* Match border thickness */
    border-left-width: 0; /* Remove the left border to avoid overlap */
    background-color: #5b882b;
    color: white;
    text-transform: uppercase !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    transition: background-color 0.3s;
    white-space: nowrap;
    padding: 0 15px; /* Better look by adjusting padding */
    flex-shrink: 0; /* Prevent button from shrinking */
    border-radius: 0 3px 3px 0 !important; /* Smooth merging */
}

.revamped-email-sub .subscribe:hover {
    background-color: #4e7425;
}

.revamped-email-sub .subscribe-thanks {
    display: none;
}

.revamped-email-sub .subscribe-legalease {
    font-size: 0.70rem;
    color: #8b8b8b;
    margin-top: 15px;
    line-height: 1.25rem;
    display: block;
    width: 100%;
}

@media screen and (max-width: 768px) {
    .revamped-email-sub .field.has-addons {
        flex-direction: column;
        align-items: stretch;
    }

    .revamped-email-sub .control.is-expanded,
    .revamped-email-sub .subscribe {
        width: 100%;
        margin: 0 0 10px 0;
    }

    .revamped-email-sub .subscribe {
        margin-bottom: 0;
        border-radius: 3px !important; /* Reset the radius for mobile */
        border-left-width: 2px; /* Add border for mobile */
    }

    .revamped-email-sub .recipient_email {
        border-radius: 3px !important; /* Reset the radius for mobile */
        border-right-width: 2px; /* Maintain border for mobile */
    }
}
