/* ZeroBounce Real-Time Validator Styles */

/* Error message styling (matches HubSpot native errors) */
.zerobounce-error .hs-error-msg {
    color: #d0021b !important;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 5px;
    display: block;
}

.zerobounce-error-icon {
    display: inline-block;
    margin-right: 4px;
    font-weight: bold;
}

/* Warning message styling (yellow/orange for catch-all) */
.zerobounce-warning .hs-warning-msg {
    color: #ff8c00 !important;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 5px;
    display: block;
}

.zerobounce-warning-icon {
    display: inline-block;
    margin-right: 4px;
    font-weight: bold;
}

/* Loading indicator */
.zerobounce-loading {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
    display: flex;
    align-items: center;
}

.zerobounce-loading .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: zerobounce-spin 1s linear infinite;
    margin-right: 6px;
}

@keyframes zerobounce-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error state for email field */
.hs-input.error input {
    border-color: #d0021b !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .zerobounce-error .hs-error-msg,
    .zerobounce-warning .hs-warning-msg,
    .zerobounce-loading {
        font-size: 12px;
    }
}
