/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a73e8;
    --primary-dark: #1557b0;
    --secondary-color: #34a853;
    --accent-color: #fbbc04;
    --danger-color: #ea4335;
    --dark-color: #202124;
    --light-color: #f8f9fa;
    --gray-color: #5f6368;
    --border-color: #dadce0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    text-decoration: underline;
}

/* ===== Navbar ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

.btn-secondary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--light-color);
    text-decoration: none;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #4285f4);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn-secondary {
    color: white;
    border-color: white;
}

.hero-buttons .btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

/* ===== Features Section ===== */
.features {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* ===== How It Works ===== */
.how-it-works {
    padding: 4rem 2rem;
    background: white;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 250px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
}

/* ===== Disclaimer ===== */
.disclaimer {
    padding: 2rem;
    max-width: 800px;
    margin: 2rem auto;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--radius);
    text-align: center;
}

.disclaimer h3 {
    margin-bottom: 0.5rem;
    color: #856404;
}

.disclaimer p {
    color: #856404;
}

/* ===== Form Container ===== */
.form-container {
    max-width: 450px;
    margin: 3rem auto;
    padding: 2rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26,115,232,0.2);
}

.form-link {
    text-align: center;
    margin-top: 1rem;
    color: var(--gray-color);
}

.message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    text-align: center;
    display: none;
}

.message.show {
    display: block;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== Dashboard ===== */
.dashboard-welcome {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), #4285f4);
    color: white;
}

.dashboard-welcome h2 {
    font-size: 1.8rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-card.pan-card {
    border-top-color: var(--secondary-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.pan-card h3 {
    color: var(--secondary-color);
}

.service-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--gray-color);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-action {
    text-align: center;
}

/* ===== Quick Info ===== */
.quick-info {
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.quick-info h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.info-card h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* ===== Service Header ===== */
.service-header {
    padding: 3rem 2rem;
    text-align: center;
    color: white;
}

.service-header.aadhaar-bg {
    background: linear-gradient(135deg, #1a73e8, #4285f4);
}

.service-header.pan-bg {
    background: linear-gradient(135deg, #34a853, #0f9d58);
}

.service-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ===== Video Section ===== */
.video-section {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.video-container {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.video-container h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-progress {
    margin-top: 1rem;
    text-align: center;
}

.video-progress p {
    color: var(--gray-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.1s linear;
}

/* ===== Service Options ===== */
.service-options {
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.service-options h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.option-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.option-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.option-card h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* ===== Process Pages ===== */
.process-header {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), #4285f4);
    color: white;
}

.process-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.process-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.process-section {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.process-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* ===== Documents List ===== */
.documents-list {
    display: grid;
    gap: 1.5rem;
}

.document-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--radius);
}

.doc-icon {
    font-size: 1.5rem;
}

.doc-info h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.doc-info ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.doc-info ul li {
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--gray-color);
    border: 1px solid var(--border-color);
}

/* ===== Steps List ===== */
.steps-list {
    display: grid;
    gap: 1rem;
}

.step-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--radius);
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.step-content p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* ===== Fee Table ===== */
.fee-table {
    overflow-x: auto;
}

.fee-table table {
    width: 100%;
    border-collapse: collapse;
}

.fee-table th,
.fee-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.fee-table th {
    background: var(--primary-color);
    color: white;
}

.fee-table tr:hover {
    background: var(--light-color);
}

/* ===== Payment Methods ===== */
.payment-methods {
    text-align: center;
}

.payment-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--light-color);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.payment-icon {
    font-size: 1.5rem;
}

/* ===== Payment Details ===== */
.payment-details {
    padding: 1rem 0;
}

.upi-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.upi-app {
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--radius);
    text-align: center;
}

.upi-app h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.card-info,
.card-requirements {
    margin: 1rem 0;
}

.card-info ul,
.card-requirements ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.card-info ul li,
.card-requirements ul li {
    background: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.banks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.bank {
    padding: 0.75rem;
    background: var(--light-color);
    border-radius: var(--radius);
    text-align: center;
    font-size: 0.9rem;
}

.netbanking-steps ol {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.netbanking-steps li {
    padding: 0.25rem 0;
}

.benefits {
    margin-top: 1rem;
    padding: 1rem;
    background: #d4edda;
    border-radius: var(--radius);
}

.benefits h4 {
    color: #155724;
    margin-bottom: 0.5rem;
}

.benefits ul {
    padding-left: 1.5rem;
}

.benefits li {
    color: #155724;
}

/* ===== Important Notes ===== */
.important-notes {
    padding-left: 1.5rem;
}

.important-notes li {
    margin-bottom: 0.5rem;
    color: var(--gray-color);
}

/* ===== CTA Section ===== */
.cta-section {
    text-align: center;
    padding: 2rem;
    background: var(--light-color);
    border-radius: var(--radius);
}

.cta-section h3 {
    margin-bottom: 0.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* ===== Admin Panel ===== */
.admin-header {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #5f6368, #202124);
    color: white;
}

.admin-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.table-container {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.table-container h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--light-color);
    font-weight: 600;
}

.data-table tr:hover {
    background: var(--light-color);
}

.no-data {
    text-align: center;
    color: var(--gray-color);
    padding: 2rem;
    display: none;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.success {
    background: #d4edda;
    color: #155724;
}

.status-badge.failed {
    background: #f8d7da;
    color: #721c24;
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card h4 {
    color: var(--gray-color);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.admin-actions {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.admin-actions h3 {
    margin-bottom: 1rem;
}

.admin-actions button {
    margin-right: 1rem;
}

.admin-footer {
    text-align: center;
    margin-top: 2rem;
}

.demo-credentials {
    text-align: center;
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

/* ===== Footer ===== */
footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
        gap: 0.5rem;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        text-align: center;
    }

    .hamburger {
        display: block;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

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

    .process-content {
        padding: 1rem;
    }

    .process-section {
        padding: 1.5rem;
    }

    .document-item {
        flex-direction: column;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
    }

    .fee-table {
        font-size: 0.85rem;
    }

    .fee-table th,
    .fee-table td {
        padding: 0.5rem;
    }

    .admin-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }

    .data-table {
        font-size: 0.85rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }

    .admin-actions button {
        margin-bottom: 0.5rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.5rem;
    }

    .form-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .process-section h3 {
        font-size: 1.1rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}