/**
 * Storman Lookup Styles
 * 
 * Styles for validation states in Gravity Forms
 */

/* Validation states */
.gfield input.storman-checking {
    border-color: #0073aa;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%230073aa" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
}

.gfield input.storman-valid {
    border-color: #46b450;
}

.gfield input.storman-invalid {
    border-color: #dc3232;
}

/* Error message */
.gfield .storman-error {
    color: #dc3232;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.gfield .storman-error:before {
    content: "⚠ ";
    font-weight: bold;
}

/* Loading spinner animation */
@keyframes storman-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.gfield input.storman-checking {
    animation: storman-spin 1s linear infinite;
}

