.block {
  background-color: white;
  border-radius: 24px;
  box-shadow: rgba(100, 100, 111, 0.3) 0px 7px 20px 0px;
  padding: 24px;
}

.field-name {
  font-weight: 500;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.border-danger {
  color: #d33e5f;
}

input[type="text"],
input[type="password"] {
  height: 48px !important;
}

.nav-pills {
  border: 3px solid #4e61a7;
  border-radius: 8px;
}

.nav-pills .nav-button-personal:not(.active) {
  background-color: white;
  color: #4e61a7;
}

.nav-pills .nav-button-cardVerify:not(.active) {
  background-color: white;
  color: #4e61a7;
}

.nav-pills .nav-button-personal.active {
  background-color: #4e61a7;
  border-radius: 4px 0px 0px 4px;
  color: white;
}

.nav-pills .nav-button-cardVerify.active {
  background-color: #4e61a7;
  border-radius: 0px 4px 4px 0px;
}

.btn-blueBtn {
  background-color: #4e61a7;
  color: white;
}

.btn-outline-blueBtn {
  border: 2px solid #4e61a7;
  color: #4e61a7;
  height: auto;
  border-radius: 50px;
}

.btn-outline-blueBtn:hover {
  background-color: #4e61a7;
  color: white;
}

.btn-blueBtn:hover {
  background-color: #5d6eac;
  color: white;
}

button:disabled {
  background-color: gray !important;
  border-radius: 8px 8px 16px 8px;
  color: #fff !important;
  border-color: gray;
  text-align: center;
  padding: 11px;
}

/* 強化按鈕 focus 樣式，提升鍵盤無障礙（細一點，offset 1px） */
button:focus, .btn:focus {
  outline: 1.5px solid #1976d2 !important;
  outline-offset: 1px;
  box-shadow: 0 0 0 1.5px #bbdefb;
}

/* 驗證按鈕 focus 狀態為紅色外框（細一點，offset 1px） */
#btnVerifyEmail:focus, #btnVerifyPhone:focus,
[id$="_btnVerifyEmail"]:focus, [id$="_btnVerifyPhone"]:focus {
  outline: 1.5px solid #d32f2f !important;
  outline-offset: 1px;
  box-shadow: 0 0 0 1.5px #ffcdd2;
}

.blue-ls {
  padding-left: 0.1rem;
  list-style-type: none;
}

.blue-ls li {
  padding-left: 1.5rem;
  background-image: url(../images/top-star.svg);
  background-position: 0 5px;
  background-repeat: no-repeat;
  margin: 2rem 0;
}

.blue-ls li.meali {
  margin: 1rem 0 !important;
}

.ul-title {
  padding-left: 0.1rem;
  list-style-type: none;
}

.modal .modal-content {
  border-radius: 5px !important;
}

.modal .title {
  font-size: calc(1.275rem + 0.3vw);
  font-weight: 500;
  line-height: 1.2;
}

#alertModal .alert-content {
  border-top: 3px solid #000000;
  border-bottom: 3px solid #000000;
  padding: 25px 0;
  margin: 10px 0;
  min-height: 200px;
}

.modal-lg #alertIcon {
  max-width: 100px;
}

#alertText {
  font-size: 1.2rem;
  white-space: pre-line;
  word-wrap: break-word;
}

.img-full-width {
  width: 100% !important;
}

.inputs {
  flex-direction: row;
  column-gap: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inputs input {
  width: 45px;
  height: 43px;
  border: 1px solid #6b6b6b;
}

.inputs input[type="number"]::-webkit-inner-spin-button,
.inputs input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin: 0;
}

.inputs input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
  -webkit-appearance: textfield;
}

.form-control:focus {
  box-shadow: none;
  border: 2px solid #5d6eac;
}

.error-message {
  font-size: small;
  margin-left: 3px;
  color: #d33e5f;
  font-weight: 400;
  display: none;
}

input[readonly] {
  background-color: #f0f0f0;
  pointer-events: none;
}

.verify {
  color: white;
  border-radius: 8px 8px 16px 8px;
}

.resend {
  color: #8f8c8c;
  font-size: 0.9rem;
  font-weight: 400;
}

.resend.active {
  color: #4e61a7;
  text-decoration-line: underline;
  cursor: pointer;
}

.agreeCheck {
  position: absolute;
}

a {
  color: #4e61a7;
  text-decoration-line: underline;
}

.check {
  background-image: url(../images/checked.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 25px;
  height: 25px;
  margin-top: 10px;
  margin-right: 10px;
  display: none;
}

.eye {
  font-size: 22px;
  margin-top: 5px;
  margin-right: 12px;
}

.loading-hidden {
  display: none;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  z-index: 1000;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-top-color: #4e61a7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#agreementModal .modal-dialog {
  overflow-y: initial !important;
}

#agreementModalBody {
  height: 70vh;
  overflow-y: auto;
}

#agreementModal p {
  margin: 0;
  width: 100%;
}

#agreementModal .modal-header {
  background-color: #4e61a7;
  color: white;
  justify-content: space-between;
  border-radius: 5px 5px 0 0;
}

#agreementModalBody ul {
  margin-bottom: 0;
}

#agreementModalBody .main-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 30px;
  margin-top: 1rem !important;
}

.btn-close {
  margin-top: 0 !important;
  margin-right: 0 !important;
}

.errorOtp {
  flex-direction: row !important;
  background-color: #fff9fa;
  border: 1px solid rgba(255, 66, 79, 0.2);
}

.errorOtp img {
  height: auto;
  width: 20px;
  padding: 0 0;
}

@media (max-width: 576px) {
  .modal .modal-dialog {
    display: flex;
    justify-content: center !important;
    align-items: center;
    margin: auto !important;
    height: 100vh;
  }
}

.flowchart-content {
  border: 2px dashed #6b6b6b;
  border-radius: 3px;
}

.flowchart {
  width: 100%;
  padding: 40px 10px;
}

.notOpen-message {
  margin-left: 3px;
  color: #d33e5f;
  font-weight: 600;
}
