/* =========================================
   聯絡我們
   ========================================= */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 20px;
}
.contact-info-card h3 { font-size: 16px; margin-bottom: 10px; }
.contact-info-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 6px; }
.contact-info-card a { color: var(--brand-red); font-weight: 600; }
.contact-map { border: 0; width: 100%; height: 160px; border-radius: 8px; margin-top: 12px; }

.contact-form { background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--brand-navy); }
.form-row label .required { color: var(--brand-red); font-weight: 400; font-size: 12px; margin-left: 4px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: 8px;
  font-family: inherit; font-size: 15px; background: var(--bg-light);
  transition: border-color var(--transition), background var(--transition);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--brand-red); background: var(--white);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-row input { flex: 1; }
.captcha-image { height: 46px; border-radius: 8px; border: 1px solid var(--border-color); display: block; }
.captcha-refresh {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 8px;
  border: 1px solid var(--border-color); background: var(--bg-light);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}
.captcha-refresh:hover { background: var(--white); color: var(--brand-red); }

.form-alert { padding: 16px 18px; border-radius: 8px; margin-bottom: 24px; font-size: 14px; font-weight: 600; }
.form-alert.success { background: rgba(26,143,94,0.12); color: #1a8f5e; }
.form-alert.error { background: rgba(212,30,30,0.1); color: var(--brand-red-dark); }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }
}
