/* =========================================================
   ABS Global — Request a Certificate page (request-a-certificate.html)
   Page-specific styles. Builds on assets/css/style.css
   (gradient hero shared with validation.html / report.html;
   the request form reuses the global .form-card / .field system)
   ========================================================= */

/* ---------- Page hero (gradient artwork — this page ships without a photo) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 92px 0 80px;
  background: #0c2540;
  color: #fff;
  text-align: center;
}
.rq-hero {
  background:
    radial-gradient(900px 420px at 16% 6%, rgba(55, 118, 189, .38), transparent 62%),
    radial-gradient(820px 420px at 88% 96%, rgba(37, 87, 136, .55), transparent 64%),
    linear-gradient(142deg, #061527 0%, #0a2541 52%, #0d3054 100%);
}
.rq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(620px 320px at 50% 45%, #000 0%, transparent 78%);
  mask-image: radial-gradient(620px 320px at 50% 45%, #000 0%, transparent 78%);
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 940px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-hero h1 {
  max-width: 860px;
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.05rem, 3.9vw, 3.3rem);
  line-height: 1.16;
  letter-spacing: .002em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 6px 40px rgba(2, 12, 24, .35);
}
.page-hero__sub {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: .95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, .75);
  text-wrap: pretty;
}

/* ---------- Breadcrumbs (matches about/services hero) ---------- */
.crumbs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-bottom: 16px;
  font-size: .78rem;
  color: rgba(255, 255, 255, .62);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .75);
  transition: color .2s;
}
.crumbs a:hover { color: #fff; }
.crumbs svg { width: 13px; height: 13px; }
.crumbs__sep { color: rgba(255, 255, 255, .32); display: inline-flex; }
.crumbs [aria-current="page"] { color: #fff; font-weight: 600; }

/* ---------- Countries we serve (marquee) ---------- */
.flags-section { overflow: hidden; }
.flags-section .section-head { margin-bottom: clamp(24px, 3.2vw, 38px); }
.flags {
  position: relative;
  overflow: hidden;
  padding: 22px 0 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.flags::before,
.flags::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 2;
  pointer-events: none;
}
.flags::before { left: 0; background: linear-gradient(90deg, #fff 6%, rgba(255, 255, 255, 0)); }
.flags::after { right: 0; background: linear-gradient(-90deg, #fff 6%, rgba(255, 255, 255, 0)); }
.flags__track {
  display: flex;
  align-items: stretch;
  width: max-content;
  animation: flags-scroll 36s linear infinite;
}
.flags:hover .flags__track { animation-play-state: paused; }
@keyframes flags-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.flags__set { display: flex; align-items: stretch; }
.flag {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 2px 24px;
}
.flag + .flag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--line);
}
.flag img {
  width: 48px;
  height: 32px;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(13, 35, 58, .14);
  transition: transform .25s var(--ease);
}
.flag:hover img { transform: scale(1.1); }
.flag span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Request form ---------- */
.request-section { overflow: hidden; }
.request-section .section-head { margin-bottom: clamp(26px, 3.4vw, 40px); }
.request-card { max-width: 920px; margin-inline: auto; }

/* field label + hint (used for the standards group label) */
.field__label { font-size: .78rem; font-weight: 600; letter-spacing: .01em; color: var(--ink-2); }
.field__label span { color: var(--accent); }
.field__label .field__hint { color: var(--muted); font-weight: 500; }

/* ISO standards — chip checkboxes */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.standard { position: relative; display: block; }
.standard input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.standard__inner {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid #dbe5f0;
  border-radius: 11px;
  background: #fbfdff;
  color: var(--ink-2);
  font-size: .84rem;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.standard__inner:hover { border-color: var(--brand-200); }
.standard__box {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid #cfdceb;
  border-radius: 5px;
  background: #fff;
  transition: background .2s, border-color .2s;
}
.standard__box svg {
  width: 12px;
  height: 12px;
  color: #fff;
  opacity: 0;
  transform: scale(.6);
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity .15s, transform .15s;
}
.standard input:checked + .standard__inner {
  border-color: var(--brand);
  background: var(--brand-50);
  color: var(--brand-700);
  box-shadow: 0 0 0 3px rgba(55, 118, 189, .08);
}
.standard input:checked + .standard__inner .standard__box { background: var(--brand); border-color: var(--brand); }
.standard input:checked + .standard__inner .standard__box svg { opacity: 1; transform: none; }
.standard input:focus-visible + .standard__inner { box-shadow: 0 0 0 4px rgba(55, 118, 189, .16); }
.field.is-invalid .standard__inner { border-color: rgba(223, 6, 34, .5); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .standards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .standards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .page-hero { padding: 74px 0 66px; }
  .rq-hero { padding: 78px 0 68px; }
  .page-hero__inner { width: calc(100% - 36px); }
  .flag { padding: 2px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .flags__track { animation: none; }
  .flags { overflow-x: auto; }
}
