* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #f4f6f9;
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    box-sizing: border-box;

    padding: 0 40px;
    min-height: 50px;

    background-color: #30AE6E;
    border-bottom: 1px solid #dadada;
    margin-bottom: 20px;
}

#logo {
    max-height: 30px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    padding: 10px 0;
}

nav a:hover {
    color: #009639; /* RUSH green */
}

.page {
    max-width: 1200px;
    margin: 0 auto;
}

form.container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
}

form > legend {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 20px;
}

fieldset {
    border: 1px solid #AFAEAF;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
    gap: 20px;
}

fieldset legend {
    padding: 0 10px;
    font-weight: 600;
    color: #006332;
}

fieldset div {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    margin-bottom: 6px;
}

input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #AFAEAF;
    border-radius: 6px;
    font-size: 14px;
}

input:focus {
    outline: none;
    border-color: #54ADD3;
    box-shadow: 0 0 0 3px rgba(0,103,184,.15);
}

button[type="submit"] {
    background: #54ADD3;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}

button[type="submit"]:hover {
    background: #005D83;
}

.info > p {
    font-size: 0.75rem;
}

#resultContainer {
    margin-top: 20px;
}

#result {
    padding: 12px;
    border-radius: 6px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;

    background-color: rgba(0, 0, 0, 0.5);

    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    min-width: 400px;
    max-width: 600px;

    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

.modal-content h2 {
    color: #30AE6E;
    margin-top: 0;
}

.modal-content button {
    margin-top: 20px;
    background: #54ADD3;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
}

.modal-content button:hover {
    background: #005D83;
}
.error-modal h2 {
    color: #c62828;
}

#errorList {
    text-align: left;
    margin: 20px 0;
    padding-left: 20px;
}

#errorList li {
    margin-bottom: 8px;
    color: #c62828;
}