/* ==================== CONTACT PAGE VARIABLES ==================== */
.saixi-contact-page {
  --c-blue:      #1a7fd4;
  --c-blue-dark: #0b3d8f;
  --c-text:      #1a2233;
  --c-muted:     #5a6779;
  --c-border:    #d8e5f0;
  --c-soft:      #edf5fc;
  font-family: "Inter", sans-serif;
  background: #fff;
  color: var(--c-text);
}

/* ==================== MAIN WRAPPER ==================== */
.contact-main {
  background: #fff;
}

.contact-body {
  width: min(100% - 48px, 1200px);
  margin: 0 auto;
  padding: 56px 0 80px;
}

/* ==================== ① INTRO TITLE BLOCK ==================== */
.contact-intro {
  margin-bottom: 52px;
}

.contact-intro__title {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--c-text);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.contact-intro__title span {
  color: var(--c-blue);
}

.contact-intro__rule {
  display: block;
  width: 42px;
  height: 3px;
  border-radius: 2px;
  background: var(--c-blue);
  margin-bottom: 20px;
}

.contact-intro__desc {
  margin: 0;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
}

/* ==================== ② TWO-COLUMN LAYOUT ==================== */
.contact-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}

/* ---------- Column headings ---------- */
.contact-col-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 900;
  color: var(--c-blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-col-rule {
  display: block;
  width: 38px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--c-blue);
  margin-bottom: 28px;
}

/* ==================== LEFT: CONTACT INFO ==================== */
.contact-info-col {
  position: relative;
  min-height: 380px;
}

.contact-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.contact-info-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

/* Circular blue icon */
.contact-item-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--c-blue);
  font-size: 16px;
  border: 1.5px solid rgba(26, 127, 212, .25);
  box-shadow: 0 4px 14px rgba(26, 127, 212, .12);
}

.contact-item-icon i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.contact-info-item > div {
  padding-top: 4px;
}

.contact-info-item strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--c-text);
  line-height: 1.3;
}

.contact-info-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-muted);
  font-weight: 400;
}

.contact-info-item a {
  color: var(--c-muted);
  text-decoration: none;
  transition: color .2s;
}

.contact-info-item a:hover {
  color: var(--c-blue);
}

/* World map background figure */
.contact-map-fig {
  position: absolute;
  right: -20px;
  bottom: -10px;
  width: min(90%, 460px);
  margin: 0;
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
}

.contact-map-fig img {
  width: 100%;
  display: block;
}

/* ==================== RIGHT: FORM ==================== */
.contact-form-col {
  /* nothing extra needed */
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Two-column input row */
.cf-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Input field wrapper with icon */
.cf-field {
  position: relative;
  display: flex;
  align-items: center;
}

.cf-field--textarea {
  align-items: flex-start;
}

.cf-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8fa0b5;
  font-size: 14px;
  pointer-events: none;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  transition: color 0.35s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
}

.cf-field:focus-within .cf-icon {
  color: var(--c-blue);
  transform: translateY(-50%) scale(1.28) rotate(-10deg);
  filter: drop-shadow(0 2px 8px rgba(26, 127, 212, 0.45));
}

.cf-field--textarea:focus-within .cf-icon {
  transform: scale(1.28) rotate(-10deg);
}

.cf-icon--top {
  top: 16px;
  transform: none;
}

.cf-icon i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

/* Inputs & textarea */
.cf-field input,
.cf-field textarea {
  width: 100%;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: #fff;
  color: var(--c-text);
  font: inherit;
  font-size: 13.5px;
  outline: none;
  padding-left: 40px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.cf-field input {
  height: 46px;
  padding-right: 14px;
}

.cf-field textarea {
  min-height: 110px;
  padding: 14px 14px 14px 40px;
  resize: vertical;
  line-height: 1.6;
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: #9fabbf;
  font-size: 13px;
}

.cf-field input:focus,
.cf-field textarea:focus {
  border-color: var(--c-blue);
  box-shadow: 0 4px 18px rgba(26, 127, 212, .15);
  transform: translateY(-2px);
}

/* Submit button */
.cf-submit {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  background: var(--c-blue);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background .25s, box-shadow .25s, transform .25s;
  box-shadow: 0 6px 20px rgba(26, 127, 212, .25);
}

.cf-submit i {
  font-size: 13px;
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
  font-style: normal;
  font-weight: 900;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cf-submit:hover,
.cf-submit:focus-visible {
  background: #1570c0;
  box-shadow: 0 10px 28px rgba(26, 127, 212, .35);
  transform: translateY(-2px);
  outline: none;
}

.cf-submit:hover i {
  transform: translateX(5px) translateY(-3px) rotate(-12deg);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .contact-columns {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-info-col {
    min-height: auto;
  }

  .contact-map-fig {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 380px);
    margin: 24px auto 0;
    opacity: 0.7;
  }
}

@media (max-width: 600px) {
  .contact-body {
    padding: 36px 0 60px;
  }

  .contact-intro {
    margin-bottom: 36px;
  }

  .cf-row {
    grid-template-columns: 1fr;
  }

  .saixi-contact-page .header-inner {
    min-height: 66px;
  }
}

/* =====================================================
   CONTACT PAGE ANIMATION SYSTEM
   ===================================================== */

/* 1. Map Breathing Animation */
.contact-map-fig {
  animation: mapBreath 8s ease-in-out infinite alternate;
}

@keyframes mapBreath {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.04); opacity: 0.85; }
}

/* 2. Contact Info Item Hover Micro-Interactions */
.contact-info-item {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-info-item:hover {
  transform: translateX(6px);
}

.contact-item-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.contact-info-item:hover .contact-item-icon {
  background: var(--c-blue);

}
.contact-info-item:hover .contact-item-icon i {
  transform: scale(1.15) rotate(-6deg);
  color: #ffffff !important;
}

/* 3. Form Submit Button Shimmer */
.cf-submit {
  position: relative;
  overflow: hidden;
}

.cf-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  animation: shimmerSubmit 4.5s infinite;
}

@keyframes shimmerSubmit {
  0% { transform: translateX(-150%) skewX(-25deg); }
  25%, 100% { transform: translateX(250%) skewX(-25deg); }
}

/* 4. Dynamic Entrance Animations */
[data-animate="slide-elastic"] {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1), transform 1.6s cubic-bezier(0.25, 1.25, 0.5, 1);
  will-change: opacity, transform;
}

[data-animate="slide-elastic"].is-visible {
  opacity: 1;
  transform: translateX(0);
}

[data-animate="tilt-up"] {
  opacity: 0;
  transform: perspective(1000px) rotateX(16deg) translateY(40px);
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-animate="tilt-up"].is-visible {
  opacity: 1;
  transform: perspective(1000px) rotateX(0deg) translateY(0);
}

[data-animate="pop-in"] {
  opacity: 0;
  transform: scale(0.85) translateY(20px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.25, 1.35, 0.5, 1);
  will-change: opacity, transform;
}

[data-animate="pop-in"].is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-animate="fade-up"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="clip-reveal"] {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 1.8s ease, transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-animate="clip-reveal"].is-visible {
  opacity: 0.7;
  transform: scale(1);
}

/* Stagger Delays */
.delay-1 { transition-delay: 0.16s !important; }
.delay-2 { transition-delay: 0.32s !important; }
.delay-3 { transition-delay: 0.48s !important; }
.delay-4 { transition-delay: 0.64s !important; }
.delay-5 { transition-delay: 0.80s !important; }
