/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 20px;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

/* Form Container */
#expertise-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 0 auto;
}

/* Question Header */
.question h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Options */
label {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

/* Text Input */
input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    margin-top: 10px;
}

/* Button */
button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Hidden Section */
.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 600px) {
    #expertise-form {
        padding: 10px;
    }
    .question h3 {
        font-size: 1rem;
    }
}

/* General Styles */
body {
    font-family: Arial, sans-serif;
}

/* Question Mark Icon */
.info-icon {
    font-size: 1rem;
    color: #3498db;
    cursor: pointer;
    margin-left: 10px;
    background-color: #eaf2f8;
    border-radius: 50%;
    padding: 5px 8px;
    display: inline-block;
}

/* Modal Styles */
.modal {
    position: fixed; /* Keep modal in place over the viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Background overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto; /* Allow vertical scrolling inside the modal if needed */
}

.modal.hidden {
    display: none; /* Hide the modal when not displayed */
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 800px;
    max-height: 90vh; /* Ensure the modal stays within viewport height */
    overflow-y: auto; /* Add scroll functionality if content exceeds modal height */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Close Button */
.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

/* Prevent body scrolling when modal is open */
body.modal-open {
    overflow: hidden; /* Disable page scrolling */
}
