/* Include Noto Sans Thai Looped font */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai+Looped:wght@400;700&display=swap');

#simple-text-field-submission-form {
    max-width: 840px;
    margin-top: 30px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #DFDFE2;
    border-radius: 25px;
    font-family: 'Noto Sans Thai Looped', Arial, sans-serif;
    font-size: 16px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 8px 24px;
}

#simple-text-field-submission-form label {
    display: block;
    margin-top: 5px;
    font-weight: normal;
    color: #0A0B0D;
    font-family: 'Noto Sans Thai Looped', Arial, sans-serif;
    font-size: 16px;
}

.radio-container {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.radio-item {
    text-align: center;
    flex-direction: column;
    align-items: center;
    display: flex;
}

.radio-item label {
    display: block;
    margin-bottom: 5px;
    text-align: center;
    font-size: 16px;
}

#simple-text-field-submission-form select,
#simple-text-field-submission-form input,
#simple-text-field-submission-form button {
    width: 100%;
    padding: 10px;
    margin-top: 2px;
    margin-bottom: 5px;
    box-sizing: border-box;
    border: 1px solid #e0e0e0;
    font-size: 16px;
    font-family: 'TH Sarabun', Arial, sans-serif;
    transition: all 0.01s ease;
}

#simple-text-field-submission-form select {
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    background: #ffffff;
}

#simple-text-field-submission-form select:focus {
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    border: 2px solid #0A0B0D;
    margin-top: 1px;
    margin-bottom: 3.5px;
}

#simple-text-field-submission-form input {
    border-radius: 8px;
    border: 1px solid #E0E0E0;
}

#simple-text-field-submission-form button {
    border-radius: 25px;
    background: rgb(0, 82, 255);
    color: #ffffff;
    border: 0px solid #dadce0;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Noto Sans Thai Looped', Arial, sans-serif;
    font-weight: normal;
    transition: background 0.01s ease, border-color 0.01s ease;
}

#simple-text-field-submission-form button:hover {
    background: rgb(2, 76, 236);
    border-color: #c6cbd1;
    border-radius: 25px;
}

#simple-text-field-submission-form button:active {
    background: rgb(2, 76, 236);
    border-color: #c6cbd1;
    box-shadow: none;
    border-radius: 25px;
    margin-top: 1px;
    margin-bottom: 3.5px;
}

#simple-text-field-submission-form input:focus {
    border-color: none;
    outline: none;
    border-radius: 4px;
    border: 2px solid #0A0B0D;
    margin-top: 1px;
    margin-bottom: 3.5px;
}

#simple-text-field-submission-form input:hover {
    border-color: none;
    outline: none;
}

#simple-text-field-submission-response {
    margin-top: 0px;
    padding: 0px;
    border: 0px solid #dddddd;
    background-color: #f9f9f9;
    border-radius: 5px;
    font-family: 'Noto Sans Thai Looped', Arial, sans-serif;
    color: #0A0B0D;
    font-size: 16px;
}

details summary {
    cursor: pointer;
    margin-bottom: 10px;
    font-family: 'Noto Sans Thai Looped', Arial, sans-serif;
    font-weight: normal;
    font-size: 16px;
}

.collapsible-container {
    margin-left: 0px;
    border: 1.65px solid #ffffff;
    background: #EFF0F3;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
}

.collapsible-container2 {
    margin-left: 5px;
    border: 1.65px solid #ffffff;
    background: #ffffff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
}

.checkbox-container {
    text-align: center;
    margin-bottom: 5px;
}

.checkbox-container label {
    display: block;
    font-weight: normal;
    color: #0A0B0D;
    font-size: 16px;
    margin-bottom: 2px;
}

#simple-text-field-submission-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cccccc;
    font-size: 16px;
    font-family: 'TH Sarabun', Arial, sans-serif;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.01s ease;
    resize: both;
}

#simple-text-field-submission-form textarea:focus {
    border-color: #0A0B0D;
    outline: none;
    border: 2px solid #0A0B0D;
    border-radius: 4px;
}

/* Searchable Dropdown Styles */
.dropdown-container {
    position: relative;
    width: 100%;
}

.selected-field {
    padding: 10px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    font-family: 'TH Sarabun', Arial, sans-serif; /* Apply Sarabun font */
    color: #0A0B0D; /* Default color for placeholder text */
    margin-bottom: 1px;
}

.dropdown-content {
    display: none;
    position: absolute;
    width: 100%;
    max-height: 232px;
    overflow-y: auto;
    border: 1px solid #000000;
    background-color: #ffffff;
    z-index: 1000;
    border-radius: 8px;
}

.dropdown-content.show {
    display: block;
}

.search-input {
    width: 100%;
    padding: 10px;
    border: none;
    border-bottom: 1px solid #E0E0E0;
    box-sizing: border-box;
}

.dropdown-options div {
    padding: 10px;
    cursor: pointer;
    font-family: 'TH Sarabun', Arial, sans-serif; /* Apply Sarabun font */
}

.dropdown-options div:hover {
    background-color: #f1f1f1;
}
