﻿
/*   css    */

/* ==========================================================================
   PAN Verification Page Styles - Enhanced Design
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Verification Main Section */
.verification-main {
    /*background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);*/
    text-align: center;
    background-image: url(../images/BG-Pattern.png);
    border-top: solid 1px #171919;
    border-bottom: solid 2px #171919;
    padding: 40px 0px;
    min-height: 100vh;
    padding: 20px 0;
}

/* Progress Indicator */
.progress-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    margin-bottom: 30px;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #64748b;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.step.active .step-circle {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background: linear-gradient(135deg, #7a3860 0%, #540238 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.step-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    text-align: center;
}

.step.active .step-label {
    color: #530038;
    font-weight: 600;
}

.step-connector {
    width: 80px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 20px;
}

/* Verification Section */
.verification-section {
    padding: 0 20px;
}

/* Breadcrumb */
.breadcrumb-container {
    margin-bottom: 30px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: #530038;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

    .breadcrumb-link:hover {
        color: #764ba2;
    }

.breadcrumb-separator {
    margin: 0 15px;
    color: #cbd5e0;
    font-size: 0.8rem;
}

.breadcrumb-current {
    color: #2d3748;
    font-weight: 500;
}

/* Main Verification Card */
.verification-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Card Header */
.card-header {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/ /*changed from blue gradient to burgundy*/
    background: linear-gradient(135deg, #7a3860 0%, #540238 100%);
    padding: 30px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.card-title {
    font-size: 1.8rem;
    color: #ffffff;
    font-weight: 700;
    margin: 0;
    margin-bottom: 8px;
}

.card-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.header-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Information Section */
.info-section {
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

    .info-item:hover {
        transform: translateY(-5px);
    }

.info-icon {
    width: 45px;
    height: 45px;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background: linear-gradient(135deg, #7a3860 0%, #540238 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.info-content h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.info-content p {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    color: #64748b;
}

/* Form Section */
.form-section {
    padding: 40px 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

    .section-header h2 {
        font-size: 1.6rem;
        color: #2d3748;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

        .section-header h2 i {
            color: #530038;
        }

.section-description {
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Form Styles */
.verification-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1rem;
}

.required {
    color: #e53e3e;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    .form-input:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        transform: translateY(-2px);
    }

.pan-input {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.input-validation {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.validation-success {
    color: #38a169;
}

.validation-error {
    color: #e53e3e;
}

.form-help {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Security Notice */
.security-notice {
    background: linear-gradient(135deg, #e6fffa 0%, #b2f5ea 100%);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    gap: 15px;
    margin: 25px 0;
    border-left: 4px solid #38a169;
}

.security-icon {
    width: 40px;
    height: 40px;
    background: #38a169;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.security-text strong {
    color: #234e52;
    display: block;
    margin-bottom: 5px;
}

.security-text p {
    color: #285e61;
    margin: 0;
    font-size: 0.9rem;
}

/* CAPTCHA Section */
.captcha-group {
    text-align: center;
}

.captcha-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.g-recaptcha {
    transform: scale(0.9);
    margin: 0 auto;
}

.verify-btn {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background: linear-gradient(135deg, #7a3860 0%, #540238 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

    .verify-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }

    .verify-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

/* Preloader */
.preloader-container {
    text-align: center;
    padding: 20px;
}

.preloader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.preloader span {
    color: #667eea;
    font-weight: 500;
}

/* OTP Section */
.otp-group {
    background: #f8fafc;
    padding: 25px;
    border-radius: 15px;
    border: 2px dashed #cbd5e0;
}

.otp-container {
    position: relative;
}

.otp-input {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.otp-timer {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.otp-help {
    margin-top: 15px;
    text-align: center;
}

    .otp-help p {
        margin: 0 0 10px 0;
        color: #64748b;
        font-size: 0.9rem;
    }

.resend-otp {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 auto;
}

    .resend-otp:hover:not(:disabled) {
        border-color: #667eea;
        color: #667eea;
    }

    .resend-otp:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* Error Messages */
.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    font-weight: 500;
    border-left: 4px solid #e53e3e;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 30px;
}

.continue-btn {
    background: linear-gradient(135deg, #38a169 0%, #48bb78 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 161, 105, 0.3);
}

    .continue-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(56, 161, 105, 0.4);
        text-decoration: none;
        color: white;
    }

/* Benefits Section */
.benefits-section {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    padding: 30px;
    border-top: 1px solid #e5e7eb;
}

    .benefits-section h3 {
        text-align: center;
        margin-bottom: 25px;
        color: #92400e;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.benefit-item {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

    .benefit-item:hover {
        transform: translateY(-2px);
    }

    .benefit-item i {
        color: #d97706;
        font-size: 1.1rem;
    }

    .benefit-item span {
        font-weight: 500;
        color: #2d3748;
    }

/* Help Section */
.help-section {
    margin-top: 30px;
}

.help-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

    .help-content h3 {
        text-align: center;
        margin-bottom: 25px;
        color: #2d3748;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.help-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

    .help-item:hover {
        transform: translateY(-3px);
    }

    .help-item i {
        width: 40px;
        height: 40px;
        /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
        background: linear-gradient(135deg, #7a3860 0%, #540238 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1rem;
    }

    .help-item strong {
        display: block;
        color: #2d3748;
        font-weight: 600;
        margin-bottom: 5px;
    }

    .help-item p {
        color: #64748b;
        margin: 0;
        font-size: 0.9rem;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .verification-main {
        padding: 10px 0;
    }

    .progress-steps {
        flex-direction: column;
        gap: 15px;
    }

    .step-connector {
        width: 2px;
        height: 30px;
        margin: 10px 0;
    }

    .step-label {
        font-size: 0.8rem;
    }

    .card-header {
        padding: 25px 20px;
        flex-direction: column;
        text-align: center;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .info-item {
        padding: 15px;
    }

    .form-section {
        padding: 30px 20px;
    }

    .section-header h2 {
        font-size: 1.4rem;
        flex-direction: column;
        gap: 5px;
    }

    .verification-form {
        max-width: 100%;
    }

    .captcha-container {
        gap: 15px;
    }

    .g-recaptcha {
        transform: scale(0.8);
    }

    .verify-btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .help-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .help-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .verification-section {
        padding: 0 10px;
    }

    .breadcrumb {
        padding: 12px 15px;
        font-size: 0.8rem;
    }

    .breadcrumb-separator {
        margin: 0 10px;
    }

    .card-header {
        padding: 20px 15px;
    }

    .header-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-subtitle {
        font-size: 0.9rem;
    }

    .info-section {
        padding: 20px 15px;
    }

    .form-section {
        padding: 25px 15px;
    }

    .form-input {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .security-notice {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }

    .otp-group {
        padding: 20px 15px;
    }

    .benefits-section,
    .help-content {
        padding: 20px 15px;
    }
}

/* Animation for form validation */
@keyframes shake {
    0%, 20%, 40%, 60%, 80%, 100% {
        transform: translateX(0);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
}

.form-input.error {
    border-color: #e53e3e;
    animation: shake 0.5s ease-in-out;
}

.form-input.success {
    border-color: #38a169;
    background: #f0fff4;
}

/* Loading states */
.verify-btn.loading {
    background: #cbd5e0;
    cursor: not-allowed;
    pointer-events: none;
}

    .verify-btn.loading::after {
        content: '';
        width: 16px;
        height: 16px;
        border: 2px solid transparent;
        border-top: 2px solid white;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-left: 10px;
    }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .verification-card,
    .info-item,
    .help-item,
    .benefit-item,
    .form-input,
    .verify-btn,
    .continue-btn {
        transition: none;
    }

    .spinner {
        animation: none;
    }

    .form-input.error {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .verification-main {
        background: white;
    }

    .progress-container,
    .help-section {
        display: none;
    }

    .verification-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
