/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #1a1a2e;
    line-height: 1.6;
}

/* Common center-wr class used across pages */
.center-wr {
    width: 1330px;
    margin: 0 auto;
}

@media only screen and (max-width: 1440px) {
    .center-wr {
        width: 96%;
    }
}

/* Header and Footer styles that should apply globally */
header {
    padding: 40px 0px 45px 0px;
    background-color: #2e323e;
}

.first-nav {
    text-align: center;
}

.first-nav img {
    width: 430px;
}

.second-nav {
    padding-top: 34px;
}

.second-nav ul {
    text-align: center;
}

.second-nav ul li {
    list-style-type: none;
    display: inline-block;
    margin-right: 105px;
}

.second-nav ul li:nth-child(3) {
    margin-right: 0px;
}

.second-nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
    text-transform: none;
}

.second-nav ul li:hover a {
    color: #059FA1;
}

/* Style for active navigation link */
.second-nav ul li a.active {
    color: #059FA1;
    font-weight: bold;
}

/* Footer styles */
.footer-section {
    padding: 17px 0px;
    background-color: #2e323e;
}

.footer-section ul li {
    list-style-type: none;
}

.footer-section ul li a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Open Sans', 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 32px;
}

.footer-section .footer-inner::after {
    content: '';
    display: block;
    clear: both;
}

.footer-section .left {
    width: 50%;
    /* float: left; */ /* Remove float */
    text-align: center; /* Center the text */
    margin: 0 auto;     /* Optional: center block if needed */
}

.footer-section .right {
    width: 50%;
    float: right;
    text-align: right;
}

.footer-section .right ul li {
    list-style-type: none;
    display: inline-block;
    margin-left: 27px;
}

/* Main Content Area */
.main-content {
    padding: 40px 5%;
    margin-top: 40px;
}

/* Standard Content Container */
.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Common Page Header */
h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #1a1a2e;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
    text-align: center;
}

.modal-content button {
    margin-top: 15px;
    padding: 8px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: #0056b3;
}

/* Add focus styling for modal button */
.modal-content button:focus {
    outline: 3px solid #059FA1;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(5, 159, 161, 0.3);
}

/* Add a different focus style for high contrast mode users */
@media (forced-colors: active) {
    .modal-content button:focus {
        outline: 2px solid HighlightText;
    }
}

/* Error message styling for form validation */
.error-message {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
    visibility: hidden;
}

.error-message.active {
    visibility: visible;
}

/* Visually hidden utility for accessibility (for honeypot fields) */
.visually-hidden {
    position: absolute !important;
    height: 1px; 
    width: 1px;
    overflow: hidden;
    clip-path: inset(50%); /* Modern technique */
    white-space: nowrap; /* Prevent line breaks */
    border: 0;
    margin: -1px;
    padding: 0;
}

/* Responsive styles for header and footer */
@media only screen and (max-width: 767px) {
    .first-nav img {
        width: 300px;
    }
    
    .second-nav ul li {
        margin-right: 40px;
    }
}

@media only screen and (max-width: 650px) {
    .footer-section .left,
    .footer-section .right {
        float: none;
        width: 100%;
        text-align: center;
    }
    
    .footer-section .right {
        padding-top: 20px;
    }
}

@media only screen and (max-width: 567px) {
    .second-nav ul li {
        margin-right: 29px;
    }
    
    .first-nav img {
        width: 230px;
    }
}

@media only screen and (max-width: 480px) {
    .second-nav ul li a {
        font-size: 16px;
        line-height: 26px;
    }
    
    .content {
        padding: 20px 10px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
}

@media only screen and (max-width: 375px) {
    header {
        padding: 25px 0px 0px 0px;
    }
    
    .footer-section .right ul li {
        margin-left: 14px;
    }
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: #fff;
    color: #007bff;
    padding: 8px 16px;
    z-index: 1000;
    border-radius: 4px;
    border: 2px solid #007bff;
    font-weight: bold;
    text-decoration: none;
    transition: left 0.2s;
}
.skip-link:focus {
    left: 16px;
    outline: none;
}
