/* =============================================================================
   ICD International S.A.L. — components.css
   Buttons, heroes, cards, stats, accordions, forms, placeholder blocks.
   ========================================================================== */

/* -----------------------------------------------------------------------------
   0. ICONS
   Icons come from the inline <symbol> sprite at the top of each page and are
   referenced with <svg class="icon"><use href="#icon-name"></use></svg>.
   -------------------------------------------------------------------------- */
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 18px;
  height: 18px;
}

.icon--lg {
  width: 28px;
  height: 28px;
}

/* The sprite itself must never take up layout space. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* -----------------------------------------------------------------------------
   1. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: 0.875rem 1.625rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  transition:
    background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  flex: none;
  transition: transform var(--t-base) var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

/* Amber fill — the single strongest call to action on any view */
.btn--primary {
  background: var(--amber-500);
  color: var(--navy-900);
}

.btn--primary:hover {
  background: var(--amber-400);
}

/* Navy fill — secondary action on light backgrounds */
.btn--solid {
  background: var(--navy-700);
  color: var(--white);
}

.btn--solid:hover {
  background: var(--navy-600);
}

/* Outline on light */
.btn--outline {
  border-color: var(--line-strong);
  color: var(--navy-900);
}

.btn--outline:hover {
  border-color: var(--navy-700);
  background: var(--navy-700);
  color: var(--white);
}

/* Outline on navy */
.btn--ghost {
  border-color: var(--line-dark-strong);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn--sm {
  padding: 0.625rem 1.125rem;
  font-size: var(--fs-xs);
}

.btn--block {
  width: 100%;
}

/* Text link with a trailing arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--amber-600);
  transition: gap var(--t-base) var(--ease);
}

.link-arrow:hover {
  gap: var(--sp-3);
}

.on-dark .link-arrow,
.card--dark .link-arrow {
  color: var(--amber-400);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/* -----------------------------------------------------------------------------
   2. HOME HERO
   Typographic value statement on navy — deliberately no photography.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy-900);
  overflow: hidden;
}

/* Soft amber bloom anchored to the right edge, behind everything */
.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 120%;
  pointer-events: none;
  background: radial-gradient(
    closest-side,
    rgba(217, 154, 43, 0.14),
    transparent 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.5rem, 2rem + 8vw, 7.5rem);
}

.hero__content {
  max-width: 58rem;
}

.hero__title {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.032em;
  color: var(--white);
}

.hero__lead {
  max-width: 46rem;
  margin-top: var(--sp-6);
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.hero__actions {
  margin-top: var(--sp-7);
}

/* Sector list running along the bottom of the hero */
.hero__sectors {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  margin-top: var(--sp-9);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero__sectors li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.hero__sectors li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--amber-500);
  transform: rotate(45deg);
  flex: none;
}

/* -----------------------------------------------------------------------------
   3. PAGE HERO (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  background: var(--navy-900);
  overflow: hidden;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(2.75rem, 1.5rem + 5vw, 5rem);
}

.page-hero__title {
  max-width: 22ch;
  color: var(--white);
}

.page-hero__lead {
  max-width: 54ch;
  margin-top: var(--sp-5);
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.76);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.55);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--t-fast) var(--ease);
}

.breadcrumb a:hover {
  color: var(--amber-400);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: var(--sp-2);
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* -----------------------------------------------------------------------------
   4. CARDS
   -------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease);
}

.card p {
  color: var(--slate-600);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

/* Elevates on hover; the top accent rule wipes in from the left */
.card--link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.card--dark {
  background: var(--navy-800);
  border-color: var(--line-dark);
}

.card--dark h3,
.card--dark h4 {
  color: var(--white);
}

.card--dark p {
  color: rgba(255, 255, 255, 0.68);
}

.card--dark.card--link:hover {
  border-color: var(--navy-500);
  box-shadow: none;
}

/* --- Pillar card (the six divisions) --- */
.pillar-card {
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--amber-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease);
}

.pillar-card:hover::before,
.pillar-card:focus-within::before {
  transform: scaleX(1);
}

/* Large muted index numeral in the card corner */
.pillar-card__index {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--slate-400);
}

.card--dark .pillar-card__index {
  color: rgba(255, 255, 255, 0.35);
}

.pillar-card h3 {
  margin-bottom: var(--sp-3);
  padding-right: var(--sp-6);
}

/* Activity tags listed under each pillar card */
.pillar-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--slate-600);
}

.card--dark .pillar-card__tags {
  border-top-color: var(--line-dark);
  color: rgba(255, 255, 255, 0.6);
}

.pillar-card__tags li {
  padding: 0.25rem 0.625rem;
  background: var(--paper);
  border-radius: 2px;
}

.card--dark .pillar-card__tags li {
  background: rgba(255, 255, 255, 0.07);
}

.pillar-card .link-arrow {
  margin-top: var(--sp-5);
}

/* Pushes the footer content of a card to the bottom edge */
.card__spacer {
  flex: 1;
}

/* --- Icon badge --- */
.icon-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--amber-050);
  color: var(--amber-600);
  flex: none;
}

.card--dark .icon-badge,
.on-dark .icon-badge {
  background: rgba(217, 154, 43, 0.12);
  border-color: rgba(217, 154, 43, 0.28);
  color: var(--amber-400);
}

.icon-badge--sm {
  width: 38px;
  height: 38px;
  margin-bottom: 0;
}

/* -----------------------------------------------------------------------------
   5. STATS / CREDIBILITY STRIP
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

@media (min-width: 900px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* The four-across rule above keys off the viewport, which is wrong for a
   stats grid sitting inside a narrow column. Use this variant there. */
.stats--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat {
  padding: var(--sp-6) var(--sp-5);
  background: var(--navy-900);
}

.section--navy-alt .stat {
  background: var(--navy-800);
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--amber-500);
}

.stat__label {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

/* Light variant of the stat grid */
.stats--light {
  background: var(--line);
  border-color: var(--line);
}

.stats--light .stat {
  background: var(--white);
}

.stats--light .stat__value {
  color: var(--navy-700);
}

.stats--light .stat__label {
  color: var(--slate-600);
}

/* -----------------------------------------------------------------------------
   6. FEATURE LISTS
   -------------------------------------------------------------------------- */
.feature-list li {
  position: relative;
  padding-left: var(--sp-6);
  line-height: 1.65;
}

.feature-list li + li {
  margin-top: var(--sp-3);
}

/* Amber chevron bullet */
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--amber-500);
  border-bottom: 2px solid var(--amber-500);
  transform: rotate(-45deg);
}

/* Two-column feature list on wider screens */
@media (min-width: 720px) {
  .feature-list--2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-3) var(--sp-6);
  }

  .feature-list--2col li + li {
    margin-top: 0;
  }
}

/* Row of items each with an icon, heading and short line of copy */
.feature-row {
  display: flex;
  gap: var(--sp-4);
}

.feature-row h4 {
  margin-bottom: var(--sp-2);
}

.feature-row p {
  font-size: var(--fs-sm);
  color: var(--slate-600);
  line-height: 1.65;
}

.on-dark .feature-row p {
  color: rgba(255, 255, 255, 0.7);
}

/* -----------------------------------------------------------------------------
   7. DIVISION ACCORDION (services page)
   -------------------------------------------------------------------------- */
.division {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

.division:first-of-type {
  border-top: none;
}

.division__head {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
  margin-bottom: var(--sp-6);
}

/* On narrow screens the badge steals too much width from the heading,
   which forces long words like "Infrastructure" to overflow. */
@media (max-width: 559px) {
  .division__head {
    flex-direction: column;
    gap: var(--sp-4);
  }
}

.division__number {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--amber-600);
  padding-top: 0.5em;
  flex: none;
}

.division__intro {
  max-width: 58ch;
  margin-top: var(--sp-4);
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--slate-600);
}

.accordion {
  border-top: 1px solid var(--line);
}

.accordion__item {
  border-bottom: 1px solid var(--line);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  width: 100%;
  padding: var(--sp-5) 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: -0.008em;
  color: var(--navy-900);
  transition: color var(--t-fast) var(--ease);
}

.accordion__trigger:hover {
  color: var(--amber-600);
}

/* Plus icon that rotates into a minus when expanded */
.accordion__icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition:
    border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--t-base) var(--ease);
}

.accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
  border-color: var(--amber-500);
  background: var(--amber-050);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

/* Open by default so the content is still readable without JavaScript.
   accordion.js collapses panels on init by setting [hidden] and the height. */
.accordion__panel {
  overflow: hidden;
  transition: height var(--t-base) var(--ease);
}

.accordion__panel[hidden] {
  display: block; /* height:0 handles the hiding so the panel can animate */
  height: 0;
  visibility: hidden;
}

.accordion__panel-inner {
  padding: 0 0 var(--sp-6);
}

.accordion__panel p {
  max-width: 68ch;
  margin-bottom: var(--sp-5);
  color: var(--slate-600);
}

/* "Typical engagements" sub-heading inside a panel */
.accordion__panel h4 {
  margin-bottom: var(--sp-3);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.accordion__panel .feature-list {
  font-size: var(--fs-sm);
  color: var(--slate-600);
}

/* Sticky in-page navigation listing the six divisions */
.division-nav {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-5));
}

.division-nav__list {
  border-left: 2px solid var(--line);
}

.division-nav__list a {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--slate-600);
  transition:
    color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

.division-nav__list a:hover,
.division-nav__list a.is-active {
  color: var(--navy-900);
  border-left-color: var(--amber-500);
  font-weight: 600;
}

/* Horizontal scroller version used below the sticky breakpoint */
@media (max-width: 899px) {
  .division-nav {
    position: static;
    margin-bottom: var(--sp-6);
  }

  .division-nav__list {
    display: flex;
    gap: var(--sp-2);
    overflow-x: auto;
    padding-bottom: var(--sp-2);
    border-left: none;
    border-bottom: 1px solid var(--line);
    scrollbar-width: thin;
  }

  .division-nav__list a {
    margin-left: 0;
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
  }

  .division-nav__list a:hover,
  .division-nav__list a.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--amber-500);
  }
}

/* -----------------------------------------------------------------------------
   8. PLACEHOLDER BLOCKS
   Every dashed block on the site marks content awaiting real client data.
   -------------------------------------------------------------------------- */
.placeholder {
  display: grid;
  place-content: center;
  gap: var(--sp-2);
  padding: var(--sp-6);
  min-height: 200px;
  text-align: center;
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--slate-400);
}

.placeholder__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-600);
}

.placeholder__hint {
  font-size: var(--fs-xs);
  max-width: 34ch;
  margin-inline: auto;
}

.placeholder--dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-dark-strong);
}

.placeholder--dark .placeholder__label {
  color: rgba(255, 255, 255, 0.8);
}

.placeholder--dark .placeholder__hint {
  color: rgba(255, 255, 255, 0.5);
}

.placeholder--portrait {
  min-height: 0;
  aspect-ratio: 1 / 1;
}

.placeholder--wide {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

/* Amber banner flagging an entire section as template content */
.notice {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--amber-050);
  border-left: 3px solid var(--amber-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--graphite);
}

.notice svg {
  flex: none;
  margin-top: 3px;
  color: var(--amber-600);
}

.notice strong {
  display: block;
  margin-bottom: var(--sp-1);
}

/* -----------------------------------------------------------------------------
   9. CASE STUDY CARD (projects page)
   -------------------------------------------------------------------------- */
.case-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.case-card__media {
  border: none;
  border-bottom: 1px dashed var(--line-strong);
  border-radius: 0;
}

.case-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--sp-6);
}

.case-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.case-card__meta .tag {
  color: var(--amber-600);
  font-weight: 600;
}

.case-card h2,
.case-card h3 {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-h4);
  line-height: 1.35;
}

.case-card p {
  font-size: var(--fs-sm);
  color: var(--slate-600);
  line-height: 1.7;
}

/* Definition rows at the foot of a case-study card */
.case-card__facts {
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
}

.case-card__facts div {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-2);
}

.case-card__facts dt {
  color: var(--slate-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-card__facts dd {
  margin: 0;
  font-weight: 600;
  color: var(--navy-900);
  text-align: right;
}

/* -----------------------------------------------------------------------------
   10. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--navy-800);
  overflow: hidden;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--sp-6);
  padding-block: clamp(3rem, 2rem + 4vw, 4.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .cta-band__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--sp-8);
  }
}

.cta-band h2 {
  max-width: 24ch;
}

.cta-band p {
  max-width: 54ch;
  margin-top: var(--sp-4);
  color: rgba(255, 255, 255, 0.72);
}

/* -----------------------------------------------------------------------------
   11. FORMS
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field--full {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  margin-bottom: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy-900);
}

.field .req {
  color: var(--amber-600);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8125rem var(--sp-4);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--graphite);
  transition:
    border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field select {
  appearance: none;
  /* Inline chevron so no icon font or image request is needed */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23545f76' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  padding-right: var(--sp-8);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(217, 154, 43, 0.18);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--slate-400);
}

/* Inline validation state, driven by form.js */
.field__error {
  display: none;
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: #b3261e;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #b3261e;
}

.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.16);
}

.field.has-error .field__error {
  display: block;
}

.field__hint {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--slate-400);
}

/* Checkbox row (consent) */
.field--check {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: flex-start;
}

/* Error message drops onto its own line, aligned with the label text */
.field--check .field__error {
  flex-basis: 100%;
  margin-top: 0;
  margin-left: calc(18px + var(--sp-3));
}

.field--check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--amber-500);
}

.field--check label {
  margin-bottom: 0;
  font-weight: 400;
  font-size: var(--fs-sm);
  color: var(--slate-600);
}

/* Success panel swapped in after a valid submit.
   The [hidden] rule is required because `display: flex` would otherwise
   outrank the user-agent `[hidden] { display: none }` default. */
.form-success[hidden] {
  display: none;
}

.form-success {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--amber-050);
  border: 1px solid rgba(217, 154, 43, 0.4);
  border-radius: var(--radius);
}

.form-success svg {
  flex: none;
  color: var(--amber-600);
}

.form-success h3 {
  margin-bottom: var(--sp-2);
  font-size: var(--fs-h4);
}

.form-success p {
  font-size: var(--fs-sm);
  color: var(--slate-600);
}

.form-panel {
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* -----------------------------------------------------------------------------
   12. CONTACT DETAILS
   -------------------------------------------------------------------------- */
.contact-list li {
  display: flex;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--line);
}

.contact-list li:first-child {
  padding-top: 0;
}

.contact-list h3 {
  margin-bottom: var(--sp-1);
  font-size: var(--fs-h4);
}

.contact-list p,
.contact-list address {
  font-size: var(--fs-sm);
  font-style: normal;
  line-height: 1.7;
  color: var(--slate-600);
}

.contact-list a {
  color: var(--amber-600);
  font-weight: 500;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* -----------------------------------------------------------------------------
   13. MISC
   -------------------------------------------------------------------------- */

/* Numbered process steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-6);
  }
}

@media (min-width: 1024px) {
  .steps--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.step {
  counter-increment: step;
  padding-top: var(--sp-5);
  border-top: 2px solid var(--line);
}

.step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--amber-600);
}

.step h3 {
  margin-bottom: var(--sp-2);
  font-size: var(--fs-h4);
}

.step p {
  font-size: var(--fs-sm);
  color: var(--slate-600);
  line-height: 1.7;
}

.on-dark .step {
  border-top-color: var(--line-dark);
}

.on-dark .step p {
  color: rgba(255, 255, 255, 0.7);
}

.on-dark .step::before {
  color: var(--amber-400);
}

/* Key/value definition table (registration facts) */
.fact-table {
  border-top: 1px solid var(--line);
}

.fact-table div {
  display: grid;
  gap: var(--sp-1);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 560px) {
  .fact-table div {
    grid-template-columns: 10rem minmax(0, 1fr);
    gap: var(--sp-5);
    align-items: baseline;
  }
}

.fact-table dt {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.fact-table dd {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--graphite);
}

/* Bordered quote / statement block */
.statement {
  padding-left: var(--sp-6);
  border-left: 3px solid var(--amber-500);
}

.statement p {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--navy-900);
}

.on-dark .statement p {
  color: var(--white);
}

.statement cite {
  display: block;
  margin-top: var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-400);
}

/* Small pill label */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.3125rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--slate-600);
}

.on-dark .chip {
  border-color: var(--line-dark-strong);
  color: rgba(255, 255, 255, 0.76);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
