body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f7fbff;
    color: #222;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    left: 1em;
    top: 1em;
    width: auto;
    height: auto;
    padding: 0.5em 0.75em;
    background: #ffffff;
    border: 2px solid #0a3d91;
    border-radius: 4px;
    z-index: 1000;
}

nav {
    background: #0a3d91;
    padding: 0.5em 0;
    position: relative;
}
nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #0a3d91;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: max-height 0.25s ease-in-out;
}
nav ul.open {
    max-height: 400px;
}
nav ul li {
    margin: 0.75em 1em;
}
nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    transition: color 0.2s;
}
nav ul li a:hover {
    color: #4fc3f7;
}

#nav-toggle {
    display: block;
    position: absolute;
    left: 1rem;
    top: 0.35rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

.hero {
    background: linear-gradient(90deg, #0a3d91 60%, #4fc3f7 100%);
    color: #fff;
    text-align: center;
    padding: 2em 1em 1.5em 1em;
}
.hero h1 {
    font-size: 2em;
    margin-bottom: 0.3em;
}
.hero p {
    font-size: 1em;
    margin-top: 0;
}
section {
    max-width: 100%;
    margin: 1em 1em;
    padding: 1.25em;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(10,61,145,0.08);
}
section h2 {
    color: #0a3d91;
    margin-top: 0;
}
footer {
    background: #0a3d91;
    color: #fff;
    text-align: center;
    padding: 1em 0;
    margin-top: 2em;
}
form label {
    display: block;
    margin-top: 1em;
    color: #0a3d91;
}
form input, form textarea {
    width: 100%;
    padding: 0.7em;
    margin-top: 0.3em;
    border: 1px solid #bcdffb;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}
form button {
    background: #0a3d91;
    color: #fff;
    border: none;
    padding: 0.8em 2em;
    border-radius: 5px;
    font-size: 1em;
    margin-top: 1em;
    cursor: pointer;
    transition: background 0.2s;
}
form button:hover {
    background: #4fc3f7;
    color: #0a3d91;
}

/* Toast notification */
.toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    background: #0a3d91;
    color: #fff;
    padding: 0.75em 1em;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(10,61,145,0.18);
    transform: translateY(10px);
    opacity: 0;
    transition: opacity 200ms ease, transform 200ms ease;
    z-index: 1200;
}
.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Desktop/tablet enhancements */
@media (min-width: 900px) {
    nav ul {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        background: none;
        width: auto;
        max-height: none;
        overflow: visible;
    }
    nav ul.open {
        max-height: none;
    }
    nav ul li {
        margin: 0 1.5em;
    }
    #nav-toggle {
        display: none;
    }
    section {
        max-width: 800px;
        margin: 2em auto;
        padding: 2em;
    }
    .hero {
        padding: 4em 2em 3em 2em;
    }
    .hero h1 {
        font-size: 2.8em;
    }
    .hero p {
        font-size: 1.3em;
    }
}
.hero p {
    font-size: 1.3em;
    margin-top: 0;
}
section {
    max-width: 800px;
    margin: 2em auto;
    padding: 2em;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(10,61,145,0.08);
}
section h2 {
    color: #0a3d91;
    margin-top: 0;
}
footer {
    background: #0a3d91;
    color: #fff;
    text-align: center;
    padding: 1em 0;
    margin-top: 2em;
}
form label {
    display: block;
    margin-top: 1em;
    color: #0a3d91;
}
form input, form textarea {
    width: 100%;
    padding: 0.7em;
    margin-top: 0.3em;
    border: 1px solid #bcdffb;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}
form button {
    background: #0a3d91;
    color: #fff;
    border: none;
    padding: 0.8em 2em;
    border-radius: 5px;
    font-size: 1em;
    margin-top: 1em;
    cursor: pointer;
    transition: background 0.2s;
}
form button:hover {
    background: #4fc3f7;
    color: #0a3d91;
}

/* Toast notification */
.toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    background: #0a3d91;
    color: #fff;
    padding: 0.75em 1em;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(10,61,145,0.18);
    transform: translateY(10px);
    opacity: 0;
    transition: opacity 200ms ease, transform 200ms ease;
    z-index: 1200;
}
.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 700px) {
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        background: #0a3d91;
        width: 100%;
        max-height: 0;
        overflow: hidden;
    }
    nav ul.open {
        max-height: 400px; /* allow enough space for menu */
    }
    nav ul li {
        margin: 0.75em 1em;
    }
    #nav-toggle {
        display: block;
    }
    section {
        margin: 1em 1em;
        padding: 1.25em;
    }
}
