/**
 * exam-age-theme.css
 * ------------------------------------------------------------------
 * Visual identity for the Exam Age Eligibility Calculator ONLY —
 * deliberately distinct from the site shell and from the Project
 * Report tool's passbook theme.
 *
 * Design concept: the government exam ADMIT CARD / hall ticket —
 * perforated ticket-stub edge, a "photo box" corner, a stenciled
 * condensed header face (like exam-form printing), tabular mono
 * digits for the DOB/age math, and a rotated rubber-ink stamp
 * ("ELIGIBLE" / "NOT ELIGIBLE") as the signature moment.
 * ------------------------------------------------------------------
 */

:root {
  /* ---- Color tokens ---- */
  --eac-ink: #16233d;          /* ballpoint-ink navy — headings, primary text */
  --eac-paper: #f2efe3;        /* admit-card card stock */
  --eac-paper-line: #d8d2bd;   /* dotted perforation / rule color */
  --eac-khaki: #8a7a4a;        /* government-form khaki band accent */
  --eac-stamp-green: #2f6b3f;  /* "ELIGIBLE" ink-stamp */
  --eac-stamp-red: #a5322a;    /* "NOT ELIGIBLE" ink-stamp */
  --eac-surface: #ffffff;
  --eac-text-muted: #5c6270;

  /* ---- Type tokens ---- */
  --eac-font-display: "Oswald", "Noto Sans Devanagari", sans-serif;
  --eac-font-body: "Noto Sans", "Noto Sans Devanagari", sans-serif;
  --eac-font-mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;

  --eac-radius: 4px;
  --eac-max-width: 880px;
}

.eac-scope {
  background: var(--eac-paper);
  background-image:
    linear-gradient(var(--eac-paper-line) 1px, transparent 1px);
  background-size: 100% 28px;
  color: var(--eac-ink);
  font-family: var(--eac-font-body);
}

.eac-scope h1, .eac-scope h2, .eac-scope h3 {
  font-family: var(--eac-font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--eac-ink);
}

.eac-wrap {
  max-width: var(--eac-max-width);
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ---------- Khaki header band (mimics the printed strip at the
   top of a real admit card / hall ticket) ---------- */
.eac-band {
  background: var(--eac-ink);
  color: #fff;
  padding: 10px 0;
  text-align: center;
  font-family: var(--eac-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eac-band span { opacity: 0.75; }

/* ---------- Hero ---------- */
.eac-hero {
  padding: 44px 0 8px;
  text-align: center;
}
.eac-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--eac-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eac-khaki);
  border: 1px dashed var(--eac-khaki);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 18px;
}
.eac-hero h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 14px;
}
.eac-hero p {
  color: var(--eac-text-muted);
  font-size: 1.02rem;
  max-width: 62ch;
  margin: 0 auto;
}

/* ---------- The admit-card ticket stub (signature element) ---------- */
.eac-ticket {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--eac-surface);
  border: 1px solid #d9d3bf;
  border-radius: var(--eac-radius);
  box-shadow: 0 6px 24px rgba(22, 35, 61, 0.08);
  margin: 36px 0;
  overflow: visible;
}
@media (min-width: 760px) {
  .eac-ticket { grid-template-columns: 1.15fr 0.85fr; }
}

.eac-ticket__form,
.eac-ticket__result {
  padding: 28px 26px;
}

.eac-ticket__form { border-bottom: 1px dashed var(--eac-paper-line); }
@media (min-width: 760px) {
  .eac-ticket__form {
    border-bottom: none;
    border-right: 1px dashed var(--eac-paper-line);
  }
}

/* Perforation dots along the tear line, ticket-style */
.eac-ticket__form::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 0;
  border-bottom: 2px dotted var(--eac-paper-line);
}
@media (min-width: 760px) {
  .eac-ticket__form::after { display: none; }
  .eac-ticket::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: calc(1.15fr / (1.15fr + 0.85fr) * 100%);
    width: 0;
    border-left: 2px dotted var(--eac-paper-line);
  }
}

.eac-field {
  margin-bottom: 16px;
}
.eac-field label {
  display: block;
  font-family: var(--eac-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eac-text-muted);
  margin-bottom: 6px;
}
.eac-field input,
.eac-field select {
  width: 100%;
  font-family: var(--eac-font-mono);
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid #cfc9b4;
  border-radius: 3px;
  background: #fffdf8;
  color: var(--eac-ink);
}
.eac-field input:focus,
.eac-field select:focus {
  outline: 2px solid var(--eac-khaki);
  outline-offset: 1px;
}

.eac-btn {
  width: 100%;
  background: var(--eac-ink);
  color: #fff;
  border: none;
  font-family: var(--eac-font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1rem;
  padding: 13px 18px;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.15s ease;
}
.eac-btn:hover { background: var(--eac-khaki); }

/* ---------- Result side: the "hall ticket" readout ---------- */
.eac-ticket__result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  min-height: 220px;
}
.eac-result-empty {
  color: var(--eac-text-muted);
  font-size: 0.92rem;
  text-align: center;
}
.eac-result-empty .eac-photo-box {
  width: 56px; height: 68px;
  margin: 0 auto 14px;
  border: 1.5px dashed var(--eac-paper-line);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--eac-paper-line);
}

.eac-age-display {
  text-align: center;
}
.eac-age-display__label {
  font-family: var(--eac-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--eac-text-muted);
  margin-bottom: 6px;
}
.eac-age-display__value {
  font-family: var(--eac-font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.eac-age-display__value small {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--eac-text-muted);
}

/* Rotated ink-stamp badge — the signature moment */
.eac-stamp {
  margin: 16px auto 0;
  display: inline-block;
  border: 3px double currentColor;
  border-radius: 6px;
  padding: 6px 16px;
  font-family: var(--eac-font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-4deg);
  opacity: 0.92;
}
.eac-stamp--eligible { color: var(--eac-stamp-green); }
.eac-stamp--not-eligible { color: var(--eac-stamp-red); }

.eac-exam-list {
  margin-top: 18px;
  font-family: var(--eac-font-mono);
  font-size: 0.82rem;
  width: 100%;
}
.eac-exam-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--eac-paper-line);
}
.eac-exam-list li:last-child { border-bottom: none; }
.eac-exam-list .eac-pass { color: var(--eac-stamp-green); font-weight: 700; }
.eac-exam-list .eac-fail { color: var(--eac-stamp-red); font-weight: 700; }

/* ---------- Content sections below the tool ---------- */
.eac-section { padding: 30px 0; }
.eac-section h2 { font-size: 1.3rem; margin: 0 0 14px; }
.eac-section p, .eac-section li { color: var(--eac-ink); line-height: 1.7; }
.eac-section table {
  width: 100%; border-collapse: collapse; font-family: var(--eac-font-mono);
  font-size: 0.86rem; margin: 14px 0 22px; background: var(--eac-surface);
}
.eac-section th, .eac-section td {
  border: 1px solid var(--eac-paper-line); padding: 9px 10px; text-align: left;
}
.eac-section th { background: var(--eac-paper); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.05em; }

.eac-faq details {
  border-bottom: 1px dashed var(--eac-paper-line);
  padding: 12px 0;
}
.eac-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--eac-font-display);
  text-transform: none;
  letter-spacing: normal;
}
.eac-faq p { margin: 10px 0 0; color: var(--eac-text-muted); }

/* ---------- Compact CTA card used on job/exam detail + listing pages ---------- */
.eac-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--eac-ink);
  color: #fff;
  border-radius: 6px;
  padding: 16px 18px;
  margin: 18px 0 26px;
  text-decoration: none;
  font-family: var(--eac-font-body);
}
.eac-cta:hover { background: #1f3358; }
.eac-cta__icon {
  font-family: var(--eac-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px dashed rgba(255,255,255,0.5);
  border-radius: 999px;
  padding: 4px 10px;
  flex-shrink: 0;
  white-space: nowrap;
}
.eac-cta__text strong {
  display: block;
  font-family: var(--eac-font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.98rem;
}
.eac-cta__text span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}
.eac-cta__arrow { margin-left: auto; font-size: 1.2rem; flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  .eac-stamp { transform: none; }
}
