:root {
  --navy: #102b46;
  --blue: #1769aa;
  --blue-dark: #12558c;
  --sky: #eaf4fb;
  --text: #243648;
  --muted: #718096;
  --line: #e5edf3;
  --white: #fff;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  padding-bottom: 0;
  background: #f5f8fb;
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  text-decoration: none;
}

.brand:hover,
.brand:focus {
  color: var(--blue);
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  margin-right: 12px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  letter-spacing: .2px;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.header-caption {
  color: #53687c;
  font-size: 13px;
}

.quickcount-link {
  white-space: nowrap;
  text-decoration: none;
}

.quickcount-link:hover,
.quickcount-link:focus {
  color: var(--blue);
  text-decoration: none;
}

.header-caption .fa {
  margin-right: 6px;
  color: #21a179;
}

.main-content {
  padding-top: 28px;
  padding-bottom: 64px;
}

.hero-panel {
  position: relative;
  display: flex;
  min-height: 650px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 38px 54px;
  border-radius: 14px;
  background: linear-gradient(120deg, #102b46 0%, #164a75 67%, #1769aa 100%);
  box-shadow: 0 14px 34px rgba(16, 43, 70, .14);
  color: var(--white);
}

.hero-panel:after {
  position: absolute;
  right: 21%;
  bottom: -180px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  content: "";
}

.hero-copy,
.hero-emblem {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 650px;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 13px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 20px;
  color: #d7edff;
  font-size: 12px;
  letter-spacing: .4px;
}

.hero-badge .fa {
  margin-right: 5px;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-copy p {
  max-width: 610px;
  margin-bottom: 22px;
  color: #d5e5f2;
  font-size: 15px;
  line-height: 1.7;
}

.btn-hero {
  padding: 10px 16px;
  border-radius: 5px;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
}

.btn-hero:hover,
.btn-hero:focus {
  background: #eaf4fb;
  color: var(--navy);
}

.btn-hero .fa {
  margin-left: 6px;
}

.hero-emblem {
  display: flex;
  width: 185px;
  min-width: 185px;
  flex-direction: column;
  align-items: center;
  margin-left: 25px;
  text-align: center;
}

.hero-emblem img {
  width: 112px;
  height: 112px;
  margin-bottom: 13px;
  border: 5px solid rgba(255, 255, 255, .88);
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.hero-emblem strong {
  font-size: 13px;
}

.hero-emblem span {
  margin-top: 5px;
  color: #d5e5f2;
  font-size: 11px;
}

.voter-login {
  display: grid;
  grid-template-columns: 54px 1fr 1.1fr;
  gap: 16px 20px;
  align-items: center;
  margin-top: 22px;
  padding: 23px 26px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(25, 55, 80, .04);
}

.login-icon {
  display: flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--sky);
  color: var(--blue);
  font-size: 21px;
}

.login-intro h2 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 19px;
  font-weight: 700;
}

.login-intro p,
.login-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.login-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.login-form .form-group {
  margin: 0;
}

.login-form label {
  margin-bottom: 5px;
  color: #53687c;
  font-size: 12px;
  font-weight: 600;
}

.login-form .form-control {
  height: 40px;
  border-color: #dce6ee;
  border-radius: 5px;
  box-shadow: none;
}

.login-form .form-control:focus {
  border-color: #6ea8d4;
  box-shadow: 0 0 0 3px rgba(23, 105, 170, .1);
}

.btn-login,
.btn-vote {
  min-height: 40px;
  border: 0;
  border-radius: 5px;
  background: var(--blue);
  font-weight: 600;
}

.btn-login:hover,
.btn-vote:hover {
  background: var(--blue-dark);
}

.btn-login .fa,
.btn-vote .fa {
  margin-right: 5px;
}

.login-note {
  grid-column: 2 / 4;
}

.login-note .fa {
  margin-right: 4px;
  color: var(--blue);
}

.candidate-section {
  margin-top: 48px;
}

.section-heading {
  margin-bottom: 20px;
  text-align: center;
}

.section-kicker {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 7px 0;
  color: var(--navy);
  font-size: 25px;
  font-weight: 700;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.candidate-grid {
  display: flex;
  flex-wrap: wrap;
}

.candidate-grid > [class*="col-"] {
  display: flex;
  margin-bottom: 20px;
}

.candidate-card {
  display: flex;
  width: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(25, 55, 80, .05);
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.candidate-card:hover,
.candidate-card:focus-within {
  transform: translateY(-2px);
  border-color: #a9cce6;
  background: #eaf5ff;
  box-shadow: 0 0 0 3px rgba(23, 105, 170, .1), 0 12px 26px rgba(25, 55, 80, .14);
}

.candidate-card:hover .candidate-number,
.candidate-card:focus-within .candidate-number {
  background: #dceeff;
}

.candidate-card.is-selected {
  border-color: var(--blue);
  background: #e4f2ff;
  box-shadow: 0 0 0 3px rgba(23, 105, 170, .14), 0 10px 24px rgba(25, 55, 80, .1);
}

.candidate-card.is-selected .candidate-number {
  background: #e2f1fc;
  color: var(--blue-dark);
}

.candidate-card.is-selected .candidate-number:after {
  position: absolute;
  right: 19px;
  color: var(--blue);
  content: "Pilihan Anda";
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .candidate-card {
    transition: none;
  }
}

.candidate-number {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 19px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
  color: #64788b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.candidate-number span {
  display: inline-flex;
  width: 29px;
  height: 29px;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
}

.candidate-content {
  display: flex;
  justify-content: center;
  padding: 20px 24px 18px;
}

.candidate-profile-grid {
  display: grid;
  width: 100%;
  max-width: 440px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.candidate-profile {
  min-width: 0;
  text-align: center;
}

.candidate-portrait {
  margin: 0;
  overflow: hidden;
  border-radius: 9px;
  text-align: center;
}

.candidate-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 9px;
  background: #f1f5f8;
  object-fit: cover;
  object-position: center 20%;
  box-shadow: 0 3px 10px rgba(25, 55, 80, .12);
  transition: transform .3s ease;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .candidate-portrait:hover .candidate-photo {
    transform: scale(1.08);
  }
}

.candidate-portrait figcaption {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.candidate-names h3 {
  margin: 5px 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.candidate-role {
  margin: 12px 0 0;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.candidate-class {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.candidate-divider {
  display: flex;
  align-items: center;
  margin: 8px 0;
  color: #a4b3c0;
  font-size: 12px;
}

.candidate-divider:before,
.candidate-divider:after {
  width: 25px;
  height: 1px;
  background: var(--line);
  content: "";
}

.candidate-divider span {
  margin: 0 7px;
}

.candidate-platform {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  flex: 1;
  padding: 14px 19px;
  border-top: 1px solid var(--line);
}

.platform-item h4 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.platform-item h4 .fa {
  margin-right: 5px;
  color: var(--blue);
}

.platform-copy {
  margin: 0;
  color: #5f7182;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.platform-copy p,
.platform-copy ol,
.platform-copy ul,
.platform-copy div {
  margin: 0 0 8px;
}

.platform-copy ol {
  counter-reset: platform-mission;
  list-style: none;
  padding-left: 0;
  white-space: normal;
}

.platform-copy ul {
  padding-left: 0;
  list-style-position: inside;
  white-space: normal;
}

.platform-copy li {
  position: relative;
  margin-bottom: 0;
}

.platform-copy ol > li {
  counter-increment: platform-mission;
  padding-left: 1.35em;
  line-height: inherit;
}

.platform-copy ol > li > p {
  display: block;
  margin: 0;
}

.platform-copy ol > li::before {
  position: absolute;
  left: 0;
  content: counter(platform-mission) ".";
}

.platform-copy > :last-child {
  margin-bottom: 0;
}

.candidate-action {
  padding: 12px 19px 17px;
  border-top: 1px solid #f0f3f6;
  text-align: right;
}

.btn-outline-primary {
  border: 1px solid #bdd5e8;
  border-radius: 5px;
  color: var(--blue);
}

.btn-outline-primary:hover {
  border-color: var(--blue);
  background: var(--sky);
  color: var(--blue-dark);
}

.empty-candidates {
  padding: 35px;
  border: 1px dashed #cbd9e4;
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.voter-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.voter-welcome h1 {
  margin: 5px 0;
  color: var(--navy);
  font-size: 24px;
  font-weight: 700;
}

.voter-welcome p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.welcome-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 5px 2px;
  border-radius: 50%;
  background: #aab8c5;
}

.btn-logout {
  border: 1px solid var(--line);
  border-radius: 5px;
}

.footer {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  background: #fff;
  color: #7a8b99;
  font-size: 11px;
}

.footer .container {
  display: flex;
  justify-content: space-between;
}

.modal-content {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(10, 35, 55, .2);
}

.modal-header {
  border-bottom-color: var(--line);
}

.modal-footer {
  border-top-color: var(--line);
}

@media (max-width: 991px) {
  .voter-login {
    grid-template-columns: 50px 1fr;
  }

  .login-form {
    grid-column: 1 / 3;
  }

  .login-note {
    grid-column: 1 / 3;
  }
}

@media (max-width: 767px) {
  .main-content {
    padding-top: 16px;
    padding-bottom: 40px;
  }

  .header-inner {
    min-height: 66px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .header-caption {
    display: none;
  }

  .quickcount-link {
    display: inline;
    font-size: 11px;
  }

  .hero-panel {
    min-height: auto;
    padding: 27px 22px;
  }

  .hero-copy h1 {
    font-size: 29px;
  }

  .hero-copy p {
    font-size: 13px;
  }

  .hero-emblem {
    display: none;
  }

  .voter-login {
    padding: 18px;
  }

  .login-form {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    font-size: 21px;
  }

  .candidate-content {
    padding-right: 16px;
    padding-left: 16px;
  }

  .candidate-profile-grid {
    gap: 18px;
  }

  .candidate-platform {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-right: 15px;
    padding-left: 15px;
  }

  .voter-welcome {
    padding: 18px;
  }

  .voter-welcome h1 {
    font-size: 20px;
  }
}

@media (max-width: 420px) {
  .candidate-content {
    padding-right: 12px;
    padding-left: 12px;
  }

  .candidate-profile-grid {
    gap: 12px;
  }

  .candidate-names h3 {
    font-size: 13px;
  }

  .footer .container {
    align-items: center;
    gap: 8px;
    flex-direction: column;
  }
}
