/* form.css - 表单+按钮+交互（联系页/留言页加载） */

/* Form Container */
.form-container {
  background: #fff;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-title {
  font-size: 1.5rem;
  color: #1B4332;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #D4A373;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group label .required {
  color: #e74c3c;
  margin-left: 0.25rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #D0C8BC;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  color: #333;
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #1B4332;
  box-shadow: 0 0 0 3px rgba(27,67,50,0.1);
}

.form-control::placeholder {
  color: #aaa;
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Checkbox and Radio */
.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.form-check-input {
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
  accent-color: #1B4332;
}

.form-check-label {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: #D4A373;
  color: #fff;
}

.btn-primary:hover {
  background: #c49365;
  color: #fff;
}

.btn-secondary {
  background: #1B4332;
  color: #fff;
}

.btn-secondary:hover {
  background: #0F2922;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #1B4332;
  border: 1px solid #1B4332;
}

.btn-outline:hover {
  background: #1B4332;
  color: #fff;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 3rem;
  font-size: 1.1rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Form Grid */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Search Form */
.search-form {
  display: flex;
  gap: 0;
}

.search-form .form-control {
  border-radius: 4px 0 0 4px;
  border-right: none;
}

.search-form .btn {
  border-radius: 0 4px 4px 0;
  padding: 0.75rem 1.5rem;
}

/* Contact Info Cards */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-top: 3px solid #D4A373;
}

.contact-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-size: 1.1rem;
  color: #1B4332;
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Map Container */
.map-container {
  width: 100%;
  height: 400px;
  background: #F5F0EB;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
  border: 1px solid #D0C8BC;
}

.map-placeholder {
  text-align: center;
  color: #666;
}

.map-placeholder-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #D0C8BC;
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: #1B4332;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #F5F0EB;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: #D4A373;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  content: '-';
}

.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 1.25rem 1.25rem;
  max-height: 500px;
}

.faq-answer p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Service Time */
.service-time {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.service-time h3 {
  font-size: 1.1rem;
  color: #1B4332;
  margin-bottom: 1rem;
}

.time-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0ece6;
}

.time-item:last-child {
  border-bottom: none;
}

.time-label {
  font-weight: 500;
  color: #333;
}

.time-value {
  color: #666;
}

.time-value.highlight {
  color: #D4A373;
  font-weight: 500;
}

/* Transport Info */
.transport-info {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.transport-info h3 {
  font-size: 1.1rem;
  color: #1B4332;
  margin-bottom: 1rem;
}

.transport-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f0ece6;
}

.transport-item:last-child {
  border-bottom: none;
}

.transport-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.transport-item h4 {
  font-size: 1rem;
  color: #1B4332;
  margin-bottom: 0.25rem;
}

.transport-item p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Form Validation States */
.form-control.error {
  border-color: #e74c3c;
}

.form-control.success {
  border-color: #27ae60;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .form-container {
    padding: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .contact-cards {
    grid-template-columns: 1fr;
  }
  
  .map-container {
    height: 250px;
  }
  
  .search-form {
    flex-direction: column;
  }
  
  .search-form .form-control {
    border-radius: 4px;
    border-right: 1px solid #D0C8BC;
    margin-bottom: 0.5rem;
  }
  
  .search-form .btn {
    border-radius: 4px;
  }
}
