/* Small custom layer on top of Tailwind for things Tailwind utilities don't
   cover cleanly (the flipbook, form widgets rendered by WTForms, print). */

:root {
  --grr-blue: #0040A0;
  --grr-sky: #0080D0;
}

/* WTForms renders bare inputs; give them a consistent friendly look. */
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  border: 2px solid #e3e3e3;
  border-radius: 0.9rem;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--grr-sky);
  box-shadow: 0 0 0 4px rgba(0, 128, 208, 0.15);
}
.field label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.field { margin-bottom: 1.1rem; }
.field .error { color: #b91c1c; font-size: 0.85rem; font-weight: 600; display: block; margin-top: 0.3rem; }

/* ---- Flipbook ---------------------------------------------------------- */
.flipbook {
  perspective: 2200px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}
.flipbook__stage {
  position: relative;
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
  border-radius: 6px;
  overflow: hidden;
}
.flipbook__page {
  display: block;
  max-width: 80vw;
  max-height: 72vh;
  width: auto;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform .5s ease, opacity .25s ease;
  transform-origin: left center;
  backface-visibility: hidden;
}
.flipbook__page.is-turning { transform: rotateY(-25deg); opacity: .6; }

.flip-btn {
  background: var(--grr-blue);
  color: #fff;
  width: 3.25rem; height: 3.25rem;
  border-radius: 9999px;
  font-size: 1.5rem;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,.4);
}
.flip-btn:disabled { opacity: .3; cursor: not-allowed; }

/* Best-effort: discourage casual saving of non-printable pages. */
.no-save img { pointer-events: none; }

@media print {
  header, footer, .no-print { display: none !important; }
}
