/* ------------------------------
   GLOBAL
--------------------------------*/
.page { display: none; }
.page.active { display: block; }

/* ------------------------------
   BANK CARDS
--------------------------------*/
.bank-card img {
  max-width: 100%;
  max-height: 50px;
  object-fit: contain;
}

.bank-card {
  position: relative;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: border-color .2s, box-shadow .2s;
}

.bank-card:hover {
  border-color: #fd5d0d;
  box-shadow: 0 0 5px rgba(60,60,60,0.4);
}

.bank-card.selected {
  border-color: #fd5d0d;
  box-shadow: 0 0 8px rgba(13,110,253,0.3);
}

.bank-card .checkmark {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  background: #fd5d0d;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  display: none;
  align-items: center;
  justify-content: center;
}

.bank-card.selected .checkmark { display: flex; }

/* ------------------------------
   BUTTONS
--------------------------------*/
.btn-primary {
  background-color: #cc5456;
  border: none;
}
.btn-primary:hover { background-color: #832123; }



/* ------------------------------
   AUTOCOMPLETE DROPDOWN
--------------------------------*/
#senderIDDropdown {
  position: relative !important;
}

#customerIDSuggestion {
  position: absolute !important;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  display: none;
  max-height: 260px;
  overflow-y: auto;
  z-index: 99999;
}

#customerIDSuggestion ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#customerIDSuggestion li {
  padding: 8px 12px;
  cursor: pointer;
}

#customerIDSuggestion li:hover {
  background: #f3f3f3;
}

/* ------------------------------
   FIELD ERROR / SUCCESS HIGHLIGHT
--------------------------------*/
.field-error {
  border: 2px solid #d9534f !important;
  background: #fff0f0 !important;
}

.field-success {
  border: 2px solid #28a745 !important;
  background: #f0fff4 !important;
  transition: background 0.6s ease-out;
}

.suggest-box {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    width: 100%;
    z-index: 99999;
    display: none;
    max-height: 250px;
    overflow-y: auto;
}
.suggest-box li {
    padding: 8px;
    cursor: pointer;
}
.suggest-box li:hover {
    background: #efefef;
}

/* Red highlight for invalid fields */
.input-error {
    border: 2px solid #d9534f !important;
    background-color: #ffe5e5 !important;
}


.doc-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border: 2px solid #ccc;
    border-radius: 6px;
    cursor: zoom-in;
}

.doc-missing {
    width: 100%;
    height: 120px;
    border: 2px dashed #cc0000;
    border-radius: 6px;
    color: #cc0000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.qr-thumb {
    width: 70%;
    max-width: 180px;
    border: 2px solid #333;
    border-radius: 8px;
}

.page {
    display: none;
    height: auto;
    max-height: calc(100vh - 20px); /* Enough space */
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 60px;
}

.page.active {
    display: block;
}


/* Prevent flash before JS decides the correct page */
body.preload .page {
    display: none !important;
}

/* ------------------------------
   GENERAL PAGE SCROLL FIX
--------------------------------*/
.page {
    max-height: calc(100vh - 40px);
    overflow-y: auto !important;
    overflow-x: hidden;
    padding-bottom: 80px;
}

/* ------------------------------
   CONFIRM PAGE EXTRA SPACE
--------------------------------*/
#confirm-transaction.page.active {
    padding-bottom: 140px !important;
}

.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

@media (min-width: 768px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
}

.nav-link.active {
  background-color: #ffffff2a !important;
  border-radius: 10px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.bank-card img {
  max-width: 100%;
  max-height: 50px;
  object-fit: contain;
}

.bank-card {
  position: relative;
  cursor: pointer;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.2s ease;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  transition: 0.3s;
}

.bank-card:hover {
  border-color: #fd5d0d;
  box-shadow: 0 0 5px rgba(60, 60, 60, 0.4);
}

.bank-card .checkmark {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #fd5d0d;
  color: #fff;
  font-size: 14px;
  width: 20px;
  height: 20px;
  display: none;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.bank-card.selected .checkmark {
  display: flex;
}

.bank-card.selected {
  border-color: #fd5d0d;
  box-shadow: 0 0 8px rgba(13, 110, 253, 0.4);
}

.btn-primary {
  background-color: #cc5456;
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background-color: #832123;
}

#form-transaction {
  max-height: 100vh;
  overflow-y: auto;
}

.g-recaptcha {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

/* Login layout */

html,
body {
  height: 100%;
}

.form-signin {
  width: 100%;
  max-width: 330px;
  padding: 15px;
  margin: auto;
}

.form-signin .checkbox {
  font-weight: 400;
}

.form-signin .form-floating:focus-within {
  z-index: 2;
}

.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
