/* css/recaptcha.css - Google reCAPTCHA Styling for Majida Ameer Textiles */

.ma-recaptcha-wrapper {
    margin: 18px 0 20px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.25s ease;
}

.ma-recaptcha-wrapper.ma-recaptcha-v3 {
    margin: 8px 0 14px 0;
}

.ma-recaptcha-wrapper.has-error {
    animation: maRecaptchaShake 0.4s ease;
}

.ma-recaptcha-widget {
    min-height: 78px;
    display: inline-block;
    border-radius: 4px;
}

/* For forms with centered layouts */
.text-center .ma-recaptcha-wrapper,
.form-centered .ma-recaptcha-wrapper {
    align-items: center;
}

/* Error message below widget */
.ma-recaptcha-error {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 8px 12px;
    max-width: 320px;
    line-height: 1.4;
    display: none;
}

/* Subtle info note for v3 score-based */
.ma-recaptcha-v3-badge-info {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.5;
}

.ma-recaptcha-v3-badge-info a {
    color: var(--sigcolor, #014661);
    text-decoration: underline;
    transition: color 0.2s;
}

.ma-recaptcha-v3-badge-info a:hover {
    color: var(--sigcolor-hover, #025f84);
}

/* Mobile responsive scaling for small screens (< 360px) */
@media (max-width: 380px) {
    .ma-recaptcha-widget iframe {
        transform: scale(0.88);
        transform-origin: 0 0;
    }
    .ma-recaptcha-widget {
        max-width: 100%;
        height: 70px;
        overflow: hidden;
    }
}

@keyframes maRecaptchaShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
