﻿

/* GENERAL PAGE STYLING */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    margin: 0;
    line-height: 1.6;
}

/* PAGE HEADER */
.site-header {
    background-color: #17365d;
    color: white;
    padding: 20px;
    text-align: center;
}

.site-header h1 {
    margin: 0;
    font-size: 25px;
}

.site-header p {
    margin: 5px 0 0;
}

/* NAVIGATION BAR */
.site-nav {
    background-color: #24558a;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.nav-links a:hover {
    color: #d6eaff;
    text-decoration: underline;
}

/* HAMBURGER MENU */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 25px;
    cursor: pointer;
}

/* MAIN CONTENT */
main,
.content {
    max-width: 900px;
    margin: 25px auto;
    padding: 25px;
    background-color: white;
    border-radius: 7px;
}

h2 {
    color: #17365d;
}

/* IMAGES */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* TABLE STYLING */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px;
}

th,
td {
    border: 1px solid #ccc;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #17365d;
    color: white;
}

tbody tr:nth-child(odd) {
    background-color: #eaf4f6;
}

tbody tr:nth-child(even) {
    background-color: white;
}

tbody tr:hover {
    background-color: #c8e1f5;
}

/* FOOTER */
footer {
    background-color: #17365d;
    color: white;
    text-align: center;
    padding: 18px;
    margin-top: 25px;
}

/* CONTACT PAGE */
.contact-page {
    max-width: 450px;
    margin: 25px auto;
    padding: 22px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.contact-page h2 {
    font-size: 20px;
    color: #263b60;
    margin-top: 0;
    margin-bottom: 14px;
}

/* FORM FIELDSETS */
.contact-page fieldset {
    border: 1px solid #8aafb5;
    border-radius: 5px;
    padding: 12px;
    margin-bottom: 18px;
    background-color: white;
}

.contact-page legend {
    color: #24558a;
    font-size: 13px;
    font-weight: bold;
    padding: 0 5px;
}

/* FORM LABELS */
.contact-page form label:not(.choice) {
    display: block;
    font-size: 12px;
    font-weight: bold;
    margin: 7px 0 3px;
}

/* TEXT INPUTS, EMAIL, DATE, DROPDOWN */
.contact-page input[type=text], .contact-page input[type=email], .contact-page input[type=date], .contact-page select, .contact-page textarea {
    display: block;
    width: 100%;
    padding: 7px;
    border: 1px solid #d1d1d1;
    border-radius: 3px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    background-color: white;
    margin-bottom: 5px;
}

/* MESSAGE BOX */
.contact-page textarea {
    height: 75px;
    resize: vertical;
}

/* RADIO BUTTONS */
.contact-page .choice {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    margin: 5px 10px 5px 0;
}

/* FORM FOCUS EFFECT */
.contact-page input:focus,
.contact-page select:focus,
.contact-page textarea:focus {
    outline: none;
    border-color: #24558a;
    box-shadow: 0 0 4px rgba(36, 85, 138, 0.4);
}

/* FORM BUTTONS */
.contact-page button {
    border: none;
    border-radius: 3px;
    padding: 8px 14px;
    font-size: 12px;
    cursor: pointer;
    margin-right: 5px;
}

.contact-page button[type=submit] {
    background-color: #08708e;
    color: white;
}

.contact-page button[type=reset] {
    background-color: #e9eff2;
    color: #263b60;
}

.contact-page button:hover {
    opacity: 0.85;
}

/* MOBILE RESPONSIVE STYLING */
@media screen and (max-width: 600px) {
    .site-header {
        padding: 15px;
    }

    .site-nav {
        padding: 10px 15px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 12px;
        padding-top: 12px;
    }

    .nav-links.open {
        display: flex;
    }

    main,
    .content {
        margin: 15px;
        padding: 18px;
    }

    .contact-page {
        margin: 15px;
        padding: 18px;
    }

    .contact-page fieldset {
        padding: 10px;
    }

    .contact-page button {
        margin: 5px 3px 5px 0;
    }
}
