/* ========================================
document page styles
======================================== */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.spinner {
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
}
button,
input,
select,
textarea {
  font-family: var(--cms-font-body, "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
}
body.document-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.portal-container {
  flex: 1;
  max-width: 450px;
  margin: 0.5rem auto 2.5rem auto;
  padding: 2.5rem;
  text-align: center;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}
.input-field {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  font-size: 1rem;
  margin-top: 0.35rem;
  box-sizing: border-box;
  background: var(--cms-color-surface, #fff);
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--cms-font-body, "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}
.input-field:focus {
  border-color: var(--color-action, #0284c7);
}
.hidden {
  display: none !important; /* must beat inline display:flex (e.g. #file-info-container on /upload) */
}
.error-msg {
  color: #dc2626; /* 4.8:1 on white (the former #ef4444 was 3.8:1, under the 4.5 a text needs) */
  font-weight: 500;
  font-size: 1.25rem;
  margin-top: 1rem;
}
.success-msg {
  color: #047857; /* 5.5:1 on white (the former #10b981 was 2.5:1) */
  font-weight: 500;
  font-size: 1.25rem;
  margin-top: 1rem;
}
/* A short message under a field or above a button (/upload: a refused file, a failed upload). */
.field-note {
  color: #dc2626;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  margin-top: 0.75rem;
  text-align: left;
}
.btn-disabled {
  background-color: #cbd5e1 !important;
  cursor: not-allowed !important;
}
.flag-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #334155;
  transition: background-color 0.15s;
}
@media (hover: hover) {
  .flag-dropdown-item:hover {
    background-color: #f1f5f9;
  }
}

@media (hover: none) {
  .flag-dropdown-item.is-tapped {
    background-color: #f1f5f9;
  }
}
.flag-dropdown-item .flag-name {
  font-weight: 500;
}
.flag-dropdown-item .flag-code {
  margin-left: auto;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 500;
}
#status-message.success-msg {
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 400;
  margin-top: 1.25rem;
}
