@media(min-width: 800px) {
    .bhivsm-form:not(.bhivsm-compact) {
        max-width: 600px;
        padding: 16px;
    }
    .bhivsm-hero.bhivsm-form:not(.bhivsm-compact) {
        max-width: 100%;
    }
}
.bhivsm-flex {
    display: flex;
}
.bhivsm-flex button {
   border: none;
   width: 50px;
   border-radius: 0;
   background: white;
   color: #111827;
}
.bhivsm-flex button:hover {
    background: #ffffffd7;
    color: #374151;
}

.bhivsm-flex input[type="email"] {
    border: none;
    background: transparent;
    color: white;
    border-bottom: #065f46 2px solid;
}
.bhivsm-flex input[type="email"]::placeholder {
    color: #ffffffd7;
}
.bhivsm-flex input[type="email"]:focus {
    outline: none;
    border-bottom: #10b981 2px solid;
}
.bhivsm-flex input[type="email"]:focus::placeholder {
    color: #ffffffd7;
}

.bhivsm-form {
    border: 1px solid var(--bhivsm-form-border, #e5e7eb);
    border-radius: var(--bhivsm-radius, 8px);
    background: var(--bhivsm-form-bg, transparent);
    margin: 0 auto;
}

.bhivsm-field {
    margin-bottom: 1.5em;
    max-width: 350px;
}

.bhivsm-field label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
}

.bhivsm-field input[type="checkbox"] {
    margin-right: 5px;
    transform: scale(1.2);
}

.bhivsm-field input[type="text"],
.bhivsm-field input[type="email"] {
    width: 100%;
    padding: 10px 25px;
    border: 1px solid #d1d5db;
    border-radius: var(--bhivsm-radius, 6px);
    color: var(--bhivsm-form-text, inherit);
    box-shadow: 0 0 15px rgba(0,0,0,.2);

}
.bhivsm-form-wrapper {
    width: 100%;
}

.bhivsm-hero .bhivsm-flex{
    flex-direction: column;
    gap: 15px;
}
.bhivsm-hero .bhivsm-flex button {
    width: 100%;
    margin-top: 0;
    font-weight: 700;
}
.bhivsm-hero  .bhivsm-field input[type="text"], .bhivsm-hero  .bhivsm-field input[type="email"] {
    padding: 5px 20px;
    font-size: 16px;
    border-radius: 0;
    box-shadow: none;
}
.bhivsm-hero  .bhivsm-field {
    max-width: 100%;
    margin-bottom: 0;
}


.bhivsm-actions {
    margin-top: 16px;
}

.bhivsm-actions button {
    background: var(--bhivsm-btn-bg, #111827);
    color: var(--bhivsm-btn-text, #fff);
    padding: 10px 25px;
    border: 0;
    border-radius: var(--bhivsm-radius, 6px);
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(0,0,0,.2);

}

.bhivsm-actions button:hover {
    background: var(--bhivsm-btn-bg-hover, #374151);
}

/* Loading state */
.bhivsm-actions button.is-loading {
    position: relative;
    opacity: .9;
}

.bhivsm-actions button[disabled] {
    cursor: not-allowed;
    opacity: .8;
}

.bhivsm-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .6);
    border-top-color: rgba(255, 255, 255, 1);
    animation: bhivsm-spin 0.8s linear infinite;
    vertical-align: -2px;
}

@keyframes bhivsm-spin {
    to {
        transform: rotate(360deg);
    }
}

.bhivsm-success {
    margin-top: 10px;
    padding: 10px;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
}

.bhivsm-error {
    margin-top: 10px;
    padding: 10px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 6px;
}

/* template variants */
.bhivsm-minimal {
    border: none;
    padding: 0;
}

.bhivsm-compact .bhivsm-field:not(.bhivsm-consent) label {
    display: none;
}

/* Popup for After Signup message */
.bhivsm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.bhivsm-popup {
    background: #fff;
    border-radius: 12px;
    max-width: 520px;
    width: 92%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    position: relative;
    background: #111827;
    color: rgb(255, 255, 255);
    font-weight: 500;
    border: solid 1px #4abab1;
}

.bhivsm-popup-content {
    padding: 24px;
}
.bhivsm-consent label{
    font-size: 12px;
}

.bhivsm-popup-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    font-size: 27px;
    cursor: pointer;
    line-height: 1;
    color: #fff;
}
.bhivsm-consent-toggle{
    text-decoration: underline;
    color: white !important;
}