/* ── FIVE PAGE ── */

.five-section {
  padding: 120px 10vw 6rem;
  background: var(--bg);
  text-align: left;
}

.five-section .label,
.five-section .sec-title {
  text-align: left;
}

.five-intro {
  max-width: 680px;
  margin: -1.8rem 0 3rem;
  font-size: 15px;
  color: var(--mid);
  line-height: 2.1;
}

.five-form-card {
  max-width: 520px;
  padding: 2rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  text-align: left;
}

.five-form-card label {
  display: block;
  margin: 0 0 .55rem;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: .12em;
}

/* 日期欄位：文字輸入 + 右側日期選擇器 */
.date-box {
  position: relative;
  width: 100%;
  margin-bottom: 1.2rem;
}

.date-box #birth {
  width: 100%;
  height: 52px;
  margin-bottom: 0;
  padding: 0 56px 0 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  color: var(--bark);
  font-size: 15px;
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 300;
  outline: none;
}

.date-box #picker {
  position: absolute;
  top: 0;
  right: 0;
  width: 52px;
  height: 52px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  opacity: 1;
  cursor: pointer;
  z-index: 3;
  color: transparent;
}

.date-box #picker::-webkit-datetime-edit {
  display: none;
}

.date-box #picker::-webkit-calendar-picker-indicator {
  opacity: 1;
  cursor: pointer;
  width: 22px;
  height: 22px;
  filter: invert(85%) sepia(15%) saturate(600%) hue-rotate(300deg) brightness(1.05);
}


.calendar-icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 22px;
pointer-events:auto;
cursor:pointer;
  border-left: 1px solid var(--line);
  background: rgba(217, 184, 174, .18);
}

.date-box:focus-within #birth {
  border-color: var(--gold);
}

.date-box:focus-within .calendar-icon {
  color: var(--gold-d);
}

/* 性別欄位 */
.five-form-card select {
  width: 100%;
  height: 52px;
  margin-bottom: 1.2rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  color: var(--bark);
  font-size: 15px;
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 300;
  outline: none;
}

.five-form-card select:focus {
  border-color: var(--gold);
}

.five-form-card button {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 0;
  background: var(--gold);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: .14em;
  font-family: 'Noto Sans TC', sans-serif;
  cursor: pointer;
  transition: background .2s;
}

.five-form-card button:hover {
  background: var(--gold-d);
}

#message {
  max-width: 620px;
  margin-top: 1.5rem;
}

.error {
  padding: 1rem 1.2rem;
  border: 1px solid rgba(216, 154, 142, .4);
  background: rgba(216, 154, 142, .08);
  color: #E8B8AE;
  font-size: 14px;
}

/* ── RESULT ── */

.result-card {
  max-width: 760px;
  margin-top: 3rem;
  padding: 2.4rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  text-align: left;
}

.result-head {
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.code-tag {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: 'Noto Serif TC', serif;
  font-size: 26px;
  color: var(--gold);
  letter-spacing: .12em;
}

.result-card h2 {
  margin: 0;
  font-family: 'Noto Serif TC', serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--bark);
  letter-spacing: .08em;
}

.result-section {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.result-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.result-section h3 {
  margin: 0 0 .8rem;
  font-family: 'Noto Serif TC', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--bark);
  letter-spacing: .08em;
}

.result-section p,
.result-section li {
  font-size: 14px;
  color: var(--mid);
  line-height: 2;
}

.result-section ul {
  margin: 0;
  padding-left: 1.2rem;
}

.color-grid {
  display: grid;
  gap: .75rem;
}

.color-item {
  padding: .9rem 1rem;
  background: var(--warm);
  border-left: 3px solid var(--gold);
  font-size: 14px;
  color: var(--mid);
  line-height: 1.9;
}

.color-item strong {
  color: var(--bark);
  font-weight: 400;
}

@media (max-width: 600px) {
  .five-section {
    padding: 96px 6vw 4rem;
  }

  .five-intro {
    font-size: 14px;
    margin-bottom: 2rem;
  }

  .five-form-card {
    padding: 1.4rem;
  }

  .result-card {
    padding: 1.6rem;
  }

  .code-tag {
    font-size: 22px;
  }
}