/* General Styles */
body {
    background-color: #525252; /* Keeping your original background color */
    font-family: Arial, sans-serif;
    color: #e0e0e0; /* Light gray color for better contrast and readability */
}

.centered-form {
    margin-top: 60px;
}

.centered-form .panel {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: rgba(0, 0, 0, 0.3) 20px 20px 20px;
    border-radius: 10px;
}

.panel.panel-primary {
    background: rgba(255, 255, 255, 0.8);
}

.panel-heading {
    background-color: #3498db; /* Keep your original blue color */
    color: white;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    text-align: center;
}

.panel-body {
    padding: 20px;
    color: #333; /* Darker text inside panel for readability */
}

h3, h4 {
    margin-bottom: 20px;
    color: #333; /* Ensure the text is readable */
}

.panel-title {
    font-size: 24px;
    color: #333; /* Dark text for better visibility */
}

/* Form Styling for Submit Button and Text Input */
input[type="submit"], input[type="button"] {
    transition: all 0.3s ease;
    padding: 10px;
    font-size: 16px;
    margin-top: 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

input[type="submit"]:hover, input[type="button"]:hover {
    background-color: #2980b9; /* Darker blue on hover */
}

input[type="text"] {
    padding: 10px;
    font-size: 14px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

/* Styling for the Result Box */
.well-sm {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

legend.text-center {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.well-sm p {
    font-size: 16px;
    color: #333;
}

.well-sm span {
    font-weight: bold;
}

/* Print Button */
#div_pdf a {
    font-size: 16px;
    font-weight: bold;
}

/* Text Download Button */
#div_txt input[type="button"] {
    font-size: 16px;
    font-weight: bold;
    background-color: #3498db;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#div_txt input[type="button"]:hover {
    background-color: #2980b9; /* Darker blue on hover */
}

/* Tooltip Styles */
input:required:invalid {
    border-color: red;
}

input:required:invalid + .label-text {
    color: red;
}

/* Tooltip/Alert for invalid fields */
input:required:invalid:focus {
    box-shadow: 0 0 5px red; /* Adding a red outline when the field is focused */
}

input:required:invalid + .error-message {
    display: block;
    color: red;
    font-size: 12px;
    margin-top: 5px;
    font-weight: bold;
}

/* Success Message for Valid Fields */
input:valid {
    border-color: green; /* Green border for valid fields */
}



input:valid:focus {
    box-shadow: 0 0 5px green; /* Adding green outline when the field is focused */
}


/* Success/Error messages */
.success-message {
    color: green;
    font-weight: bold;
}

.error-message {
    color: red;
    font-weight: bold;
}

/* Additional Section Styling */
hr.hr-primary {
    border-color: #3498db; /* Match primary theme color */
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Note/Glossary Styling */
ul {
    padding-left: 20px;
}

ul li {
    font-size: 14px;
    color: #333;
}

strong {
    font-weight: bold;
}

/* Style for the Radio Button and Checkbox Sections */
.form-check input[type="radio"], .form-check input[type="checkbox"] {
    margin-right: 10px;
}

/* Optional custom CSS for the form */
.form-group {
    margin-bottom: 15px; /* Add some spacing between form groups */
}

label {
    font-weight: bold; /* Make labels bold */
}

input.form-control {
    margin-bottom: 10px; /* Space between input fields */
}


/* Responsive Adjustments */
@media (max-width: 767px) {
    .panel {
        margin-top: 30px;
        padding: 15px;
    }
    .panel-title {
        font-size: 18px;
    }

    .zoom img {
        width: 100%;
        height: auto;
    }

    .col-md-8 {
        width: 100%;
    }
}
