/* 通用樣式 */
body {
    background: #9ad1f7;
    color: #003778;
    font-family: "Noto Sans TC", "Microsoft JhengHei", "微軟正黑體", Arial, sans-serif;
    letter-spacing: 1.8px;
}

/* 表單控制項樣式 */
select {
        color: #0c1531;
    margin-bottom: 10px;
    line-height: inherit;
    -webkit-appearance: none !important;
    background: url(../img/000.png?3) right center no-repeat;
    background-color: #ffffff !important;
    background-size: 33px;
    width: 100%;
    padding: 15px;
    padding-right: 2.5em;
    box-shadow: none;
    border: 1px solid #003778;
    max-width: 400px;
    font-size: 18px;
    border-radius: 99em;
}

select:focus,
select:active {
    background: url(data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 24 24" fill="%23003778"><path d="M7 10l5 5 5-5z"/></svg>) no-repeat right center;
    background-color: #ffffff;
    background-size: 2.5em;
    padding-right: 2.5em;
    border: 1px solid #003778;
    border-radius: 99em;
    outline: none;
}

input[type=text] {
    width: 100%;
    padding: 15px;
    background: #ffffff;
    box-shadow: none;
    border: 1px solid #003778;
    max-width: 400px;
    font-size: 18px;
    border-radius: 99em;
}

input[type="checkbox"] {
    margin-right: 5px;
}

input[type="radio"] {
    margin-right: 5px;
}





input[type="checkbox"]:after,
.checkbox input[type="checkbox"]:after,
.checkbox-inline input[type="checkbox"]:after {
    border: 2px solid #003778;
    margin-right: 0;
}

input[type="checkbox"]:checked:after,
.checkbox input[type="checkbox"]:checked:after,
.checkbox-inline input[type="checkbox"]:checked:after {
    background-color: #003778;
    border-color: #003778;
}

textarea {
    box-shadow: none;
    border: 2px solid #83add1;
    width: 100%;
    border-radius: 15px;
}

label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    margin-right: 10px;
}

/* CheckBoxList 樣式 */
#CBL_Col3,
#CBL_Col5,
#CBL_Col6,
#CheckBoxList1,
table[id*="CBL_Col3"],
table[id*="CBL_Col5"],
table[id*="CBL_Col6"],
table[id*="CheckBoxList1"] {
    color: #6f6f6f !important;
}

#CBL_Col3 td,
#CBL_Col5 td,
#CBL_Col6 td,
#CheckBoxList1 td,
table[id*="CBL_Col3"] td,
table[id*="CBL_Col5"] td,
table[id*="CBL_Col6"] td,
table[id*="CheckBoxList1"] td {
    color: #6f6f6f !important;
    display: flex;
    align-items: flex-start;
    padding-bottom: 8px;
}

#CBL_Col3 label,
#CBL_Col5 label,
#CBL_Col6 label,
#CheckBoxList1 label,
table[id*="CBL_Col3"] label,
table[id*="CBL_Col5"] label,
table[id*="CBL_Col6"] label,
table[id*="CheckBoxList1"] label {
    color: #6f6f6f !important;
    margin-left: 5px;
    margin-bottom: 0;
    line-height: 1.5;
    flex: 1;
}

#CBL_Col3 span,
#CBL_Col5 span,
#CBL_Col6 span,
#CheckBoxList1 span,
table[id*="CBL_Col3"] span,
table[id*="CBL_Col5"] span,
table[id*="CBL_Col6"] span,
table[id*="CheckBoxList1"] span {
    color: #6f6f6f !important;
}

#CBL_Col3 input[type="checkbox"],
#CBL_Col3 input[type="radio"],
table[id*="CBL_Col3"] input[type="checkbox"],
table[id*="CBL_Col3"] input[type="radio"] {
    flex-shrink: 0;
    margin: 0;
    margin-top: 7px;
}

#CBL_Col5 input[type="radio"],
#CBL_Col6 input[type="radio"],
table[id*="CBL_Col5"] input[type="radio"],
table[id*="CBL_Col6"] input[type="radio"] {
    flex-shrink: 0;
    margin: 0;
    margin-top: 7px;
    accent-color: #003778;
}



/* 容器與佈局樣式 */
.container-main {
    position: relative;
    overflow: unset;
}

.banner-img {
    width: 100%;
}

.content-padding {
    padding: 5%;
    font-weight: bold;
}

.section-img {
    width: 100%;
    margin-bottom: 5%;
}

/* 文字樣式 */
.required-asterisk {
    color: #b5156b;
}

.required-note {
    color: #b30b65;
    font-size: 12px;
    font-weight: normal;
    margin-top: 10px;
}

.error-text {
    color: #CC0000;
}

.helper-text {
    font-size: 12px;
    font-weight: normal;
    color: #717071;
    margin-bottom: 15px;
    margin-top: -5px;
}

.field-label {
    margin-bottom: 10px;
}

.small-note {
    font-size: 12px;
}

.gray-text {
    color: #6f6f6f;
}

.text-color-primary {
    color: #003778;
}

.notice-text {
    color: #003778;
    margin-bottom: 25px;
}

/* 按鈕樣式 */
.btn-register {
    width: 54.6%;
    z-index: 1;
}

.btn-login {
    width: 52%;
    margin-left: -7.6%;
}

.btn-submit {
    background: url(../img/btn.png) left top no-repeat;
    background-size: 100%;
    border: 0;
    width: 250px;
    height: 90px;
    border-radius: 0;
}

.btn-login-submit {
    background: url(../img/btn3.png) left top no-repeat;
    background-size: 100%;
    border: 0;
    width: 250px;
    height: 90px;
    border-radius: 0;
}

.btn-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.submit-container {
    margin-bottom: 30px;
    text-align: center;
    font-size: 14px;
}

/* 訊息提示樣式 */
.message-box {
    font-size: 22px;
    margin: 20px auto;
    padding: 20px;
    background-color: #003279;
    color: #ffffff;
    border-radius: 15px;
}

.agreement-section {
    margin: 6% 0;
}

.agreement-label {
    display: block;
    color: #6f6f6f;
}

.agreement-checkbox-label {
    display: flex;
    font-weight: bold;
}

/* Modal 樣式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    position: relative;
    width: auto;
    display: flex;
    align-items: center;
    min-height: calc(100% - 20px);
}

.modal-content-custom {
    font-size: 18px;
}

.modal-header-custom {
    background-color: #003279;
    color: #ffffff;
}

.modal-content-confirm {
    font-size: 18px;
    background: rgb(0 55 120 / 95%);
    border-radius: 20px;
    padding: 7%;
}

.modal-logo {
    width: 100%;
}

.modal-btn-image {
    width: 40%;
    display: block;
    margin: 5% auto 0;
}

/* 載入動畫樣式 */
.loading-overlay {
    display: none;
    left: 0;
    top: 0;
    position: fixed;
    width: 100%;
    text-align: center;
    z-index: 100;
    background: rgba(100, 100, 100, 0.3);
    height: 100vh;
    padding-top: 40vh;
}

/* 版本資訊樣式 */
.version-info {
    position: absolute;
    left: 10px;
    bottom: 10px;
    color: #b2b2b2;
    font-size: 12px;
}

/* 問卷區塊樣式 */
.question-section {
    margin-bottom: 20px;
}

.question-text {
    margin-bottom: 10px;
}

/* 圖片樣式 */
.section-divider-img {
    width: 100%;
    margin-bottom: 15px;
}

.top-section-img {
    width: 100%;
    margin-bottom: 15px;
    margin-top: 30px;
}

/* 佈局樣式 */
.row-content {
    color: #003778;
    padding-top: 5%;
}

.col-content {
    margin-bottom: 30px;
}

/* Modal 內按鈕樣式 */
.btn-primary-custom {
    background-color: #003279;
    color: #ffffff;
}

.modal-footer-hidden {
    display: none;
}
