/* ===========================================================
   AFTERWORK by Heineken — Design System
   =========================================================== */

@font-face {
  font-family: 'HEINEKENCurve';
  src: url('../font/HEINEKENCurve.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'HEINEKENCurve';
  src: url('../font/HEINEKENCurve-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'HEINEKENCurve';
  src: url('../font/HEINEKENCurve-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'HEINEKENCurve';
  src: url('../font/HEINEKENCurve-MediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'HEINEKENCurve';
  src: url('../font/HEINEKENCurve-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'HEINEKENCurve';
  src: url('../font/HEINEKENCurve-SemiBoldItalic.otf') format('opentype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'HEINEKENCurve';
  src: url('../font/HEINEKENCurve-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'HEINEKENCurve';
  src: url('../font/HEINEKENCurve-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'HEINEKENCurve';
  src: url('../font/HEINEKENCurve-Heavy.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'HEINEKENCurve';
  src: url('../font/HEINEKENCurve-HeavyItalic.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --color-green-glow: rgba(70, 255, 130, 0.35);
  --color-green-bright: #4ee06a;
  --color-green-mid: #1f8a3b;
  --color-green-dark: #0b3a14;
  --color-white: #f5fff6;
  --color-input-bg: rgba(30, 45, 35, 0.75);
  --color-input-border: rgba(220, 255, 220, 0.75);
  --color-red-star: #d81f26;

  /* Grows on wider screens instead of staying pinned to a narrow mobile
     card — stays ~390px on phones/tablet-portrait, up to 600px on desktop. */
  --poster-width-max: clamp(390px, 40vw, 600px);
  --poster-height-min: 660px;
  --poster-height-max: 860px;

  --font-brush: 'HEINEKENCurve', sans-serif;
  --font-body: 'HEINEKENCurve', 'Georgia', serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: radial-gradient(ellipse at center, #16401a 0%, #0d2f10 55%, #06170a 100%);
  font-family: var(--font-body);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- PosterShell ---------- */

.poster-viewport {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
}

.poster-shell {
  position: relative;
  width: 100%;
  max-width: var(--poster-width-max);
  min-width: 0;
  /* Fixed (not just min/max) so inner scroll areas like .form-scroll actually
     scroll when content overflows, instead of the whole card growing taller
     (e.g. when the Plus One fields appear). */
  height: clamp(var(--poster-height-min), 88vh, var(--poster-height-max));
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(220, 255, 220, 0.12),
    0 25px 60px rgba(0, 0, 0, 0.55),
    0 0 90px rgba(30, 200, 90, 0.18);
  background-image: url('../assets/Background.png');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
}

.poster-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 22px 20px 18px;
}

@media (max-width: 420px) {
  .poster-viewport {
    padding: 0;
  }
  .poster-shell {
    border-radius: 0;
    max-width: 100%;
    height: 100vh;
    box-shadow: none;
  }
}

/* Card itself starts growing past ~390px around this viewport width (see
   --poster-width-max) — scale padding/type/controls up to match instead of
   leaving fixed mobile-sized spacing floating in a much bigger card.
   Kept conservative on purpose: the base Page 2 form (no Plus One) must
   still fit the card without scrolling — see --poster-height-max below. */
@media (min-width: 980px) {
  .poster-content {
    padding: 26px 30px 22px;
  }

  .header-branding {
    margin-bottom: 14px;
  }

  .brand-logo {
    width: 280px;
  }

  .brand-logo--small {
    width: 200px;
  }

  .field-group {
    margin-bottom: 12px;
  }

  .field-label {
    font-size: 0.82rem;
  }

  .glass-input {
    height: 44px;
    font-size: 0.95rem;
  }

  .green-button {
    height: 40px;
    padding: 0 22px;
  }

  .btn-label-img {
    height: 16px;
  }

  .button-row {
    gap: 18px;
    margin-top: 10px;
  }

  .choice-plain {
    font-size: 0.92rem;
  }

  .tick-checkbox {
    width: 25px;
    height: 25px;
  }

  .terms-box {
    font-size: 0.88rem;
  }

  .scroll-indicator {
    width: 12px;
  }
}

/* ---------- HeaderBranding ---------- */

.header-branding {
  text-align: center;
  margin-bottom: 14px;
}

.header-branding--pushed {
  margin-top: 22px;
}

.brand-logo {
  width: 260px;
  max-width: 78%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 10px rgba(70, 255, 130, 0.3)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.brand-logo--small {
  width: 190px;
}

/* ---------- GreenButton ---------- */

.green-button {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: var(--color-white);
  background-image: url('../assets/Register-Button.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-shadow:
    0 6px 18px rgba(10, 120, 40, 0.45),
    0 0 18px rgba(70, 255, 130, 0.3);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.green-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 8px 22px rgba(10, 120, 40, 0.55),
    0 0 24px rgba(70, 255, 130, 0.4);
}

.green-button:active {
  transform: translateY(1px);
}

.green-button--small {
  height: 32px;
  padding: 0 14px;
  font-size: 0.85rem;
}

.btn-label-img {
  height: 15px;
  width: auto;
  display: block;
}

.green-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

/* Stronger, more obviously "off" look than the plain :disabled state above —
   used for the Submit button while waiting on Interests/T&Cs, which stays a
   real clickable button (see updateSubmitButtonState in app.js) so tapping
   it early can explain why instead of doing nothing. */
.green-button.is-disabled {
  opacity: 0.4;
  filter: grayscale(0.7);
  box-shadow: none;
  cursor: not-allowed;
}

.green-button.is-disabled:hover {
  transform: none;
  box-shadow: none;
}

.button-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
}

/* ---------- GlassInput ---------- */

.field-group {
  margin-bottom: 10px;
}

.plus-one-fields {
  display: none;
  margin-top: 4px;
}

.plus-one-fields.visible {
  display: block;
  animation: fadeIn 0.25s ease;
}

.field-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(245, 255, 246, 0.92);
  margin-bottom: 5px;
  letter-spacing: 0.3px;
}

.glass-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  height: 42px;
  padding: 0 14px;
  background-color: transparent;
  background-image: url('../assets/Information-Boxes.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border: none;
  border-radius: 8px;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.15s ease;
}

.glass-input::placeholder {
  color: rgba(230, 255, 235, 0.45);
}

.glass-input:focus {
  /* No outer solid ring here — the field's background image already has
     its own border baked in, so a "0 0 0 2px" ring drawn just outside it
     looked like a second border sticking out past the field's edge.
     An inset glow reads as "lit up" without adding a second outline. */
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(80, 255, 140, 0.45), 0 0 10px rgba(80, 255, 140, 0.3);
}

/* .phone-input-wrap is a div, not a focusable input — it only gets the
   focus glow when its inner text field is focused. */
.glass-input:focus-within {
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(80, 255, 140, 0.45), 0 0 10px rgba(80, 255, 140, 0.3);
}

.phone-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-prefix {
  flex-shrink: 0;
  font-weight: 700;
  color: rgba(245, 255, 246, 0.85);
  border-right: 1px solid rgba(220, 255, 220, 0.35);
  padding-right: 8px;
}

.phone-input-field {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}

.phone-input-field::placeholder {
  color: rgba(230, 255, 235, 0.45);
}

.glass-input.field-error {
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.4), inset 0 0 10px rgba(255, 80, 80, 0.5), 0 0 10px rgba(255, 80, 80, 0.3);
}

/* ---------- Date of Birth (Day/Month/Year selects) ---------- */

.dob-select-row {
  display: flex;
  gap: 8px;
}

.dob-select-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.dob-select {
  width: 100%;
  cursor: pointer;
}

/* ---------- Custom themed dropdown (replaces native <select>) ---------- */

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-body);
}

.custom-select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-trigger .dob-select-arrow {
  font-size: 0.65rem;
  color: rgba(230, 255, 235, 0.7);
  margin-left: 6px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.custom-select-trigger.open .dob-select-arrow {
  transform: rotate(180deg);
}

.dob-select-row.field-error .dob-select {
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.4), inset 0 0 10px rgba(255, 80, 80, 0.5), 0 0 10px rgba(255, 80, 80, 0.3);
}

/* Rendered on <body> (not inside .dob-select-wrap) and positioned via JS
   with position:fixed, so it's never clipped by the scrollable form area
   or the poster card's own overflow:hidden. */
.custom-select-panel {
  position: fixed;
  overflow-y: auto;
  background: linear-gradient(180deg, #163d1a 0%, #0b2a0e 100%);
  border: 2px solid var(--color-input-border);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(70, 255, 130, 0.25);
  padding: 4px;
  z-index: 200;
}

.custom-select-option {
  padding: 8px 10px;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--color-white);
  cursor: pointer;
  white-space: nowrap;
}

.custom-select-option:hover {
  background: rgba(80, 255, 140, 0.2);
}

.custom-select-option.selected {
  background: rgba(80, 255, 140, 0.32);
  font-weight: 700;
}

.field-error-msg {
  color: #ffb3b3;
  font-size: 0.72rem;
  margin-top: 4px;
  display: none;
}

.field-error-msg.visible {
  display: block;
}

/* ---------- Choice controls (radio / checkbox) ---------- */

.choice-row {
  display: flex;
  gap: 18px;
  align-items: center;
}

.choice-row--centered {
  justify-content: center;
}

.field-group--centered {
  text-align: center;
}

.choice-option {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-white);
}

.choice-option input[type="radio"],
.choice-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-input-border);
  background: var(--color-input-bg);
  cursor: pointer;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

.choice-option input[type="radio"] {
  border-radius: 50%;
}

.choice-option input[type="checkbox"] {
  border-radius: 4px;
}

.choice-option input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--color-green-bright);
  box-shadow: 0 0 6px rgba(80, 255, 140, 0.8);
}

.choice-option input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 0px;
  width: 5px;
  height: 10px;
  border: solid var(--color-green-bright);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Unboxed checkbox rows (interest options, terms agreement) — just the
   checkbox and text laid directly on the poster background, no card. */
.choice-plain {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 12px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--color-white);
}

.choice-plain--interest {
  font-weight: 700;
  font-style: italic;
}

.choice-plain.is-locked {
  opacity: 0.6;
}

/* Shared checkbox visual for every real checkbox in the app, using the
   supplied Tick-Box.png artwork instead of a CSS-drawn box. */
.tick-checkbox {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url('../assets/Tick-Box.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  cursor: pointer;
  position: relative;
}

.tick-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 46%;
  width: 6px;
  height: 12px;
  border: solid #ffffff;
  border-width: 0 3px 3px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.tick-checkbox:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.terms-hint {
  font-size: 0.7rem;
  color: rgba(255, 220, 180, 0.85);
  margin: -4px 0 9px 4px;
}

.terms-hint.hidden {
  display: none;
}

/* ---------- Event detail grid (Page 1) ---------- */

.event-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
  margin: 16px auto;
  max-width: 88%;
}

.event-detail-item {
  display: flex;
  /* Icon vertically centered against its own text block, whether that's
     one line or wraps to two (e.g. the venue address) — and the whole
     icon+text group left-aligned as a block, not centered, matching a
     standard left-reading info list. */
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 8px;
  font-size: 0.74rem;
  line-height: 1.3;
  color: var(--color-white);
}

.event-detail-item .icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 3px rgba(70, 255, 130, 0.4));
}

/* ---------- Invitation text ---------- */

.invite-text-img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 14px auto;
}

.center-cta {
  display: flex;
  justify-content: center;
  margin: 6px 0 10px;
}

/* ---------- Footer / collaboration branding ---------- */

.collab-footer {
  text-align: center;
  padding-top: 28px;
  padding-bottom: 10px;
}

.collab-footer-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* ---------- Page container helper ---------- */

.page {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  /* On pages with a flex:1 scrollable area (the form pages), that area
     already consumes all free space, so this has no effect there. On
     lighter-content pages (landing, confirmation) there's no such element,
     so without this the space would collect in one dead gap wherever an
     auto-margin happened to be (previously the footer) instead of being
     distributed around the content as a whole — very visible on the
     taller desktop card size. */
  justify-content: center;
  animation: fadeIn 0.35s ease;
}

.page.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-title {
  text-align: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-white);
  margin: 4px 0 16px;
  line-height: 1.4;
  text-shadow: 0 0 8px rgba(70, 255, 130, 0.3);
}

.page-title--terms {
  font-weight: 900;
  font-size: 1.05rem;
  text-shadow: 0 0 10px rgba(70, 255, 130, 0.4), 0 1px 2px rgba(0, 0, 0, 0.5);
}

.form-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  /* Native scrollbar hidden in favor of the custom .scroll-indicator — on
     desktop a classic (non-overlay) scrollbar would reserve its own layout
     width on top of the indicator's, doubling up as an odd extra gap. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.form-scroll::-webkit-scrollbar {
  display: none;
}

/* Custom scroll indicator (track + thumb images) shown next to a
   .form-scroll, since mobile browsers generally hide native scrollbars
   regardless of CSS styling — this stays reliably visible everywhere and
   makes it obvious there's more content to scroll to (e.g. Plus One fields). */
.scroll-area {
  display: flex;
  flex: 1;
  min-height: 0;
  gap: 8px;
  /* Clips this row to its allocated flex height. Without it, any sub-pixel
     stretch/rounding discrepancy in .form-scroll's height can let its box
     render a hair taller than intended and visually bleed into the
     button-row sitting right below it. */
  overflow: hidden;
}

.scroll-area .form-scroll {
  padding-right: 0;
}

.scroll-indicator {
  position: relative;
  width: 10px;
  flex-shrink: 0;
  margin: 2px 0;
}

.scroll-indicator.hidden {
  visibility: hidden;
}

.scroll-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scroll-thumb {
  position: absolute;
  left: 0;
  width: 100%;
  top: 0;
  transition: top 0.1s linear;
}

/* ---------- Terms box (Page 4) ---------- */

.terms-box {
  background-image: url('../assets/Terms-&-Conditions-Box.png');
  background-size: 100% 100%;
  background-position: center;
  border-radius: 10px;
  padding: 14px 14px;
  flex: 1;
  overflow-y: auto;
  min-height: 260px;
  max-height: 380px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--color-white);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.terms-box::-webkit-scrollbar {
  display: none;
}

.terms-box ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.terms-box li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 20px;
}

.terms-box li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-green-bright);
  box-shadow: 0 0 5px rgba(80, 255, 140, 0.7);
}

/* ---------- Success page ---------- */

.success-message {
  text-align: center;
  margin: 18px 0 10px;
}

.success-message .dear-name {
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: 8px;
  font-weight: 600;
}

.success-message .a-list {
  font-family: var(--font-brush);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--color-white);
  /* Bold poster/headline look: a solid dark outline around the letters
     (stroke + layered shadow, since -webkit-text-stroke alone renders
     inconsistently across browsers) instead of a plain soft drop-shadow. */
  -webkit-text-stroke: 1.25px #04150a;
  text-shadow:
    -2px -2px 0 #04150a,
    2px -2px 0 #04150a,
    -2px 2px 0 #04150a,
    2px 2px 0 #04150a,
    0 5px 10px rgba(0, 0, 0, 0.55);
  margin: 8px 0;
}

.success-message .sub-line {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-white);
  font-style: italic;
  -webkit-text-stroke: 0.6px #04150a;
  text-shadow:
    -1px -1px 0 #04150a,
    1px -1px 0 #04150a,
    -1px 1px 0 #04150a,
    1px 1px 0 #04150a;
}

.share-hint {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(245, 255, 246, 0.75);
  line-height: 1.4;
  margin-top: 8px;
}

.post-success-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

.text-link {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  color: var(--color-green-bright);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 8px;
}

.text-link:hover {
  color: var(--color-white);
}

/* ---------- Step progress indicator ---------- */

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(220, 255, 220, 0.2);
  border: 1px solid rgba(220, 255, 220, 0.5);
  flex-shrink: 0;
}

.step-dot.active {
  background: var(--color-green-bright);
  border-color: var(--color-green-bright);
  box-shadow: 0 0 6px rgba(80, 255, 140, 0.8);
}

.step-dot.completed {
  background: var(--color-green-mid);
  border-color: var(--color-green-bright);
}

.step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(245, 255, 246, 0.75);
  letter-spacing: 0.4px;
  margin-left: 4px;
}

/* ---------- Validation banner ---------- */

.validation-banner {
  display: none;
  background: rgba(120, 20, 20, 0.55);
  border: 1px solid rgba(255, 150, 150, 0.6);
  color: #ffdada;
  font-size: 0.78rem;
  padding: 9px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  text-align: center;
}

.validation-banner.visible {
  display: block;
}

/* ---------- Modal (share fallback) ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 10, 3, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}

.modal-overlay.visible {
  display: flex;
}

.modal-box {
  background: linear-gradient(180deg, #123a17 0%, #06170a 100%);
  border: 1px solid rgba(220, 255, 220, 0.4);
  border-radius: 14px;
  padding: 20px;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 0 40px rgba(70, 255, 130, 0.25);
}

.modal-box p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-white);
  margin-bottom: 16px;
}

