/* ============================================
   contact-us.html 页面专属样式
   ============================================ */

/* ---- Page Hero ---- */
.contact-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(13, 13, 13, 0.88) 0%, rgba(26, 26, 46, 0.86) 55%, rgba(15, 52, 96, 0.82) 100%),
    url("../images/about-hero.webp") center / cover no-repeat;
  padding: 110px 20px 60px;
}

.contact-hero__inner {
  max-width: 900px;
  margin: 0 auto;
}

.contact-hero__badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  background: rgba(76, 175, 80, 0.16);
  border: 1px solid rgba(76, 175, 80, 0.5);
  color: #4caf50;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.contact-hero h1 {
  font-family: "Archivo", sans-serif;
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 18px;
  line-height: 1.15;
}

.contact-hero__sub {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

.contact-hero__sub strong {
  color: #4caf50;
  font-weight: 700;
}

/* ---- Quick Contact Cards ---- */
.contact-quick {
  padding: 64px 20px;
  background: #ffffff;
}

.contact-quick__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.contact-quick__item {
  text-align: center;
  padding: 36px 22px;
  background: #f5f7fa;
  border-radius: 14px;
  border: 1px solid #eeeeee;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-quick__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(76, 175, 80, 0.45);
}

.contact-quick__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.12);
  color: #4caf50;
  font-size: 26px;
}

.contact-quick__title {
  font-family: "Archivo", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 10px;
}

.contact-quick__text {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin: 0 0 4px;
  word-break: break-word;
}

.contact-quick__text a {
  color: #555;
  text-decoration: none;
  transition: color 0.25s ease;
}

.contact-quick__text a:hover {
  color: #4caf50;
}

.contact-quick__hours {
  font-size: 13px;
  color: #9e9e9e;
}

/* ---- Form + Map Section ---- */
.contact-main {
  padding: 72px 20px;
  background: #f5f7fa;
}

.contact-main__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-main__heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.contact-main__heading h2 {
  font-family: "Archivo", sans-serif;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 14px;
}

.contact-main__heading p {
  font-size: 15px;
  color: #616161;
  line-height: 1.7;
  margin: 0;
}

.contact-main__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.contact-form-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  padding: 40px;
}

.contact-form-card form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form-card .form-group--full {
  grid-column: 1 / -1;
}

.contact-form-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 7px;
}

.contact-form-card label span {
  color: #f44336;
}

.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card input[type="tel"],
.contact-form-card select,
.contact-form-card textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-sizing: border-box;
}

.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
  border-color: #4caf50;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.contact-form-card textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form-card .btn {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 220px;
  padding: 15px 34px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(135deg, #4caf50 0%, #43a047 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-form-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(76, 175, 80, 0.35);
}

.contact-form-card .form-note {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 12px;
  color: #9e9e9e;
  margin: -4px 0 0;
}

.contact-form-card .form-success {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 14px 18px;
  border-radius: 8px;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #2e7d32;
  font-size: 14px;
  font-weight: 600;
}

/* ---- Form Validation ---- */
.form-alert {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(244, 67, 54, 0.08);
  border: 1px solid rgba(244, 67, 54, 0.4);
  color: #d32f2f;
  font-size: 14px;
  font-weight: 600;
}

.form-alert.show {
  display: block;
}

.contact-form-card .form-group.has-error input[type="text"],
.contact-form-card .form-group.has-error input[type="email"],
.contact-form-card .form-group.has-error input[type="tel"],
.contact-form-card .form-group.has-error input[type="number"],
.contact-form-card .form-group.has-error select,
.contact-form-card .form-group.has-error textarea {
  border-color: #f44336;
  background: #fff5f5;
}

.contact-form-card .form-group.has-error input:focus,
.contact-form-card .form-group.has-error select:focus,
.contact-form-card .form-group.has-error textarea:focus {
  border-color: #f44336;
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.12);
}

.contact-form-card .form-group.has-error .contact-captcha__img {
  border-color: #f44336;
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.12);
}

.contact-form-card .form-group__error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #f44336;
}

.contact-form-card .btn.is-loading {
  cursor: not-allowed;
  opacity: 0.75;
  transform: none;
  box-shadow: none;
}

/* ---- Map Card ---- */
.contact-map-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.contact-map-card__info {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-map-card__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-map-card__row i {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.12);
  color: #4caf50;
  font-size: 15px;
}

.contact-map-card__row div {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

.contact-map-card__row div strong {
  display: block;
  font-size: 14px;
  color: #1a1a2e;
  margin-bottom: 2px;
}

.contact-map-card__row div a {
  color: #4caf50;
  text-decoration: none;
  font-weight: 600;
}

.contact-map-card__row div a:hover {
  text-decoration: underline;
}

.contact-map-card__map {
  flex: 1;
  min-height: 320px;
}

.contact-map-card__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.2) contrast(1.05);
}

/* ---- Bottom CTA ---- */
.contact-cta {
  padding: 72px 20px;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  text-align: center;
}

.contact-cta h2 {
  font-family: "Archivo", sans-serif;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px;
}

.contact-cta p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 30px;
}

.contact-cta .btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-cta .btn-primary {
  padding: 14px 34px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  background: #4caf50;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
  display: inline-block;
}

.contact-cta .btn-primary:hover {
  background: #43a047;
  transform: translateY(-2px);
}

.contact-cta .btn-outline {
  padding: 14px 34px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease;
  display: inline-block;
}

.contact-cta .btn-outline:hover {
  border-color: #4caf50;
  background: rgba(76, 175, 80, 0.12);
}

/* ---- CMS Dynamic Form Fields (number/file/radio/checkbox) ---- */
.contact-form-card input[type="number"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-sizing: border-box;
}

.contact-form-card input[type="number"]:focus {
  border-color: #4caf50;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.contact-form-card input[type="file"] {
  display: block;
  width: 100%;
  padding: 10px 0;
  font-size: 14px;
  color: #555;
  font-family: inherit;
}

.contact-form-card input[type="file"]::file-selector-button {
  padding: 10px 18px;
  margin-right: 14px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #f5f7fa;
  color: #333;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.contact-form-card input[type="file"]::file-selector-button:hover {
  background: #eef1f5;
  border-color: #4caf50;
}

.contact-form-card__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 8px 0 4px;
}

.contact-form-card__option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 400;
  color: #555;
  margin: 0;
  cursor: pointer;
}

.contact-form-card__option input {
  accent-color: #4caf50;
}

/* ---- Captcha ---- */
.contact-captcha__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-captcha__row input[type="text"] {
  flex: 1;
  max-width: 240px;
  height: 46px;
  padding: 0 14px;
  box-sizing: border-box;
}

.contact-captcha__img {
  position: relative;
  width: 132px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f0f2f5;
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.contact-captcha__img:hover {
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.contact-captcha__img:active {
  transform: scale(0.97);
}

.contact-captcha__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease;
}

.contact-captcha__img i {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  font-size: 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  transition: background 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.contact-captcha__img:hover i {
  background: #43a047;
  transform: scale(1.1);
}

.contact-captcha__img.is-refreshing img {
  opacity: 0.35;
}

.contact-captcha__img.is-refreshing i {
  animation: contact-captcha-spin 0.6s linear infinite;
  background: rgba(76, 175, 80, 0.9);
  transform: none;
}

@keyframes contact-captcha-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .contact-quick__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-main__grid {
    grid-template-columns: 1fr;
  }

  .contact-map-card__map {
    min-height: 300px;
  }
}

@media (max-width: 576px) {
  .contact-quick__inner {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 28px 22px;
  }

  .contact-form-card form {
    grid-template-columns: 1fr;
  }

  .contact-form-card .form-group--full,
  .contact-form-card .btn,
  .contact-form-card .form-note,
  .contact-form-card .form-success,
  .contact-form-card .form-alert {
    grid-column: 1;
  }

  .contact-hero {
    padding: 100px 16px 48px;
  }

  /* Captcha: keep input + image side by side but scale down on small screens */
  .contact-captcha__row input[type="text"] {
    max-width: none;
    flex: 1 1 100px;
    min-width: 0;
  }

  .contact-captcha__img {
    width: 120px;
  }
}
