/* Verify result popup — success/error modal. Uses site font (Poppins) and design tokens. */
#verifyResult {
  --verify-head-font: 'Poppins', sans-serif;
  --verify-main-font: 'Poppins', sans-serif;
  --verify-success: var(--color-success);
  --verify-error: var(--color-error);
}

.verify-popup-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#verifyResult .modalbox.success,
#verifyResult .modalbox.error {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 8px;
  background: white;
  padding: 25px 25px 15px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#verifyResult .modalbox.animate .icon {
  -webkit-animation: verify-fall-in 0.75s;
  -moz-animation: verify-fall-in 0.75s;
  -o-animation: verify-fall-in 0.75s;
  animation: verify-fall-in 0.75s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

#verifyResult .modalbox h1 {
  font-family: var(--verify-head-font);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: #1f2937;
  font-weight: 700;
  line-height: 1.25;
}

#verifyResult .modalbox p {
  font-family: var(--verify-main-font);
  font-size: 0.9375rem;
  color: #4b5563;
  margin: 0 0 1rem;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#verifyResult .modalbox button.redo {
  transition: all 0.1s ease-in-out;
  border-radius: 9999px;
  margin: 15px auto 0;
  width: 80%;
  max-width: 200px;
  background: transparent;
  border: 2px solid;
  outline: none;
  cursor: pointer;
  font-family: var(--verify-main-font);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#verifyResult .modalbox.success button.redo {
  color: var(--color-primary-600, #2563eb);
  border-color: var(--color-primary-600, #2563eb);
}

#verifyResult .modalbox.success button.redo:hover {
  color: white;
  background: var(--color-primary-600, #2563eb);
  border-color: var(--color-primary-600, #2563eb);
}

#verifyResult .modalbox.error button.redo {
  color: var(--verify-error);
  border-color: var(--verify-error);
}

#verifyResult .modalbox.error button.redo:hover {
  color: white;
  background: var(--verify-error);
  border-color: var(--verify-error);
}

/* Icon circle */
#verifyResult .modalbox .icon {
  position: relative;
  margin: 0 auto;
  margin-top: -75px;
  height: 100px;
  width: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#verifyResult .modalbox.success .icon {
  background: var(--verify-success);
}

#verifyResult .modalbox.error .icon {
  background: var(--verify-error);
}

#verifyResult .modalbox .icon-svg {
  width: 48px;
  height: 48px;
  color: white;
}

/* Center the modal in overlay */
#verifyResult .modalbox.center {
  float: none;
  margin-left: auto;
  margin-right: auto;
}

/* Keyframes fall-in */
@-webkit-keyframes verify-fall-in {
  0% {
    -webkit-transform: scale(3, 3);
    transform: scale(3, 3);
    opacity: 0;
  }
  50% {
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
    opacity: 1;
  }
  60% {
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
  }
  100% {
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
  }
}

@-moz-keyframes verify-fall-in {
  0% {
    -moz-transform: scale(3, 3);
    transform: scale(3, 3);
    opacity: 0;
  }
  50% {
    -moz-transform: scale(1, 1);
    transform: scale(1, 1);
    opacity: 1;
  }
  60% {
    -moz-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
  }
  100% {
    -moz-transform: scale(1, 1);
    transform: scale(1, 1);
  }
}

@-o-keyframes verify-fall-in {
  0% {
    -o-transform: scale(3, 3);
    transform: scale(3, 3);
    opacity: 0;
  }
  50% {
    -o-transform: scale(1, 1);
    transform: scale(1, 1);
    opacity: 1;
  }
  60% {
    -o-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
  }
  100% {
    -o-transform: scale(1, 1);
    transform: scale(1, 1);
  }
}

@keyframes verify-fall-in {
  0% {
    -ms-transform: scale(3, 3);
    -webkit-transform: scale(3, 3);
    transform: scale(3, 3);
    opacity: 0;
  }
  50% {
    -ms-transform: scale(1, 1);
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
    opacity: 1;
  }
  60% {
    -ms-transform: scale(1.1, 1.1);
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
  }
  100% {
    -ms-transform: scale(1, 1);
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
  }
}

/* Dark mode: keep card readable */
.dark #verifyResult .modalbox.success,
.dark #verifyResult .modalbox.error {
  background: #1e293b;
}

.dark #verifyResult .modalbox h1 {
  color: #f1f5f9;
}

.dark #verifyResult .modalbox p {
  color: #cbd5e1;
}

/* Verify form: prevent height/width change in dark mode (same border and box model) */
input.verify-input {
  box-sizing: border-box;
}
.verify-input-wrap {
  box-sizing: border-box;
  border-width: 1px;
  border-style: solid;
}
.dark .verify-input-wrap {
  border-width: 1px;
}
/* Standalone inputs (date, first name, last name) */
input.verify-input[type="text"] {
  border-width: 1px;
}
.dark input.verify-input[type="text"] {
  border-width: 1px;
}

/* Result modal: fixed dimensions so dark mode doesn't resize */
#verifyResult .modalbox.success,
#verifyResult .modalbox.error {
  box-sizing: border-box;
  min-height: 200px;
}
#verifyResult .modalbox button.redo {
  box-sizing: border-box;
}
