/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #007bff;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.confirm-section {
    margin-top: 18px;
    margin-bottom: 18px;
}
.confirm-section #confirmPrompt {
    margin-bottom: 12px;
    font-weight: 500;
}
.confirm-section #confirmBtn {
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 18px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 16px;
}
.confirm-section #confirmBtn:hover {
    background: #218838;
}
.confirm-section #confirmBtn:focus {
    outline: 3px solid #1e7e34;
    outline-offset: 2px;
}
.confirm-section #retryBtn {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 18px;
    cursor: pointer;
    font-size: 16px;
}
.confirm-section #retryBtn:focus {
    outline: 3px solid #bd2130;
    outline-offset: 2px;
}
.confirm-section #retryBtn:hover {
    background: #c82333;
}

.affidavit-section {
    margin-top: 18px;
    margin-bottom: 18px;
}
.affidavit-section #affidavitPrompt {
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 18px;
}
.affidavit-section #affidavitYesBtn {
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 18px;
    cursor: pointer;
    font-size: 16px;
    width: 48%;
}
.affidavit-section #affidavitYesBtn:hover {
    background: #0056b3;
}
.affidavit-section #affidavitYesBtn:focus {
    outline: 3px solid #004085;
    outline-offset: 2px;
}
.affidavit-section #affidavitNoBtn {
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 18px;
    cursor: pointer;
    font-size: 16px;
    width: 48%;
}
.affidavit-section #affidavitNoBtn:hover {
    background: #0056b3;
}
.affidavit-section #affidavitNoBtn:focus {
    outline: 3px solid #004085;
    outline-offset: 2px;
}

input {
    max-width: 400px;
    width: 100%;
    box-sizing: border-box;
    display: block;
    margin-bottom: 0;
}

.help-text {
    font-size: 0.95em;
    color: #333;
    background: #e7f0ff;
    border-left: 4px solid #007bff;
    padding: 8px 12px;
    margin: 8px 0 16px 0;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.help-text a {
    color: #0056b3;
    text-decoration: underline;
}
.help-text a:focus {
    outline: 3px solid #004085;
    outline-offset: 2px;
}

.upload {
    max-width: 400px;
    width: 100%;
    display: block;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f6fb;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 400px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #333;
}

form label {
    display: block;
    margin-top: 15px;
    color: #555;
}

form input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
form input:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
    border-color: #007bff;
}

input[type="file"]:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

.logo {
    display: block;
    margin-top: 20px;
    width: 200px;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
}

button {
    margin-top: 20px;
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background: #0056b3;
}

button:focus {
    outline: 3px solid #004085;
    outline-offset: 2px;
}

#status {
    margin-top: 20px;
    text-align: center;
    color: #007bff;
}

/* Ensure fieldsets have no default styling */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
