:root {
  --navy: #002C5E;
  --navy-dark: #001d3f;
  --lightblue: #C0D4E0;
  --orange: #FF6A1A;
  --orange-dark: #e35a0e;
  --white: #ffffff;
  --text: #12233b;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, var(--lightblue) 0%, #e9f1f6 45%, #ffffff 100%);
  color: var(--text);
  min-height: 100vh;
}

h1, h2 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--navy);
}

.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 24px 20px 48px;
  display: flex;
  flex-direction: column;
}

/* ---- Poll / voting screen ---- */

.poll-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.progress {
  text-align: center;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.65;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0;
}

.question {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.25;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.choice-card {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 26px 20px;
  border-radius: var(--radius);
  border: 3px solid var(--lightblue);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
  box-shadow: 0 4px 14px rgba(0, 44, 94, 0.08);
  -webkit-tap-highlight-color: transparent;
}

.choice-card:active {
  transform: scale(0.98);
}

.choice-card.selected {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(255, 106, 26, 0.35);
}

.next-btn {
  display: block;
  width: 100%;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 18px;
  border-radius: var(--radius);
  border: none;
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, opacity 0.15s ease, transform 0.12s ease;
}

.next-btn:active {
  transform: scale(0.98);
}

.next-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.next-btn:not(:disabled):hover {
  background: var(--navy-dark);
}

/* ---- Results screen ---- */

.results-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.results-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 8px 0 4px;
}

.result-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 14px rgba(0, 44, 94, 0.08);
}

.result-question {
  font-size: 1.05rem;
  margin: 0 0 14px;
}

.result-row {
  margin-bottom: 12px;
}

.result-label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.bar-track {
  width: 100%;
  height: 14px;
  background: var(--lightblue);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.bar-a {
  background: var(--navy);
}

.bar-b {
  background: var(--orange);
}

.result-total {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--text);
  opacity: 0.6;
}

.results-restart {
  margin-top: 8px;
}

.empty-state {
  text-align: center;
  opacity: 0.6;
}

/* ---- Admin ---- */

.admin-screen {
  flex: 1;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.admin-topbar h1 {
  font-size: 1.4rem;
  margin: 0;
}

.admin-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.admin-link-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.admin-link-danger {
  color: #c0392b;
}

.admin-add-btn {
  margin-bottom: 20px;
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(0, 44, 94, 0.08);
}

.admin-card-inactive {
  opacity: 0.55;
}

.admin-card-question {
  font-weight: 700;
  margin: 0 0 4px;
}

.admin-card-options,
.admin-card-votes {
  margin: 0 0 4px;
  font-size: 0.85rem;
  opacity: 0.75;
}

.admin-card-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.admin-inline-form {
  display: inline;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(0, 44, 94, 0.08);
}

.admin-form label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 10px;
}

.admin-form input {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid var(--lightblue);
}

.admin-form input:focus {
  outline: none;
  border-color: var(--orange);
}

.admin-form .next-btn {
  margin-top: 20px;
}

.admin-login {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-error {
  color: #c0392b;
  font-weight: 600;
  background: #fdecea;
  padding: 10px 14px;
  border-radius: 10px;
}

/* ---- Back link ---- */

.back-link {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  opacity: 0.7;
  text-decoration: none;
  margin-bottom: 12px;
}

.back-link:hover {
  opacity: 1;
}

/* ---- Hero / landing page ---- */

.page:has(.hero) {
  max-width: none;
  padding: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 24px 32px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy) 38%, var(--lightblue) 100%);
  text-align: center;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.35;
  pointer-events: none;
}

.hero-shape-a {
  width: 320px;
  height: 320px;
  background: var(--orange);
  top: -80px;
  right: -100px;
  opacity: 0.5;
}

.hero-shape-b {
  width: 260px;
  height: 260px;
  background: var(--lightblue);
  bottom: 120px;
  left: -110px;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange);
  margin: 0;
}

.hero-title {
  font-size: 2.4rem;
  line-height: 1.2;
  color: var(--white);
  margin: 0;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  color: var(--white);
  opacity: 0.85;
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0;
}

.hero-cta {
  width: auto;
  padding: 16px 40px;
  margin-top: 8px;
  background: var(--orange);
}

.hero-cta:hover {
  background: var(--orange-dark);
}

.partner-strip {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.partner-label {
  font-family: 'Inter', sans-serif;
  color: var(--white);
  opacity: 0.75;
  font-size: 0.82rem;
  font-weight: 500;
  margin: 0 0 16px;
}

.partner-logos {
  display: flex;
  flex-direction:row;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.partner-chip {
  background: var(--white);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease;
  /* Equal-sized box for every logo, regardless of its native
     proportions, so all three partners get equal visual weight. */
  height: clamp(72px, 18vw, 100px);
  width: clamp(120px, 28vw, 100px);
}

.partner-chip:hover {
  transform: translateY(-2px);
}

.partner-chip--dark {
  background: var(--navy);
}

.partner-chip img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
}

@media (min-width: 540px) {
  .question {
    font-size: 2.2rem;
  }

  .hero-title {
    font-size: 2.9rem;
  }
}
