@charset "UTF-8";

/* === form.css - 表单+按钮+交互 === */

/* Form Container */
.form-container {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 40px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  margin-bottom: 20px;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-label .required {
  color: #F77F00;
  margin-left: 4px;
}

/* Inputs */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #C8D5E0;
  border-radius: 4px;
  font-size: 15px;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: #333;
  background-color: #fff;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #F77F00;
  box-shadow: 0 0 0 3px rgba(247, 127, 0, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #aaa;
}

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

.form-select {
  cursor: pointer;
  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='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-hint {
  font-size: 12px;
  color: #999;
  margin-top: 6px;
}

.form-error {
  font-size: 12px;
  color: #e74c3c;
  margin-top: 6px;
  display: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-textarea,
.form-group.has-error .form-select {
  border-color: #e74c3c;
}

.form-group.has-error .form-error {
  display: block;
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
}

.form-check-input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #F77F00;
  cursor: pointer;
  flex-shrink: 0;
}

.form-check-label {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  text-align: center;
  gap: 8px;
}

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

.btn-primary:hover {
  background-color: #e07200;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(247, 127, 0, 0.3);
}

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

.btn-secondary:hover {
  background-color: #1a2d42;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: #F77F00;
  border: 2px solid #F77F00;
}

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

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 17px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Search */
.search-box {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 14px 50px 14px 20px;
  border: 2px solid #C8D5E0;
  border-radius: 4px;
  font-size: 15px;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #F77F00;
}

.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: #F77F00;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.search-btn:hover {
  background: #e07200;
}

/* Search Results */
.search-results {
  margin-top: 30px;
}

.search-result-item {
  padding: 20px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  margin-bottom: 12px;
}

.search-result-item h4 {
  font-size: 16px;
  color: #0D1B2A;
  margin-bottom: 6px;
}

.search-result-item h4 a {
  color: #0D1B2A;
}

.search-result-item h4 a:hover {
  color: #F77F00;
}

.search-result-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.search-highlight {
  background-color: rgba(247, 127, 0, 0.2);
  padding: 2px 4px;
  border-radius: 2px;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: #0D1B2A;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  transition: all 0.2s ease;
}

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

.faq-question .icon {
  font-size: 18px;
  color: #F77F00;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question .icon {
  transform: rotate(180deg);
}

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

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 20px 16px;
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

/* Map placeholder */
.map-container {
  width: 100%;
  height: 350px;
  background: #F0F4F8;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  border: 1px solid #C8D5E0;
}

/* Contact cards */
.contact-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.contact-card {
  flex: 1;
  min-width: 200px;
  background: #fff;
  padding: 24px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: center;
}

.contact-card-icon {
  font-size: 36px;
  color: #F77F00;
  margin-bottom: 12px;
}

.contact-card h4 {
  font-size: 16px;
  color: #0D1B2A;
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 14px;
  color: #666;
}

/* Responsive */
@media (max-width: 1023px) {
  .form-container {
    padding: 30px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .form-row .form-group {
    margin-bottom: 20px;
  }
}

@media (max-width: 767px) {
  .form-container {
    padding: 20px;
  }
  
  .contact-card {
    min-width: 100%;
  }
  
  .map-container {
    height: 250px;
  }
}
