/* =============================================
   BaanPro — Contact Page Styles
   ============================================= */

.nav-link-active { color: var(--primary) !important; font-weight: 700; }

/* ---------- Page Hero ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #0D3B8E 0%, #1B6FD8 60%, #3A9AF5 100%);
  padding: 100px 0 52px;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 85% 50%, rgba(255,255,255,.06) 0%, transparent 70%);
}
.page-hero-content { position: relative; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,.75);
  font-size: 14px;
  margin-bottom: 20px;
  transition: color .2s;
}
.back-link:hover { color: #fff; }
.page-hero-content h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}
.page-hero-content p {
  font-size: 16px;
  color: rgba(255,255,255,.8);
}

/* ---------- Main Layout ---------- */
.contact-main {
  background: #F5F8FF;
  padding: 52px 0 80px;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  align-items: flex-start;
}

/* ---------- Cards ---------- */
.contact-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.contact-card:last-child { margin-bottom: 0; }
.contact-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid var(--border);
}
.contact-card-icon { flex-shrink: 0; }
.contact-card-icon svg { width: 52px; height: 52px; }
.contact-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}
.contact-subtitle { font-size: 13px; color: var(--text-sub); }

.contact-desc p {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.85;
  margin-bottom: 10px;
}
.contact-desc p:last-child { margin-bottom: 0; }

/* ---------- Info List ---------- */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1.5px solid var(--border);
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ci-icon { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.ci-icon svg { width: 100%; height: 100%; }
.ci-label {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 2px;
}
.ci-value { display: block; font-size: 14px; color: var(--text); font-weight: 500; }
.ci-name { font-size: 16px; font-weight: 700; color: var(--navy); }

/* ---------- Ways Grid ---------- */
.contact-card-ways h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--border);
}
.ways-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.way-item {
  background: var(--bg);
  border-radius: 12px;
  padding: 18px 16px;
  border: 1.5px solid var(--border);
  transition: var(--transition);
}
.way-item:hover { border-color: rgba(27,111,216,.3); box-shadow: var(--shadow-sm); }
.way-icon { font-size: 24px; margin-bottom: 8px; }
.way-item strong { display: block; font-size: 14px; color: var(--navy); margin-bottom: 4px; }
.way-item span { font-size: 12px; color: var(--text-sub); line-height: 1.6; }

/* ---------- WeChat Card ---------- */
.wechat-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  margin-bottom: 20px;
}
.wechat-card-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.wechat-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}
.wechat-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 20px;
}
.wechat-qr-wrap {
  display: inline-block;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 14px;
}
.wechat-qr-img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  image-rendering: auto;
}
.wechat-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #07C160;
  background: rgba(7,193,96,.08);
  border: 1px solid rgba(7,193,96,.2);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.wechat-account {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg);
  border-radius: 10px;
  padding: 12px;
}
.wechat-label {
  font-size: 12px;
  color: var(--text-light);
  background: var(--border);
  padding: 2px 8px;
  border-radius: 4px;
}
.wechat-account strong { font-size: 15px; color: var(--navy); }

/* ---------- Contact CTA Card ---------- */
.contact-cta-card {
  background: linear-gradient(135deg, #EFF6FF, #E8F0FF);
  border: 1.5px solid rgba(27,111,216,.15);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
}
.contact-cta-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.contact-cta-card p {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .contact-card { padding: 24px 20px; }
  .ways-grid { grid-template-columns: 1fr; }
  .wechat-qr-img { width: 180px; height: 180px; }
}
