* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft JhengHei", sans-serif;
  background: #eaf2fb;
  color: #333;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  padding: 20px;
}

.header-image {
  max-width: 960px;
  height: 180px;
  margin: 0 auto;
  border-radius: 16px;
  background: #dce8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #557;
  font-size: 24px;
}

.card {
  width: 90%;
  max-width: 500px;
  margin: 20px auto;
  padding: 28px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.wide-card {
  max-width: 900px;
}

h1 {
  text-align: center;
  margin-bottom: 8px;
}

.subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 24px;
}

form label {
  display: block;
  margin-bottom: 16px;
  font-weight: bold;
}

.email-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.email-row input {
  flex: 1;
  margin-top: 0;
}

.small-btn {
  width: auto;
  min-width: 110px;
  margin-top: 0;
  padding: 10px 12px;
  font-size: 14px;
  white-space: nowrap;
}

.small-btn.disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
}

input,
select {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
}

button {
  width: 100%;
  padding: 14px;
  margin-top: 12px;
  border: none;
  border-radius: 10px;
  background: #2f80ed;
  color: white;
  font-size: 17px;
  cursor: pointer;
}

button:hover {
  background: #1c63bd;
}

#goResultFromLogin {
  background: #92bafb;
  color: #ffffff;
}

#goResultFromLogin:hover {
  background: #71a1e3;
}

.hidden {
  display: none;
}

/* 投票卡片區 */
.vote-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.vote-card {
  border: 2px solid #ddd;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.vote-card:hover {
  border-color: #2f80ed;
  transform: translateY(-2px);
}

.vote-card.selected {
  border-color: #5424f0;
  background: #f0f6ff;
}

.vote-card input {
  display: none;
}

.vote-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #eee;
}

.vote-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.vote-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
}

.vote-desc {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.vote-stats {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: #f7f9fc;
  font-size: 14px;
  margin-top: auto;
}

.vote-stats strong {
  color: #2f80ed;
}

.stat-bar-bg {
  height: 10px;
  margin-top: 8px;
  background: #e5e5e5;
  border-radius: 999px;
  overflow: hidden;
}

.stat-bar {
  height: 100%;
  background: #2f80ed;
  width: 0%;
}

/* 感謝頁 */
.thanks-box {
  padding: 20px;
  background: #f0f6ff;
  border-radius: 12px;
  line-height: 1.8;
  text-align: center;
}

.site-footer {
  margin-top: auto;
  padding: 24px;
  text-align: center;
  background: #424482;
  color: white;
  font-size: 14px;
}