/* ==========================================================
   Scenic Iceland — 联系页
   结构参照参考站，配色全部取自本站既有 token。
   ========================================================== */

.contact-head { padding: var(--space-4) 0 var(--space-3); max-width: 62ch; }

.contact-title {
  font-size: clamp(2.2rem, 1.2rem + 3vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--color-text);
  margin: 0 0 var(--space-2);
}

.contact-lede {
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}
.contact-lede p + p { margin-top: 0.8em; }

/* ---------- 渠道横条 ---------- */

.channels {
  display: grid;
  grid-template-columns: repeat(var(--channel-cols, 4), 1fr);
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  background: var(--color-sky-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.channels[data-count="3"] { --channel-cols: 3; }
.channels[data-count="2"] { --channel-cols: 2; }
.channels[data-count="1"] { --channel-cols: 1; }

.channel {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.35rem 1.5rem;
  border-right: 1px solid rgba(15, 62, 84, 0.12);
  transition: background var(--transition);
}
.channel:last-child { border-right: none; }
.channel:hover { background: rgba(255, 255, 255, 0.55); }

.channel-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.channel-icon svg { width: 21px; height: 21px; color: var(--color-accent); }

.channel-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }

.channel-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.channel-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-grass-deep);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  word-break: break-word;
}
.channel-link:hover { color: var(--color-accent-hover); }

/* ---------- 表单 ---------- */

.contact-form-block { padding-bottom: var(--space-6); scroll-margin-top: calc(var(--nav-height) + 1rem); }
.contact-form-lede {
  color: var(--color-text-secondary);
  margin: -0.6rem 0 var(--space-3);
  max-width: 60ch;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 640px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: 0 2px 10px rgba(15, 62, 84, 0.05);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }

.form-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
}
.form-field .req { color: var(--color-rust); }

.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.85rem;
  transition: var(--transition);
}
.form-field textarea { resize: vertical; min-height: 8rem; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent-bright);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(79, 179, 209, 0.18);
}

.form-field.has-error input,
.form-field.has-error textarea { border-color: var(--color-rust); }
.field-error { font-size: 0.8rem; color: var(--color-rust); font-weight: 600; }

/* 蜜罐：视觉与读屏都不可见，但机器人会填 */
.form-trap {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.form-note {
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  max-width: 640px;
  border: 1px solid transparent;
}
.form-note.is-good { background: #e9f5e0; color: var(--color-grass-deep); border-color: #b7dfa0; }
.form-note.is-warn { background: #fdf3dd; color: #8a5a00; border-color: #f0d9a0; }
.form-note.is-crit { background: #fbeae4; color: var(--color-rust); border-color: #eec3b3; }

/* ---------- 地址与地图 ---------- */

.contact-location { padding-bottom: var(--space-6); }

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-4);
  align-items: start;
}

.location-info { display: flex; flex-direction: column; gap: var(--space-3); }
.location-block h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
}
.location-block address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 1rem;
  color: var(--color-text);
  font-weight: 500;
}

.location-directions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
}
.location-directions svg { width: 17px; height: 17px; }
.location-directions:hover { color: var(--color-text); }

.hours { display: flex; flex-direction: column; gap: 0.35rem; margin: 0; }
.hours > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.93rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--color-border);
}
.hours > div:last-child { border-bottom: none; }
.hours dt { color: var(--color-text-secondary); }
.hours dd { margin: 0; font-weight: 700; color: var(--color-text); font-variant-numeric: tabular-nums; }

.location-map {
  position: relative;
  min-height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.location-map .sc-map { position: absolute; inset: 0; min-height: 0; border: none; border-radius: 0; }

/* ---------- FAQ 引导 ---------- */

.contact-faq {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 1.4rem 1.6rem;
  margin-bottom: var(--space-6);
  background: var(--color-mist);
  border-radius: var(--radius-lg);
}
.contact-faq h3 { margin: 0 0 0.2rem; font-size: 1.05rem; color: var(--color-text); }
.contact-faq p { margin: 0; font-size: 0.92rem; color: var(--color-text-secondary); }

@media (max-width: 900px) {
  .channels { grid-template-columns: 1fr 1fr; }
  .channel:nth-child(2n) { border-right: none; }
  .channel:nth-child(-n+2) { border-bottom: 1px solid rgba(15, 62, 84, 0.12); }
  .location-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .channels,
  .channels[data-count="3"],
  .channels[data-count="2"] { grid-template-columns: 1fr; }
  .channel { border-right: none; border-bottom: 1px solid rgba(15, 62, 84, 0.12); }
  .channel:last-child { border-bottom: none; }
  .form-row { grid-template-columns: 1fr; }
}
