/* General Setup */
body {
    font-family: 'Arial', sans-serif;
    background-color: #000080; /* Navy Blue */
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    min-height: 100vh;
    margin: 0;
    background-image: none;
}

/* Glassy Form Container */
.container {
    background-color: rgba(255, 255, 255, 0.3);
    padding: 30px 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
    width: 100%;
    max-width: 500px;
}

/* Labels and Grouping */
.form-group, .form-group-inline {
    margin-bottom: 20px;
}
label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #f0f0f0;
}
.form-group-inline label {
    font-weight: normal;
    margin-right: 15px;
    color: #f0f0f0;
    cursor: pointer;
    display: inline; 
}

/* Input Fields (Text, Select, Textarea) */
input[type="text"], select, textarea {
    width: 100%;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus, select:focus, textarea:focus {
    border-color: #79c9ff;
    box-shadow: 0 0 8px rgba(121, 201, 255, 0.5);
    outline: none;
    background-color: #ffffff;
}

/* Radio and Checkbox appearance */
input[type="radio"], input[type="checkbox"] {
    margin-right: 5px;
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%; /* Radio */
    position: relative;
    top: 2px;
}

input[type="checkbox"] {
    border-radius: 4px; /* Checkbox */
}

input[type="radio"]:checked, input[type="checkbox"]:checked {
    border-color: #007bff;
    background-color: #007bff;
}

input[type="radio"]:checked::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

input[type="checkbox"]:checked::after {
    content: '✔';
    color: #fff;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Submit Button */
.submit-btn {
    background-color: #000080; /* Navy Blue */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
    transition: background-color 0.3s, transform 0.1s;
}

.submit-btn:hover {
    background-color: #000066; /* Darker Navy Blue on hover */
}

.submit-btn:active {
    transform: scale(0.99);
}

/* Error Message Styling */
.error-text {
    color: #dc3545;
    font-weight: bold;
    margin: 10px 0;
    text-align: center;
    visibility: hidden; 
    height: 0;
    opacity: 0;
    transition: opacity 0.3s, height 0.3s;
}

.error-text.visible {
    visibility: visible;
    height: auto;
    opacity: 1;
    padding: 10px 0;
}

/* Output Data Display Styling */
.output-container {
    margin-top: 30px;
    padding: 20px;
    display: none; 
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}
.output-container p {
    margin: 10px 0;
    line-height: 1.6;
    color: #ffffff;
}
.output-container strong {
    color: #ffeba0;
}