/* General styling for the form container */
#ca-prov-survey {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
}

/* Styling for question blocks */
.question-container {
    margin-bottom: 55px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    width: 100%;
    box-sizing: border-box;
}

/* Question header styling */
.question-container h2 {
    margin-top: 2px;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 25px;
    font-weight: bold;
    color: rgb(59, 54, 54);
}

.question-container h3 {
    margin-top: 10px;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: rgb(59, 54, 54);
}

/* Highlight error styling */
.highlight-error {
    border: 2px solid red;
    padding: 10px;
    background-color: #ffe6e6;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Button group container styling */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Answer button styling */
.answer-button span {
    display: block;
    padding: 10px 20px;
    border: 1px solid grey;
    border-radius: 6px;
    background-color: white;
    text-align: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgb(59, 54, 54);
    width: 100%;
    box-sizing: border-box;
}

/* Hover effect for answer options */
.answer-button:hover span{
    background-color: #38919486;
    border-color: #389194;
}

/* Hide radio and checkbox inputs */
.answer-button input[type="radio"],
.answer-button input[type="checkbox"] {
    display: none;
}

/* Selected state for answer buttons */
.answer-button input[type="radio"]:checked + .answer-button,
.answer-button input[type="checkbox"]:checked + .answer-button {
    background-color: #38919486;
    border-color: #389194;
}

.answer-button input[type="radio"]:checked + span,
.answer-button input[type="checkbox"]:checked + span {
    background-color: #38919486;
    border-color: #389194;
}

/* Location input styling */
.question-container input[type="text"] {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s ease;
}

/* Submit button styling */
#ca-prov-survey input[type="submit"] {
    display: block;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 6px;
    background-color: #389194;
    color: white;
    font-size: 25px;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

/* Submit button hover effect */
#ca-prov-survey input[type="submit"]:hover {
    background-color: #38919486;
}

/* Mobile styling */
@media (max-width: 600px) {
    #ca-prov-survey {
        width: 100%;
        padding: 15px;
    }
    
    .question-container input[type="text"] {
        width: 100%;
        padding: 14px;
        font-size: 18px;
    }
    
    #ca-prov-survey input[type="submit"] {
        font-size: 18px;
    }
}