body {
    padding: 0;
    background-color: #e5e5e5;
    color: #343434;
    font-family: "Poppins", Arial;
    font-size: 14px;
    margin: 0;
}
label {
    display: block;
    font-weight: 600;
}
input, textarea, select {
    display: block;
    width: 100%;
    border: 1px solid #ccc;
    background-color: white;
    padding: 8px 12px;
    box-sizing: border-box;
    line-height: 1.3em;
    color: #343434;
    font-family: "Poppins", Arial;
    max-width: 100%;
}
input:active, textarea:active, select:active {
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline:none;
    box-shadow: 0px 0px 3px #cccccc;
    /*border: 2px solid #0c7ce6;*/
}
input, textarea, select, button, input[type="file"]::file-selector-button {
    border-radius: 5px;
}
textarea {
    min-height: 100px;
    height: auto;
    resize: vertical;
}
fieldset.checkboxGroup {
    border: none;
    margin: 0;
    padding: 0;
}
fieldset.checkboxGroup input, fieldset.checkboxGroup label {
    display: inline;
    width: auto;
}
fieldset.checkboxGroup > label {
    display: block;
    margin-bottom: 10px;
}
fieldset.checkboxGroup .checkbox-container:last-child {
    margin-bottom: 0;
}

/* General styling for checkboxes and labels */
.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

/* Styling for the label */
.checkbox-container label {
    margin-left: 8px; /* Adds space between checkbox and label */
    font-weight: normal;
}

/* Styling for the checkbox */
.checkbox-container input[type="checkbox"], .checkbox-container input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer; /* Adds a pointer cursor for better UX */
}


select {
    /* reset */

    margin: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;


    background-image:
            linear-gradient(45deg, transparent 50%, gray 50%),
            linear-gradient(135deg, gray 50%, transparent 50%),
            linear-gradient(to right, #ccc, #ccc);
    background-position:
            calc(100% - 16px) calc(1em + 2px),
            calc(100% - 11px) calc(1em + 2px),
            calc(100% - 2.5em) 0.5em;
    background-size:
            5px 5px,
            5px 5px,
            1px 1.5em;
    background-repeat: no-repeat;
}


select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #000;
}
.formField_Money .hbox input {
    margin-right: 10px;
}
button, input::file-selector-button {
    background: #0c7ce6;
    color: #fff;
    padding: 8px 20px;
    border: 1px solid #0c7ce6;
    cursor: pointer;
    font-family: "Poppins", Arial;
    font-size: 14px;
    opacity: 0.85;
}
button[type=submit] {
    background-color: #69bf00;
    border-color: #69bf00;
}
button:disabled {
    background: #cccccc;
    border-color: #cccccc;
}
button:not(:disabled):hover, input::file-selector-button:hover {
    opacity: 1;
}
input::file-selector-button {
    margin-right: 10px;
}
.hidden {
    display: none;
}
.hbox {
    display: flex;
}
.required {
    color: red;
}


.container {
    max-width: 800px;
    margin: 10px auto;
    padding: 0;
    box-sizing: border-box;
}
.header {
    /*background: #000000;
    color: #fff;*/
    padding: 20px;
    border-radius: 5px 5px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 20px;
    margin: 0 0 10px 0;
    min-height: 80px;
}
.header img {
    max-width: 30%;
    margin-right: 20px;
    max-height: 100px;
}
.header .title {
    text-align: right;
}
.content {
    /*padding: 20px;*/
}
.labelDesc {
    margin: 10px 0;
}
.question {
    margin: 0 0 10px 0;
}
.buttonsBar {
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.buttonsBarLeft {
    display: flex;
    align-items: center;
}
.buttonsBarLeft button {
    margin-left: 10px;
    background: none;
    color: #000000;
}
.description {
    margin: 0 0 20px 0;
}
.clause {
    margin: 10px 0;
    color: #757575;
    font-size: 12px;
}
.question, .clause, .description {
    padding: 20px;
}

.previewInfo {
    background: #ffeda8;
    padding: 5px 0;
    text-align: center;
    font-size: 12px;
}
.header, .question, .clause, .description, .sectionName {
    box-shadow: 0 0 6px #cccccc;
    border-radius: 5px;
    background: #fff;
}
.sectionName {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 10px 0;
    background: #eeeeee;
    padding: 10px 20px !important;
}
.columns {
    display: flex;
}
.column {
    flex: 1;
    margin-right: 10px;
}
.columns .column:last-child {
    margin-right: 0;
}
.legend {
    color: red;
    font-size: 12px;
    margin: 20px 0;
}

.footer {
    color: #444444;
    font-size: 12px;
    text-align: center;
}
.footer a {
    color: #444444;
}
.footerLogo {
    display: flex;
    align-items: center;
    justify-content: center;
}
.footerLogo img {
    margin: 15px;
    width: 150px;
}


@media (max-width: 800px) {
    body {
        margin: 0;
        font-size: 16px;
    }
    .container, .header {
        border-radius: 0;
    }
    input, textarea, select {
        font-size: 16px;
        line-height: 1.4em;
    }
    textarea {
        min-height: 120px;
    }
    input[type="date"] {
        -webkit-appearance: none; /* Remove Safari's native styling */
        -moz-appearance: none;    /* For Firefox */
        appearance: none;
        width: 100%;
        font-size: 16px;
        text-align: left;
        min-height: 40px;
    }
    select {
        background-position:
                calc(100% - 20px) calc(1em + 2px),
                calc(100% - 15px) calc(1em + 2px),
                calc(100% - 2.5em) 0.5em;
    }

    .legend {
        margin: 20px;
    }
    .columns {
        display: block;
    }
    .columns .column {
        margin-right: 0;
    }
    .buttonsBar {
        display: block;
        margin: 0 20px;
    }
    .buttonsBarRight {
        margin-top: 10px;
        text-align: right;
    }
    .buttonsBarLeft {
        justify-content: space-between;
    }
    .footer {
        margin: 0 20px;
    }
}