/* ====================================================
   📧 聯絡表單頁面樣式
   ==================================================== */
.contact-container {
  padding: 20px 16px 40px;
  max-width: 600px;
  margin: 0 auto;
}
.contact-title {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-label {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}
.contact-input {
  width: 100%;
  padding: 10px 12px;
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.contact-input:focus {
  border-color: #3097fd;
  box-shadow: 0 0 0 3px rgba(48, 151, 253, 0.15);
}
.contact-input::placeholder { color: #aaa; }
textarea.contact-input { resize: vertical; min-height: 100px; }
select.contact-input { appearance: auto; }

.captcha-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.captcha-row .contact-input { flex: 1; }
.captcha-canvas {
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #ddd;
  flex-shrink: 0;
}

.contact-submit {
  width: 100%;
  padding: 12px;
  background: #3097fd;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.contact-submit:hover { background: #1a7de0; }
.contact-submit:disabled { background: #ccc; cursor: not-allowed; }

.contact-error {
  color: #e74c3c;
  text-align: center;
  font-size: 13px;
  margin-top: 8px;
  display: none;
}
.contact-success {
  text-align: center;
  padding: 40px 20px;
}
.contact-success p {
  color: #27ae60;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}
.contact-success a {
  display: inline-block;
  padding: 10px 24px;
  background: #3097fd;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}
.contact-success a:hover { background: #1a7de0; }

@media (min-width: 640px) {
  .contact-row-2 { grid-template-columns: 1fr 1fr; }
  .contact-row-3 { grid-template-columns: 1fr 1fr 1fr; }
}
