.modal {
    display: block;
    overflow: auto;
    padding: 10px;
}
.modal-dialog-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100% - (0.5rem * 2));
}
.modal-dialog {
    margin: 0px auto;
}
.modal-content {
    max-width: 400px;
    border: none;
    -webkit-box-shadow: 0px 0px 10px rgba(198, 34, 53, .4);
    box-shadow: 0px 0px 10px rgba(198, 34, 53, .4);
}
.modal-content a {
    color: #c62235;
}
.modal-content a:hover {
    color: #c62235;
    text-decoration: underline;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: bold;
}

.form-group:last-child {
    margin-bottom: 0;
}
.modal-content label {
    font-size: 1rem;
    line-height: 1rem;
    margin: 5px 0;
}

.modal-content input:not([type="checkbox"]):not([type="radio"]),
.modal-content select, .modal-content textarea {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 1rem;
    line-height: 1rem;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
    -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

input.inline {
    width: 110px !important;
    display: inline-block !important;
    vertical-align: middle;
    margin: 5px;
}
.btn-primary,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    color: #fff;
    background-color: #c62235;
    border-color: #c62235;
}

.btn-secondary,
.btn-secondary:hover,
.btn-secondary:active,
.btn-secondary:focus{
    color: #666666;
    border: 1px solid #dddddd;
    background: #efefef;
}

button:hover,
button:active,
button:focus{
    outline: none;
}
.modal-footer .btn + .btn {
    margin-top: 7px;
}

.overlay {
  position: absolute;
  width: 100vw;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}

.overlay.active {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s;
}
.msg-nmc, .msg-nm {
    color: #C70009;
}
.msg-nmc {
    margin-bottom: 0 0 10px 0;
    max-width: 340px;
    text-align: left;
}
.msg-nm {
    font-weight: bold;
}
#mobiledata .mobile-red {
	color: #C70009; 
}
@media (min-width: 576px){
    .modal-content{
        min-width: 350px;
        max-width: 500px;
    }
}
@media (max-width: 520px){
    .modal-content{
        min-width: calc(100% - 20px);
        max-width: 500px;
    }
}
.captchaImg{
  vertical-align: middle;
}
.reload-captcha{
  cursor: pointer;
}
.check-info {
    font-size: 1.1rem;
    line-height: 1.8rem;
}
input[type="checkbox"].surround{
    opacity: 0;
    margin-bottom: -320px;
}

input[type="radio"].surround{
    opacity: 0;
    margin: 0;
    padding: 0;
    left: 74px;
    top: -30px;
}

input[type="radio"].surround:disabled + label{
    background-color: #e7e7e7;
    cursor: no-drop;
    color: #ababab;
}

input[type="checkbox"].surround + label,
input[type="radio"].surround + label {
    position: relative;
    width: 100%;
    border: 1px solid #aaa;
    border-radius: 8px;
    padding: 10px;
    padding-left: 60px;
    cursor: pointer;
}
input[type="checkbox"].surround:checked + label,
input[type="radio"].surround:checked + label {
    border: 1px solid #c62235;
}

input[type="checkbox"].surround + label:before,
input[type="radio"].surround + label:before {
    content:'';
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    display: block;
    width: 20px;
    height: 20px;
    color: #aaa;
    border: 1px solid #aaa;
    border-radius: 50%;
    margin-left: -38px;
}
input[type="checkbox"].surround:checked + label:before,
input[type="radio"].surround:checked + label:before {
    color: #fff;
    border: 1px solid #c62235;
    background-color: #c62235;
}

input[type="checkbox"].surround + label:after,
input[type="radio"].surround + label:after{
    content:'';
    position: absolute;
    top: -2px;
    bottom: 0;
    margin: auto;
    display: block;
    width: 7px;
    height: 11px;
    border: 3px solid #aaa;
    border-left: 0;
    border-top: 0;
    transform: rotate(45deg);
    margin-left: -31px;
}
input[type="checkbox"].surround:checked + label:after,
input[type="radio"].surround:checked + label:after{
    border-color: #fff;
}

input[type="radio"].surround + label {
    border-radius: 50px;
    padding-left: 45px;
    width: 140px;
}

input:hover, input:active, input:focus{
    outline: none;
}

.radio-group.inline {
    display: inline-block;
    margin: 0 10px 0 0;
}

.radio-group.inline + .radio-group.inline {
    margin: 0 5px;
}
.modal-body .content{
    background-color: white;
    padding: 10px 10px;
    border: 1px solid #a9a9a9;
    margin-bottom: 13px;
    border-radius: 5px;
    min-height: initial;
}
.trans-content .prfy{
  font-size : 15px;
}
label[for=radCardno1], label[for=radCardno2]{
  font-size: 13px;
}

/*網路留言*/
.modal-content textarea {
    height: auto;
}
.modal-content h2 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}
.modal-content h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}
input[type="radio"], input[type="checkbox"] {
    vertical-align: middle;
    margin: 0;
}
.modal-body p {
    line-height: 1.5em;
}
.leaveForm-header{
  display: flex;
  align-items: center;
  height: 40px;
  padding-left: 15px;
  background: #d00f24;
  color: #fff;
}
.leaveForm-header p{
  font-size: 18px;
  font-weight: normal;
}
#leaveForm-content{
  max-width: none;
  font-family: "微軟正黑體", "Microsoft JhengHei", sans-serif!important;
}
#leaveForm-content .modal-body p{
  font-size: 16px;
  color: #532818;
}
#leaveForm-content .form-group{
  font-size: 16px;
  color: #4d4d4d;
}
.leaveForm-footer{
  margin-left: 15px;
  padding-bottom: 60px;
}
#leaveForm-content a.reload-captcha{
  font-size: 14px;
  color: #00A8B8;
}
.leaveForm-footer .btn-primary{
  float: left;
}
.leaveForm-footer .btn-secondary{
  background: #e9e9e9;
  float: left;
  margin: 0px;
  border-color: #fff;
}
.leaveForm-footer .submit, .leaveForm-footer .newChat{
  color: #333333;
}
.leaveForm-alert{
  background-color: #c60f13;
}
.senderError{
  list-style: disc;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  padding: 10px 0 10px 30px;
}
#form-overlay select[disabled], #form-overlay input:disabled{
  background-color: #ddd;
  opacity: 0.9;
}
.modal-body .description{
  font-size: 15px;
  line-height: 20px;
}
.modal-content .form-end{
  padding: 10px 15px 10px 15px;
  margin: 0 0 15px 15px;
  font-weight: bold;
  background-color: #5da423;
  color: #fff;
}