/* Стипендияи Президенти Ҷумҳурии Тоҷикистон — бланки сабти ном
   This file holds ONLY what Tailwind's utility classes can't express:
   ASP.NET's unobtrusive-validation auto-classes, scrollbar suppression,
   the paper grain, and the seal-press motion. Everything else is Tailwind,
   written directly in the .cshtml markup. */

@font-face {
  /* fonts are loaded via Google Fonts <link> in _Layout; this file assumes they're present */
}

html {
  scroll-behavior: smooth;
}

body{
    font-family: 'Palatino Linotype', sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Unobtrusive validation: ASP.NET tag helpers toggle these classes automatically ===== */
.field-validation-valid {
  display: none;
}

.field-validation-error {
  display: block;
  margin-top: 0.3rem;
  font-family: 'Palatino Linotype', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: #A8201A;
}

.validation-summary-valid {
  display: none;
}

.validation-summary-errors ul {
  margin: 0;
  padding-left: 1.1rem;
}

.input-validation-error {
  border-color: #A8201A !important;
}

/* ===== Paper grain — extremely subtle, gives the parchment panel a printed-document feel ===== */
.paper-grain {
  background-color: #F7F1E3;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(11, 61, 46, 0.025) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(201, 154, 46, 0.04) 0%, transparent 50%);
}

/* ===== Rail / mobile stepper: hide scrollbar but keep scrollability ===== */
.step-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.step-scroll::-webkit-scrollbar {
  display: none;
}

/* ===== Ledger-style inputs: underline only, no box ===== */
.ledger-input {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(11, 61, 46, 0.25);
  border-radius: 0;
  padding: 0.5rem 0.1rem;
  width: 100%;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ledger-input:hover {
  border-bottom-color: rgba(11, 61, 46, 0.45);
}

.ledger-input:focus {
  outline: none;
  border-bottom-color: #C99A2E;
  background-color: rgba(201, 154, 46, 0.06);
}

.ledger-select {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(11, 61, 46, 0.25);
  border-radius: 0;
  padding: 0.5rem 0.1rem;
  width: 100%;
}

.ledger-select:focus {
  outline: none;
  border-bottom-color: #C99A2E;
}

/* ===== Seal button: official wax-seal press feel on submit ===== */
.seal-button {
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.seal-button:active {
  transform: scale(0.96);
}

.seal-mark {
  animation: seal-settle 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes seal-settle {
  0% {
    transform: scale(0.6) rotate(-12deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(-8deg);
    opacity: 1;
  }
}

/* ===== Webcam frame corner brackets ===== */
.id-frame {
  position: relative;
}

.id-frame::before,
.id-frame::after,
.id-frame > .corner-tl,
.id-frame > .corner-br {
  content: '';
}

/* ===== Rail nav active indicator ===== */
.rail-link {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.rail-dot {
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.rail-link[data-active="true"] .rail-dot {
  background-color: #C99A2E;
  border-color: #C99A2E;
  transform: scale(1.15);
}

.rail-link[data-active="true"] .rail-label {
  color: #F7F1E3;
  opacity: 1;
}

.rail-link:not([data-active="true"]) .rail-label {
  opacity: 0.55;
}

.step-dot[data-active="true"] {
  background-color: #C99A2E;
  border-color: #C99A2E;
  color: #06281D;
}
