 :root {
  --gold: #d3e3fd;
  --gold-light: #e8f0fe;
  --gold-pale: #eef4ff;
  --deep: #0d1b2e;
  --forest: #1a3a5c;
  --forest-mid: #1e4d7a;
  --cream: #eef4ff;
  --warm-white: #f6f9ff;
  --text: #0d1b2e;
  --muted: #5a6e8a;
  --danger: #b42318;
  --success: #0f7b3b;
  --card: #ffffff;
  --shadow: 0 10px 35px rgba(13, 27, 46, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hero {
  min-height: 88vh;
  background: var(--deep);
  color: var(--warm-white);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  inset: auto;
  opacity: .45;
}
.hero::before { width: 820px; height: 820px; border: 1px solid rgba(211,227,253,.15); }
.hero::after { width: 560px; height: 560px; border: 1px solid rgba(211,227,253,.12); }
.hero-inner { position: relative; z-index: 1; text-align: center; padding: 70px 20px; }
.badge {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(211,227,253,.24); background: rgba(211,227,253,.08);
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.02; margin: 20px auto 0; max-width: 980px;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p {
  max-width: 720px; margin: 22px auto 0; font-size: 18px; line-height: 1.7; color: rgba(255,255,255,.72);
}
.hero .hero-actions { margin-top: 32px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn {
  border: 0; border-radius: 6px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 24px; font-weight: 700; transition: .2s ease;
}
.btn-primary { background: var(--gold); color: var(--deep); }
.btn-primary:hover { transform: translateY(-1px); background: var(--gold-light); }
.btn-secondary { background: transparent; color: #929292; border: 1px solid rgba(147,147,147,.47); }
.countdown-bar {
  background: var(--forest); color: white; padding: 18px 20px; display: flex; justify-content: center; gap: 42px; flex-wrap: wrap;
}
.countdown-item { text-align: center; }
.countdown-num { font-family: 'Playfair Display', serif; font-size: 34px; color: var(--gold); }
.countdown-label { font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-tag { text-transform: uppercase; letter-spacing: .22em; font-size: 12px; color: var(--forest-mid); font-weight: 700; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(32px, 5vw, 52px); margin-top: 14px; }
.tabs { display: flex; border-bottom: 2px solid rgba(13,27,46,.1); overflow: auto; }
.tab {
  padding: 16px 28px; cursor: pointer; white-space: nowrap; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent;
}
.tab.active { color: var(--deep); border-bottom-color: var(--forest-mid); }
.nominees-panel { padding-top: 28px; }
.nominees-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.nominee-card {
  background: var(--card); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); border: 2px solid transparent;
  transition: .2s ease; cursor: pointer;
}
.nominee-card:hover { transform: translateY(-3px); }
.nominee-card.selected { border-color: var(--forest-mid); box-shadow: 0 18px 45px rgba(13,27,46,.16); }
.nominee-photo-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #dbeafe, #eef4ff); }
.nominee-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.nominee-photo-placeholder {
  width: 100%; height: 100%; display: none; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 42px; color: var(--forest-mid);
}
.nominee-category-dot {
  position: absolute; top: 14px; left: 14px; background: rgba(13,27,46,.82); color: white;
  padding: 8px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.nominee-check {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: none; align-items: center; justify-content: center;
}
.nominee-card.selected .nominee-check { display: flex; }
.nominee-check svg { width: 20px; height: 20px; stroke: var(--success); fill: none; stroke-width: 2.5; }
.nominee-info { padding: 20px; }
.nominee-name { font-size: 22px; font-weight: 800; }
.nominee-org { color: var(--forest-mid); margin-top: 8px; font-weight: 600; }
.nominee-desc { color: var(--muted); line-height: 1.65; margin-top: 12px; min-height: 82px; }
.nominee-vote-btn {
  margin-top: 18px; width: 100%; border: 0; border-radius: 12px; padding: 14px 16px;
  background: var(--deep); color: white; font-weight: 700; cursor: pointer;
}
.vote-summary {
  position: sticky; bottom: 0; z-index: 20; background: rgba(13,27,46,.94); color: white;
  padding: 16px 20px; display: none; justify-content: center; box-shadow: 0 -12px 24px rgba(0,0,0,.18);
}
.vote-summary.visible { display: flex; }
.vote-summary-inner {
  width: min(1200px, 100%); display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
}
.vote-summary-text { color: rgba(255,255,255,.7); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.vote-summary-name { font-size: 22px; font-weight: 800; margin-top: 6px; }
.vote-confirm-btn {
  border: 0; background: var(--gold); color: var(--deep); border-radius: 12px; padding: 14px 18px; font-weight: 800; cursor: pointer;
}
.modal-overlay {
  position: fixed; inset: 0; background: rgba(13,27,46,.52); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 30;
}
.modal-overlay.open { display: flex; }
.modal {
  width: min(680px, 100%); background: white; border-radius: 24px; padding: 26px; position: relative; box-shadow: 0 35px 80px rgba(13,27,46,.32);
}
.modal-close {
  position: absolute; right: 16px; top: 16px; border: 0; background: #eef2f7; border-radius: 50%; width: 40px; height: 40px; cursor: pointer;
}
.modal-nominee-preview { display: flex; gap: 16px; align-items: center; margin-bottom: 26px; }
.modal-nominee-photo {
  width: 68px; height: 68px; border-radius: 50%; background: linear-gradient(135deg, #dbeafe, #eef4ff);
  display: grid; place-items: center; font-family: 'Playfair Display', serif; font-size: 26px; color: var(--forest-mid); overflow: hidden;
}
.modal-nominee-name { font-size: 22px; font-weight: 800; }
.modal-nominee-org { color: var(--forest-mid); margin-top: 5px; }
.modal-title { font-family: 'Playfair Display', serif; font-size: 32px; }
.modal-subtitle { color: var(--muted); line-height: 1.7; margin-top: 10px; }
.form-grid { display: grid; gap: 16px; margin-top: 22px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; }
.form-group input[type="text"],
.form-group input[type="email"] {
  width: 100%; border: 1px solid #d6dde8; border-radius: 14px; padding: 14px 16px; outline: none;
}
.form-group input:focus { border-color: var(--forest-mid); box-shadow: 0 0 0 4px rgba(30,77,122,.08); }
.form-consent { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); line-height: 1.6; }
.form-consent input { margin-top: 3px; }
.error-text { color: var(--danger); font-size: 14px; margin-top: 6px; }
.general-message {
  margin-top: 14px; border-radius: 14px; padding: 14px 16px; display: none;
}
.general-message.error { display: block; background: #fff1f2; color: var(--danger); }
.general-message.success { display: block; background: #ecfdf3; color: var(--success); }
.submit-btn {
  width: 100%; border: 0; border-radius: 14px; padding: 15px 18px; background: var(--deep); color: white; font-weight: 800; cursor: pointer; margin-top: 6px;
}
.submit-btn[disabled] { opacity: .65; cursor: wait; }
.success-state { display: none; text-align: center; padding: 22px 0 8px; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: #ecfdf3; display: grid; place-items: center; margin: 0 auto; }
.success-icon svg { width: 34px; height: 34px; stroke: var(--success); fill: none; stroke-width: 2.5; }
.success-title { font-family: 'Playfair Display', serif; font-size: 34px; margin-top: 18px; }
.success-msg { color: var(--muted); line-height: 1.7; margin-top: 12px; }
.confirm-page, .admin-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.card {
  background: white; box-shadow: var(--shadow); border-radius: 24px; padding: 28px; width: min(900px, 100%);
}
.card h1, .card h2 { font-family: 'Playfair Display', serif; margin: 0 0 10px; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 16px; }
.meta-box { background: #f8fbff; border-radius: 16px; padding: 16px; }
.table-wrap { overflow: auto; margin-top: 18px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid #e8eef6; text-align: left; font-size: 14px; }
.admin-login { max-width: 420px; }
.logout-link { float: right; font-size: 14px; color: var(--forest-mid); }
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.small { font-size: 13px; color: var(--muted); }
@media (max-width: 720px) {
  .modal { padding: 22px 18px; }
  .vote-summary-name { font-size: 18px; }
  .hero p { font-size: 16px; }
}

/* ── HOW IT WORKS ── */
.how-section {
background: var(--deep);
padding: 80px 20px;
}
.how-inner {
max-width: 1100px;
margin: 0 auto;
}
.how-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 2px;
margin-top: 60px;
background: rgba(255,255,255,0.06);
border-radius: 12px;
overflow: hidden;
}
.how-step {
padding: 40px 32px;
background: rgba(158,20,100);
transition: background 0.3s;
}
.how-step:hover { background: rgba(44,74,46,0.5); }
.how-num {
font-family: 'Playfair Display', serif;
font-size: 48px;
font-weight: 900;
color: rgba(255,255,255);
line-height: 1;
margin-bottom: 16px;
}
.how-title {
font-size: 16px;
font-weight: 600;
color: var(--warm-white);
margin-bottom: 10px;
}
.how-desc {
font-size: 13.5px;
color: rgba(255,255,255,0.45);
line-height: 1.6;
}
.how-section .section-tag { color: var(--gold); }
.how-section .section-title { color: var(--warm-white); }

/* ── FOOTER ── */
.footer {
background: var(--deep);
padding: 40px 20px;
text-align: center;
color: rgba(255,255,255,0.35);
font-size: 13px;
line-height: 1.7;
}
.footer strong { color: var(--gold); font-weight: 600; }



.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.hero-logo img {
  max-width: 220px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.6))
          drop-shadow(0 0 20px rgba(255,255,255,44.4));
}

.sectiunea-tag {
font-size: 11px;
font-weight: 600;
letter-spacing: 0.2em;
text-transform: uppercase;
color: var(--gold);
margin-bottom: 16px;
}
.newsletter-box {
  margin-top: 30px;
  padding: 24px;
  background: linear-gradient(135deg, #eef4ff, #f8fbff);
  border-radius: 20px;
  border: 1px solid #dbeafe;
}

.newsletter-box h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.newsletter-box p {
  margin-bottom: 10px;
  color: #334155;
}

.newsletter-box ul {
  margin: 10px 0 16px 18px;
  color: #334155;
}

.newsletter-box li {
  margin-bottom: 6px;
}

.newsletter-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #1e4d7a;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.newsletter-btn:hover {
  background: #163a5c;
  transform: translateY(-1px);
}

.footer-disclaimer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);

}


.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  margin-top: 35px;
}

.partners-logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.partners-logos img {
  max-height: 46px;
  max-width: 170px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: transform .2s ease, opacity .2s ease;
}

.partners-logos img:hover {
  opacity: 1;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .partners-logos {
    gap: 18px;
    margin-bottom: 20px;
  }

  .partners-logos img {
    max-height: 34px;
    max-width: 130px;
  }
}
.flag-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.flag-label img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}
.nominee-info {
  display: flex;
  flex-direction: column;
}

.nominee-desc {
  min-height: 0;
  margin-bottom: 16px;
}

.nominee-vote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  text-decoration: none;
  line-height: 1.2;
  margin-top: auto;
}
