:root {
    --primary-color: #f68e2b;
    --secondary-color: #27ae60;
    --accent-color: #f39c12;
    --dark-color: #2c3e5e;
    --light-color: #f5f5f5;
    /* --text-color: #333; */
    --border-color: #ddd;
    --govt-blue: #1a4480;
    --govt-dark-blue: #162e51;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    font-size: large;
    /* color: var(--text-color); */
}

/* Header Styles */
.national-emblem {
    height: 60px;
    margin-right: 15px;
}

.main-header {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.portal-name {
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.portal-subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

.header-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.header-logos img {
    max-height: 70px;
    width: auto;
}

/* Navigation Styles */
.custom-navbar {
    justify-content: space-evenly;
    background: linear-gradient(to right, #f8f9fa, #e9ecef); /* light govt-style gradient */
    border: 1px solid #ccc;
    padding: 12px 0;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    font-weight: 500;
}

.custom-navbar .nav-link {
    color: #003366; /* Govt dark blue */
    font-size: 16px;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.custom-navbar .nav-link:hover {
    background: #dee2e6;
    border-radius: 4px;
    text-decoration: none;
}

.custom-navbar .nav-link.active {
    background: #003366;
    color: #fff !important;
    border-radius: 4px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
}

/* Content Styles */
.content-card {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.section-title {
    color: #2c3e50;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin: 0;
    /* font-size: 1.25rem; */
    /* width: fit-content; */
    background: #fbfbf8;
    border-radius: 9px;
    padding: 10px;
}

.feature-card {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s;
    height: 100%;
}

.feature-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cultural-border {
    border-top: 3px double var(--primary-color);
    border-bottom: 3px double var(--primary-color);
    padding: 5px 0;
    margin: 15px 0;
}

.cultural-pattern {
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 5px,
            rgba(211, 84, 0, 0.1) 5px,
            rgba(211, 84, 0, 0.1) 10px);
    padding: 10px;
    border-radius: 5px;
}

/* Form Styles */
.form-container{
    border-radius: 8px;
    padding: 11px;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}

.form-title {
    color: var(--dark-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(246, 142, 43, 0.25);
}

.star {
    color: #dc3545;
}

.govt-captcha {
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 15px;
}

.captcha-display {
    background: linear-gradient(45deg, #e9ecef, #f8f9fa);
    border: 1px solid #adb5bd;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 3px;
    color: #1a4480;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
}

.btn-govt {
    background: #1a4480;
    color: white;
    border: none;
    font-size: 14px;
}

.btn-govt:hover {
    background: #162e51;
    color: white;
}

.form-control-govt {
    border: 1px solid #adb5bd;
    font-size: 16px;
}

.form-control-govt:focus {
    border-color: #1a4480;
    box-shadow: 0 0 0 0.2rem rgba(26, 68, 128, 0.25);
}

.button-34 {
    background: var(--primary-color);
    border-radius: 999px;
    box-shadow: var(--primary-color) 0 10px 20px -10px;
    box-sizing: border-box;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    opacity: 1;
    outline: 0 solid transparent;
    padding: 12px 25px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    width: fit-content;
    word-break: break-word;
    border: 0;
    transition: all 0.3s;
}

.button-34:hover:not(:disabled) {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.button-34:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.form-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.form-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.form-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Footer Styles */
.footer {
    background: linear-gradient(to left, var(--govt-dark-blue), var(--govt-blue));
    color: white;
    padding: 2.5rem 0 1rem;
    border-top: 4px solid var(--govt-dark-blue);
    font-size: 0.95rem;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: whitesmoke;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h5:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30%;
    height: 2px;
    background-color: whitesmoke;
}

.footer p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.2rem 0;
    position: relative;
    padding-left: 1.2rem;
}

.footer-links a:before {
    content: '•';
    position: absolute;
    left: 0;
}

.footer-links a:hover {
    color: whitesmoke;
    padding-left: 1.5rem;
}

.social-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin-right: 0.7rem;
    transition: all 0.3s;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background-color: var(--govt-blue);
    color: whitesmoke;
    transform: translateY(-2px);
}

.govt-logos {
    display: flex;
    justify-content: start;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.govt-logo {
    height: 50px;
    opacity: 0.8;
    transition: opacity 0.8s;
    filter: brightness(0) invert(1);
}

.govt-logo:hover {
    opacity: 1;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2) !important;
    margin: 1.5rem 0;
}

.footer-bottom {
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.footer-contact-icon {
    color: whitesmoke;
    margin-right: 0.8rem;
    margin-top: 0.2rem;
    min-width: 16px;
}

/* Additional Elements */
.logo-img {
    width: 100%;
    height: 80px;
    object-fit: contain;
}

.logo-mobile {
    display: none;
}

.important-notice {
    border-left: 4px solid var(--accent-color);
    background-color: rgba(243, 156, 18, 0.1);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 0 5px 5px 0;
}

.info {
    display: none;
}

.contact-icon {
    width: 40px;
    height: 40px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f7ff;
    border-radius: 8px;
}

.timing-item {
    background: rgba(248, 249, 250);
}

.map-img {
    width: -webkit-fill-available;
}

.btn-primary {
    color: var(--govt-blue);
    background: whitesmoke;
    border: 2px solid var(--govt-blue);
}

.btn:hover {
    background-color: var(--govt-dark-blue);
    color: whitesmoke;
    transform: translateY(-2px);
}

/* Card Styles */
.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
}


.section-header-with-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

/* Radio Button Styles here */
.toggle-container {
    display: inline-flex;
    justify-content: end;
    border: 1px solid #ccc;
    border-radius: 50px;
    overflow: hidden;
    /* margin-left: auto !important; */
}

.toggle-container input[type="radio"] {
    display: none;
}

.toggle-container label {
    padding: 4px 12px;
    cursor: pointer;
    user-select: none;
    background-color: #f0f0f0;
    transition: background-color 0.3s, color 0.3s;
}

.toggle-container input[type="radio"]:checked+label {
    background-color: #007bff;
    color: white;
}

/* Radio Button Styles here */



/* Form Upload Styles */
form#documentUploadForm label {
    margin: 0.85em 0 0 0;
    font-weight: 500;
}


.info-bar {
    background-color: #e9ecef;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.upload-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    align-items: center;
}

.upload-label {
    flex: 0 0 40%;
    padding-right: 15px;
    font-weight: 500;
}

.upload-input {
    flex: 0 0 60%;
}

.inputoffile {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loading-overlay.active {
    display: flex;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    margin-bottom: 20px;
}

.loading-message {
    font-size: 1.2em;
    color: #333;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.blurred {
    filter: blur(4px);
}

.hiddendate {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .header-logos {
        flex-wrap: wrap;
        justify-content: space-around;
    }
	
	/* Mobile Navbar Styling */
    .custom-navbar-mobile {
        background: linear-gradient(to right, #f8f9fa, #e9ecef);
        /* border: 1px solid #ccc;
        border-radius: 6px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        padding: 10px; */
    }

    .custom-navbar-mobile .nav-item {
        margin: 5px 0;
    }

    .custom-navbar-mobile .nav-link {
        color: #003366; /* Govt-style dark blue */
        font-size: 16px;
        font-weight: 500;
        padding: 10px 12px;
        border-radius: 4px;
        transition: all 0.3s ease;
        margin: 0 10px;
    }

    .custom-navbar-mobile .nav-link:hover {
        background: #dee2e6;
        text-decoration: none;
    }

    .custom-navbar-mobile .nav-link.active {
        background: #003366;
        color: #fff !important;
        font-weight: 600;
        box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
    }

    .header-logos img {
        max-height: 60px;
    }
}

@media (max-width: 768px) {
    .portal-name {
        font-size: 1.4rem;
    }

    .logo-img {
        display: none;
    }

    .logo-mobile {
        display: block;
        width: 100%;
        max-height: 60px;
        object-fit: contain;
    }

    .important-notice {
        display: none;
    }

    .info {
        display: block;
        background-color: #fbeee5;
        border: none;
    }

    /* Mobile Navbar Styling */
    .custom-navbar-mobile {
        background: linear-gradient(to right, #f8f9fa, #e9ecef);
        /* border: 1px solid #ccc;
        border-radius: 6px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        padding: 10px; */
    }

    .custom-navbar-mobile .nav-item {
        margin: 5px 0;
    }

    .custom-navbar-mobile .nav-link {
        color: #003366; /* Govt-style dark blue */
        font-size: 16px;
        font-weight: 500;
        padding: 10px 12px;
        border-radius: 4px;
        transition: all 0.3s ease;
        margin: 0 10px;
    }

    .custom-navbar-mobile .nav-link:hover {
        background: #dee2e6;
        text-decoration: none;
    }

    .custom-navbar-mobile .nav-link.active {
        background: #003366;
        color: #fff !important;
        font-weight: 600;
        box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
    }

    .header-logos img {
        max-height: 50px;
    }

    .feature-card {
        margin-bottom: 15px;
    }

    .navbar-collapse {
        overflow: auto;
        padding: 4px 0 0 0;
        transition: height 1s all;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .upload-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .upload-label {
        flex: 0 0 100%;
        text-align: left;
        padding-right: 0;
        margin-bottom: 5px;
    }

    .upload-input {
        flex: 0 0 100%;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .content-card {
        padding: 15px;
    }

    .header-logos {
        gap: 5px;
    }

    .header-logos img {
        max-height: 40px;
    }

    .footer {
        padding: 1.5rem 0 1rem;
    }

    .footer .col-lg-4 {
        margin-bottom: 1.5rem;
    }
}