.krc-box {
    max-width: 500px;
    padding: 32px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    margin: 30px auto;
    position: relative;
    overflow: hidden;
}

.krc-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: krc-glow 8s ease-in-out infinite;
}

@keyframes krc-glow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 20px); }
}

.krc-box h3 {
    margin: 0 0 28px 0;
    font-size: 26px;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.krc-box h3 i {
    color: #fbbf24;
    margin-right: 10px;
    animation: krc-pulse 2s ease-in-out infinite;
}

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

.krc-input-group {
    position: relative;
    margin-bottom: 16px;
    z-index: 1;
}

.krc-input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    z-index: 1;
    font-size: 16px;
    transition: all 0.3s ease;
}

.krc-input-group:hover i {
    color: #764ba2;
    transform: translateY(-50%) scale(1.1);
}

.krc-box input,
.krc-box select {
    width: 100%;
    padding: 14px 16px 14px 48px;
    margin-bottom: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #1f2937;
    font-weight: 500;
}

.krc-box select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-color: rgba(255, 255, 255, 0.95);
}

.krc-box input:focus,
.krc-box select:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
    background: #ffffff;
    transform: translateY(-2px);
}

.krc-box input::placeholder {
    color: #9ca3af;
}

.krc-box button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.krc-box button i {
    margin-right: 8px;
}

.krc-box button:hover:not(:disabled) {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(251, 191, 36, 0.5);
}

.krc-box button:active:not(:disabled) {
    transform: translateY(-1px);
}

.krc-box button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

#krc-result {
    margin-top: 20px;
    min-height: 50px;
    position: relative;
    z-index: 1;
}

.krc-success {
    padding: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    animation: krc-slide-in 0.4s ease-out;
}

.krc-success i {
    color: #fbbf24;
    margin-right: 8px;
    font-size: 18px;
}

.krc-success strong {
    font-size: 32px;
    color: #fbbf24;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: inline-block;
    animation: krc-bounce 0.6s ease-out;
}

@keyframes krc-bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.krc-success small {
    display: block;
    margin-top: 8px;
    opacity: 0.9;
    font-size: 13px;
}

.krc-error {
    padding: 18px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
    animation: krc-shake 0.5s ease-out;
}

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

.krc-error i {
    margin-right: 8px;
    font-size: 16px;
}

.krc-not-found {
    padding: 18px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
    animation: krc-slide-in 0.4s ease-out;
}

.krc-not-found i {
    margin-right: 8px;
    font-size: 16px;
}

.krc-loading {
    padding: 18px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    animation: krc-slide-in 0.4s ease-out;
}

.krc-loading i {
    margin-right: 8px;
    animation: fa-spin 1s linear infinite;
}

@keyframes krc-slide-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.krc-spinner {
    animation: krc-spin 1s linear infinite;
}

@keyframes krc-spin {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.krc-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 16px;
    text-align: center;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.krc-note i {
    margin-right: 6px;
    color: #fbbf24;
}

.krc-recaptcha-note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.krc-recaptcha-note i {
    margin-right: 4px;
    color: #10b981;
}

/* Hide reCAPTCHA badge */
.grecaptcha-badge {
    visibility: hidden;
}

/* Responsive */
@media (max-width: 600px) {
    .krc-box {
        padding: 24px;
        margin: 20px;
    }
    
    .krc-box h3 {
        font-size: 22px;
    }
    
    .krc-success strong {
        font-size: 28px;
    }
}