/* Pre-Quiz Page CSS */
/* General Layout */
#prequizmain {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
}

/* Container */
.pre-quiz-container {
    max-width: 1024px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    text-align: center;
    margin: 20px auto;
    height: auto;
}

/* Header Section */
.pre-quiz-header {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

/* Description Section */
.pre-quiz-description {
    font-size: 20px;
    color: #555;
    margin-bottom: 20px;
    line-height: 2;
}

/* Features Section */
.pre-quiz-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 25px 0 30px 0;
}

.feature {
    display: flex;
    align-items: flex-start; /* Align icons better for small screens */
    text-align: left;
}

.feature-icon {
    font-size: 1.3em; /* Smaller icons */
    color: #4caf50;
    margin-right: 10px;
}

.feature-text {
    font-size: 16px; /* Adjusted text size */
    color: #333;
}

/* Call to Action Button */
.start-quiz-button {
    background-color: #4caf50;
    color: white;
    padding: 12px 25px; /* Smaller button size for mobiles */
    font-size: 1.3em; /* Slightly smaller font */
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.start-quiz-button:hover {
    background-color: #45a049;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .pre-quiz-container {
        max-width: 90%;
        padding: 15px 15px; /* Even smaller padding for very narrow screens */
    }

    .pre-quiz-header {
        font-size: 1.6em; /* Smaller header for mobile */
    }

    .pre-quiz-description {
        font-size: 1.1em; /* Compact description for small screens */
    }

    .feature-icon {
        font-size: 1.2em; /* Adjust icon size */
    }

    .feature-text {
        font-size: 1.0em; /* Adjust text size for compact fit */
    }

    .start-quiz-button {
        font-size: 1.2em; /* Slightly smaller button text for narrow screens */
        padding: 10px 20px; /* Compact button size */
    }
}

/* ----------------------------- */
/* General Page Styling */
main {
    background-color: #f5f5f5;
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
}

#quiz-main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 5rem;
}

@media screen and (max-width: 768px) {
    #quiz-main-container {
        padding: 1rem;
        min-height: 100vh;
    }
}

/* Quiz Container */
#quiz-container {
    background-color: #ffffff;
    width: 90%;
    max-width: 600px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

/* Progress Bar */
#progress-bar {
    height: 10px;
    background-color: #4caf50;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: width 0.3s ease;
}

/* Question Styling */
#question-container h2 {
    font-size: 1.6em; /* Larger font size for the question header */
    font-weight: bold; /* Bold font for emphasis */
    color: #333; /* Dark text for readability */
    /* padding: 0 0.5em 0 0.7em; */
    margin-bottom: 20px; /* Spacing between question and answers */
}


/* Answer Buttons */
.quiz-answer {
    display: block; /* Full-width clickable buttons */
    width: 100%; /* Ensures consistent width */
    max-width: 500px;
    margin-bottom: 10px;
    padding: 15px 20px;
    font-size: 0.7em; /* Smaller than the question header */
    font-weight: normal; /* Standard weight for answers */
    background-color: #ffffff; /* Light gray background */
    border: 1px solid #ddd; /* Border for definition */
    border-radius: 8px; /* Rounded corners */
    cursor: pointer;
    transition: all 0.3s ease; /* Smooth hover effects */
    text-align: left;
}

/* Hover Effects for Answer Buttons */
.quiz-answer:hover {
    background-color: #ffffff; /* Slightly darker background on hover */
    transform: scale(1.02); /* Slightly enlarge the button */
    border-color: #4caf50; /* Match border with background */
}

/* Selected Answer Styling */
.quiz-answer.selected {
    background-color: #4caf50; /* Highlight selected answer */
    color: #ffffff; /* White text for contrast */
    border-color: #4caf50; /* Match border with background */
}


/* Navigation Buttons Container */
#navigation-buttons {
    margin-top: 20px;
    text-align: left; /* Align the Previous button to the left */
}

/* Previous Button as Plain Text */
#navigation-buttons button {
    background: none; /* Remove background */
    border: none; /* Remove border */
    color: #777; /* Gray color for the text */
    font-size: 1em; /* Adjust font size */
    font-weight: normal; /* Normal weight for text-like appearance */
    cursor: pointer;
    text-decoration: underline; /* Optional: Underline the text */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margin */
    transition: color 0.3s ease; /* Smooth color transition on hover */
}

/* Hover Effect for Previous Button */
#navigation-buttons button:hover {
    color: #333; /* Darker gray on hover */
}

/* Disabled State */
#navigation-buttons button:disabled {
    color: #ccc; /* Lighter gray for disabled state */
    cursor: not-allowed; /* Indicate it's not clickable */
    text-decoration: none; /* Remove underline */
}

#lead-form {
    display: flex;
    flex-direction: column;
}

#lead-form div {
    margin-bottom: 15px;
}

#lead-form label {
    font-size: 1em;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

#lead-form input {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
}

#lead-form button {
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background-color: #4caf50;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#lead-form button:hover {
    background-color: #45a049;
}

#terms-paragraph {
    font-size: 13px;
    font-weight: 400;
    line-height: 19px;
}

@media screen and (max-width: 768px) {
    .last-step-paragraph {
        text-align: left;
        font-size: 16px;
    }
}

