* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-size: 1rem;
    line-height: 1.5;
    background-color: #C3E0E5;
}

div[class^='container'] {
    margin: 30px auto;
}

div.card {
    width: 90%;
    margin: 0px auto 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1), 0 8px 16px rgba(0, 0, 0, .1);
}

div.card div.card-body {
    padding: 25px;
}

h3#title {
    border-left: 6px solid #41729F;
    background-color: #274472;
    color: white;
    margin-bottom: 15px;
    padding: 5px 0px 5px 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

h3#title img {
    width: 26px;
    height: auto;
}

hr {
    margin: 10px auto;
}

/* ==================== 同意書 =================== */
div.consent {
    font-size: 0.98rem;
    font-family: 標楷體;
    margin-top: 20px;
    padding: 10px 20px;
    border: 1px solid lightgray;
    border-radius: 5px;
}

div.consent p.listTitle {
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: bold;
}

div.consent span.highlight {
    background-color: #FFF4BD;
    padding: 5px 0px;
}

div.consent span.redword {
    color: red;
    font-weight: bold;
}

div.consent ol {
    margin-left: 10px;
}

/* =================== 表單 =================== */
div#subtitle {
    width: 30%;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 15px 0px;
    padding: 5px 0px 5px 5px;
    background-image: linear-gradient(to right, #41729F, #ffffff);
}

div#subtitle h5 {
    color: white;
    font-weight: bold;
    display: inline-block;
    margin-left: 10px;
    margin-bottom: 0px;
}

div#subtitle i {
    color: white;
}

div[class^='mb'] {
    padding-right: 40px;
}

/* 輸入框 */
label {
    margin-bottom: 0.5rem;
    margin-left: 4px;
    display: block;
    font-weight: bold;
}

label.required::after {
    content: '*';
    color: red;
    margin-left: 5px;
}

select.form-select,
input.form-control {
    padding: 6px 10px;
    border: 1px solid #D6D6D6;
    font-size: 0.9rem;
}

select.form-select:focus,
input.form-control:focus {
    outline: 1px solid #0d6efd;
    box-shadow: 0 0 2px 4px rgba(0, 123, 255, 0.1);
}

input.form-control::placeholder {
    font-size: 0.9rem;
}

input.form-check-input {
    border: 1px solid #D6D6D6;
}

/* 組合輸入框 */
div.group {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

div.group p {
    margin-bottom: 0px;
    white-space: nowrap;
}

div.group input.SM, div.group select.SM {
    width: 25%;
    display: inline;
}

div.group input.MD, div.group select.MD {
    width: 100%;
    display: inline-block;
}

/* 其他設定 */
button.btn {
    padding: 5px 20px;
}

p#Advice {
    color: red;
    font-weight: bold;
    margin-left: 4px;
}

/* ==================== footer ==================== */
div.footer {
    width: 100%;
    position: relative;
    bottom: 0;
    background-color: #071330;
    margin-top: 30px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

div.footer p {
    margin: 5px auto;
    color: white;
}

/* ==================== <768 px ==================== */
@media only screen and (max-width: 768px) {
    div.card div.card-body {
        padding: 15px 25px;
    }

    div[class^='mb'] {
        padding-right: 25px;
    }

    div#subtitle {
        width: 50%;
        display: flex;
        flex-direction: row;
        align-items: center;
        margin: 15px 0px;
        padding: 5px 0px 5px 5px;
        background-image: linear-gradient(to right, #41729F, #ffffff);
    }
}

/* ==================== <576 px ==================== */
@media only screen and (max-width: 576px) {
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-size: 0.9rem;
        /* 畫面縮小文字也跟著縮小 */
    }

    div[class^='container'] {
        margin: 15px auto;
    }

    div.card {
        width: 100%;
        margin: 0px auto 30px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, .1), 0 8px 16px rgba(0, 0, 0, .1);
    }

    div.consent {
        font-size: 0.98rem;
        font-family: 標楷體;
        margin-top: 20px;
        padding: 10px;
        border: 1px solid lightgray;
        border-radius: 5px;
    }

    div#subtitle {
        width: 70%;
        display: flex;
        flex-direction: row;
        align-items: center;
        margin: 15px 0px;
        padding: 5px 0px 5px 5px;
        background-image: linear-gradient(to right, #41729F, #ffffff);
    }
}