/* contact.css - 簡化版聯絡頁面樣式 */

/* 聯絡頁面主容器 */
.contact-page {
  padding: 2rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

/* 頁面標題區域 */
.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact-description {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* 表單容器 */
.contact-content {
  max-width: 100%;
}

.contact-form-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin: 0 auto;
}

/* 表單訊息提示 */
.form-message {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* 表單樣式 */
.contact-form {
  max-width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

/* 服務選項 checkbox 樣式 */
.service-checkboxes {
  margin-bottom: 1.5rem;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #007bff;
  cursor: pointer;
}

.checkbox-item label {
  font-weight: 500;
  color: #555;
  cursor: pointer;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.checkbox-item input[type="checkbox"]:checked + label {
  color: #007bff;
  font-weight: 600;
}

/* 提交按鈕 */
.form-submit {
  text-align: center;
  margin-top: 2rem;
}

.submit-btn {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.submit-btn:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

/* 響應式設計 */
@media (max-width: 768px) {
  .contact-page {
    padding: 1rem 0.5rem;
  }

  .contact-header h1 {
    font-size: 2rem;
  }

  .contact-description {
    font-size: 1rem;
  }

  .contact-form-container {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .submit-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .contact-header h1 {
    font-size: 1.75rem;
  }

  .contact-form-container {
    padding: 1rem;
    margin: 0 0.25rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
  }
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-message {
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-group.focused label {
  color: #007bff;
}
