/* General Styling */
body {
    background-color: #f5f5dc;
    font-family: Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header Styling */
header {
    text-align: center;
    padding: 20px;
    background: rgba(230, 230, 250, 0.8);
    color: #333;
}

/* Navigation Styling */
nav {
    text-align: center;
    margin: 10px 0;
    width: 100%;
    background-color: #d3d3d3; /* Light Gray */
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #2c5f2d; /* Darker Green for better contrast */
    font-weight: bold;
}

nav ul li a.active {
    color: #1d3c1f; /* Even darker green to stand out */
    text-decoration: underline;
}

nav ul li a:hover {
    color: #4e6b1e; /* Olive green hover state */
}

/* Main Section */
main {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Divider Styling */
.divider {
    border-bottom: 2px solid #6b8e23;
    margin: 10px 0 20px 0;
}

/* Checkbox Group Styling */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

input[type="checkbox"],
input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

/* Textarea and Input */
textarea,
input,
select {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Submit Button */
input[type="submit"] {
    background-color: #6b8e23;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

input[type="submit"]:hover {
    background-color: #4e6b1e;
}
#confirmation,
#error,
#invalid {
    text-align: center;
    margin: 50px auto;
    padding: 20px;
    width: 80%;
    background-color: #f9f9f9;
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive Styling */
@media screen and (max-width: 768px) {
    main {
        width: 90%;
    }

    table td:first-child,
    table td:last-child {
        display: block;
        text-align: left;
        margin-bottom: 10px;
    }

    textarea,
    input,
    select {
        width: 100%;
    }
}
