/* ══════════════════════════════════════
   contact.css — 聯絡頁面專屬樣式
══════════════════════════════════════ */

/* ── Contact Channels ── */
.contact-channels-section { background: var(--surface); }

.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.channel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow-sm);
}
.channel-card:hover { border-color: rgba(255,107,53,0.35); transform: translateY(-4px); }
.channel-icon { font-size: 32px; line-height: 1; }
.channel-card h3 {
  font-family: var(--ff-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
}
.channel-card p { font-size: 13px; color: var(--text-2); line-height: 1.7; flex: 1; }
.channel-link {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  word-break: break-all;
  transition: color 0.2s;
}
.channel-link:hover { color: #e85a25; }
.channel-time {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.5px;
}

/* ── Contact Form Section ── */
.contact-form-section { background: var(--paper); }
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

/* Sidebar */
.contact-sidebar h2 {
  font-family: var(--ff-serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  color: var(--text-1);
  margin: 10px 0 16px;
}
.contact-sidebar > p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 28px;
}

/* Topic chips */
.contact-topics { margin-bottom: 28px; }
.ct-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.ct-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.ct-chip {
  font-size: 12.5px;
  padding: 5px 13px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--text-2);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  user-select: none;
}
.ct-chip:hover,
.ct-chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232,90,32,0.08);
}

/* Promise list */
.contact-promise { display: flex; flex-direction: column; gap: 10px; }
.cp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
}
.cp-icon { font-size: 16px; flex-shrink: 0; }

/* Contact form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── FAQ Section ── */
.faq-section { background: var(--surface); }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.faq-group-title {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px 0;
  text-align: left;
  font-size: 14px;
  font-family: var(--ff-body);
  font-weight: 500;
  color: var(--text-1);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-arrow {
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform 0.3s;
}
.faq-q[aria-expanded="true"] .faq-arrow { transform: rotate(180deg); }
.faq-q[aria-expanded="true"] { color: var(--accent); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.3s;
}
.faq-a.open { max-height: 300px; }
.faq-a p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.75;
  padding-bottom: 16px;
}

/* ── Captcha ── */
.captcha-group { margin-bottom: 0; }
.captcha-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.captcha-wrapper input {
  flex: 0 0 140px;
}
.captcha-image {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 42px;
  width: auto;
  cursor: pointer;
  display: block;
}
.captcha-refresh {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.captcha-refresh:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .channels-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .contact-channels-section { padding: 40px 0; }
  .contact-form-section { padding: 40px 0; }
  .faq-section { padding: 40px 0; }
  .channels-grid { grid-template-columns: 1fr; gap: 14px; }
  .contact-form { padding: 24px 18px; }
  .channel-card { padding: 22px 18px; }
  .contact-sidebar h2 { font-size: 24px; }
  .faq-group-title { font-size: 10px; }
  .faq-q { font-size: 13px; padding: 14px 0; }
  .faq-a p { font-size: 13px; }
}
@media (max-width: 480px) {
  .contact-form { padding: 20px 14px; gap: 16px; }
  .channel-card { padding: 18px 14px; }
  .channel-card h3 { font-size: 16px; }
  .ct-chip { font-size: 11px; padding: 4px 11px; }
  .cp-item { font-size: 12px; }
  .faq-q { font-size: 12.5px; padding: 12px 0; }
}
@media (max-width: 380px) {
  .contact-form { padding: 16px 12px; }
  .channel-card { padding: 16px 12px; }
  .faq-q { font-size: 12px; }
}
