/* =========================================================
   Final Result
   ========================================================= */
.final-page {
  min-height: 100vh;
  background: #fff;
  padding: 0;
}

.final-container {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 12px 10px 28px;
}

.final-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0;
}

.final-col {
  flex: 0 0 auto;
  width: 50%;
  padding: 0 0.25rem;
}

.lee-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  background: var(--lee-white, #fff);
  border: 1px solid var(--lee-gray-300, #d1d5db);
  border-radius: var(--lee-radius, 12px);
}

.lee-panel-title {
  width: 100%;
  min-height: 4.4em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--lee-black, #111);
  overflow-wrap: anywhere;
  margin-bottom: 8px;
}

.lee-panel-img {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  max-height: 230px;
  object-fit: contain;
  margin: 0 auto 10px;
  border-radius: 8px;
}

.lee-pct {
  display: inline-block;
  min-width: 90px;
  margin-top: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  background: #ffff00;
  color: var(--lee-black, #111);
  font-size: 1.4rem;
  line-height: 1.1;
  font-weight: 900;
  white-space: nowrap;
}

.lee-pledge-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0;
  padding: 14px;
  border: 2px solid var(--lee-emerald);
  border-radius: var(--lee-radius-sm);
  background: var(--lee-emerald-light);
  cursor: pointer;
}

.lee-pledge-wrap input[type='checkbox'] {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 4px 0 0;
  accent-color: var(--lee-emerald);
  cursor: pointer;
}

.lee-pledge-text,
.lee-join-text {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  word-spacing: 0;
  letter-spacing: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

.lee-pledge-text {
  flex: 1 1 0;
  min-width: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--lee-black);
  text-align-last: left;
}

.lee-join-check {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border: 2px solid var(--lee-emerald);
  border-radius: var(--lee-radius-sm);
  background: var(--lee-emerald-light);
}

.lee-join-check.open {
  display: block;
  animation: leeJoinIn 0.25s ease;
}

@keyframes leeJoinIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.democracy-options {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.democracy-option-group {
  width: 100%;
}

.democracy-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: #111;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.democracy-option:hover {
  border-color: var(--lee-emerald);
  background: #f8fffc;
}

.democracy-option:has(input[type='radio']:checked) {
  border-color: var(--lee-emerald);
  background: var(--lee-emerald-light);
}

.democracy-option input[type='radio'] {
  width: 19px;
  height: 19px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--lee-emerald);
  cursor: pointer;
}

.share-options {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 15px;
}

.share-options.open {
  display: flex;
  animation: democracyFadeIn 0.25s ease;
}

.share-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 21px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-icon:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

.share-icon.whatsapp {
  background: #25d366;
}

.share-icon.facebook {
  background: #1877f2;
}

.share-icon.gmail {
  background: #ea4335;
}

.join-message {
  display: none;
  width: 100%;
  margin-top: 15px;
  padding: 14px 16px;
  border: 2px solid var(--lee-emerald);
  border-radius: 10px;
  background: var(--lee-emerald-light);
  color: #111;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
}

.join-message.open {
  display: block;
  animation: democracyFadeIn 0.25s ease;
}

.join-message strong {
  color: #059669;
  font-weight: 800;
}

@keyframes democracyFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.final-next-btn {
  margin-top: 12px;
}

@media (min-width: 576px) {
  .final-container {
    padding: 16px 20px 30px;
  }
  .lee-panel {
    padding: 16px 14px;
  }
  .lee-panel-title {
    font-size: 0.92rem;
    min-height: 4em;
  }
  .lee-panel-img {
    max-height: 280px;
  }
  .lee-pct {
    font-size: 1.8rem;
    min-width: 120px;
  }
  .final-row {
    gap: 1.5rem;
  }
  .final-col {
    padding: 0 0.75rem;
  }
}

@media (max-width: 575px) {
  .lee-pledge-wrap {
    gap: 10px;
    padding: 12px;
  }
  .lee-pledge-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}
