/* Aadhaar Field Styling */
.pan-checko-aadhaar-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #007cba;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.pan-checko-aadhaar-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007cba, #00a0d2, #007cba);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
}

.pan-checko-aadhaar-header h3 {
    margin: 0 0 8px 0;
    color: #007cba;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.pan-checko-aadhaar-header h3::before {
    content: '🔐';
    margin-right: 8px;
    font-size: 16px;
}

.pan-checko-aadhaar-header .description {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.pan-checko-aadhaar-field {
    margin-bottom: 0 !important;
}

.pan-checko-aadhaar-field label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.pan-checko-aadhaar-field input {
    border: 2px solid #ddd !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    background: #fff !important;
}

.pan-checko-aadhaar-field input:focus {
    border-color: #007cba !important;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1) !important;
    outline: none !important;
}

.pan-checko-aadhaar-field input.valid {
    border-color: #28a745 !important;
    background: #f8fff9 !important;
}

.pan-checko-aadhaar-field input.invalid {
    border-color: #dc3545 !important;
    background: #fff8f8 !important;
}

.pan-checko-validation-message {
    margin-top: 8px;
    font-size: 13px;
    min-height: 18px;
    transition: all 0.3s ease;
}

.pan-checko-validation-message.success {
    color: #28a745;
}

.pan-checko-validation-message.error {
    color: #dc3545;
}

/* Order Details Styling */
.pan-checko-order-aadhaar-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.pan-checko-order-aadhaar-info h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #495057;
    font-size: 18px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
}

.pan-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pan-status-true {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pan-status-false {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Enhanced Verification Status */
.pan-checko-verification-status {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #dee2e6;
    border-radius: 16px;
    padding: 40px;
    margin: 40px 0 20px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.pan-checko-animate-in {
    animation: slideInUp 0.8s ease-out;
}

.pan-checko-verification-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s ease-in-out 1s;
}

.verification-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.status-icon {
    flex-shrink: 0;
}

.status-content {
    text-align: left;
}

.status-content h3 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 24px;
    font-weight: 700;
}

.status-content p {
    margin: 8px 0;
    color: #6c757d;
    font-size: 16px;
    line-height: 1.5;
}

/* Success Animation */
.success-animation {
    animation: bounceIn 0.8s ease-out 0.5s both;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #28a745;
    position: relative;
    animation: scaleIn 0.6s ease-out;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.3);
}

.checkmark {
    width: 30px;
    height: 15px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    border-left: 4px solid white;
    border-bottom: 4px solid white;
    animation: checkmark-draw 0.6s ease-out 0.8s both;
    opacity: 0;
}

/* Error Animation */
.error-animation {
    animation: bounceIn 0.8s ease-out 0.5s both;
}

.error-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #dc3545;
    position: relative;
    animation: scaleIn 0.6s ease-out;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.3);
}

.error-cross {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
}

.error-cross::before,
.error-cross::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 24px;
    background: white;
    border-radius: 2px;
    animation: crossDraw 0.6s ease-out 0.8s both;
    opacity: 0;
}

.error-cross::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.error-cross::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.verification-true {
    border-color: #28a745 !important;
    background: linear-gradient(135deg, #d4edda 0%, #f8fff9 100%) !important;
}

.verification-false {
    border-color: #dc3545 !important;
    background: linear-gradient(135deg, #f8d7da 0%, #fff8f8 100%) !important;
}

/* Animations */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes slideInUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkmark-draw {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-45deg) scale(0);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(-45deg) scale(1);
    }
}

@keyframes crossDraw {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .pan-checko-aadhaar-section {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .pan-checko-aadhaar-header h3 {
        font-size: 16px;
    }
    
    .verification-result {
        flex-direction: column;
        gap: 20px;
    }
    
    .status-content {
        text-align: center;
    }
    
    .status-content h3 {
        font-size: 20px;
    }
    
    .pan-checko-verification-status {
        padding: 25px;
        margin: 25px 0 15px 0;
    }
    
    .checkmark-circle,
    .error-circle {
        width: 60px;
        height: 60px;
    }
    
    .checkmark {
        width: 24px;
        height: 12px;
        border-left: 3px solid white;
        border-bottom: 3px solid white;
    }
    
    .error-cross::before,
    .error-cross::after {
        width: 3px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .pan-checko-aadhaar-section {
        padding: 15px;
    }
    
    .pan-checko-verification-status {
        padding: 20px;
    }
    
    .status-content h3 {
        font-size: 18px;
    }
    
    .status-content p {
        font-size: 14px;
    }
}

    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-45deg) scale(0);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(-45deg) scale(1);
    }
}

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

@media (max-width: 768px) {
    .verification-result {
        flex-direction: column;
        gap: 15px;
    }
    
    .status-content {
        text-align: center;
    }
    
    .pan-checko-verification-status {
        padding: 20px;
        margin: 20px 0;
    }
    
    .checkmark-animation,
    .error-icon {
        font-size: 48px;
        width: 48px;
        height: 48px;
    }
}