/* reCAPTCHA Additional Styles */
.recaptcha-info {
    text-align: center;
    padding: 10px 15px;
    border-radius: 8px;
}

.recaptcha-info small {
    font-size: 12px;
    line-height: 1.4;
}

.recaptcha-info a {
    color: #3D6FA4;
    text-decoration: none;
}

.recaptcha-info a:hover {
    text-decoration: underline;
    color: #2c5282;
}

/* Submit button loading states */
#submitBtn {
    position: relative;
    transition: all 0.3s ease;
}

#submitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#submitSpinner {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}

/* reCAPTCHA badge positioning (Google's default badge) */
.grecaptcha-badge {
    z-index: 1000 !important;
}

/* Mobile optimization for reCAPTCHA info */
@media (max-width: 768px) {
    .recaptcha-info {
        padding: 8px 12px;
    }
    
    .recaptcha-info small {
        font-size: 11px;
    }
}

/* Form validation enhancement */
.was-validated .form-control:valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.8.8 4.2-4.2-.8-.8L2.3 6.73z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 3.2 3.2M8.2 4.6l-3.2 3.2'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Enhanced notification styles for reCAPTCHA messages */
.notification.recaptcha-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.notification.recaptcha-success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
}

/* Loading overlay for form during reCAPTCHA verification */
.form-loading {
    position: relative;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
    border-radius: 8px;
    backdrop-filter: blur(2px);
}