*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --page-bg: #e5e6e6;
    --nav-blue: #3778df;
    --notice-red: #ff1d17;
    --text-dark: #1f2d3d;
    --link-blue: #2b74d6;
    --line-gray: #b4b4b4;
    --card-bg: #efefef;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: var(--page-bg);
    color: var(--text-dark);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

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

.site-header {
    width: 100%;
    padding: 10px 20px 10px;
}

.header-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.gov-logo {
    width: 105px;
    height: auto;
}

.header-title {
    text-align: right;
}

.header-title h1 {
    margin: 10px 0 4px;
    font-size: 18px;
    font-weight: 700;
}

.header-title p {
    margin: 0;
    font-size: 16px;
    color: #3f84d8;
}

.notice {
    width: 100%;
    padding: 4px 0 6px;
}

.notice-ticker {
    background: var(--notice-red);
    width: 100%;
    overflow: hidden;
}

.notice-track {
    display: inline-flex;
    align-items: center;
    width: max-content;
    white-space: nowrap;
    padding-left: 100%;
    animation: notice-scroll 44s linear infinite;
}

.notice-item {
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    padding: 8px 42px;
    display: inline-block;
}

@keyframes notice-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.main-nav {
    width: 100%;
    background: var(--nav-blue);
    height: 40px;
}

.nav-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    min-height: 40px;
    height: 40px;
}

.nav-links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.nav-links li {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
}

.nav-links li + li::before {
    content: "|";
    color: rgba(255, 255, 255, 0.78);
    margin: 0 7px;
}

.nav-links a {
    color: #fff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
}

.pill-btn {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 2px;
    background: #ffa500;
    animation: pill-color-swap 0.9s step-start infinite;
}

@keyframes pill-color-swap {
    0%,
    100% {
        background: #ffa500;
    }
    50% {
        background: #40e0d0;
    }
}

.lang-switch a {
    color: #fff;
    font-size: 14px;
    line-height: 1;
}

.nav-h5-row {
    display: none;
}

.main-content {
    width: 100%;
    padding: 30px 0 135px;
}

.challan-search-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 16px;
}

.challan-search-card {
    width: min(520px, calc(100% - 24px));
    background: #fff;
    border: 1px solid #c8c8c8;
    padding: 24px;
}

.challan-search-card h2 {
    margin: 0 0 18px;
    padding: 0 0 18px;
    border-bottom: 1px solid #e2e2e2;
    color: #202020;
    font-size: 26px;
    font-weight: 400;
    text-align: center;
}

.challan-search-form {
    display: flex;
    flex-direction: column;
    padding: 22px;
    background: #f3f1f1;
}

.challan-search-form label {
    display: block;
    margin-bottom: 7px;
    color: #333;
    font-size: 14px;
}

.challan-search-form label span {
    color: #737373;
    font-size: 12px;
}

.challan-search-form input {
    width: 100%;
    height: 46px;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    background: #fff;
    padding: 10px 14px;
    color: #333;
    font-size: 16px;
}

.challan-search-form input:focus {
    outline: none;
    border-color: #249f45;
    box-shadow: 0 0 0 2px rgb(36 159 69 / 15%);
}

.challan-search-form input.field-empty {
    border-color: #c62828;
    background: rgb(255, 228, 225);
}

.search-btn {
    width: 100%;
    border: 0;
    border-radius: 4px;
    background: #27a844;
    color: #fff;
    font-size: 16px;
    margin-top: 20px;
    padding: 12px 10px;
    cursor: pointer;
}

.search-btn:hover {
    background: #218c3a;
}

.search-btn:focus-visible {
    outline: 3px solid rgb(39 168 68 / 30%);
    outline-offset: 2px;
}

.search-message {
    margin: 8px 0 0;
    min-height: 0;
    font-size: 12px;
    color: #c62828;
}

.tagline {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #c3c3c3;
    color: #1c1c1c;
    background: #f6f6f6;
    font-style: italic;
    font-size: 12px;
}

.site-footer {
    width: 100%;
    padding: 26px 20px 4px 16px;
}

.footer-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.brand-left {
    width: 108px;
    height: auto;
}

.brand-right {
    width: 196px;
    height: auto;
}

.footer-center {
    flex: 1 1 auto;
    text-align: center;
    font-size: 16px;
    color: #1f1f1f;
}

.footer-center p {
    margin: 5px 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 14px;
    row-gap: 6px;
    font-weight: 600;
}

.footer-links a + a::before {
    content: "|";
    color: currentColor;
    margin-right: 12px;
}

.copyright {
    color: #8f8f8f;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.img-box {
    width: 200px;
}

@media (max-width: 768px) {
    .site-header {
        padding: 10px 12px 8px;
    }

    .header-row {
        display: block;
    }

    .gov-logo {
        display: block;
        margin: 0 auto;
    }

    .header-title {
        width: 100%;
        margin-top: 8px;
        text-align: right;
    }

    .header-title h1,
    .header-title p {
        display: block;
        width: 100%;
    }

    .nav-links {
        flex-wrap: wrap;
    }

    .nav-links li {
        display: none;
    }

    .nav-links li:first-of-type,
    .nav-links li:last-of-type {
        display: flex;
    }

    .nav-row > .nav-actions,
    .nav-row > .lang-switch {
        display: none;
    }

    .nav-h5-row {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 6px 12px;
    }

    .nav-h5-row .nav-actions {
        margin-left: 0;
    }

    .nav-h5-row .pill-btn {
        padding: 6px 12px;
    }
    .nav-h5-row .lang-switch {
        background: var(--nav-blue);
        padding: 4px 16px;
    }
    .nav-h5-row .lang-switch a {
        display: inline-block;
        min-width: 44px;
        text-align: right;
    }

    .main-content {
        padding: 50px 0 30px;
    }

    .challan-search-section {
        padding: 0 12px;
        row-gap: 12px;
    }

    .challan-search-card {
        width: 100%;
        padding: 20px 16px;
    }

    .challan-search-card h2 {
        font-size: 24px;
    }

    .challan-search-form {
        padding: 18px 14px;
    }

    .challan-search-form input {
        height: 46px;
        font-size: 16px;
        padding: 10px 12px;
    }

    .search-btn {
        min-height: 46px;
        margin-top: 18px;
    }

    .tagline {
        padding: 8px 14px;
    }

    .footer-links{
        column-gap: 6px;
    }
    .footer-links a + a::before{
      margin-right: 6px;
    }
    .footer-row{
      flex-direction: column;
    }
    .img-box{
      width: auto;
    }
}
