@font-face {
    font-family: 'Futura';
    src: url('../fonts/futura/futura bold font.woff') format('woff'),
    url('../fonts/futura/futura bold font.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Bold Italic */
@font-face {
    font-family: 'Futura';
    src: url('../fonts/futura/futura bold italic font.woff') format('woff'),
    url('../fonts/futura/futura bold italic font.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

/* Book */
@font-face {
    font-family: 'Futura';
    src: url('../fonts/futura/futura book font.woff') format('woff'),
    url('../fonts/futura/futura book font.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* Book Italic */
@font-face {
    font-family: 'Futura';
    src: url('../fonts/futura/futura book italic font.woff') format('woff'),
    url('../fonts/futura/futura book italic font.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

/* Light */
@font-face {
    font-family: 'Futura';
    src: url('../fonts/futura/futura light font.woff') format('woff'),
    url('../fonts/futura/futura light font.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

/* Heavy */
@font-face {
    font-family: 'Futura';
    src: url('../fonts/futura/futura heavy font.woff') format('woff'),
    url('../fonts/futura/futura heavy font.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

/* Medium */
@font-face {
    font-family: 'Futura';
    src: url('../fonts/futura/futura medium bt.woff') format('woff'),
    url('../fonts/futura/futura medium bt.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Calibri';
    src: url('../fonts/calibri-regular.ttf') format('truetype');
}


:root {
    /* WCAG AA Compliant Colors */
    --hillsboro-white: #ffffff;        /* Contrast ratio: 21:1 on black */ ;
    --hillsboro-blue: #002D72;        /* Contrast ratio: 7.5:1 on white */
    --hillsboro-blue-dark: #0f2a5a;   /* Contrast ratio: 12:1 on white */
    --hillsboro-green: #64A70B;       /* Contrast ratio: 8.2:1 on white */
    --hillsboro-green-dark: #2d5016; /* Contrast ratio: 4.8:1 on white */
    --light-gray: #f8f9fa;
    --sidebar-blue: #1a365d;
    --focus-color: #005fcc;            /* High contrast focus indicator */
    --error-color: #D22541;            /* Error state color */
    --success-color: #198754;          /* Success state color */
    --text-primary: #000000;           /* Primary text color */
    --text-secondary: #666666;         /* Secondary text color */
    --border-color: #6c757d;           /* Border color for better contrast */
    --light-grey: #F5F5F5;            /* Light grey for backgrounds */

    /* Spacing variables (use for padding, margin, gaps, etc.) */
    --space-xs: 0.25rem;  /* 4px */
    --space-sm: 0.5rem;   /* 8px */
    --space-md: 1rem;     /* 16px  space between items in small mobile screen*/
    --space-lg: 1.5rem;   /* 24px */
    --space-xl: 2rem;     /* 32px  space between items in large screen*/
    --space-xxl: 3rem;    /* 48px */


    /* Font Sizes */
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--hillsboro-white);
    font-family: Calibri;
    font-style: normal;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--hillsboro-blue-dark);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
    font-weight: bold;
}

.skip-link:focus {
    top: 6px;
}

/* Focus Indicators - WCAG Compliant */
/**:focus {*/
/*    outline: 3px solid var(--focus-color);*/
/*    outline-offset: 2px;*/
/*}*/

/*button:focus,*/
/*input:focus,*/
/*select:focus,*/
/*textarea:focus,*/
/*a:focus {*/
/*    outline: 3px solid var(--focus-color);*/
/*    outline-offset: 2px;*/
/*}*/

/* High Contrast Mode Support */
/*@media (prefers-contrast: high) {*/
/*    :root {*/
/*        --hillsboro-blue: #000080;*/
/*        --hillsboro-green: #006400;*/
/*        --text-primary: #000000;*/
/*        --border-color: #000000;*/
/*    }*/
/*}*/

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Navigation */
.navbar {
    height: 100px;
    left: 0%;
    right: 0%;
    top: 0px;
    background: var(--light-grey);
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.15);
    padding: 0 64px;

}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hillsboro-green) 0%, var(--hillsboro-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.logo-circle::before {
    content: 'H';
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.logo-text {
    color: var(--hillsboro-blue);
    font-size: 24px;
    font-weight: bold;
}

.logo-subtext {
    color: var(--hillsboro-green);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    background: none;
    border: none;
    color: var(--hillsboro-blue);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.sidebar-toggle:hover {
    color: var(--hillsboro-green);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100vh;
    background-color: var(--sidebar-blue);
    z-index: 1050;
    transition: right 0.3s ease;
    padding: var(--space-xl) 0;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    margin-top: 100px;
}

.sidebar.active {
    right: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0 var(--space-md);
    margin: 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: var(--space-md) var(--space-sm);
    color: white;
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 700;
    transition: background-color 0.3s;
    border-radius: 5px;
    margin-bottom: var(--space-md);
}

.sidebar-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-menu a.active {
    background-color: var(--hillsboro-green);
    color: var(--text-primary);
}

.sidebar-menu a img {
    margin-right: var(--space-sm);
    text-align: center;
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}



/* Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;

    flex-direction: column;      /* stack items vertically */
    justify-content: center;     /* center vertically */
    align-items: center;         /* center horizontally */
}

.loading-overlay.active {
    display: flex;              /* center children */
    justify-content: center;
    align-items: center;
}



/* Spinner style */
.loading-overlay .spinner {
    border: 4px solid #f3f3f3;           /* Light gray */
    border-top: 4px solid var(--hillsboro-green);       /* Blue */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
    margin: auto;
}

/* Text style */
.loading-overlay .loading-text {
    font-size: 2rem;
    color: #ffffff;
    text-align: center;
}

/* Spinner animation keyframes */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* Main Content */
.main-content {
    margin: var(--space-xl) 0;
}

.page-title {
    color: var(--hillsboro-blue);
    font-family: 'Futura';
    font-weight: 500;
    font-style: normal;
    font-size: 24px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;

}

.page-subtitle {
    color: var(--text-primary);
    text-align: center;
}


.form-label {
    color: var(--text-secondary );
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 14px;
}

.form-control {
    /* Background */
    box-sizing: border-box;
    height: 40px;
    background: #FFFFFF;
    border: 1px solid #999999;
    border-radius: 5px;
}

.form-control:focus {
    border-color: var(--focus-color);
    outline: 1px solid var(--focus-color);
    outline-offset: 0px;
    box-shadow: none;
}

.form-control:invalid {
    border-color: var(--error-color);
}

.form-control[aria-invalid="true"] {
    border-color: var(--error-color);
}

.helper-text {
    color: var(--text-secondary);
    margin-top: var(--space-sm);
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
}

.error-message {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.success-message {
    color: var(--success-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Alert Styles */
.alert {
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border: 2px solid;
    border-radius: 4px;
    font-weight: 600;
}

.alert-success {
    color: var(--success-color);
    background-color: #d1e7dd;
    border-color: var(--success-color);
}

.alert-error {
    color: var(--text-primary);
    background-color: #f8d7da;
    border-color: var(--error-color);
}

.alert-info {
    color: var(--hillsboro-blue);
    background-color: #cff4fc;
    border-color: var(--hillsboro-blue);
}

/* Buttons */
.btn-primary {
    background-color: var(--hillsboro-blue);
    border: 2px solid var(--hillsboro-blue);
    color: white;
    padding: 0 var(--space-xl);          /* remove vertical padding; keep horizontal padding */
    font-size: 24px;
    font-weight: 400;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 40px;             /* set fixed height */
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover,.btn-primary:active,.btn-primary:focus {
    background-color: var(--hillsboro-blue-dark);
    border-color: var(--hillsboro-blue-dark);
    color: white;
}




/*.btn-primary:focus {*/
/*    outline: 3px solid var(--focus-color);*/
/*    outline-offset: 2px;*/
/*}*/

.btn-primary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.65;
}

/* Footer */
.footer {
    padding: 3px 10px;
    display: flex;
    justify-content: center;   /* center all items together */
    align-items: center;
    background: var(--light-grey);
    gap: var(--space-xxl); /* add space between items */
    position: fixed;
    bottom: 0;
    width: 100%;
}

.footer-item {
    display: flex;
    align-items: center;
    color: #333;
}

.footer .footer-item .icon {
    margin-right: 6px;
}

.footer .footer-item a {
    text-decoration: none;
    color: #000;
}

/* Make footer items wrap to new line on small screens */




/* Screen Reader Only Content */
.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;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #888;
}

.divider:not(:empty)::before {
    margin-right: 0.5em;
}

.divider:not(:empty)::after {
    margin-left: 0.5em;
}


.overflow-hidden {
    overflow: hidden;
}


/*template spaceing*/
.ts-t-1{
    margin-top: var(--space-xl) !important;
}

.ts-b-1{
    margin-bottom: var(--space-xl) !important;
}



/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0;
    }
    .sidebar {
        width: 300px;
        right: -300px;
    }

    .main-content {
        margin: var(--space-md) 0;

        padding-bottom: 150px;

    }



    .logo-text {
        font-size: 20px;
    }

    .footer {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* optional: center items horizontally */
        gap: var(--space-md); /* optional: space between items */
        padding: var(--space-md);
        position: fixed;
    }
    .footer-item {
        flex: 0 0 100%;
        justify-content: start; /* center content inside each item */
        text-align: center;     /* center text if needed */
    }

    .footer-item .icon {
        margin-right: 6px;
    }




    /*template spaceing*/
    .ts-t-1{
        margin-top: var(--space-md) !important;
    }

    .ts-b-1{
        margin-bottom: var(--space-md) !important;
    }

}









/*Address auto complete*/
.address-input-group {
    position: relative;
}



.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    padding: 6px 16px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    line-height: 1.4;
}

.suggestion-item:hover,
.suggestion-item:focus {
    background: #f0f8ff;
    outline: none;
}

.suggestion-item.active {
    background: #e6f3ff;
    border-left: 3px solid #0066cc;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.loading, .no-results {
    padding: 12px 16px;
    text-align: center;
    color: #666;
    font-style: italic;
}


/* Mobile specific styles */
@media (max-width: 768px) {


    .suggestions {
        max-height: 200px;
        border-radius: 0 0 8px 8px;
    }

    .suggestion-item {
        padding: 0px 5px;
        font-size: 16px;
        min-height: 30px;
        display: flex;
        align-items: center;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {


    .suggestion-item.active {
        background: #000;
        color: #fff;
        border-left-color: #fff;
    }
}







/*custom alert popup*/

/* Custom Modal Styling */
#custom-popup-message-modal .modal-content {
    background: var(--light-grey);
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.15);
    border-radius: 5px 5px 0px 0px;
}

#custom-popup-message-modal .modal-body {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-xl);
}



.custom-popup-message-text {
    flex-grow: 1;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    line-height: 1.4;
    margin-top: 2px; /* Align text with icon better */
    font-weight: 400;
}

#custom-popup-message-modal .modal-footer {
    border-top: none; /* Remove default Bootstrap border */
    padding: 15px 25px 25px; /* Adjust padding */
    display: flex;
    justify-content: flex-end; /* Align buttons to the right */
    gap: var(--space-md);
}

/* Custom Button Styling */
.btn-custom-no {
    background-color: var(--hillsboro-white);
    border: 1px solid var(--hillsboro-blue);
    color: var(--hillsboro-blue);
    border-radius: 5px;
    font-size: var(--font-size-lg);
    font-weight: 400;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    box-sizing: border-box;
    height: 30px;
    width: 120px;
    line-height: 15px;
}
.btn-custom-no:hover {
    background-color: #f0f0f0;
    border-color: #bbb;
    color: #555; /* Keep color consistent on hover */
}

.btn-custom-yes {
    background-color: var(--hillsboro-blue); /* Dark blue */
    border: 1px solid var(--hillsboro-blue);
    color: white;
    border-radius: 5px;
    font-size: var(--font-size-lg);
    font-weight: 400;
    transition: background-color 0.2s, border-color 0.2s;
    box-sizing: border-box;
    height: 30px;
    width: 120px;
    line-height: 15px;
}
.btn-custom-yes:hover {
    background-color: var(--hillsboro-blue-dark); /* Slightly darker blue on hover */
    border-color: var(--hillsboro-blue-dark);
    color: white; /* Keep color consistent on hover */
}



/* Basic Responsiveness for modal content */
@media (max-width: 576px) {
    #custom-popup-message-modal .modal-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #custom-popup-message-modal .modal-footer {
        flex-direction: column;
        align-items: center;
    }
    .btn-custom-no, .btn-custom-yes {
        width: 100%;
    }
}

/* Search Results */


.min-height-main-div{
    min-height: calc(100vh - 260px);
}

.text-blue{
    color: var(--hillsboro-blue);
}

.icon-chevron-right {
    margin-top: auto;
    margin-bottom: auto;
    padding: 0 10px;
}
.permit-card{
    cursor: pointer;

}
.list-stripped:nth-child(odd) {
    background-color: #eeeeee;
}

.list-stripped:nth-child(even) {
    background-color: #f5f5f5;
}

.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.select-wrapper select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
    background: none;
}

.select-wrapper .custom-chevron {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    pointer-events: none;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.btn-outline-primary-hillsboro {
    background-color: var(--hillsboro-white);
    border: 1px solid var(--hillsboro-blue);
    color: var(--hillsboro-blue);
    padding: 0 var(--space-xl);          /* remove vertical padding; keep horizontal padding */
    font-size: 24px;
    font-weight: 400;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 40px;             /* set fixed height */
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-outline-primary-hillsboro:hover {
    background-color: var(--hillsboro-blue-dark) !important;
    color: var(--hillsboro-white) !important;
}

.text-primary-hillsboro{
    color: var(--hillsboro-blue);
}

.form-check-input:checked{
    background-color: var(--hillsboro-blue);
    border-color: var(--hillsboro-blue);
}

.font-size-24px{
    font-size: 24px;
}


.hidden{
    display: none !important;
}

.btn-outline-danger {
    background-color: var(--hillsboro-white);
    border: 1px solid var(--error-color);
    color: var(--error-color);
}

.action-buttons .btn-outline-danger:hover {
    background-color: var(--error-color);
    border-color: var(--error-color);
}


.font-size-lg{
    font-size: var(--font-size-lg) !important;
}

.height-30px{
    height: 30px;
}


/*Accessibility Focus Styles*/
/* Make focus outlines clear and visible for keyboard users */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 3px solid #005fcc !important;  /* High-contrast blue */
    outline-offset: 2px !important;
    box-shadow: 0 0 4px rgba(0, 95, 204, 0.6);
}


.loading-container:focus-visible {
    outline: none !important;
}
