/* Contact form + captcha */

.zg-field-error {
    color: #F64E60;
    font-size: 0.8125rem;
    margin-top: 4px;
    min-height: 0;
}

.zg-field-error:empty {
    display: none;
}

.zg-about-input.is-invalid,
.zg-about-textarea.is-invalid {
    border-color: #F64E60 !important;
    box-shadow: 0 0 0 3px rgba(246, 78, 96, 0.15);
}

.zg-about-check.is-invalid {
    color: #F64E60;
}

.zg-about-check.is-invalid input {
    outline: 2px solid #F64E60;
    outline-offset: 2px;
}

.zg-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.zg-captcha-img {
    border-radius: 8px;
    border: 1px solid #E4E6EF;
    background: #f3f6f9;
    display: block;
}

.zg-captcha-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #E4E6EF;
    background: #fff;
    color: #5E6278;
    cursor: pointer;
    transition: 0.15s;
}

.zg-captcha-refresh:hover {
    border-color: #3699FF;
    color: #3699FF;
}

.zg-captcha-input {
    max-width: 120px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

.zg-btn-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: zg-spin 0.6s linear infinite;
    vertical-align: -2px;
    margin-left: 6px;
}

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

#zg-contact-alert .alert {
    margin-bottom: 1rem;
}
