/**Popup styles*/
.popup-btn.primary-btn {
  background-color: #002c8f !important;
  color: white;
  padding: 20px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  flex: 1;
}

.popup-btn.secondary-btn {
  background-color: #fff;
  border: 1px solid #11284b;
  color: #11284b;
  padding: 20px 20px;
  border-radius: 5px;
  cursor: pointer;
  flex: 1;
}

.upload-button-label {
    background-color: #002c8f;
    color: white !important;
    padding: 20px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    margin-top: 10px;
}
/* Hide original GF file input */
.gf-hidden-upload-input {
  display: none !important;
}

/* Custom upload button */
.passport-upload-row .custom-passport-btn {
  background-color: #002c8f !important;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  border: none;
}

/* Tips link below the button */
.passport-tips-wrapper {
  margin-top: 10px;
}

.passport-tips {
  color: #11284b;
  font-weight: bold;
  cursor: pointer;
}

.passport-image-ocr {
  margin-bottom: 20px;
}

.uploaded-passport-file {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  color: #11284b !important;
  font-weight: bold !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
  width: fit-content !important;
}

.uploaded-passport-file span:last-child {
  color: red;
  cursor: pointer;
  font-weight: bold;
}

.passport-upload-ui {
  display: flex !important;
  flex-direction: column !important;
  gap: 17px !important;
  margin-bottom: 8px !important;
}

.passport-upload-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 20px !important;
  margin-bottom: 15px !important;
}

.remove-uploaded-file {
  color: red;
  cursor: pointer;
  font-weight: bold;
}

.passport-tips-wrapper {
  font-size: 13px;
  color: #11284b;
}

/* For Loader */
.scanning-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.scanning-loader {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 5px solid #ccc;
  border-top-color: #11284b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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