/* Custom Modern Captcha Styles */
.custom-captcha-container {
    background: linear-gradient(135deg, #353c48 0%, #3c4452 100%);
    border: 2px solid rgba(234, 189, 35, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    max-width: 100%;
}

.custom-captcha-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(234, 189, 35, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.custom-captcha-container:hover {
    border-color: rgba(234, 189, 35, 0.5);
    box-shadow: 0 6px 20px rgba(234, 189, 35, 0.2);
    transform: translateY(-2px);
}

.custom-captcha-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: #96a2b4;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.custom-captcha-header i {
    margin-right: 8px;
    color: #eabd23;
    font-size: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.custom-captcha-question {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    flex-wrap: wrap;
}

.custom-captcha-number {
    display: inline-block;
    background: linear-gradient(135deg, #eabd23 0%, #fec107 100%);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    min-width: 40px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(234, 189, 35, 0.4);
    animation: numberGlow 2s ease-in-out infinite;
    font-size: 20px;
}

@keyframes numberGlow {
    0%, 100% { box-shadow: 0 2px 8px rgba(234, 189, 35, 0.4); }
    50% { box-shadow: 0 2px 15px rgba(234, 189, 35, 0.7); }
}

.custom-captcha-operator {
    display: inline-block;
    color: #eabd23;
    font-size: 24px;
    font-weight: 700;
    padding: 0 5px;
    animation: operatorBounce 1.5s ease-in-out infinite;
}

@keyframes operatorBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.custom-captcha-equals {
    color: #96a2b4;
    font-size: 24px;
    margin: 0 5px;
}

.custom-captcha-input-container {
    position: relative;
    margin-top: 15px;
}

.custom-captcha-input {
    width: 100%;
    padding: 12px 20px;
    background: rgba(60, 68, 82, 0.6);
    border: 2px solid rgba(234, 189, 35, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.custom-captcha-input:focus {
    border-color: #eabd23;
    background: rgba(60, 68, 82, 0.8);
    box-shadow: 0 0 15px rgba(234, 189, 35, 0.3);
    transform: scale(1.02);
}

.custom-captcha-input::placeholder {
    color: #54667a;
    font-weight: 400;
}

.custom-captcha-status {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    min-height: 18px;
    transition: all 0.3s ease;
}

.custom-captcha-status.error {
    color: #fb9678;
    animation: shake 0.5s;
}

.custom-captcha-status.success {
    color: #00c292;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.custom-captcha-refresh {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(234, 189, 35, 0.2);
    border: 1px solid rgba(234, 189, 35, 0.4);
    color: #eabd23;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.custom-captcha-refresh:hover {
    background: rgba(234, 189, 35, 0.3);
    border-color: #eabd23;
    transform: rotate(180deg);
}

.custom-captcha-refresh:active {
    transform: rotate(360deg) scale(0.95);
}

.custom-captcha-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(234, 189, 35, 0.3);
    border-top-color: #eabd23;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

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

/* Responsive */
@media (max-width: 480px) {
    .custom-captcha-question {
        font-size: 22px;
    }
    
    .custom-captcha-number {
        padding: 6px 12px;
        min-width: 40px;
    }
    
    .custom-captcha-operator {
        font-size: 24px;
    }
}

