/* ITC Limited, Khordha — Grievance & Query Portal
   Design tokens
   ----------------
   Colour:
     --ink       #201C1B  primary text
     --maroon    #6B1428  brand / primary action
     --maroon-dk #4E0E1D  pressed / deep accent
     --brass     #AD8A4E  accent rule, icons, focus
     --stone     #EDEAE2  page background
     --paper     #FBFAF7  card / surface background
     --line      #DCD6C8  hairline borders
     --green     #3F6B4A  resolved / success
   Type:
     Headings — 'IBM Plex Serif' (sturdy, technical-humanist)
     UI/body  — 'IBM Plex Sans'
*/

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:wght@400;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --ink: #201c1b;
  --maroon: #6b1428;
  --maroon-dk: #4e0e1d;
  --brass: #ad8a4e;
  --stone: #edeae2;
  --paper: #fbfaf7;
  --line: #dcd6c8;
  --green: #3f6b4a;
  --radius: 3px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: 'IBM Plex Sans', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'IBM Plex Serif', Georgia, serif;
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
}

a { color: var(--maroon); }

p { line-height: 1.55; }

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top rule — draws in once on load */
.brand-rule {
  height: 3px;
  background: var(--brass);
  width: 0;
  animation: draw-rule 0.9s ease-out forwards;
}
@keyframes draw-rule {
  to { width: 100%; }
}

.brand-bar {
  padding: 22px 0 18px;
  opacity: 0;
  animation: rise-in 0.6s ease-out 0.35s forwards;
}
.brand-bar .company {
  font-family: 'IBM Plex Serif', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--maroon);
  letter-spacing: 0.01em;
}
.brand-bar .unit {
  font-size: 0.85rem;
  color: #6b6560;
  margin-top: 2px;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stagger {
  opacity: 0;
  animation: rise-in 0.55s ease-out forwards;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn-primary {
  background: var(--maroon);
  color: var(--paper);
}
.btn-primary:hover { background: var(--maroon-dk); }
.btn-primary:disabled { opacity: 0.55; cursor: default; }

.btn-quiet {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-quiet:hover { border-color: var(--brass); }

/* Forms */
label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin: 18px 0 6px;
}
label .hint {
  font-weight: 400;
  color: #75706a;
}
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
select, textarea {
  width: 100%;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus, button:focus, a.btn:focus {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.field-error {
  color: var(--maroon);
  font-size: 0.85rem;
  margin-top: 6px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.notice {
  border-left: 3px solid var(--brass);
  background: var(--paper);
  padding: 12px 16px;
  font-size: 0.88rem;
  color: #4a4642;
  margin: 20px 0;
}

.footer-hr {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 20px 0 32px;
  font-size: 0.85rem;
  color: #6b6560;
}
.footer-hr .row { margin-top: 4px; }
.footer-hr strong { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .brand-rule, .brand-bar, .stagger { animation: none !important; opacity: 1 !important; width: 100% !important; }
}
