*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #f6f9ff;
  color: #000;
  font-size: 16px;
  line-height: 1.55;
  font-family: 'Archivo', sans-serif;
  -webkit-font-smoothing: antialiased;
}

* {
  font-family: 'Archivo', sans-serif;
}

button,
input,
textarea {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  height: 72px;
  background-color: #1563B2;
  background-image: linear-gradient(90deg, #0458A3, #2A71C3);
  color: #fff;
  border-bottom: 1px solid #dee2e6;
  padding-left: 16px;
  padding-right: 16px;
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-left: 50px;
  margin-right: 50px;
}

.header-logo img {
  height: 22px;
  display: block;
}

.header-social {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.header-social-label {
  margin: 0 0 0 17px;
  font-size: 12px;
  text-align: right;
  line-height: 1.55;
}

.header-social-icons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.header-social-icons img {
  cursor: pointer;
  margin: 1px 0;
  display: block;
}

.header-social-icons .icon-x { width: 17px; }
.header-social-icons .icon-fb { width: 8px; }
.header-social-icons .icon-ig { width: 19.98px; }
.header-social-icons .icon-yt { width: 24px; }
.header-social-icons .icon-rss { width: 20px; }

.page {
  width: 100%;
  background: #f6f9ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
  min-height: calc(100% - 72px);
}

.page-home {
  align-items: center;
}

.page-vote {
  align-items: stretch;
  min-height: 100%;
  padding-bottom: 0;
  justify-content: center;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
  text-align: center;
}

.hero-kicker {
  color: #3971b7;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}

.hero-title {
  color: #092a63;
  margin: 20px 0 0;
  font-weight: 700;
  font-size: 30px;
  width: 300px;
  line-height: 1.55;
}

.hero-text {
  color: #61799d;
  margin: 20px 0 0;
  font-size: 14px;
  width: 300px;
  line-height: 1.55;
  font-weight: 400;
}

.options {
  display: flex;
  flex-direction: column;
  margin-top: 50px;
  gap: 30px;
}

.option-card {
  width: 270px;
  max-width: 345px;
  padding: 0;
  background: #f5f8fd;
  border: 2px solid #dce9fa;
  border-radius: 30px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.option-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(40, 90, 150, 0.08);
}

.option-card.is-disabled {
  cursor: default;
  pointer-events: none;
}

.option-card.is-disabled:hover {
  transform: none;
  box-shadow: none;
}

.option-image-area {
  position: relative;
  height: 288px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f8fd;
}

.option-letter {
  position: absolute;
  top: 18px;
  left: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  color: #092a63;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}

.option-image-area img {
  width: 270px;
  display: block;
}

.option-card[data-letter="B"] .option-image-area img {
  width: 260px;
}

.option-footer {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  background: #ffffff;
}

.option-footer-title {
  margin: 0 0 5px;
  color: #7196c6;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.55;
}

.option-footer-letter {
  margin: 0;
  color: #092a63;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
}

.option-footer svg {
  width: 25px;
  height: 25px;
  color: #7196c6;
  flex-shrink: 0;
}

.notice-wrap {
  padding: 32px;
  max-width: 100%;
  box-sizing: border-box;
}

.notice {
  padding: 20px 22px;
  background: #eef5fc;
  border-radius: 16px;
  max-width: 100%;
}

.notice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notice-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.notice-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #173e70;
  line-height: 1.55;
}

.notice-text {
  margin: 3px 0 0;
  color: #617fa5;
  font-size: 14px;
  line-height: 1.55;
}

.closed-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(720px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: #0a3271;
  color: #fff;
  box-sizing: border-box;
}

.closed-banner svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.closed-banner-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.closed-banner-text {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.notice-closed {
  background: #fff4e6;
}

.notice-closed .notice-title {
  color: #9c2b12;
}

.notice-closed .notice-text {
  color: #c05621;
}

.container-md {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #092a63;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}

.back-btn svg {
  width: 16px;
  height: 16px;
}

.vote-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.choice-card {
  background: #0a3271;
  color: #ffffff;
  padding: 32px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px #0000000d, #0000000d 0 36px 28px -7px, #0000000a 0 17px 17px -7px;
}

.choice-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  opacity: 0.8;
  line-height: 1.4;
}

.choice-title {
  margin: 4px 0 0;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.35;
}

.choice-image-wrap {
  margin-top: 16px;
  background: #ffffff;
  border-radius: 12px;
}

.choice-image-wrap img {
  width: 170px;
  display: block;
}

.vote-card {
  background: #ffffff;
  width: 440px;
  padding: 32px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px #0000000d, #0000000d 0 36px 28px -7px, #0000000a 0 17px 17px -7px;
}

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

.vote-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #868e96;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  line-height: 1.4;
}

.vote-title {
  margin: 4px 0 0;
  color: #092a63;
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.35;
}

.vote-subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  color: #868e96;
  line-height: 1.45;
}

.vote-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.field-label {
  display: block;
  font-weight: 600;
  color: #092a63;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 4px;
}

.required {
  color: #fa5252;
  margin-left: 2px;
}

.field-input {
  width: 100%;
  height: 36px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 34px;
  color: #000;
  background: #fff;
  outline: none;
}

.field-input::placeholder {
  color: #adb5bd;
}

.field-input:focus {
  border-color: #228be6;
}

.field-input.has-error {
  border-color: #fa5252;
}

.field-error {
  display: none;
  margin: 4px 0 0;
  color: #fa5252;
  font-size: 12px;
  line-height: 1.55;
}

.field-error.is-visible {
  display: block;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.consent-box {
  background: #F7FAFF;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.consent input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: #0a3271;
  flex-shrink: 0;
}

.consent span {
  font-size: 13px;
  color: #0a3271;
  line-height: 1.3;
}

.lock-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.lock-row svg {
  color: #0a3271;
  margin-top: 2px;
  flex-shrink: 0;
}

.lock-row p {
  margin: 0;
  flex: 1;
  line-height: 1.3;
  font-size: 15px;
  color: #868e96;
}

.vote-submit {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 32px;
  background: #0a3271;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  padding: 0 22px;
}

.vote-submit:disabled {
  background: #e9ecef;
  color: #adb5bd;
  opacity: 1;
  cursor: not-allowed;
}

.vote-message {
  display: none;
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

.vote-message.is-success,
.vote-message.is-error {
  display: block;
}

.vote-message.is-success {
  color: #12B886;
}

.vote-message.is-error {
  color: #FA5252;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.is-hidden {
  display: none !important;
}

@media (min-width: 481px) {
  .hero-title {
    font-size: 40px;
    width: 450px;
  }

  .hero-text {
    font-size: 16px;
    width: 450px;
  }

  .options {
    flex-direction: row;
    gap: 10px;
  }

  .option-card {
    width: 240px;
  }

  .field-row {
    flex-direction: row;
    gap: 10px;
  }

  .field-row .field {
    flex: 1;
  }
}

@media (min-width: 900px) {
  .header-inner {
    justify-content: space-around;
  }

  .header-logo img {
    height: 32px;
  }

  .header-social {
    display: flex;
  }

  .hero-title {
    font-size: 55px;
    width: 690px;
  }

  .hero-text {
    font-size: 18px;
    width: 690px;
  }

  .options {
    gap: 30px;
  }

  .option-card {
    width: 310px;
  }

  .option-image-area img {
    width: 300px;
  }

  .option-card[data-letter="B"] .option-image-area img {
    width: 280px;
  }

  .page-vote {
    height: calc(100vh - 4.5rem);
    padding-bottom: 72px;
    justify-content: center;
  }

  .choice-image-wrap img {
    width: 200px;
  }
}
