/* ============ 聯絡我們頁面 ============ */

.page-contact {
  background: #F7F6F2;
  color: #28251D;
  font-family: 'Noto Sans TC', -apple-system, sans-serif;
}

.contact-page {
  min-height: 100vh;
  padding-top: 80px;
}

/* ---- Hero ---- */
.contact-hero {
  background: linear-gradient(135deg, #28251D 0%, #1B474D 100%);
  color: #F7F6F2;
  padding: 80px 24px 100px;
  position: relative;
  overflow: hidden;
}
.contact-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(218, 113, 1, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.contact-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.contact-eyebrow {
  font-family: 'Instrument Serif', 'Noto Serif TC', serif;
  font-size: 13px;
  color: #DA7101;
  letter-spacing: 4px;
  margin-bottom: 20px;
  font-weight: 400;
}
.contact-title {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 6px;
  margin: 0 0 32px;
}
.contact-title .accent {
  color: #DA7101;
}
.contact-desc {
  font-size: 17px;
  line-height: 1.85;
  color: rgba(247, 246, 242, 0.75);
  max-width: 620px;
  margin: 0;
}

/* ---- Grid ---- */
.contact-section {
  max-width: 1100px;
  margin: -60px auto 100px;
  padding: 0 24px;
  position: relative;
}
.contact-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-info { order: 2; }
  .contact-form-wrap { order: 1; }
}

/* ---- 左側資訊 ---- */
.contact-info {
  background: white;
  border-radius: 6px;
  padding: 40px 32px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 100px;
}
@media (max-width: 900px) {
  .contact-info { position: static; padding: 32px 24px; }
}
.contact-info-block {
  margin-bottom: 24px;
}
.contact-info-block:last-child { margin-bottom: 0; }
.contact-info-label {
  font-size: 11px;
  color: #7A7974;
  letter-spacing: 3px;
  margin-bottom: 8px;
  font-weight: 500;
  text-transform: uppercase;
}
.contact-info-value {
  font-family: 'Instrument Serif', 'Noto Serif TC', serif;
  font-size: 20px;
  color: #1B474D;
  text-decoration: none;
  font-weight: 500;
  word-break: break-all;
  transition: color 0.2s;
}
.contact-info-value:hover { color: #DA7101; }
.contact-info-text {
  font-size: 15px;
  line-height: 1.7;
  color: #28251D;
}
.contact-info-note {
  font-size: 12px;
  color: #7A7974;
  margin-top: 6px;
}
.contact-divider {
  height: 1px;
  background: #D4D1CA;
  margin: 24px 0;
}
.contact-purpose-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-purpose-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 6px 0;
  color: #28251D;
}
.contact-purpose-list .dot {
  width: 5px;
  height: 5px;
  background: #DA7101;
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-quote {
  margin-top: 40px;
  padding: 24px 20px;
  background: #F7F6F2;
  border-left: 3px solid #DA7101;
  border-radius: 3px;
  position: relative;
}
.contact-quote-mark {
  font-family: 'Noto Serif TC', serif;
  font-size: 48px;
  color: #DA7101;
  line-height: 0;
  margin-bottom: 20px;
  font-weight: 600;
}
.contact-quote p {
  font-family: 'Noto Serif TC', serif;
  font-size: 16px;
  line-height: 1.8;
  color: #28251D;
  margin: 0 0 12px;
  font-weight: 500;
  letter-spacing: 2px;
}
.contact-quote-attr {
  font-size: 12px;
  color: #7A7974;
  letter-spacing: 1px;
}

/* ---- 右側表單 ---- */
.contact-form-wrap {
  background: white;
  border-radius: 6px;
  padding: 48px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}
@media (max-width: 900px) {
  .contact-form-wrap { padding: 32px 24px; }
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #D4D1CA;
}
.form-header h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: 28px;
  font-weight: 600;
  color: #28251D;
  margin: 0 0 8px;
  letter-spacing: 3px;
}
.form-header-desc {
  font-size: 14px;
  color: #7A7974;
  margin: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

.form-field {
  margin-bottom: 22px;
}
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #28251D;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.form-field label .required {
  color: #DA7101;
  margin-left: 2px;
}
.form-field label .optional {
  color: #BAB9B4;
  font-weight: 400;
  font-size: 11px;
  margin-left: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #D4D1CA;
  border-radius: 4px;
  background: #FBFBF9;
  font-size: 15px;
  font-family: inherit;
  color: #28251D;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #DA7101;
  background: white;
  box-shadow: 0 0 0 3px rgba(218, 113, 1, 0.1);
}
.form-field input.error,
.form-field select.error,
.form-field textarea.error {
  border-color: #A12C7B;
  background: rgba(161, 44, 123, 0.03);
}
.form-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
  font-family: 'Noto Sans TC', -apple-system, sans-serif;
}
.form-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%237A7974' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-hint {
  font-size: 11px;
  color: #BAB9B4;
  text-align: right;
  margin-top: 4px;
}
.form-hint.warn { color: #DA7101; }

.form-privacy {
  background: #F7F6F2;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 12px;
  color: #7A7974;
  line-height: 1.6;
  margin: 8px 0 24px;
  border-left: 2px solid #DA7101;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.form-actions .btn {
  min-width: 180px;
  justify-content: center;
}
.form-actions .btn-primary {
  position: relative;
}
.form-actions .btn-primary .btn-loading {
  display: none;
  align-items: center;
  gap: 8px;
}
.form-actions .btn-primary.loading .btn-text,
.form-actions .btn-primary.loading .btn-arrow {
  display: none;
}
.form-actions .btn-primary.loading .btn-loading {
  display: inline-flex;
}
.spinner {
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- 訊息 ---- */
.form-alert {
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.6;
}
.form-alert.error {
  background: rgba(161, 44, 123, 0.08);
  color: #A12C7B;
  border-left: 3px solid #A12C7B;
}
.form-alert.info {
  background: rgba(27, 71, 77, 0.08);
  color: #1B474D;
  border-left: 3px solid #1B474D;
}

/* ---- 成功狀態 ---- */
.form-success {
  text-align: center;
  padding: 60px 32px 40px;
}
.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: block;
  animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.form-success h3 {
  font-family: 'Noto Serif TC', serif;
  font-size: 28px;
  color: #28251D;
  margin: 0 0 12px;
  letter-spacing: 3px;
  font-weight: 600;
}
.form-success p {
  font-size: 15px;
  color: #7A7974;
  line-height: 1.8;
  margin: 0 0 32px;
}

/* ---- Footer 補強（若 style.css 沒定義） ---- */
.site-footer {
  background: #28251D;
  color: rgba(247, 246, 242, 0.7);
  padding: 40px 24px 24px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(247, 246, 242, 0.1);
}
.footer-logo {
  font-family: 'Noto Serif TC', serif;
  font-size: 18px;
  font-weight: 600;
  color: #F7F6F2;
  letter-spacing: 2px;
}
.footer-en {
  font-family: 'Instrument Serif', serif;
  font-size: 14px;
  color: #DA7101;
  margin-left: 8px;
  letter-spacing: 1px;
  font-weight: 400;
}
.footer-tagline {
  font-size: 12px;
  color: rgba(247, 246, 242, 0.5);
  margin-top: 4px;
  letter-spacing: 2px;
}
.footer-right a {
  color: rgba(247, 246, 242, 0.7);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-right a:hover { color: #DA7101; }
.footer-sep {
  color: rgba(247, 246, 242, 0.3);
  margin: 0 10px;
}
.footer-bottom {
  max-width: 1100px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 12px;
  color: rgba(247, 246, 242, 0.4);
}
.footer-bottom a {
  color: rgba(247, 246, 242, 0.6);
  text-decoration: none;
}
.footer-bottom a:hover { color: #DA7101; }

/* ---- 導覽列 active ---- */
.nav-menu .active {
  color: #DA7101;
}
