/* ==========================================================
   Naswiz Fraud - main stylesheet (shared by all 4 pages)
   ========================================================== */

/* ---------- Colour and size variables ---------- */
:root {
  --bg: #f1f3f7;          /* page background */
  --ink: #12263f;         /* main text, header band */
  --ink-soft: #1d3a5f;    /* lighter navy for gradient */
  --muted: #5d6b7c;       /* secondary text */
  --line: #dde3ec;        /* borders */
  --accent: #b3261e;      /* red - active tab and buttons */
  --accent-dark: #8c1c16; /* button hover */
  --gold: #e3b341;        /* small highlight line under heading */
  --card: #ffffff;        /* white boxes */
  --shadow: 0 4px 18px rgba(18, 38, 63, 0.08);
  --page-width: 1100px;
}

/* ---------- Basic reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

/* ---------- Header band: big centred heading + tagline ---------- */
.site-header {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: #fff;
  text-align: center;
  padding: 56px 16px 96px;   /* extra bottom space: the tabs overlap this area */
}

.site-heading {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.1;
}

/* thin gold line under the heading */
.site-heading::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  background: var(--gold);
  margin: 18px auto 0;
  border-radius: 2px;
}

.tagline {
  margin-top: 16px;
  color: #c9d5e5;
  font-size: 1.05rem;
}

/* ---------- The four tabs (pulled up over the header band) ---------- */
.tabs {
  max-width: var(--page-width);
  margin: -52px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  position: relative;
}

.tabs a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 80px;
  padding: 12px 16px;
  background: var(--card);
  border: 2px solid transparent;
  border-radius: 10px;
  box-shadow: var(--shadow);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.tabs a:hover { transform: translateY(-3px); border-color: var(--ink); }
.tabs a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* round number badge inside each tab */
.tab-no {
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* the tab of the page you are currently on */
.tabs a.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(179, 38, 30, 0.35);
}
.tabs a.active .tab-no { background: #fff; color: var(--accent); }

/* ---------- Page content area ---------- */
.content {
  max-width: var(--page-width);
  margin: 40px auto 72px;
  padding: 0 16px;
}

.content h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  margin-bottom: 8px;
}

.intro {
  color: var(--muted);
  max-width: 70ch;
  margin-bottom: 30px;
}

/* ---------- Page 1: image gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery figure {
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(18, 38, 63, 0.16);
}

.gallery img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; }

.gallery figcaption {
  padding: 12px 16px;
  font-weight: 600;
  border-top: 1px solid var(--line);
}

/* full-screen picture viewer (opened by js/main.js) */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 34, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; border-radius: 6px; border: 4px solid #fff; }

/* ---------- Page 2: document (looks like a sheet of paper) ---------- */
.document {
  background: #fff;
  border-top: 6px solid var(--ink);
  border-radius: 4px;
  box-shadow: 0 10px 34px rgba(18, 38, 63, 0.14);
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 68px;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.85;
}

.document h3 { text-align: center; font-size: 1.5rem; margin-bottom: 4px; }
.document .doc-sub {
  text-align: center;
  color: var(--muted);
  padding-bottom: 20px;
  margin-bottom: 26px;
  border-bottom: 2px solid var(--line);
}
.document p { margin-bottom: 14px; }
.document ol { margin: 0 0 14px 26px; }
.document li { margin-bottom: 6px; }
.document .meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  font-weight: 700;
}
.document .sign { margin-top: 44px; }

/* ---------- Page 3: legal recovery steps and FAQ ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin-bottom: 48px;
  position: relative;
}

/* vertical line joining the step circles */
.steps::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 20px;
  bottom: 20px;
  width: 3px;
  background: var(--line);
}

.steps li {
  counter-increment: step;
  position: relative;
  margin-bottom: 16px;
  padding: 16px 20px 16px 76px;
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 4px;
  top: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  text-align: center;
  line-height: 36px;
  font-weight: 700;
  box-shadow: 0 0 0 5px var(--bg);   /* gap between circle and the joining line */
}

.steps strong { display: block; font-size: 1.05rem; }
.steps li { color: var(--muted); }
.steps li strong { color: var(--ink); }

.faq-item {
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 18px 22px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq-question:hover { background: #f8f9fb; }
.faq-question:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.faq-icon { font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform 0.2s; }
.faq-answer { display: none; padding: 0 22px 18px; color: var(--muted); }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ---------- Page 4: refund registration form ---------- */
.form-box {
  background: var(--card);
  border-top: 6px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 10px 34px rgba(18, 38, 63, 0.12);
  max-width: 780px;
  margin: 0 auto;
  padding: 36px 40px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fbfcfd;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(179, 38, 30, 0.25);
  border-color: var(--accent);
  background: #fff;
}

.field .error { color: var(--accent); font-size: 0.85rem; min-height: 1.2em; margin-top: 2px; }

.btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 15px 28px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: var(--accent-dark); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.success {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  background: #e5f4ea;
  border: 1px solid #9ccfae;
  border-radius: 8px;
}

/* ---------- Mobile / tablet ---------- */
@media (max-width: 900px) {
  .tabs { grid-template-columns: repeat(2, 1fr); }   /* 2 x 2 tabs */
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .document { padding: 32px 22px; }
  .form-box { padding: 26px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 520px) {
  .tabs { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}

/* respect people who turn off animations */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ==========================================================
   Added for client content (real images + full document)
   ========================================================== */

/* portrait paper photos: show the top of the page in the card */
.gallery img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; background: #e9edf3; }

/* section headings inside the document page */
.document h4 { font-size: 1.1rem; margin: 26px 0 8px; }
.document ul { margin: 0 0 14px 26px; }
.document .doc-note {
  font-size: 0.95rem;
  color: var(--muted);
  border-top: 2px solid var(--line);
  padding-top: 16px;
  margin-top: 28px;
}

/* download button above the document */
/* sits above the gallery (page 2), so it follows the full content width */
.doc-actions { margin: 0 0 18px; text-align: right; }
.btn-link {
  display: inline-block;
  width: auto;
  text-decoration: none;
  padding: 10px 20px;
  font-size: 0.95rem;
}

/* small checklist box on the legal recovery page */
.checklist {
  background: var(--card);
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 18px 24px;
  margin-bottom: 48px;
}
.checklist ul { margin: 8px 0 0 20px; }
.checklist li { margin-bottom: 4px; }

/* ==========================================================
   Refund form: payment mode, individual account box, counter
   ========================================================== */

/* radio group "Mode of joining payment" */
.pay-mode { border: 0; padding: 0; }
.pay-mode legend { font-weight: 600; margin-bottom: 8px; }

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  font-weight: 400 !important;   /* overrides bold of .field label */
  cursor: pointer;
}
.choice:hover { border-color: var(--ink); }
.choice input { width: auto; accent-color: var(--accent); }

/* extra account details: hidden until "Any individual account" is chosen */
.individual-box {
  display: none;
  margin: 0 0 20px;
  padding: 20px 20px 2px;
  background: #f6f8fb;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
}
.individual-box.show { display: block; }

/* live word counter under the complaint box */
.word-count { margin-top: 4px; font-size: 0.85rem; color: var(--muted); text-align: right; }
.word-count.over { color: var(--accent); font-weight: 700; }

/* names of the chosen upload files */
.file-list { margin: 8px 0 0 20px; font-size: 0.9rem; color: var(--muted); }

/* ==========================================================
   Five tabs + empty photo slots (Fraudulent Person gallery)
   ========================================================== */

/* slightly tighter tabs so five fit in one row */
.tabs { gap: 8px; }
.tabs a { padding: 10px 12px; gap: 10px; font-size: 0.95rem; }

/* medium screens: three tabs per row instead of five */
@media (max-width: 1100px) and (min-width: 901px) {
  .tabs { grid-template-columns: repeat(3, 1fr); }
}

/* empty slot shown until a real photo is added */
.gallery .photo-slot-card { cursor: default; }
.photo-slot {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background: #eef1f6;
  border-bottom: 2px dashed var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

/* spam-trap field: kept off-screen, real visitors never see it */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
