/* START - used in js to hide blocks on the template */
.js-cts-question--hide {
    display: none;
}
/* END - used in js to hide blocks on the template */

.survey-custom--wrapper {
    padding: 10px 30px 50px;
    color: #000; /* Default text color */
}

.custom-multiselect-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-multiselect {
    width: 100%;
    padding: 8px 30px 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='14' viewBox='0 0 24 24' width='14' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    min-height: 40px;
    color: #000;
}
.survey-custom--dropdown {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0.5em 0.75em;
   
    
    color: #333;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 0.25em;
    margin-bottom: 1em;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.survey-custom--dropdown:focus {
    border-color: #000000;
    outline: none;
    
}

.survey-custom--dropdown option {
    padding: 0.25em 0.5em;
}
.custom-placeholder {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    font-size: 14px;
    transition: 0.2s ease all;
}

/* hide via JS when selection is made */
.custom-placeholder.hidden {
    display: none;
}

.survey-custom--description {
    padding: 10px 20px 20px;
    font-size: 14px;
    color: #000;
}

.survey-custom--answers {
    padding-top: 10px;
}

.survey-custom--answer {
    position: relative;
    margin-bottom: 5px;
    color: #000;
}

/* Radio Button Styles */
.survey-custom--answer input[type='radio'] {
    display: none;
}

.survey-custom--answer label {
    display: block !important;
    padding: 8px 20px 8px 40px;
    font-weight: normal;
    cursor: pointer;
    position: relative;
    min-height: 20px;
    line-height: 1.5;
    color: #000;
}

.survey-custom--answer input[type='radio'] + label:before {
    content: " ";
    display: inline-block !important;
    position: absolute;
    left: 15px;
    top: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #666;
    background-color: transparent !important;
    box-sizing: border-box;
}

.survey-custom--answer input[type='radio']:checked + label:before {
    border-color: #000 !important;
}

.survey-custom--answer input[type='radio']:checked + label:after {
    content: " ";
    display: block !important;
    position: absolute;
    left: 21px;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #000 !important;
}

/* Checkbox Styles */
.survey-custom--answer input[type='checkbox'] {
    display: none !important;
}

.survey-custom--answer input[type='checkbox'] + label:before {
    content: " ";
    display: inline-block !important;
    position: absolute;
    left: 15px;
    top: 8px;
    width: 20px;
    height: 20px;
    border: 2px solid #666;
    background-color: transparent !important;
    box-sizing: border-box;
}

.survey-custom--answer input[type='checkbox']:checked + label:before {
    background-color: #000 !important;
    border-color: #000 !important;
}

.survey-custom--answer input[type='checkbox']:checked + label:after {
    content: "\2713";
    color: white;
    position: absolute;
    left: 19px;
    top: 11px;
    font-size: 14px;
    line-height: 1;
}

/* Button Styles */
.survey-custom--buttons {
    text-align: center;
    margin-top: 30px;
}

.survey-custom--buttons button {
    margin: 0 10px;
    padding: 10px 20px;
    background-color: #000 ;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.survey-custom--buttons button:hover {
    background-color: #333 ;
}

@media only screen and (max-width: 767px) {
    .survey-custom--wrapper {
        padding: 10px 10px 50px;
    }

    .survey-custom--buttons button {
        width: 100%;
        margin: 5px 0;
    }
}
