body {
    font-family: 'Montserrat', sans-serif;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

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

/* Error message styling */
.error-message {
    color: #d32f2f;
    font-weight: 500;
    margin-top: 4px;
    font-size: 0.9em;
    display: block;

}

/* Focus indicators */
input:focus,
select:focus,
button:focus {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);

}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
    border: 2px solid #d32f2f;
    background-color: #ffebee;
}


/* High contrast for better accessibility */
fieldset {
    border: 2px solid #333;
    margin: 1.5em 0;
    margin-bottom: 1rem;
    border-radius: 4px;
    padding: 1.5em;
}

legend {
    font-weight: 600;
    padding: 0 0.5rem;
    font-size: 1.1em;
    color: #333;

}

label {
    display: block;
    margin-bottom: 0.5em;
    color: #333;
}

/* Screen reader only text */
.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;
}

/* Required field indicator */
.required::after {
    content: " *";
    color: #d32f2f;
    font-weight: bold;
}

.subtitle {
    font-size: 1.1em;
    color: #555;
    margin: 0.5em 0 0 0;
}

.button-group {
    display: flex;
    gap: 1em;
    margin-top: 2em;
}

.intro-text {
    margin: 1em 0 0.5em 0;
}

/* Form field styling */
input[type="text"],
input[type="email"],
input[type="number"],
select {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

input,
select,
textarea {
    width: 100%;
    max-width: 400px;
    padding: 0.75em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1em;
}

input[type="checkbox"] {
    width: auto;
    max-width: none;
    margin-right: 0.5em;
    padding: 0;
}

input[type="checkbox"] + label {
    display: inline;
    margin-bottom: 0;
    width: auto;
    max-width: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus {
    border-color: #1976d2;
    outline: none;
}

/* Form field containers */
div {
    margin-bottom: 1rem;
}

/* Button styling */
button {
    padding: 10px 20px;
    margin-right: 10px;
    border: 2px solid #333;
    border-radius: 4px;
    background-color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

button[type="submit"] {
    background-color: #1976d2;
    color: white;
    border-color: #1976d2;
}

button[type="submit"]:hover {
    background-color: #085199;
}

button[type="submit"]:focus {
    outline: 3px solid #ffb300;
    outline-offset: 2px;
}

button[type="reset"] {
    background-color: #AD0C00;
    color: white;
    border-color: #AD0C00;
}

button[type="reset"]:hover {
    background-color: #e0e0e0;
}

button[type="reset"]:focus {
    outline: 3px solid #ffb300;
    outline-offset: 2px;
}

button:focus {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}