/* Product Verification Frontend Styles - Enhanced UI */

.pv-verification-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.pv-form-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.pv-form-wrapper::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%);
    pointer-events: none;
}

.pv-form-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.pv-form-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.pv-form-icon svg {
    filter: drop-shadow(0 4px 8px rgba(0, 115, 170, 0.2));
}

.pv-form-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pv-form-description {
    font-size: 18px;
    color: #5a6c7d;
    margin: 0 0 30px 0;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.pv-form-container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* Form Elements */
.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.pv-label-icon {
    margin-right: 8px;
    font-size: 20px;
}

.required {
    color: #e74c3c;
    margin-left: 4px;
}

.form-group select,
.form-group input[type="text"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    box-sizing: border-box;
}

.form-group select:focus,
.form-group input[type="text"]:focus {
    outline: none;
    border-color: #0073aa;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    transform: translateY(-2px);
}

.form-help {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
}

/* Button Styles */
.form-footer {
    text-align: center;
    margin-top: 40px;
}

.pv-verify-button {
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 115, 170, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    position: relative;
    overflow: hidden;
}

.pv-verify-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.pv-verify-button:hover::before {
    left: 100%;
}

.pv-verify-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 115, 170, 0.4);
}

.pv-verify-button:active {
    transform: translateY(-1px);
}

.pv-verify-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-icon {
    margin-right: 10px;
    font-size: 20px;
}

.button-text {
    flex: 1;
}

/* Security Note */
.form-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #6c757d;
    margin-top: 20px;
}

.security-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* Results Styles */
#pv-verification-result {
    margin-top: 30px;
    animation: pv-fadeInUp 0.5s ease-out;
}

@keyframes pv-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pv-result {
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.pv-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: currentColor;
    opacity: 0.8;
}

.pv-result-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #28a745;
}

.pv-result-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    color: #721c24;
    border: 2px solid #dc3545;
}

.pv-result-icon {
    font-size: 64px;
    margin-bottom: 15px;
    display: block;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pv-result-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.pv-result-message {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Loading State */
.pv-loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: pv-spin 1s linear infinite;
    margin-right: 12px;
    vertical-align: middle;
}

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

/* Footer Info */
.pv-form-footer-info {
    margin-top: 40px;
    text-align: center;
}

.info-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.info-section h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.info-section p {
    margin: 0 0 15px 0;
    color: #5a6c7d;
    line-height: 1.6;
}

.info-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.info-section li {
    margin-bottom: 8px;
    color: #5a6c7d;
    position: relative;
    padding-left: 25px;
}

.info-section li::before {
    content: '•';
    color: #0073aa;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 20px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .pv-verification-container {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .pv-form-wrapper {
        padding: 30px 20px;
    }
    
    .pv-form-container {
        padding: 30px 20px;
    }
    
    .pv-form-title {
        font-size: 28px;
    }
    
    .pv-form-description {
        font-size: 16px;
    }
    
    .pv-verify-button {
        padding: 16px 30px;
        font-size: 16px;
    }
    
    .pv-result-icon {
        font-size: 48px;
    }
    
    .pv-result-title {
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    .pv-form-wrapper {
        padding: 20px 15px;
    }
    
    .pv-form-container {
        padding: 25px 15px;
    }
    
    .pv-form-title {
        font-size: 24px;
    }
    
    .pv-form-description {
        font-size: 14px;
    }
    
    .form-group select,
    .form-group input[type="text"] {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .pv-verify-button {
        padding: 14px 25px;
        font-size: 14px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .pv-form-wrapper {
        border: 2px solid #000;
    }
    
    .pv-form-container {
        border: 2px solid #000;
    }
    
    .form-group select,
    .form-group input[type="text"] {
        border: 2px solid #000;
    }
}