/* Confirm-page overrides — layered on top of the official fa_ui app.css.
   fa_ui owns the reset, fonts and tokens; this file styles the top crest,
   confirmation content and footer, using fa_ui tokens to stay on-brand. */

/* Grey page background (fa-green-50 / surface-tertiary) — matches the FA
   registration page and makes the white crest notch read against the page. */
html,
body {
  background: var(--color-fa-green-50, #f3f6f5);
}

/* Sticky footer: full-height flex column so the green footer pins to the bottom
   of the viewport on tall screens (not floating mid-page). #main centering is
   defined below. */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top crest — exact board365 geometry (measured): a 37px white bar, the 48px
   logo positioned 12px from the top so it overflows the thin bar down into a
   432x36 notch that hangs from the bar's bottom (clipped to the fa_ui shape). */
.fa-topcrest {
  position: relative;
  background: #fff;
  height: 37px;
}

.fa-topcrest__logo {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  color: var(--color-green-brand, #10523c); /* logo currentColor = board365 */
}

.fa-topcrest__logo svg {
  height: 48px;
  width: auto;
  display: block;
}

.fa-topcrest__zone {
  position: absolute;
  top: 36px; /* at the bar's bottom (1px overlap avoids a seam) */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 27rem; /* 432px */
  max-width: 90vw;
  height: 36px;
}

.fa-topcrest__notch {
  position: absolute;
  inset: 0;
  background: #fff;
  clip-path: url(#fa-header-notch-clip);
}

/* Footer is the real fa_ui SiteFooter (styled by app.css). Force the solid
   fa-green-900 (#051912) background the brand uses on desktop, on all sizes. */
.fa-footer {
  background: #051912 !important;
  background-image: none !important;
}

/* Vertically-centre the card in the space between the crest and footer, with a
   comfortable gap above/below (not flush against the crest). flex:1 also makes
   this grow so the footer stays pinned to the bottom (sticky footer). */
#main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
}

.confirm-wrap {
  width: 100%;
  max-width: 640px;
}

.confirm-card {
  background: var(--color-surface-primary, #fff);
  border: 1px solid var(--color-fa-green-100, #e7eeeb);
  border-radius: var(--radius-lg-card, 1rem);
  box-shadow: 0 8px 32px #09291e0d;
  padding: 40px 48px;
  color: var(--color-text-primary, #051912);
  font-family: var(--font-body);
}

.confirm-card h1 {
  font-size: 32px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 0 0 20px;
  color: var(--color-text-primary, #051912);
}

.confirm-card p {
  line-height: 1.5;
  color: var(--color-text-secondary, #565e5a);
}

#state-loading {
  text-align: center;
  color: var(--color-text-secondary, #565e5a);
}

/* Subscription logo tiles. */
.tiles {
  list-style: none;
  margin: 0.75rem 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.tile {
  position: relative;
  border: 1px solid var(--color-fa-green-100, #e7eeeb);
  border-radius: 0.5rem;
  background: #fff;
  padding: 16px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  min-height: 118px;
}

.tile-check {
  position: absolute;
  top: -9px;
  left: -9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-gold, #feb81c);
  color: var(--color-fa-green-900, #051912);
  font-size: 13px;
  line-height: 22px;
  text-align: center;
  font-weight: 700;
}

.tile-logo {
  height: 48px;
  max-width: 100%;
  object-fit: contain;
}

.tile-logo--text {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-weight: 700;
  color: var(--color-green-brand, #10523c);
  font-size: 0.95rem;
}

.tile-name {
  font-size: 0.85rem;
  color: var(--color-text-primary, #051912);
  line-height: 1.25;
}

/* Gold pill CTA — matches the fa_ui primary button colours. */
.button {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: var(--color-gold, #feb81c);
  color: var(--color-fa-green-900, #051912);
  padding: 14px 22px;
  min-height: 52px;
  border-radius: 62.5rem;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  margin-top: 0.5rem;
}

.button:hover {
  filter: brightness(0.96);
}

.fine {
  font-size: 0.85rem;
  color: var(--color-text-secondary, #565e5a);
}

.confirm-card a {
  color: var(--color-green-brand, #10523c);
}

#working {
  color: var(--color-text-secondary, #565e5a);
  font-style: italic;
}

@media (max-width: 560px) {
  .confirm-card {
    padding: 28px 22px;
  }
  .confirm-card h1 {
    font-size: 26px;
  }
}
