/**
 * ============================================================================
 * CONTACT PAGE - ARITHMETIC CAPTCHA
 * ============================================================================
 */

.contact-captcha {
    margin-top: 0.25rem;
}

.contact-captcha__box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(8rem, 0.72fr);
    gap: 0.75rem;
    align-items: stretch;
}

.contact-captcha__question {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(236, 72, 153, 0.24);
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(253, 242, 248, 0.96), rgba(250, 245, 255, 0.96));
    color: #831843;
    font-weight: 700;
    letter-spacing: 0.02em;
    user-select: none;
}

.contact-captcha__question i {
    color: #db2777;
}

.contact-captcha__input {
    text-align: center;
    font-weight: 700;
}

.contact-captcha__help {
    margin: 0.5rem 0 0;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.45;
}

.contact-captcha__error {
    min-height: 1.1rem;
    margin-top: 0.35rem;
}

.contact-captcha.is-valid .contact-captcha__question {
    border-color: rgba(22, 163, 74, 0.35);
    background: rgba(240, 253, 244, 0.95);
    color: #166534;
}

.contact-captcha.is-invalid .contact-captcha__question {
    border-color: rgba(220, 38, 38, 0.35);
    background: rgba(254, 242, 242, 0.95);
    color: #991b1b;
}

#submitBtn:disabled {
    cursor: not-allowed;
    opacity: 0.56;
    filter: grayscale(0.15);
    transform: none !important;
    box-shadow: none;
}

@media (max-width: 640px) {
    .contact-captcha__box {
        grid-template-columns: 1fr;
    }

    .contact-captcha__input {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #submitBtn,
    .contact-captcha__question {
        transition: none !important;
    }
}
