/* ==========================================================================
   CONTACT PAGE
   断点体系：桌面 > 996 > 768 > 480
   ========================================================================== */

.contact-page {
  background: #fff;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.contact-hero {
  position: relative;
  overflow: hidden;
  margin-top: 80px;
  padding: 0;
  display: flex;
  align-items: center;
  min-height: 340px;
  background: #0b0b0b url("/dist/img/banner/banner_01.webp") center right / cover no-repeat;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
          90deg,
          rgba(6, 6, 8, 0.96) 0%,
          rgba(6, 6, 8, 0.9) 42%,
          rgba(6, 6, 8, 0.55) 70%,
          rgba(6, 6, 8, 0.25) 100%
  );
}

.contact-hero-inner {
  position: relative;
  z-index: 1;
  padding: 58px 0 34px;
}

.contact-eyebrow {
  color: #ef3b45;
}

.contact-hero h1 {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-top: 10px;
}

.contact-hero-sub {
  margin-top: 12px;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.contact-hero-desc {
  margin-top: 12px;
  max-width: 660px;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
}

.contact-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.contact-breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-breadcrumb a:hover {
  color: #fff;
}

.contact-breadcrumb span[aria-current] {
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   How can we help
   ========================================================================== */
.contact-help-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.contact-help-card {
  padding: 26px 24px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 4px;
  transition:
          border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
          box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-help-card:hover {
  border-color: #dedede;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.contact-help-card > i {
  font-size: 26px;
  color: var(--secondary-color);
}

.contact-help-card h3 {
  margin-top: 18px;
  font-size: 17px;
  font-weight: 700;
  color: var(--title-color);
  line-height: 1.35;
}

.contact-help-card p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-color);
}

.contact-help-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--title-color);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-help-link i {
  color: var(--secondary-color);
  font-size: 14px;
}

.contact-help-link:hover {
  color: var(--secondary-color);
}

/* ==========================================================================
   Inquiry
   ========================================================================== */
.contact-inquiry {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 26px;
  align-items: stretch;
}

/* Form */
.contact-form-wrap {
  padding: 30px 32px 34px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 4px;
}

.contact-form-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--title-color);
  line-height: 1.25;
}

.contact-form-sub {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-color);
}

.contact-form {
  margin-top: 24px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px 20px;
  margin-bottom: 15px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 15px;
}

.contact-form-grid .contact-field {
  margin-bottom: 0;
}

.contact-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--title-color);
}

.contact-field .req {
  color: var(--secondary-color);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: var(--title-color);
  transition:
          border-color 0.2s,
          box-shadow 0.2s;
}

.contact-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #a8a8a8;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(176, 13, 21, 0.08);
}

.contact-field input.error,
.contact-field textarea.error {
  border-color: #e0473f;
}

.contact-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23888' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Consent + actions */
.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-color);
  cursor: pointer;
}

.contact-consent input {
  margin-top: 3px;
  width: 15px;
  height: 15px;
  accent-color: var(--secondary-color);
  flex-shrink: 0;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.contact-submit {
  padding: 12px 26px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13.5px;
}

.contact-note {
  font-size: 12.5px;
  color: #a5a5a5;
  font-style: italic;
}

/* Sales card */
.contact-sales-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100%;
  padding: 34px 32px;
  border-radius: 4px;
  background: #0a0a0a url("/dist/img/banner/why-choose-bg.webp") center / cover no-repeat;
}

.contact-sales-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
          160deg,
          rgba(4, 4, 6, 0.94) 0%,
          rgba(4, 4, 6, 0.88) 45%,
          rgba(30, 3, 5, 0.82) 100%
  );
}

.contact-sales-body {
  position: relative;
  z-index: 1;
  width: 100%;
}

.contact-sales-brand img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.contact-sales-title {
  margin-top: 26px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.contact-sales-list {
  list-style: none;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-sales-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-sales-list i {
  color: var(--secondary-color);
  font-size: 17px;
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.contact-sales-list strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

.contact-sales-list span {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

.map-img {
  width: 100%;
  object-fit: cover;
  margin-top: 15px;
}

.map-img img {
  width: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Location
   ========================================================================== */
.contact-location {
  display: grid;
  grid-template-columns: 1.45fr 1fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.contact-location-media {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
}

.contact-location-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.contact-location-copy .section-title {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
  margin-bottom: 12px;
}

.contact-location-copy > p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-color);
}

.contact-location-list {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-location-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-location-list i {
  color: var(--secondary-color);
  font-size: 14px;
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.contact-location-list strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--title-color);
}

.contact-location-list span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-color);
  line-height: 1.55;
}

.contact-location-copy .btn {
  margin-top: 22px;
  padding: 11px 22px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Map placeholder */
.contact-map {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background:
          linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
          repeating-linear-gradient(0deg, #dfe7ef 0 1px, transparent 1px 34px),
          repeating-linear-gradient(90deg, #dfe7ef 0 1px, transparent 1px 34px),
          #f4f7fa;
}

.contact-map i {
  font-size: 34px;
  color: var(--secondary-color);
}

/* ==========================================================================
   Why work with Phoenix
   ========================================================================== */
.contact-why {
  position: relative;
  padding: 46px 0;
  background: #0a0a0a url("/dist/img/banner/why-choose-bg.webp") center / cover no-repeat;
}

.contact-why::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.88);
}

.contact-why .section-content {
  position: relative;
  z-index: 1;
}

.contact-why-title {
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 700;
  color: #fff;
}

.contact-why-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 30px;
}

.contact-why-item i {
  font-size: 28px;
  color: var(--secondary-color);
}

.contact-why-item strong {
  display: block;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

.contact-why-item p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.contact-faq {
  border-top: 1px solid var(--border-color);
}

.contact-faq .faq-item {
  border-bottom: 1px solid var(--border-color);
}

.contact-faq .faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 4px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  text-align: left;
  color: var(--title-color);
  cursor: pointer;
  transition: color 0.2s;
}

.contact-faq .faq-item h3 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.contact-faq .faq-q:hover {
  color: var(--secondary-color);
}

.contact-faq .faq-icon {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--secondary-color);
  transition: transform 0.25s;
}

.contact-faq .faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.contact-faq .faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-faq .faq-a > div {
  overflow: hidden;
}

.contact-faq .faq-a p {
  padding: 0 4px 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-color);
}

.contact-faq .faq-item.open .faq-a {
  grid-template-rows: 1fr;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.contact-cta {
  position: relative;
  padding: 48px 0;
  background: #0a0a0a url("/dist/img/banner/banner_02.webp") center / cover no-repeat;
}

.contact-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
          90deg,
          rgba(6, 6, 8, 0.95) 0%,
          rgba(20, 4, 6, 0.9) 55%,
          rgba(10, 10, 12, 0.8) 100%
  );
}

.contact-cta .section-content {
  position: relative;
  z-index: 1;
}

.contact-cta-title {
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 700;
  color: #fff;
}

.contact-cta p {
  margin-top: 10px;
  max-width: 620px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.contact-cta .btn {
  margin-top: 20px;
  padding: 12px 24px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
}

/* ==========================================================================
   RESPONSIVE
   断点统一：996 / 768 / 480（从大到小）
   原 1100 断点规则按语义就近归并到 996，值不变
   ========================================================================== */

/* --------------------------------------------------------------------------
   ≤ 996px — Tablet / Small Laptop（原 1100 断点）
   -------------------------------------------------------------------------- */
@media (max-width: 996px) {

  .contact-hero{
    padding: 60px 0;
  }
  .contact-help-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-inquiry {
    grid-template-columns: 1fr;
  }

  .contact-sales-card {
    min-height: 0;
  }

  .contact-location {
    grid-template-columns: 1fr 1fr;
  }

  .contact-map {
    grid-column: 1 / -1;
    min-height: 180px;
  }

  .contact-why-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

/* --------------------------------------------------------------------------
   ≤ 768px — Large Phone / Portrait Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .contact-hero {
    margin-top: 60px;
    min-height: 0;
  }

  .contact-hero::before {
    background: linear-gradient(
            180deg,
            rgba(6, 6, 8, 0.95) 0%,
            rgba(6, 6, 8, 0.88) 60%,
            rgba(6, 6, 8, 0.75) 100%
    );
  }

  .contact-hero-inner {
    padding: 44px 0 30px;
  }

  .contact-form-wrap {
    padding: 22px 20px 26px;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-form-grid .contact-field {
    margin-bottom: 2px;
  }

  .contact-location {
    grid-template-columns: 1fr;
  }

  .contact-location-media img {
    min-height: 200px;
  }

  .contact-why-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-sales-card {
    padding: 26px 22px;
  }
}

/* --------------------------------------------------------------------------
   ≤ 480px — Small Phone（原 560 断点）
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .contact-help-grid {
    grid-template-columns: 1fr;
  }
}