/* ================================================
   ESTILOS PARA VERIFICACIÓN RECAPTCHA
   ================================================ */

/* Modal de reCAPTCHA */
.recaptcha-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.recaptcha-modal.show {
    opacity: 1;
    visibility: visible;
}

.recaptcha-modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s ease;
}

.recaptcha-modal.show .recaptcha-modal-content {
    transform: scale(1) translateY(0);
}

.recaptcha-header {
    text-align: center;
    margin-bottom: 25px;
}

.recaptcha-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.recaptcha-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 25px 0;
    min-height: 80px;
}

.recaptcha-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.recaptcha-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.recaptcha-cancel {
    background-color: #f5f5f5;
    color: #333;
}

.recaptcha-cancel:hover {
    background-color: #e5e5e5;
}

.recaptcha-verify {
    background-color: #007bff;
    color: white;
}

.recaptcha-verify:hover:not(:disabled) {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.recaptcha-verify:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Modal de confirmación */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.confirmation-modal.show {
    opacity: 1;
    visibility: visible;
}

.confirmation-modal-content {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s ease;
}

.confirmation-modal.show .confirmation-modal-content {
    transform: scale(1) translateY(0);
}

.confirmation-icon {
    margin-bottom: 20px;
}

.confirmation-icon i {
    font-size: 60px;
    color: #28a745;
    animation: checkBounce 0.6s ease;
}

@keyframes checkBounce {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.confirmation-modal-content h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.confirmation-modal-content p {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.confirmation-btn {
    padding: 12px 30px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirmation-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Estados del botón de envío durante verificación */
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.submit-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .recaptcha-modal-content,
    .confirmation-modal-content {
        padding: 20px;
        margin: 20px;
    }
    
    .recaptcha-header h3,
    .confirmation-modal-content h3 {
        font-size: 20px;
    }
    
    .recaptcha-buttons {
        flex-direction: column;
    }
    
    .recaptcha-btn {
        min-width: 100%;
    }
    
    .confirmation-icon i {
        font-size: 50px;
    }
}

/* Tema oscuro para el modal (opcional) */
@media (prefers-color-scheme: dark) {
    .recaptcha-modal-content,
    .confirmation-modal-content {
        background: #2d3748;
        color: white;
    }
    
    .recaptcha-header h3,
    .confirmation-modal-content h3 {
        color: white;
    }
    
    .recaptcha-header p,
    .confirmation-modal-content p {
        color: #a0aec0;
    }
    
    .recaptcha-cancel {
        background-color: #4a5568;
        color: white;
    }
    
    .recaptcha-cancel:hover {
        background-color: #2d3748;
    }
} 