body {
  margin: 0;
  font-family: "Outfit", "Segoe UI", sans-serif;
  background:
    radial-gradient(1300px 500px at 0% -10%, #e0e7ff 0%, rgba(224, 231, 255, 0) 70%),
    radial-gradient(900px 400px at 100% 0%, #dbeafe 0%, rgba(219, 234, 254, 0) 65%),
    #f8fafc;
  color: #0f172a;
}

.vf-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: blur(6px);
}

.vf-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.vf-title-wrap {
  min-width: 280px;
  text-align: center;
}

.vf-title {
  font-size: clamp(1rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.12;
  color: #1e293b;
}

.vf-subtitle {
  margin-top: 0.2rem;
  font-size: clamp(0.75rem, 1.6vw, 0.95rem);
  color: #64748b;
  font-weight: 500;
}

.vf-logo-shell {
  width: clamp(58px, 9vw, 84px);
  height: clamp(58px, 9vw, 84px);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #eef2ff);
  border: 1px solid #dbe5f4;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}

.vf-logo {
  width: 84%;
  height: 84%;
  object-fit: contain;
}

.vf-main {
  max-width: 1100px;
  margin: 1.2rem auto;
  padding: 0 1rem;
}

.vf-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.alert-error,
.alert-warning,
.alert-info,
.alert-success {
  border-radius: 10px;
}

.vf-footer {
  text-align: center;
  color: #64748b;
  padding: 1rem;
}

.vf-login-shell {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
}

.vf-login-grid {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.2rem;
}

.vf-login-hero {
  background:
    linear-gradient(155deg, rgba(30, 58, 138, 0.95), rgba(37, 99, 235, 0.9)),
    radial-gradient(700px 240px at 10% -10%, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
  color: #e2e8f0;
  border-radius: 18px;
  padding: 2rem 1.8rem;
  box-shadow: 0 12px 30px rgba(30, 58, 138, 0.25);
}

.vf-login-kicker {
  margin: 0 0 0.6rem 0;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bfdbfe;
}

.vf-login-hero h2 {
  margin: 0 0 0.8rem 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
  color: #fff;
}

.vf-login-hero p {
  margin: 0;
  color: #dbeafe;
}

.vf-login-list {
  margin: 1.2rem 0 0 0;
  padding-left: 1.1rem;
}

.vf-login-list li {
  margin-bottom: 0.5rem;
}

.vf-login-card {
  background: #fff;
  border: 1px solid #dbe1ee;
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.vf-login-card h3 {
  margin: 0;
  font-size: 1.7rem;
  color: #0f172a;
}

.vf-login-subtitle {
  margin: 0.45rem 0 1.1rem 0;
  color: #64748b;
}

.vf-login-form {
  display: grid;
  gap: 0.95rem;
}

.vf-login-form .form-control {
  border-radius: 10px;
  border-color: #cbd5e1;
  min-height: 44px;
}

.vf-login-form .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.vf-login-btn {
  margin-top: 0.4rem;
  min-height: 44px;
  font-weight: 600;
  border-radius: 10px;
}

@media (max-width: 960px) {
  .vf-login-grid {
    grid-template-columns: 1fr;
  }

  .vf-login-shell {
    min-height: auto;
    padding: 0.6rem 0;
  }
}

@media (max-width: 640px) {
  .vf-wrap {
    gap: 0.6rem;
    padding: 0.6rem 0.65rem;
  }

  .vf-title-wrap {
    min-width: auto;
  }

  .vf-logo-shell {
    width: 54px;
    height: 54px;
    border-radius: 12px;
  }
}

.vf-vote-shell {
  min-height: calc(100vh - 240px);
  display: grid;
  place-items: center;
  padding: 1rem 0;
}

.vf-vote-card {
  width: min(720px, 100%);
  background: #ffffff;
  border: 1px solid #dbe5f4;
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.vf-vote-head h1 {
  margin: 0.2rem 0;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  color: #0f172a;
}

.vf-vote-head p {
  margin: 0;
  color: #64748b;
}

.vf-vote-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1d4ed8;
}

.vf-vote-election {
  margin-top: 0.8rem;
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 600;
}

.vf-vote-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
}

.vf-vote-form .form-control {
  min-height: 46px;
  border-radius: 10px;
  border-color: #cbd5e1;
}

.vf-vote-btn {
  min-height: 46px;
  border-radius: 10px;
  font-weight: 700;
}

.vf-thanks-shell {
  min-height: calc(100vh - 240px);
  display: grid;
  place-items: center;
}

.vf-thanks-card {
  width: min(560px, 100%);
  text-align: center;
  background: #fff;
  border: 1px solid #dbe5f4;
  border-radius: 18px;
  padding: 2rem 1.4rem;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.vf-thanks-card h1 {
  margin: 0 0 0.5rem 0;
  color: #0f172a;
}

.vf-confirm-shell {
  min-height: calc(100vh - 240px);
  display: grid;
  place-items: center;
  padding: 1rem 0;
}

.vf-confirm-card {
  width: min(700px, 100%);
  background: #fff;
  border: 1px solid #dbe5f4;
  border-radius: 18px;
  padding: 1.45rem;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.vf-confirm-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  color: #0f172a;
}

.vf-confirm-subtitle {
  margin: 0.4rem 0 1rem;
  color: #64748b;
}

.vf-confirm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.vf-confirm-item {
  border: 1px solid #dbeafe;
  background: #f8fbff;
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
}

.vf-confirm-item-full {
  grid-column: 1 / -1;
}

.vf-confirm-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  margin-bottom: 0.2rem;
}

.vf-confirm-value {
  color: #0f172a;
  font-size: 1.02rem;
}

.vf-confirm-actions {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
}

.vf-confirm-btn-main,
.vf-confirm-btn-secondary {
  min-height: 44px;
  border-radius: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vf-candidate-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 260px));
  gap: 0.85rem;
  justify-content: start;
}

.vf-candidate-item {
  min-width: 0;
}

.vf-candidate-card {
  border: 1px solid #dbe5f4;
  border-radius: 16px;
  padding: 0.7rem;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.vf-candidate-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.vf-candidate-media-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  align-items: start;
}

.vf-candidate-media-box {
  margin: 0;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
  padding: 0.35rem 0.25rem 0.3rem;
  display: grid;
  justify-items: center;
  gap: 0.25rem;
}

.vf-candidate-media-box figcaption {
  font-size: 0.72rem;
  color: #475569;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vf-candidate-photo {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  border: 2px solid #dbeafe;
  object-fit: cover;
}

.vf-candidate-name {
  text-align: center;
  font-weight: 700;
  color: #0f172a;
  font-size: 1.12rem;
  line-height: 1.2;
}

.vf-candidate-party {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #475569;
  font-size: 0.96rem;
  text-align: center;
  line-height: 1.25;
}

.vf-candidate-party-logo {
  width: 82px;
  height: 82px;
  border-radius: 12px;
  border: 1.5px solid #dbeafe;
  object-fit: cover;
}

.vf-candidate-media-fallback {
  width: 82px;
  height: 82px;
  border-radius: 12px;
  border: 1.5px dashed #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.vf-candidate-radio:checked + .vf-candidate-card {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

@media (max-width: 640px) {
  .vf-confirm-grid {
    grid-template-columns: 1fr;
  }

  .vf-confirm-actions {
    grid-template-columns: 1fr;
  }

  .vf-candidate-media-grid {
    grid-template-columns: 1fr;
  }

  .vf-candidate-grid {
    grid-template-columns: 1fr;
  }
}
