/* ============================================================
   UdyamHelper — Main Stylesheet
   Government-style: Blue #1a3c8f · Saffron #FF7722 · White
   Font: Noto Sans (fallback: Arial, sans-serif)
   ============================================================ */

:root {
    --blue:       #1a3c8f;
    --blue-dark:  #102660;
    --blue-light: #e8eef8;
    --saffron:    #FF7722;
    --saffron-lt: #fff3eb;
    --green:      #138808;
    --white:      #ffffff;
    --gray-50:    #f8f9fa;
    --gray-100:   #f1f3f5;
    --gray-300:   #dee2e6;
    --gray-600:   #6c757d;
    --gray-800:   #343a40;
    --text:       #1c1c2e;
    --radius:     6px;
    --shadow:     0 2px 12px rgba(26,60,143,.10);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Noto Sans', Arial, sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--saffron); }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--blue-dark);
    line-height: 1.3;
}

/* ── Top Bar ── */
.gov-topbar {
    background: var(--blue-dark);
    color: rgba(255,255,255,.85);
    font-size: 12.5px;
    border-bottom: 2px solid var(--saffron);
}
.gov-topbar a.top-link {
    color: rgba(255,255,255,.85);
    font-size: 12.5px;
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,.25);
    transition: all .2s;
}
.gov-topbar a.top-link:hover {
    background: var(--saffron);
    color: var(--white);
    border-color: var(--saffron);
}

/* ── Site Header ── */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(26,60,143,.12);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.logo-name {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: -.4px;
    line-height: 1;
}
.logo-tagline {
    font-size: 11px;
    color: var(--gray-600);
    letter-spacing: .3px;
}

/* ── Desktop Nav ── */
.nav-link-item {
    padding: 6px 12px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 14px;
    color: var(--blue-dark);
    transition: background .2s, color .2s;
}
.nav-link-item:hover,
.nav-link-item.active {
    background: var(--blue-light);
    color: var(--blue);
}
.btn-apply {
    background: var(--saffron);
    color: var(--white) !important;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    transition: background .2s, transform .15s;
}
.btn-apply:hover { background: #e06010; transform: translateY(-1px); }

/* ── Mobile Nav ── */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--gray-300);
    padding-top: 8px;
}
.mobile-nav a {
    display: block;
    padding: 10px 12px;
    color: var(--blue-dark);
    font-weight: 500;
    border-radius: var(--radius);
}
.mobile-nav a:hover { background: var(--blue-light); }

/* ── Saffron Strip ── */
.saffron-strip { height: 4px; background: var(--saffron); }

/* ── Buttons ── */
.btn-primary-gov {
    background: var(--blue);
    color: var(--white);
    border: none;
    padding: 10px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s, transform .15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-primary-gov:hover { background: var(--blue-dark); transform: translateY(-1px); color: var(--white); }

.btn-saffron {
    background: var(--saffron);
    color: var(--white);
    border: none;
    padding: 10px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-saffron:hover { background: #e06010; color: var(--white); }

/* ── Section Helpers ── */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-alt { background: var(--gray-50); }

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: 8px;
}
.section-subtitle {
    color: var(--gray-600);
    font-size: 15px;
    margin-bottom: 0;
}
.section-divider {
    width: 48px;
    height: 4px;
    background: var(--saffron);
    border-radius: 2px;
    margin: 12px auto 32px;
}
.section-divider.left { margin-left: 0; }

/* ── Hero / Register Card ── */
.hero-section {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, #1e4dbd 100%);
    color: var(--white);
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    right: -80px; top: -80px;
    width: 400px; height: 400px;
    background: rgba(255,119,34,.08);
    border-radius: 50%;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
}
.hero-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 12px;
}
.hero-title span { color: var(--saffron); }
.hero-sub {
    font-size: 15px;
    color: rgba(255,255,255,.80);
    margin-bottom: 24px;
}
.hero-bullets { list-style: none; padding: 0; margin: 0; }
.hero-bullets li {
    padding: 4px 0;
    color: rgba(255,255,255,.85);
    font-size: 14px;
}
.hero-bullets li::before {
    content: '✓';
    color: var(--saffron);
    font-weight: 700;
    margin-right: 8px;
}

/* ── Quick Register Form Card ── */
.quick-form-card {
    background: var(--white);
    border-radius: 10px;
    padding: 32px;
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
    border-top: 4px solid var(--saffron);
}
.quick-form-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 20px;
}
.form-label { font-weight: 500; font-size: 13.5px; color: var(--gray-800); }
.form-control, .form-select {
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    padding: 9px 12px;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26,60,143,.12);
    outline: none;
}

/* ── Service Cards ── */
.service-card {
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: 10px;
    padding: 28px 24px;
    height: 100%;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}
.service-card.featured {
    border-color: var(--saffron);
    border-width: 2px;
}
.service-card.featured::before {
    content: 'POPULAR';
    position: absolute; top: 12px; right: -22px;
    background: var(--saffron); color: var(--white);
    font-size: 10px; font-weight: 700;
    padding: 3px 28px;
    transform: rotate(45deg);
}
.service-icon {
    width: 56px; height: 56px;
    background: var(--blue-light);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--blue);
    margin-bottom: 16px;
}
.service-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.service-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--blue);
    margin: 12px 0 4px;
}
.service-price span { font-size: 13px; font-weight: 400; color: var(--gray-600); }
.service-features { list-style: none; padding: 0; margin: 12px 0 20px; }
.service-features li {
    padding: 3px 0;
    font-size: 13.5px;
    color: var(--gray-800);
}
.service-features li::before { content: '✓ '; color: var(--green); font-weight: 700; }

/* ── How It Works ── */
.step-card {
    text-align: center;
    padding: 24px 16px;
}
.step-num {
    width: 52px; height: 52px;
    background: var(--blue);
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 auto 16px;
}
.step-card h5 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 13.5px; color: var(--gray-600); }

/* ── Testimonials ── */
.testimonial-card {
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: 10px;
    padding: 24px;
    height: 100%;
}
.testimonial-card .stars { color: #f5a623; font-size: 13px; margin-bottom: 10px; }
.testimonial-card p { font-size: 14px; color: var(--gray-800); font-style: italic; }
.testimonial-card .author { font-weight: 700; color: var(--blue-dark); font-size: 14px; margin-top: 12px; }
.testimonial-card .author-meta { font-size: 12px; color: var(--gray-600); }

/* ── Trust Badges ── */
.trust-bar {
    background: var(--blue-light);
    border-top: 1px solid #c5d2ee;
    border-bottom: 1px solid #c5d2ee;
    padding: 18px 0;
}
.trust-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 16px;
}
.trust-item i { font-size: 1.6rem; color: var(--blue); }
.trust-item strong { display: block; font-size: 13.5px; color: var(--blue-dark); font-weight: 700; }
.trust-item span { font-size: 12px; color: var(--gray-600); }

/* ── Multi-step Apply Form ── */
.apply-stepper {
    display: flex;
    gap: 0;
    margin-bottom: 36px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1.5px solid var(--gray-300);
}
.step-tab {
    flex: 1;
    padding: 12px 8px;
    text-align: center;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 600;
    border-right: 1px solid var(--gray-300);
    position: relative;
    cursor: default;
}
.step-tab:last-child { border-right: none; }
.step-tab.active { background: var(--blue); color: var(--white); }
.step-tab.done { background: var(--green); color: var(--white); }
.step-tab .step-num-sm {
    display: block;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    line-height: 22px;
    font-size: 11px;
    margin: 0 auto 4px;
}
.form-step { display: none; }
.form-step.active { display: block; }

/* ── Dashboard ── */
.app-status-card {
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    transition: box-shadow .2s;
}
.app-status-card:hover { box-shadow: var(--shadow); }

/* ── Admin Panel ── */
.admin-sidebar {
    width: 240px;
    min-height: 100vh;
    background: var(--blue-dark);
    position: fixed;
    top: 0; left: 0;
    z-index: 100;
    padding-top: 60px;
}
.admin-sidebar .sidebar-brand {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: rgba(0,0,0,.25);
    padding: 14px 20px;
    color: var(--white);
    font-weight: 800;
    font-size: 1rem;
}
.admin-sidebar a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 20px;
    color: rgba(255,255,255,.75);
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all .2s;
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(255,255,255,.08);
    color: var(--white);
    border-left-color: var(--saffron);
}
.admin-main { margin-left: 240px; padding: 24px; }
.admin-stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    border: 1.5px solid var(--gray-300);
    border-top: 4px solid var(--blue);
}
.admin-stat-card.saffron { border-top-color: var(--saffron); }
.admin-stat-card.green   { border-top-color: var(--green);   }
.admin-stat-card.red     { border-top-color: #dc3545;        }

/* ── Tables ── */
.gov-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.gov-table th {
    background: var(--blue);
    color: var(--white);
    padding: 11px 14px;
    text-align: left;
    font-weight: 600;
}
.gov-table td { padding: 10px 14px; border-bottom: 1px solid var(--gray-300); vertical-align: middle; }
.gov-table tr:hover td { background: var(--blue-light); }

/* ── Pricing Page ── */
.pricing-card {
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    padding: 32px 28px;
    text-align: center;
    height: 100%;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.pricing-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-4px); }
.pricing-card.recommended { border-color: var(--saffron); position: relative; }
.pricing-card .badge-rec {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--saffron); color: var(--white);
    padding: 4px 20px; border-radius: 20px; font-size: 12px; font-weight: 700;
}
.pricing-amount { font-size: 2.4rem; font-weight: 800; color: var(--blue); line-height: 1; }
.pricing-amount sup { font-size: 1rem; vertical-align: top; margin-top: 6px; }

/* ── Footer ── */
.site-footer { background: var(--gray-800); color: rgba(255,255,255,.8); }
.footer-top { padding: 48px 0 32px; }
.footer-brand { font-size: 1.25rem; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.footer-desc { font-size: 13.5px; color: rgba(255,255,255,.6); }
.footer-heading { font-size: 13px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-links a {
    font-size: 13.5px;
    color: rgba(255,255,255,.65);
    padding: 3px 0;
    display: block;
    transition: color .2s;
}
.footer-links a:hover { color: var(--saffron); }
.social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    color: rgba(255,255,255,.7);
    margin-right: 6px;
    transition: all .2s;
}
.social-links a:hover { background: var(--saffron); border-color: var(--saffron); color: var(--white); }
.footer-trust { background: rgba(0,0,0,.2); font-size: 13px; color: rgba(255,255,255,.6); }
.footer-bottom {
    background: rgba(0,0,0,.3);
    padding: 14px 0;
    font-size: 12.5px;
    color: rgba(255,255,255,.5);
    border-top: 1px solid rgba(255,255,255,.08);
}
.footer-bottom .disclaimer { font-size: 11.5px; color: rgba(255,200,100,.7); }

/* ── Alert overrides ── */
.alert { border-radius: var(--radius); font-size: 14px; }

/* ── Responsive ── */
@media (max-width: 767px) {
    .section { padding: 40px 0; }
    .hero-section { padding: 32px 0 40px; }
    .quick-form-card { padding: 22px 16px; }
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; }
    .apply-stepper { flex-direction: column; }
    .step-tab { border-right: none; border-bottom: 1px solid var(--gray-300); text-align: left; display: flex; gap: 10px; align-items: center; }
}

@media (max-width: 575px) {
    .service-card { padding: 20px 16px; }
    .pricing-card { padding: 24px 16px; }
}

/* ═══════════════════════════════════════════════════════════════════
   SHARED UTILITIES — used across service pages, about, dashboard, etc.
   ═══════════════════════════════════════════════════════════════════ */

/* Page hero banner */
.page-hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, #1e56c0 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
}
.page-hero .breadcrumb-item a { color: rgba(255,255,255,.7); text-decoration: none; }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,.9); }
.page-hero .breadcrumb-divider { color: rgba(255,255,255,.5); }
.page-hero-title { font-size: 2rem; font-weight: 800; margin: .5rem 0 .4rem; }
.page-hero-subtitle { font-size: 1rem; opacity: .82; margin: 0; }

/* Section helpers */
.section-pad { padding: 4rem 0; }
.section-badge {
    display: inline-block;
    background: #e8f0fe;
    color: var(--blue-dark);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: .35rem .9rem;
    border-radius: 20px;
    margin-bottom: .75rem;
}
.section-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: 1rem;
}

/* Service card used on about & home */
.service-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 0 2px 14px rgba(26,60,143,.07);
    border: 1px solid #e8efff;
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(26,60,143,.13);
}
.service-icon {
    font-size: 2rem;
    color: var(--blue-dark);
    margin-bottom: .85rem;
}

/* Saffron CTA button */
.btn-saffron {
    background: var(--saffron);
    color: #fff;
    border: none;
    font-weight: 700;
    padding: .65rem 1.5rem;
    border-radius: 8px;
    transition: background .2s, transform .15s;
}
.btn-saffron:hover { background: #e56800; color: #fff; transform: translateY(-1px); }

/* Dashboard app-status-card */
.app-status-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8efff;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 10px rgba(26,60,143,.05);
}

/* Status tracker used in dashboard & view-application */
.app-tracker {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: .5rem;
}
.tracker-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    min-width: 80px;
}
.ts-dot {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #e5e5e5;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 700; color: #999;
    margin-bottom: .35rem;
}
.tracker-step.done .ts-dot  { background: var(--blue-dark); color: #fff; }
.tracker-step.current .ts-dot {
    background: var(--saffron); color: #fff;
    box-shadow: 0 0 0 4px rgba(255,119,34,.2);
}
.ts-label { font-size: .7rem; text-align: center; color: #666; white-space: nowrap; }
.tracker-step.done .ts-label,
.tracker-step.current .ts-label { color: #333; font-weight: 600; }
.tracker-line { flex: 1; height: 3px; background: #e5e5e5; min-width: 20px; }
.tracker-line.done { background: var(--blue-dark); }

/* Admin stat cards */
.admin-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    border: 1px solid #eee;
}
.stat-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff; flex-shrink: 0;
}
.stat-value { font-size: 1.5rem; font-weight: 700; color: #1a1a2e; }
.stat-label { font-size: .78rem; color: #777; }

/* Gov table */
.gov-table thead { background: var(--blue-dark); color: #fff; }
.gov-table thead th { font-weight: 600; padding: .75rem 1rem; border: none; }
.gov-table tbody td { padding: .7rem 1rem; vertical-align: middle; border-color: #f0f0f0; }
.gov-table tbody tr:hover { background: #f8faff; }
