/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #212121;
    background-color: #f8f9fa;
}

/* Header and Navigation */
.tsg-rwd-nav-frame {
    background-color: #112e51;
    border-bottom: 4px solid #0071bc;
}

.tsg-rwd-body-frame-row.nameplateFrame {
    background-color: #ffffff;
    border-bottom: 1px solid #d6d7d9;
    padding: 20px 0;
}

.tsg-rwd-site-website-nameplate {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.tsg-rwd-site-state-seal img {
    height: 80px;
    width: auto;
    margin-right: 20px;
}

.nameplate-website-name {
    font-size: 28px;
    font-weight: 700;
    color: #112e51;
}

/* Main Content Area */
.tsg-rwd-body-frame {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tsg-rwd-main-copy-body-frame {
    background-color: #ffffff;
    border: 1px solid #d6d7d9;
    border-radius: 4px;
    margin: 20px 0;
    padding: 40px;
}

.tsg-rwd-page-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #112e51;
    margin-bottom: 30px;
    border-bottom: 3px solid #0071bc;
    padding-bottom: 15px;
}

/* Form Styling */
.tsg-rwd-featurebox {
    background-color: #f8f9fa;
    border: 1px solid #d6d7d9;
    border-radius: 4px;
    padding: 30px;
    margin: 30px 0;
}

.form-wrapper {
    max-width: 100%;
}

.frm_form_fields {
    background: transparent;
}

fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

legend.frm_screen_reader {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.frm_fields_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Form Field Styling */
.frm_form_field {
    margin-bottom: 0;
}

.frm_primary_label {
    display: block;
    font-weight: 700;
    color: #212121;
    margin-bottom: 8px;
    font-size: 16px;
}

.frm_required {
    color: #e31c3d;
    font-weight: 700;
}

/* Input Styling */
input[type="text"],
input[type="email"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #aeb0b5;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    background-color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="file"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #0071bc;
    box-shadow: 0 0 0 3px rgba(0, 113, 188, 0.2);
}

input[type="text"]:hover,
input[type="email"]:hover,
select:hover {
    border-color: #112e51;
}

/* Select Dropdown Styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23212121' d='M10.293.293a1 1 0 0 1 1.414 1.414l-5 5a1 1 0 0 1-1.414 0l-5-5A1 1 0 0 1 1.707.293L6 4.586 10.293.293z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* File Input Styling */
input[type="file"] {
    padding: 8px 12px;
    border: 2px dashed #aeb0b5;
    background-color: #f8f9fa;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: #0071bc;
    background-color: #e6f4ff;
}

/* Checkbox Styling */
.frm_checkbox {
    margin: 10px 0;
}

.frm_checkbox label {
    display: flex;
    align-items: flex-start;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.4;
}

.frm_checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    margin-top: 2px;
    accent-color: #0071bc;
    flex-shrink: 0;
}

/* Submit Button Styling */
.frm_submit {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #d6d7d9;
}

.frm_button_submit {
    background-color: #0071bc;
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    min-width: 200px;
}

.frm_button_submit:hover {
    background-color: #205493;
    transform: translateY(-1px);
}

.frm_button_submit:active {
    background-color: #112e51;
    transform: translateY(0);
}

.frm_button_submit:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

/* Progress Bar Styling */
#progress-bar-container {
    margin: 20px 0 10px 0;
    width: 100%;
    height: 8px;
    background-color: #d6d7d9;
    border-radius: 4px;
    overflow: hidden;
}

#progress-bar {
    height: 100%;
    background-color: #00a91c;
    border-radius: 4px;
    transition: width 0.3s ease;
}

#loading-text {
    color: #0071bc;
    font-weight: 600;
    margin: 10px 0;
}

/* Information Text Styling */
.font_8 {
    background-color: #e6f4ff;
    border: 1px solid #0071bc;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    font-size: 16px;
    line-height: 1.5;
    color: #112e51;
}

/* Anti-spam Field (Hidden) */
.frm__656108be9afad {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Footer Styling */
.tsg-rwd-footer-row {
    background-color: #112e51;
    color: #ffffff;
    margin-top: 50px;
}

.tsg-rwd-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tsg-rwd-footer-menu-frame {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tsg-rwd-main-footer-menu ul {
    list-style: none;
    padding: 0;
}

.tsg-rwd-main-footer-menu li {
    margin-bottom: 10px;
}

.tsg-rwd-main-footer-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.tsg-rwd-main-footer-menu a:hover {
    color: #73b3e7;
    text-decoration: underline;
}

/* Bottom Legal Section */
.tsg-rwd-bottom-legal-row {
    background-color: #0f2940;
    color: #ffffff;
    padding: 20px 0;
}

.tsg-rwd-bottom-legal-frame {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tsg-rwd-bottom-legal-frame p {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.4;
}

/* Error States */
input:invalid {
    border-color: #e31c3d;
}

input:invalid:focus {
    box-shadow: 0 0 0 3px rgba(227, 28, 61, 0.2);
}

/* Success States */
input:valid {
    border-color: #00a91c;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .tsg-rwd-site-website-nameplate {
        flex-direction: column;
        text-align: center;
    }
    
    .tsg-rwd-site-state-seal {
        margin: 0 0 15px 0;
    }
    
    .tsg-rwd-main-copy-body-frame {
        padding: 20px;
        margin: 10px 0;
    }
    
    .tsg-rwd-page-header h1 {
        font-size: 28px;
    }
    
    .frm_fields_container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tsg-rwd-featurebox {
        padding: 20px;
    }
    
    .frm_button_submit {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .tsg-rwd-body-frame {
        padding: 0 10px;
    }
    
    .tsg-rwd-main-copy-body-frame {
        padding: 15px;
    }
    
    .tsg-rwd-page-header h1 {
        font-size: 24px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="file"],
    select {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Print Styles */
@media print {
    .tsg-rwd-nav-frame,
    .tsg-rwd-footer-row,
    .tsg-rwd-bottom-legal-row,
    .frm_submit {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .tsg-rwd-main-copy-body-frame {
        border: none;
        box-shadow: none;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    input[type="text"],
    input[type="email"],
    input[type="file"],
    select {
        border-width: 3px;
    }
    
    .frm_button_submit {
        border: 3px solid #ffffff;
    }
}