@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300&display=swap');

:root {
    --egov-black: #000;
    --egov-red: #d50a2c;
    --egov-blue: #38a1ff;
    --egov-page: #f2f2f2;
    --egov-border: #ababab;
    --egov-text: #4d4d4d;
    --egov-muted: #666;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: #fff;
    color: var(--egov-text);
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
}

a,
button {
    transition: .25s all ease;
}

a,
a:hover,
button:hover {
    text-decoration: none;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

@media (min-width: 576px) {
    .container { max-width: 540px; }
}

@media (min-width: 768px) {
    .container { max-width: 720px; }
}

@media (min-width: 993px) {
    .container { max-width: 960px; }
}

@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}

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

/* Header */

#egov-header {
    background-color: var(--egov-black);
    display: block;
    min-height: 60px;
    padding: 10px 0;
    width: 100%;
}

.header-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 40px;
    position: relative;
}

#egov-header .navbar-brand,
#egov-header .navbar-brand img {
    display: block;
    height: auto;
    margin: 0;
    max-height: 40px;
    max-width: 100%;
    padding: 0;
    width: auto;
}

.header-navigation {
    align-items: center;
    display: flex;
    justify-content: flex-end;
}

#egov-header .main-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#egov-header .main-menu li {
    margin: 0;
    padding: 0;
}

#egov-header .main-menu a {
    color: #fff;
    font-size: 16px;
    line-height: 20px;
    text-decoration: none;
}

#egov-header .main-menu a:hover,
#egov-header .main-menu a:focus {
    color: #d9d9d9;
    outline: none;
}

#openMenu {
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    display: none;
    font-size: 24px;
    line-height: 24px;
    margin: 0;
    padding: 4px 0 4px 12px;
}

#openMenu:focus {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 992px) {
    #egov-header {
        min-height: 50px;
        padding: 5px 0;
    }

    #egov-header .navbar-brand img {
        max-height: 40px;
        max-width: 120px;
    }

    #openMenu {
        display: block;
    }

    #egov-header .main-menu {
        background: #000;
        border-top: 1px solid #999;
        display: none;
        left: 0;
        position: absolute;
        right: 0;
        top: 45px;
        z-index: 1000;
    }

    #egov-header .main-menu.active {
        display: block;
    }

    #egov-header .main-menu li {
        width: 100%;
    }

    #egov-header .main-menu a {
        border-bottom: 1px solid #999;
        display: block;
        font-size: 14px;
        line-height: 18px;
        padding: 9px 15px;
        width: 100%;
    }

    #egov-header .main-menu a:hover,
    #egov-header .main-menu a:focus {
        background: #444343;
        color: #fff;
    }
}

/* Breadcrumbs */

#breadcrumb-row {
    background-color: #ccc;
    border-bottom: 1px solid #999;
    color: var(--egov-muted);
    font-size: 13px;
    line-height: 17px;
    padding: 4px 0;
}

#breadcrumb-row .col-12 {
    display: flex;
    flex-wrap: wrap;
}

#breadcrumb-row .breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

#breadcrumb-row .breadcrumb:not(:first-child)::before {
    color: #4d4d4d;
    content: '> ';
    padding: 0 5px;
}

#breadcrumb-row .breadcrumb a,
#breadcrumb-row .breadcrumb span {
    color: #4d4d4d;
    font-size: 13px;
    line-height: 17px;
}

#breadcrumb-row .breadcrumb a {
    text-decoration: underline;
}

#breadcrumb-row .breadcrumb a:hover {
    color: #000;
}

/* Service page */

#fullPage {
    background-color: var(--egov-page);
    display: block;
    min-height: calc(100vh - 192px);
    padding: 20px 0 30px;
    width: 100%;
}

.dashboard-title-box {
    align-items: flex-start;
    display: flex;
    width: 100%;
}

.dashboard-title-box > .page-back {
    color: var(--egov-muted);
    flex: 0 0 25px;
    font-family: Arial, sans-serif;
    font-size: 36px;
    line-height: 30px;
    margin-top: -1px;
}

.dashboard-title-box > .page-back:hover,
.dashboard-title-box > .page-back:focus {
    color: #000;
}

.dashboard-title-box > h1 {
    color: #000;
    font-size: 28px;
    font-weight: 500;
    line-height: 32px;
    margin: 0 0 8px;
}

#egovContent {
    text-align: center;
}

#egovContent h1,
#egovContent h2,
#egovContent h3,
#egovContent h4,
#egovContent h5,
#egovContent h6,
#egovContent p,
#egovContent a,
#egovContent span,
#egovContent div,
#egovContent label,
#egovContent input,
#egovContent button {
    font-family: 'Roboto', Arial, sans-serif;
}

#egovContent h2 {
    color: #000;
    font-size: 22px;
    font-weight: 500;
    line-height: 26px;
    margin: 0 0 16px;
}

#egovContent p,
#egovContent div {
    color: var(--egov-text);
    font-size: 16px;
    line-height: 20px;
}

#egovContent .content-box {
    display: inline-block;
    margin: 10px 0 30px;
    max-width: 900px;
    position: relative;
    text-align: left;
    width: 100%;
}

#egovContent .content-panel {
    background: #fff;
    border-bottom: 3px solid var(--egov-red);
    border-radius: 3px;
    box-shadow: 0 0 4px rgba(0, 0, 0, .3);
    min-height: 360px;
    padding: 30px 50px;
}

.lede {
    margin-bottom: 20px;
}

.lede p {
    margin: 0 0 10px;
}

.lede p:last-child {
    margin-bottom: 0;
}

/* Verification form */

#verify-form {
    margin: 22px 0 0;
}

#egovContent label {
    color: #333;
    display: block;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 5px;
    width: 100%;
}

.form-group {
    margin: 0;
}

.verification-form-row {
    align-items: center;
    display: flex;
    gap: 10px;
}

#egovContent input[type="text"] {
    border: 1px solid var(--egov-border);
    border-radius: 3px;
    color: #000;
    display: inline-block;
    font-size: 16px;
    height: 44px;
    line-height: 20px;
    max-width: 400px;
    padding: 6px 12px;
    width: 100%;
}

#egovContent input[type="text"]::placeholder {
    color: #ababab;
}

#egovContent input[type="text"]:focus {
    border-color: var(--egov-blue);
    box-shadow: none;
    outline: 0;
}

#egovContent input[type="text"]:disabled {
    background: #fff;
    border-color: #ccc;
    color: #999;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    letter-spacing: .06em;
}

#egovContent .btn {
    background-color: #fff;
    border: 1px solid var(--egov-border);
    border-radius: 5px;
    color: var(--egov-red);
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    line-height: 19px;
    min-width: 195px;
    padding: 11px 25px 10px;
    text-align: center;
    transition: .25s all ease;
    width: auto;
}

#egovContent .btn.btn-primary {
    background-color: var(--egov-blue);
    border-color: var(--egov-blue);
    color: #fff;
}

#egovContent .btn:hover,
#egovContent .btn:focus {
    box-shadow: none;
    opacity: .85;
    outline: 0;
}

#egovContent .btn:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

#egovContent .btn:disabled {
    cursor: default;
    opacity: .55;
}

.help-block {
    color: var(--egov-text) !important;
    display: block;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 18px !important;
    padding-top: 4px;
}

/* Status and result areas */

.captcha-note,
.loading-note,
.small {
    color: var(--egov-muted) !important;
    display: none;
    font-size: 13px !important;
    line-height: 18px !important;
    margin-top: 14px;
}

.loading-note {
    font-size: 14px !important;
    font-weight: 500;
}

.captcha-note.show,
.loading-note.show,
.small.show {
    display: block;
}

.msg {
    border-radius: 3px;
    display: none;
    font-size: 14px !important;
    line-height: 19px !important;
    margin-top: 15px;
    padding: 12px 14px;
}

.msg.show {
    display: block;
}

.msg.err {
    background: #fff5f7;
    border: 1px solid #d50a2c;
    color: #8a071d !important;
}

.msg.ok {
    background: #eef8ff;
    border: 1px solid var(--egov-blue);
    color: #244b66 !important;
}

hr.sep {
    border: 0;
    border-top: 1px solid #e1e1e1;
    display: none;
    margin: 22px 0;
}

hr.sep.show {
    display: block;
}

.pdf-wrap {
    background: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: 0 0 4px rgba(0, 0, 0, .2);
    display: none;
    height: 600px;
    margin: 18px 0 0;
    padding: 10px;
    width: 100%;
}

.pdf-wrap.show {
    display: block;
}

.pdf-inner {
    background: #fff;
    height: 100%;
    overflow: hidden;
    width: 100%;
}

.pdf-inner iframe {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

.notice-warn {
    background: #fff5f7;
    border-left: 4px solid var(--egov-red);
    color: #4d4d4d !important;
    display: none;
    font-size: 14px !important;
    line-height: 19px !important;
    margin: 6px 0 0;
    padding: 12px 14px;
}

.notice-warn.show {
    display: block;
}

.small {
    margin-top: 16px;
}

/* Footer */

footer#egov-footer {
    background-color: #000;
    border-top: 3px solid var(--egov-red);
    display: block;
    padding: 10px 0 12px;
    width: 100%;
}

.footer-row {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
}

footer#egov-footer ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
    list-style: none;
    margin: 14px 0 10px;
    padding: 0;
}

footer#egov-footer p,
footer#egov-footer a {
    color: #999;
    font-size: 13px;
    line-height: 17px;
}

footer#egov-footer p {
    margin: 0;
}

footer#egov-footer a {
    font-weight: 500;
}

footer#egov-footer a:hover,
footer#egov-footer a:focus {
    color: #fff;
}

.footer-brand {
    display: block;
    margin-top: 2px;
}

.footer-brand img {
    height: auto;
    max-height: 66px;
    opacity: .7;
    width: auto;
}

/* Responsive behaviour mirrors the portal breakpoints */

@media (max-width: 992px) {
    #fullPage {
        background-color: #fff;
        min-height: calc(100vh - 78px);
        padding: 25px 0;
    }

    .dashboard-title-box > .page-back {
        font-size: 31px;
        line-height: 26px;
    }

    .dashboard-title-box > h1,
    #egovContent h2 {
        font-size: 22px;
        line-height: 26px;
    }

    #egovContent .content-box {
        margin: 0;
    }

    #egovContent .content-panel {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        min-height: 0;
        padding: 25px;
    }

    footer#egov-footer {
        display: none;
    }
}

@media (max-width: 767px) {
    #egovContent .content-panel {
        padding: 25px 20px;
    }

    .pdf-wrap {
        height: 70vh;
        min-height: 460px;
        padding: 6px;
    }
}

@media (max-width: 576px) {
    #breadcrumb-row .col-12 {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    #breadcrumb-row .col-12::-webkit-scrollbar {
        display: none;
    }

    #egovContent .content-panel {
        padding: 25px 15px;
    }

    .verification-form-row {
        align-items: stretch;
        flex-direction: column;
    }

    #egovContent input[type="text"],
    #egovContent .btn {
        max-width: none;
        width: 100%;
    }

    #egovContent .btn {
        margin-top: 2px;
    }

    .pdf-wrap {
        height: 64vh;
        min-height: 420px;
    }
}

@media (prefers-reduced-motion: reduce) {
    a,
    button {
        transition: none;
    }
}
