/* Απόφοιτοι (/apofoitoi και /apofoitoi/<έτος>). Από το εγκεκριμένο prototype/apofoitoi.css. */

/* Hero */
.ga-hero { position: relative; background: var(--navy); color: var(--white); overflow-x: clip; }
.ga-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .5) 2.5px, transparent 3px),
    radial-gradient(circle, var(--sky) 2px, transparent 2.5px);
  background-size: 120px 110px, 90px 130px;
  background-position: 10px 20px, 60px 70px;
}
.ga-hero .sp-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 48px; padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px); }
.ga-hero .sp-kicker { background: var(--sky); color: var(--navy-ink); }
.ga-hero h1 { color: var(--white); }
.ga-hero h1 em { font-style: normal; color: var(--sky-light); }
.ga-hero p { color: rgba(255, 255, 255, .84); font-size: clamp(17px, 1.8vw, 19px); margin-top: 14px; max-width: 34em; }
.ga-cap { width: clamp(110px, 16vw, 168px); height: auto; color: var(--sun); }
.ga-hero .sp-wave { color: var(--paper); }

/* Λίστα χρονιών */
.ga-years { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.ga-year { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .15s ease, border-color .15s ease; }
.ga-year:hover { transform: translateY(-2px); border-color: var(--sky); }
.ga-year small { display: block; font-size: 14px; color: var(--muted); }
.ga-year strong { display: block; font: 700 32px/1.1 var(--font-head); color: var(--navy-ink); }
.ga-year-cap { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--navy); color: var(--white); }
.ga-year-cap svg { width: 24px; height: 24px; }

/* Κουτιά, φόρμες */
.ga-steps-section { padding-bottom: 0; }
.ga-steps-section + .sp-section { padding-top: clamp(24px, 3vw, 36px); }
.ga-box { padding: clamp(22px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ga-box > p, .ga-lead { color: var(--muted); margin-top: 10px; max-width: 40em; }
.ga-box .sp-rsvp-msg { margin-top: 14px; }
.ga-narrow { max-width: 560px; margin-inline: auto; text-align: center; }
.ga-narrow > p { margin-inline: auto; }
.ga-lock { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; background: var(--mist); color: var(--navy); }
.ga-lock svg { width: 32px; height: 32px; }
.ga-field { display: grid; gap: 6px; text-align: left; }
.ga-field label { font-weight: 600; font-size: 15px; }
.ga-field input {
  width: 100%; min-height: 48px; padding: 10px 16px; border-radius: 14px; border: 1px solid #C9CEDB;
  font: 400 16px var(--font-body); color: var(--ink); background: var(--white);
}
#ga-code { text-transform: uppercase; letter-spacing: .08em; }
.ga-field small { font-size: 13px; color: var(--muted); }
.ga-form { display: grid; gap: 16px; margin-top: 24px; }
.ga-form .sp-btn { justify-self: start; }
.ga-narrow .ga-form .sp-btn { justify-self: stretch; }
.ga-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.sp-rsvp-field select { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid #C9CEDB; font: 400 16px/1.5 var(--font-body); color: var(--ink); background: var(--white); }

/* Βήματα */
.ga-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; counter-reset: ga; }
.ga-step { position: relative; padding: 14px 12px 14px 14px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); min-width: 0; }
.ga-step b { display: block; font: 600 15px/1.3 var(--font-head); color: var(--navy-ink); }
.ga-step small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.ga-step::before { counter-increment: ga; content: counter(ga); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; margin-bottom: 8px; background: var(--line); color: var(--muted); font: 700 13px var(--font-body); }
.ga-step.is-done::before { content: "✓"; background: var(--ok-soft); color: var(--ok); }
.ga-step.is-now { border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-soft); }
.ga-step.is-now::before { background: var(--navy); color: var(--white); }

/* Ψηφοφορία */
.ga-vote-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.ga-options { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.ga-options legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; }
.ga-option { position: relative; }
.ga-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ga-option span { display: grid; gap: 2px; padding: 16px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--paper); transition: border-color .15s ease, background-color .15s ease; }
.ga-option b { font: 700 clamp(22px, 3vw, 28px)/1.1 var(--font-head); color: var(--navy-ink); }
.ga-option small { font-size: 14px; color: var(--muted); }
.ga-option input:checked + span { border-color: var(--navy); background: var(--sky-soft); }
.ga-option input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 3px; }
.ga-results { padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.ga-results h3 { font-size: 17px; }
.ga-results ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.ga-results li > div:first-child { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; margin-bottom: 6px; }
.ga-closes { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Αντίστροφη μέτρηση */
.ga-count { text-align: center; }
.ga-count h2 { margin-top: 4px; }
.ga-count > p { margin-inline: auto; }
.ga-timer { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, 1.5vw, 16px); max-width: 760px; margin: 28px auto 0; }
.ga-unit { padding: clamp(12px, 2vw, 20px) 4px; border-radius: var(--radius); background: var(--navy); color: var(--white); min-width: 0; }
.ga-unit b { display: block; font: 700 clamp(26px, 6vw, 52px)/1 var(--font-head); font-variant-numeric: tabular-nums; }
.ga-unit span { display: block; margin-top: 8px; font: 700 12px/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--sun); }
.ga-when { margin-top: 20px; font-weight: 600; color: var(--navy-ink) !important; }

/* Quiz + δήλωση */
.ga-quiz { display: grid; gap: 18px; margin-top: 24px; }
.ga-q { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0; background: var(--paper); min-width: 0; }
.ga-q legend { font: 600 17px/1.35 var(--font-head); color: var(--navy-ink); padding: 0 6px; }
.ga-q label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 4px; font-size: 16px; cursor: pointer; }
.ga-q input { width: 20px; height: 20px; flex: none; accent-color: var(--navy); }
.ga-success { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.ga-success svg { width: 28px; height: 28px; flex: none; }
#reunion .sp-rsvp { margin-top: 20px; }

/* Αναμνήσεις */
.ga-memories { margin-top: 20px; }

/* Χρονοκάψουλα */
.ga-capsule { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 28px; align-items: center; padding: clamp(22px, 4vw, 36px); border-radius: var(--radius-lg); background: var(--mist); }
.ga-capsule p { color: var(--muted); margin-top: 8px; }
.ga-capsule .sp-kicker { background: var(--white); }
.ga-capsule-icon { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--navy); color: var(--white); }
.ga-capsule-icon svg { width: 44px; height: 44px; }
.ga-messages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.ga-message { margin: 0; padding: 18px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); font-size: 15px; }
.ga-message footer { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--navy); }

@media (max-width: 960px) {
  .ga-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ga-vote-grid { grid-template-columns: minmax(0, 1fr); }
  .ga-messages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ga-hero .sp-wrap { grid-template-columns: minmax(0, 1fr); }
  .ga-cap { display: none; }
  /* Κινητό: μία γραμμή ανά βήμα, λεπτομέρεια μόνο στο τρέχον */
  .ga-steps { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ga-step { display: flex; align-items: center; flex-wrap: wrap; column-gap: 10px; padding: 8px 12px; }
  .ga-step::before { margin-bottom: 0; width: 24px; height: 24px; font-size: 12px; }
  .ga-step small { display: none; }
  .ga-step.is-now small { display: block; flex-basis: 100%; padding-left: 34px; margin-top: 0; }
  .ga-timer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ga-timer .ga-unit:nth-child(n+4) { display: none; }
  .ga-capsule { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .ga-capsule-icon { margin-inline: auto; }
  .ga-messages { grid-template-columns: minmax(0, 1fr); }
  .ga-form .sp-btn, .ga-quiz .sp-btn { justify-self: stretch; width: 100%; }
}
@media (max-width: 480px) {
  .ga-options { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ga-year { transition: none; }
}
