html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.bg-dangerlight {
    background: #e4840e
}

.bg-successlight {
    background: #29ed33
}

:root {
    --primary-color: #1a5276;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #27ae60;
}

body {
    font-family: 'Noto Sans', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* Header Styles */
.gec-main-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.gec-header-top {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.gec-header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.gec-logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.gec-gov-logo,
.gec-eci-logo {
    height: 60px;
    width: auto;
}

.gec-logo-text {
    display: flex;
    flex-direction: column;
}

.gec-logo-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.gec-logo-subtitle {
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.gec-header-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.gec-user-greeting {
    color: var(--dark-color);
    font-weight: 500;
}

.gec-header-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .gec-header-link:hover {
        color: var(--accent-color);
    }

/* Navigation Styles */
.gec-main-nav {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0;
}

.gec-navbar-nav {
    width: 100%;
    justify-content: center;
    gap: 10px;
}

.gec-nav-item {
    margin: 0 5px;
}

.gec-nav-link {
    color: white !important;
    font-weight: 500;
    padding: 12px 20px !important;
    border-radius: 4px;
    transition: all 0.3s;
    position: relative;
}

    .gec-nav-link.active,
    .gec-nav-link:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

        .gec-nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 20px;
            right: 20px;
            height: 3px;
            background-color: white;
            border-radius: 3px 3px 0 0;
        }

.gec-dropdown-menu {
    background-color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 4px 4px;
    margin-top: 0;
    padding: 0;
}

.gec-dropdown-item {
    color: var(--dark-color);
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

    .gec-dropdown-item:hover {
        background-color: var(--light-color);
        color: var(--primary-color);
    }

/* Main Content */
.gec-main-content {
    flex: 1;
    padding: 30px 0;
    background-color: #fff;
}

.container {
    max-width: 1200px;
}

/* Footer Styles */
.gec-new-footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 1rem;
    margin-top: auto;
}

.gec-footer-content p {
    margin: 0;
    padding: 5px 0;
}

.gec-header-decoration {
    height: 5px;
    background: linear-gradient(90deg, #1a5276, #2980b9, #e74c3c, #27ae60);
    margin-bottom: -1px;
}

.form-control.is-valid {
    border-color: #28a745;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%2328a745" height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M13.485 1.929l-7.07 7.071-3.536-3.535-1.414 1.414 4.95 4.95 8.485-8.485z"/></svg>');
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: 1rem 1rem;
    padding-right: 2rem;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23dc3545" height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1zm0 1a6 6 0 1 0 0 12A6 6 0 0 0 8 2zm-.707 3.293l1.414 1.414L8.414 8l1.293 1.293-1.414 1.414L7 9.414l-1.293 1.293-1.414-1.414L5.586 8 4.293 6.707l1.414-1.414L7 6.586l1.293-1.293z"/></svg>');
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: 1rem 1rem;
    padding-right: 2rem;
}

.step-list {
    list-style: none;
    padding: 0;
    counter-reset: step;
}

    .step-list li {
        display: flex;
        align-items: flex-start;
        margin-bottom: 1.5rem;
        position: relative;
    }

.step-circle {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #000;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1rem;
    position: relative;
}

.step-content {
    flex-grow: 1;
}

.badge {
    margin-left: 0.3rem;
    font-size: 0.8rem;
    padding: 0.3em 0.5em;
}

:root {
    --primary-blue: #0d6efd;
    --primary-dark: #0b5ed7;
    --muted: #6c757d;
    --light-gray: #f5f7fa;
    --border-gray: #e9ecef;
    --footer-bg-start: #0d6efd;
    --footer-bg-end: #0b5ed7;
    --footer-text: #f7fbff;
    --footer-link: #dff0ff;
    --footer-link-hover: #ffffff;
    --footer-social-start: rgba(255,255,255,0.08);
    --footer-social-end: rgba(255,255,255,0.02);
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #fff;
    color: #212529;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1 0 auto;
    padding-bottom: 1.25rem;
}

/* Top bar */
.top-bar {
    min-height: 48px;
    background: var(--primary-blue);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0.35rem 1rem;
    font-size: 0.9rem;
    z-index: 1040;
}

    .top-bar .gov-text {
        font-weight: 600;
        letter-spacing: 0.2px;
    }

/* language toggle (restored UI) */
.language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

    .language-toggle button {
        border: none;
        background: transparent;
        color: #fff;
        padding: 0 4px;
        font-size: 1.05rem;
        cursor: pointer;
        line-height: 1;
    }

    .language-toggle .lang-sep {
        opacity: 0.85;
        color: rgba(255,255,255,0.95);
    }

    .language-toggle .lang-active {
        text-decoration: none;
        font-weight: 800;
        text-shadow: 0 0 0 rgba(255,255,255,0.12);
        /* add a subtle background circle for emphasis (keeps original look) */
        padding: 2px 6px;
        border-radius: 4px;
        background: rgba(255,255,255,0.06);
    }

    .language-toggle button:focus {
        outline: none;
    }

.language-svg-icon { /* keep for backward compatibility with any older code */
    cursor: pointer;
    display: flex;
    align-items: center;
}

    .language-svg-icon svg path {
        fill: #fff;
    }

.social-media-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

    .social-media-container .primary-icon {
        font-size: 1.05rem;
        color: #fff;
        cursor: pointer;
    }

.social-icons-hover {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    background: #fff;
    padding: .6rem;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(9,30,66,0.16);
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all .18s ease-in-out;
    z-index: 9999;
    pointer-events: auto;
    min-width: 44px;
}

.social-media-container:hover .social-icons-hover,
.social-media-container:focus-within .social-icons-hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.social-icons-hover a {
    color: var(--muted);
    font-size: 1.05rem;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

    .social-icons-hover a:hover {
        color: var(--primary-blue);
        background: rgba(13,110,253,0.06);
    }

/* Middle / logos */
.middle-bar {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--border-gray);
}

.logo {
    height: 72px;
    max-width: 260px;
    object-fit: contain;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-text-marathi {
    font-weight: 700;
    font-size: 1.05rem;
    color: #222;
}

.logo-text-english {
    font-size: 0.92rem;
    color: var(--muted);
}

/* Navbar (minimal) */
.main-navbar {
    min-height: 56px;
    background-color: var(--primary-blue);
    transition: all .28s ease-in-out;
    z-index: 1035;
}

    .main-navbar .container {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .main-navbar .nav-link {
        color: rgba(255,255,255,0.95);
        padding: .6rem .9rem;
        border-radius: 6px;
        font-weight: 600;
        transition: background-color .18s ease, color .18s ease;
    }

        .main-navbar .nav-link:hover {
            background: rgba(255,255,255,0.08);
            color: #fff;
            text-decoration: none;
        }

        .main-navbar .nav-link.active {
            background: rgba(255,255,255,0.18);
            color: #fff !important;
            box-shadow: inset 0 -3px 0 rgba(255,255,255,0.08);
        }

    .main-navbar.scrolled {
        background-color: #fff;
        box-shadow: 0 6px 20px rgba(23,23,23,0.06);
    }

        .main-navbar.scrolled .nav-link {
            color: #333;
        }

            .main-navbar.scrolled .nav-link.active {
                color: var(--primary-blue) !important;
                background: rgba(13,110,253,0.06);
                box-shadow: none;
            }

.navbar-toggler {
    border: none;
    padding: .25rem .6rem;
    background: transparent;
}

    .navbar-toggler:focus {
        outline: none;
        box-shadow: none;
    }

    .navbar-toggler .bar {
        display: block;
        width: 22px;
        height: 2px;
        background: #fff;
        margin: 4px 0;
        transition: transform .22s ease, opacity .2s ease;
        border-radius: 1px;
    }

.main-navbar.scrolled .navbar-toggler .bar {
    background: #333;
}

.navbar-user-section {
    z-index: 1050;
    position: relative;
}

/* Footer */
.site-footer {
    background: linear-gradient(180deg, var(--footer-bg-start), var(--footer-bg-end));
    color: var(--footer-text);
    padding: 44px 0 12px;
    margin-top: 2rem;
}

    .site-footer h6 {
        color: rgba(255,255,255,0.95);
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 1.6px;
        font-weight: 700;
    }

    .site-footer p, .copyright-text, .version-text {
        color: rgba(255,255,255,0.88);
    }

.footer-links {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        color: var(--footer-link);
        text-decoration: none;
        transition: color .18s ease;
    }

        .footer-links a:hover {
            color: var(--footer-link-hover);
            text-decoration: underline;
        }

.footer-social-icons {
    padding-left: 0;
    list-style: none;
    margin: 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

    .footer-social-icons li {
        display: inline-block;
    }

    .footer-social-icons a {
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: linear-gradient(180deg, var(--footer-social-start), var(--footer-social-end));
        border: 1px solid rgba(255,255,255,0.06);
        box-shadow: 0 6px 18px rgba(255,255,255,0.04);
        transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
    }

        .footer-social-icons a:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 28px rgba(0,0,0,0.12);
        }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 14px;
    margin-top: 18px;
    background: transparent;
}

.copyright-text, .version-text {
    color: rgba(255,255,255,0.88);
    font-size: 0.92rem;
    margin: 0;
}

@media (max-width: 767.98px) {
    .middle-bar {
        padding: 0.5rem;
    }

    .logo {
        height: 56px;
    }

    .top-bar {
        font-size: 0.82rem;
        padding: .25rem .6rem;
    }

    .main-navbar .nav-link {
        padding: .45rem .6rem;
        font-size: .95rem;
    }

    .social-icons-hover {
        right: -6px;
    }
}

.break-word {
    word-break: break-all;
    word-wrap: break-word;
}

.gov-text a {
    color: white;
}

    .gov-text a
    .gov-text a:visited,
    .gov-text a:active,
    .gov-text a:hover {
        color: white;
    }
