/*
 * General Reset & Box-Sizing
 *
 */
html {
    box-sizing: border-box;
    font-size: 16px;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

/*
 * Body & Base Typography
 * 
 */
body {
    font-family: sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
	display: flex;
    flex-direction: column;
    min-height: 100vh; 
}


header, main {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding-left: 20px; 
    padding-right: 20px; 
    padding-top: 20px;  
    padding-bottom: 0;     
    box-sizing: border-box;
}

header, footer {
    text-align: center;
}

header img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto; 
    width: 150px;
}

.header-divider {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    height: 1px; 
    background-color: #e0e0e0; 
    margin-top: 5px;
    margin-bottom: 5px; 
}


/*
 * Main Content Area
 * 
 */
main {
    flex-grow: 1;	
	max-width: 1200px;
    width: 90%;
    margin: 0 auto;
	padding-left: 20px; 
    padding-right: 20px; 
    padding-top: 0;     
    padding-bottom: 20px; 
    box-sizing: border-box;
	
	}

/*
 * Headings
 * 
 */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: bold;
}

h1 {
    
font-size: 1.75rem;
}

h2 {
     margin-top: 0em;
	font-size: 1.3rem;
}

h3 {
    font-size: 1.1em;
    margin-top: 0em;
    margin-bottom: 0em;
    line-height: 1;
    font-weight: bold;
}

/*
 * Paragraphs
  */
p {
    margin-bottom: 1em;
}

/*
 * Links
 * Ensures clear visual distinction, visited states, and robust focus/hover styles.
 */
a {
    color: #007bff;
    text-decoration: underline;
}

a:visited {
    color: #663399; 
	}

a:focus,
a:hover {
    color: #0056b3;
    text-decoration: none;
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/*
 * Lists
 * Basic styling for unordered and ordered lists.
 */
ul,
ol {
    margin-bottom: 1em;
    padding-left: 20px;
}

li {
    margin-bottom: 0.5em;
}

/*
 * Text Emphasis
 * Standard bold and italic styles.
 */
strong {
    font-weight: bold;
}

em {
    font-style: italic;
}

/*
 * Images
 *
 */
img {
    max-width: 100%; 
    height: auto; 
    display: block; 
}

/*
 * Navigation
 * 
 */
 
 
nav {
    width: fit-content;
    margin: 10px auto;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

nav li {
    
	
}

nav a {
    display: block;
    padding: 5px 10px;
    color: #3344dd;
    text-decoration: none;
    white-space: nowrap;
}

/* Hover and Focus States */
nav a:hover,
nav a:focus {
    color: #0056b3;
    text-decoration: underline;
    outline-offset: 2px;
    cursor: pointer;
}

/* Active State */
nav a:active {
    color: #004085;
}

/* Styling for the current page link (if applicable) */
nav a[aria-current="page"] {
    color: #333;
    font-weight: bold;
    text-decoration: underline;
    cursor: default;
}

/* --- Media Query for Small Screens --- */
@media (max-width: 768px) { 
    nav ul {
        flex-direction: column; 
        gap: 5px; 
        align-items: center; 
        width: 100%; 
    }

    nav li {
        width: 100%;
        text-align: center;
    }

    nav a {
        padding: 10px 0;
        white-space: normal;
    }

      nav {
        width: 100%;
        margin: 10px 0;
    }
}


 .skip-link {
            position: absolute;
            top: -40px; 
            left: 0;
            background-color: #007bff;
            color: white;
            padding: 8px 12px;
            z-index: 1000; 
            text-decoration: none;
            border-radius: 0 0 5px 5px; 
        }

        .skip-link:focus {
            top: 0; 
        }


/*
 * Forms
 * Consistent styling for form elements, labels, and focus states.
 */
label {
    /* display: block; */
    /*margin-bottom: 0.5em;   */
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea,
select {
    /*width: 100%;  */
    padding: 0.5em;
    margin-bottom: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
    border-color: #007bff; 
}

/*
 * Submit Button
 * 
 */
.submit-button {
    background-color: #00008b; 
    color: #fff;
    padding: 0.75em 1.5em;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease; 
}

.submit-button:hover {
    background-color: #000066;
}

.submit-button:focus {
    outline: 2px solid #000066; 
    outline-offset: 2px;
}

.submit-button:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

/*
 * Form Group
 * For grouping labels and form fields.
 */
.form-group {
    margin-bottom: 10px;
	margin-left: auto; 
    margin-right: auto;
}

.form-group label {
    margin-right: 10px;
    font-weight: bold;
}

.form-group select {
     width: 200px; 
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
	
	
	
}

.form-group select:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
    border-color: #007bff;
}

/*
 * Specific Form Field Adjustments
 */
.form-group input[type="text"] { 
	margin-left: 30px;
}

#search-val {
    width: 250px;
}

/*
 * Accessibility Helper
 * Visually hides content while keeping it accessible to screen readers.
 */
.screen-reader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/*
 * Tables
 * 
 */
table {
    width: 100%;
    border-collapse: collapse; 
    margin-bottom: 1em;
}

th,
td {
    padding: 0.75em;
    border: 1px solid #ccc;
    text-align: left;
}

th {
    font-weight: bold;
    /* background-color: #f2f2f2; */
    /* text-align: right;  */
}

.bond-section-charges {
	padding-left: 30px;
	margin-bottom: 1em;
	margin-top: 0em;
}



/*
 * Footer Styling
 * 
 */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: #333;
    color: #f4f4f4;
    margin-top: 50px; 
    border-top: 1px solid #555;
}


footer a {
    color: #9bd4ff; 
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
    color: #c7eaff;
}

footer a:visited {
     color: #9bd4ff;
	 text-decoration: none;
}

footer p {
    margin: 0 0 10px 0;
}


@media (max-width: 600px) {
    footer nav a {
        display: block;
        margin: 5px 0;
    }
}


@media (min-width: 600px) {
    html {
        font-size: 18px; /* Larger base font for larger screens */
    }
}

/*
 * Focus Styles (Global)
 * 
 */
:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/*
 * Messages (Error & Info)
 * 
 */
.error-message {
    background-color: #ffe0e0; /* Light red */
    color: #8b0000; /* Dark red */
    border: 1px solid #8b0000;
    padding: 10px;
    margin-top: 5px;
    border-radius: 4px;
    font-weight: bold;
	text-align: center;
}


.error-message::before {
    content: "⚠️ "; /* Warning symbol */
    margin-right: 5px;
}

.info-message {
    background-color: #e0f7fa; /* Light blue */
    color: #00008b; /* Dark blue */
    border: 1px solid #00838f;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-weight: bold;
	text-align: center;
}

.info-message::before {
    content: "ℹ️ "; /* Information symbol */
    margin-right: 5px;
}