body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(to bottom, #F0F4F8, #FFFFFF);
    margin: 0;
    padding: 0;
    color: #1E1E2F;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.container {
    max-width: 900px;
    margin: 80px auto 20px;
    padding: 0 20px;
}

header {
    background-color: #0077B6;

    padding: 15px;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

header h1 {
    margin: 0;
    font-size: 24px;
    color: #F0F4F8;
}

nav {
    background-color: #023E8A;
    padding: 10px;
    position: fixed;
    top: 60px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

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

nav a {
    color: #F0F4F8;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #90E0EF;
}

.form-container,
.results-container {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-top: 120px;
    transition: transform 0.3s;
}

.form-container:hover,
.results-container:hover {
    transform: translateY(-5px);
}

h1 {
    color: #0077B6;
    margin-bottom: 20px;
    font-size: 28px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #1E1E2F;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid #0077B6;
    border-radius: 6px;
    box-sizing: border-box;
    background-color: #FFFFFF;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus {
    border-color: #90E0EF;
    outline: none;
}

input[type="checkbox"],
input[type="radio"] {
    margin-right: 8px;
    accent-color: #0077B6;
}

.checkbox-group,
.radio-group {
    margin-bottom: 20px;
}

button {
    background-color: #0077B6;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #023E8A;
    transform: scale(1.05);
}

.error {
    color: #90E0EF;
    margin-top: 10px;
    font-weight: bold;
}

.results-container p {
    margin: 12px 0;
    font-size: 16px;
}

.results-container strong {
    color: #0077B6;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.modal-content {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.modal-content button {
    margin-top: 10px;
}

/* Table Styles */
.rating-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
}

.rating-table th,
.rating-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #0077B6;
}

.rating-table th {
    background-color: #03045E;
    color: #F0F4F8;
    font-weight: bold;
}

.rating-table td {
    background-color: #F0F4F8;
    transition: background-color 0.3s;
}

.rating-table td.question-text {
    text-align: left;
}

.rating-table td:hover {
    background-color: #CAF0F8;
}

.rating-table input[type="radio"] {
    cursor: pointer;
}

.rating-table th[title]:hover::after {
    content: attr(title);
    position: absolute;
    background-color: #1E1E2F;
    color: #F0F4F8;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1002;
    transform: translateY(-30px);
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 20px;
    background-color: #0077B6;
    color: #F0F4F8;
    margin-top: 20px;
    border-radius: 8px;
}

footer a {
    color: #90E0EF;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}