/* ViewMyBill Page Styles */

/* Active nav highlight */
.nav-active {
    color: var(--primary) !important;
    position: relative;
}

.nav-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
}

/* Hero - shorter than main page */
.vmb-hero {
    min-height: 45vh;
    padding: 140px 0 60px;
}

.vmb-hero .hero-subtitle {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Section */
.vmb-form-section {
    padding: 80px 0;
    background: var(--light);
}

.vmb-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid var(--gray-light);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.vmb-form:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.1);
}

/* File Picker */
.vmb-file-picker {
    position: relative;
}

.vmb-file-picker input[type="file"] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.vmb-file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 24px;
    border: 2px dashed var(--gray-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    color: var(--gray);
}

.vmb-file-label i {
    font-size: 32px;
    color: var(--primary);
    transition: transform 0.3s;
}

.vmb-file-label:hover {
    border-color: var(--primary);
    background: rgba(0, 102, 255, 0.03);
}

.vmb-file-label:hover i {
    transform: translateY(-4px);
}

.vmb-file-text {
    font-size: 15px;
    font-weight: 500;
}

.vmb-filename {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    word-break: break-all;
}

.vmb-filename:empty {
    display: none;
}

/* Field Errors */
.vmb-field-error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #ef4444;
    font-weight: 500;
    min-height: 0;
}

.vmb-field-error:empty {
    display: none;
}

/* Submit Button */
.vmb-submit {
    width: 100%;
    margin-top: 8px;
    font-size: 18px;
    padding: 16px 32px;
    justify-content: center;
    cursor: pointer;
}

.vmb-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Loading Section */
.vmb-loading {
    padding: 80px 0;
    text-align: center;
}

.vmb-loading-content {
    max-width: 500px;
    margin: 0 auto;
}

.vmb-loading-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.vmb-loading-content p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.6;
}

/* Spinner */
.vmb-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 24px;
    animation: vmb-spin 0.8s linear infinite;
}

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

/* Results Section */
.vmb-results {
    padding: 80px 0;
    text-align: center;
}

.vmb-results-content {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 48px 40px;
    border-radius: 20px;
    border: 2px solid #10b981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
}

.vmb-success-icon {
    margin-bottom: 20px;
}

.vmb-success-icon i {
    font-size: 56px;
    color: #10b981;
}

.vmb-results-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.vmb-summary {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.vmb-download {
    display: inline-flex;
    text-decoration: none;
    font-size: 16px;
}

/* Error Section */
.vmb-error {
    padding: 80px 0;
    text-align: center;
}

.vmb-error-content {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 48px 40px;
    border-radius: 20px;
    border: 2px solid #ef4444;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.1);
}

.vmb-error-icon {
    margin-bottom: 20px;
}

.vmb-error-icon i {
    font-size: 56px;
    color: var(--accent);
}

.vmb-error-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.vmb-error-message {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.vmb-retry {
    cursor: pointer;
    font-size: 16px;
}

/* How It Works Section */
.vmb-how-it-works {
    padding: 100px 0;
    background: var(--white);
}

.vmb-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
}

.vmb-step {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 32px 24px;
    background: var(--light);
    border-radius: 20px;
    border: 2px solid var(--gray-light);
    transition: all 0.3s;
}

.vmb-step:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.1);
}

.vmb-step-icon {
    position: relative;
    width: 72px;
    height: 72px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.vmb-step-icon i {
    font-size: 28px;
    color: var(--white);
}

.vmb-step-number {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 26px;
    height: 26px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

.vmb-step h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.vmb-step p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

.vmb-step-arrow {
    display: flex;
    align-items: center;
    padding-top: 48px;
    color: var(--gray-light);
    font-size: 24px;
}

/* Privacy Notice */
.vmb-privacy {
    padding: 60px 0;
    background: var(--light);
}

.vmb-privacy-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
    padding: 28px 32px;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--gray-light);
}

.vmb-privacy-content > i {
    font-size: 28px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.vmb-privacy-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.vmb-privacy-content p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .vmb-hero {
        min-height: auto;
        padding: 100px 0 40px;
    }

    .vmb-form-section {
        padding: 40px 0;
    }

    .vmb-form {
        padding: 24px;
        border-radius: 16px;
    }

    .vmb-file-label {
        padding: 24px 16px;
    }

    .vmb-steps {
        flex-direction: column;
        align-items: center;
    }

    .vmb-step {
        max-width: 100%;
        width: 100%;
    }

    .vmb-step-arrow {
        padding-top: 0;
        transform: rotate(90deg);
    }

    .vmb-how-it-works {
        padding: 60px 0;
    }

    .vmb-results-content,
    .vmb-error-content {
        padding: 32px 24px;
    }

    .vmb-privacy-content {
        padding: 20px;
    }
}
