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%;
}

:root {
    --text: #111827;
    --muted-text: #374151;
    --white: #FFFFFF;
    --border: #D1D5DB;
    --focus: #F59E0B;
    --error: #B42318;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--focus);
    color: #111827;
    padding: .75rem 1rem;
    font-weight: 700;
    z-index: 1000;
}

    .skip-link:focus {
        left: 1rem;
        top: 1rem;
        outline: 4px solid #111827;
    }

.portal-shell {
    /*min-height: 100vh;*/
}

.btn-primary {
    background-color: #205CA4 !important;
    border-color: #205CA4 !important;
    color: #FFFFFF !important;
}

.btn-danger {
    color: #FFFFFF !important;
}

.ui-iggrid-headertext, .ui-iggrid-header {
    background-color: #205CA4 !important;
}

.text-info {
    color: blue !important;
}

.navbar-brand {
    display: flex; /* Use Flexbox to align the image and text container side-by-side */
    align-items: center; /* Vertically center the items within the navbar-brand */
}

.logo-img {
    height: 75px; /* Adjust as needed */
    width: 75px;
    margin-right: 10px; /* Add some space between the image and text */
}

.brand-text {
    /* Adjust the transform-origin to control the pivot point of the rotation */
    transform-origin: left top;
    /* Position the rotated text correctly next to the image */
    position: relative;
    top: 5px; /* Move the text down to align with the bottom of the image area (adjust this based on your image height) */
    left: 5px; /* Adjust left positioning as needed for spacing */
    /* Optional: style the text appearance */
    font-size: 14px;
    line-height: 1.2; /* Adjust line height for the three lines */
    white-space: nowrap; /* Keep the rotated lines from wrapping horizontally */
    margin-right: 20px;
}

.county-clerk-text {
    /* Adjust the transform-origin to control the pivot point of the rotation */
    transform-origin: left top;
    /* Position the rotated text correctly next to the image */
    position: relative;
    top: 5px; /* Move the text down to align with the bottom of the image area (adjust this based on your image height) */
    left: 5px; /* Adjust left positioning as needed for spacing */
    /* Optional: style the text appearance */
    font-size: 18px;
    font-weight: bolder;
    line-height: 1.2; /* Adjust line height for the three lines */
    white-space: nowrap; /* Keep the rotated lines from wrapping horizontally */
    margin-right: 20px;
}

.loginBackground {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    /*min-height: 100vh;*/ /* Ensures it covers the full viewport height */
}

.container-fluid {
    padding: 0 !important;
}

.theme-view {
    display: none;
}

/* Option 2: Modern Civic Portal */
.theme-modern {
    /*min-height: 100vh;*/
    /*background: #F5F7F9;*/
    background-image: url('../images/1980x1080_PF_background_gray.jpg');
    padding: 1rem 20rem 1rem 20rem;
}


.portal-shell[data-theme="classic"] .theme-classic,
.portal-shell[data-theme="modern"] .theme-modern,
.portal-shell[data-theme="official"] .theme-official {
    display: block;
}

.heading {
    background: #FFFFFF;
    color: #0c2641;
}

.main-form-panel {
    padding: 2rem;
    background: #FFFFFF;
    border-radius: 18px;
}

    .main-form-panel h2 {
        color: #0c2641;
        font-size: 2rem;
        margin: 0 0 .5rem;
    }

.main-helper-text {
    color: var(--muted-text);
    margin: 0 0 2rem;
    line-height: 1.5;
}

.primary-button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 8px;
    background: #0c2641;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
}

    .primary-button:hover {
        background: #1F2933;
    }

.primary-danger-button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 8px;
    background: #dc3545;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
}

    .primary-danger-button:hover {
        background: #1F2933;
    }

.secondary-button {
    display: block;
    text-align: center;
    border: 2px solid #4B5D6B;
    color: #29343E;
    background: #b99549;
    border-radius: 8px;
    padding: .85rem 1rem;
    text-decoration: none;
    font-weight: 800;
}

    .secondary-button:hover {
        background: #F1F5F9;
    }

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--muted-text);
    margin: 1.25rem 0;
    font-weight: 700;
}

    .divider::before, .divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--border);
    }

.form-panel {
    padding: 2rem;
    background: #e8e1db;
}

    .form-panel h2 {
        color: #2F3A44;
        font-size: 2rem;
        margin: 0 0 .5rem;
    }

.helper-text {
    color: var(--muted-text);
    margin: 0 0 2rem;
    line-height: 1.5;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.25rem 0 1.75rem;
}

.checkbox-line {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
}

    .checkbox-line input {
        width: 20px;
        height: 20px;
        accent-color: #4B5D6B;
    }

a {
    color: #245A8D;
    font-weight: 700;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.fine-print {
    color: var(--muted-text);
    font-size: .9rem;
    line-height: 1.5;
    margin-top: 1.5rem;
}

.alert {
    border-left: 6px solid #9CA3AF;
    background: #F3F4F6;
    color: #1F2937;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

label {
    display: block;
    font-weight: 700;
    color: #111827;
    margin-bottom: .5rem;
}

.feature-list {
    margin-top: 1rem;
    margin-left: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.feature-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: #ffc52f;
    color: #0d2b4f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
}

input, select {
    width: 100%;
    min-height: 48px;
    border: 2px solid #6B7280;
    border-radius: 8px;
    padding: .75rem 1rem;
    font-size: 1rem;
    color: #111827;
    background: var(--white);
    box-sizing: border-box;
}


    input:focus,
    a:focus,
    button:focus,
    select:focus {
        outline: 4px solid rgba(245, 158, 11, .9);
        outline-offset: 3px;
    }

.form-group {
    margin-bottom: 1.15rem;
}

.field-hint {
    display: block;
    color: var(--muted-text);
    margin-top: .35rem;
    font-size: .925rem;
}

.validation-message, .text-danger {
    color: var(--error);
    font-weight: 700;
    margin-top: .35rem;
    display: block;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background: #0c2641;
    font-size: 1.25rem;
}

.nav-pills .nav-link {
    background: #FFFFFF;
    border: 1px solid #0c2641 !important;
    border-radius: .25rem;
    font-size: 1.25rem;
}

.hero-section {
    /* background-color: #0d3b66; */
    color: #FFFFFF;
    padding: 30px 0;
    /* background-repeat: no-repeat; */
    background-color: #0c2641;
    /* background-size: cover; */
    background-position: center;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    /* margin: -1rem -1rem 1rem;
                        height: 100svh;
                        font-weight: 900;
                        font-size: 3em;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        background-image: url('images\sharedservicespaymentlogo.png');
                        background-size: cover;
                        background-position: 47% 76%;*/
}

.hero-bottom {
    height: 1rem;
    background: #c69f4e;
    background-position: center;
}

.section-padding {
    padding: 10px 10px 10px 10px;
}

.footer {
    background-color: #ffffff;
    padding: 20px 0;
    font-size: 14px;
}

@media (max-width: 1440px) {
    .theme-modern {
        padding: 1rem 15rem 1rem 15rem;
    }
}

@media (max-width: 860px) {
    .theme-classic, .theme-modern {
        padding-top: 0rem !important;
        padding-bottom: 0rem !important;
        padding-left: 0rem !important;
        padding-right: 0rem !important;
    }

    .form-panel {
        padding: 1rem;
        border-radius: 0px;
    }

    .main-form-panel {
        padding: 1rem;
        border-radius: 0px;
    }

    .hero-section {
        border-top-left-radius: 0px !important;
        border-top-right-radius: 0px !important;
    }

    /*.main-form-panel h2 {
        color: #0c2641;
        font-size: 1.5rem;
        margin: 0 0 .5rem;
    }*/
}

@media (max-width: 500px) {
    .main-form-panel h2 {
        color: #0c2641;
        font-size: 1.5rem;
        margin: 0 0 .5rem;
    }
}


.center-page {
    display: none;
    position: fixed;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8); /* semi-transparent background */
    z-index: 9999; /* make sure it is on top */
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 576px) {
    .custom-half-modal {
        max-width: 50vw !important;
        width: 50vw !important;
    }
}

/* Set modal height to 50% of the viewport height and use flexbox */
.custom-half-modal .modal-content {
    height: 50vh;
    display: flex;
    flex-direction: column;
}

/* Allow the body to shrink and enable vertical scrolling */
.custom-half-modal .modal-body {
    overflow-y: auto;
    flex: 1 1 auto;
}

@media (max-width: 767px) {
    .hide-on-mobile {
        display: none!important;
    }
}

