/* ================================================================
   SUANOVA New Design - Contact (联系我们) Page Styles
   ================================================================ */

/* Hero Section - matches cloud page hero */
.contact-hero {
  position: relative;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/images/index/zh-new/cloud/hero-bg.jpg') center/cover no-repeat;
  z-index: 0;
}

.contact-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,26,61,0.35) 0%, rgba(0,40,85,0.35) 50%, rgba(0,51,102,0.4) 100%);
  z-index: 1;
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 160px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-hero-content h1 {
  font-size: 84px;
  font-weight: 900;
  line-height: 98px;
  color: var(--white);
  letter-spacing: 1.68px;
}

/* Contact Section */
.contact-section {
  background: var(--white);
  padding: 80px 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.contact-section-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  color: var(--navy);
  text-align: center;
}

.contact-section-body {
  display: flex;
  gap: 64px;
  align-items: stretch;
  width: 100%;
}

/* Left info column */
.contact-info-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  flex: 0 0 340px;
  min-width: 0;
}

.contact-info-card {
  background: var(--teal);
  color: var(--white);
  border-radius: 8px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: 0 13.692px 2.689px rgba(44,43,79,0.01),
              0 7.824px 2.2px rgba(44,43,79,0.03),
              0 3.423px 1.711px rgba(44,43,79,0.04),
              0 0.978px 0.978px rgba(44,43,79,0.05);
}

.contact-info-card h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: var(--white);
  text-align: center;
}

.contact-info-card p {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--white);
  text-align: center;
  word-break: break-word;
}

/* Right form card */
.contact-form-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 40px;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 13.692px 2.689px rgba(44,43,79,0.01),
              0 7.824px 2.2px rgba(44,43,79,0.03),
              0 3.423px 1.711px rgba(44,43,79,0.04),
              0 0.978px 0.978px rgba(44,43,79,0.05);
}

.contact-form-card-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 34px;
  color: var(--navy);
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1 1 auto;
}

/* Input grid: 3 columns x 2 rows */
.contact-input-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-input-grid input {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border-light, #dedede);
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
  line-height: 22px;
  color: var(--dark-text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.contact-input-grid input::placeholder {
  color: var(--cadet-blue);
}

.contact-input-grid input:focus {
  border-color: var(--navy);
}

/* Textarea */
.contact-form textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border-light, #dedede);
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
  line-height: 22px;
  color: var(--dark-text);
  font-family: inherit;
  outline: none;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.2s;
}

.contact-form textarea::placeholder {
  color: var(--cadet-blue);
}

.contact-form textarea:focus {
  border-color: var(--navy);
}

/* File upload + send row */
.contact-form-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
}

.contact-file-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Upload attachment button - navy outline */
.contact-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--navy);
  border-radius: 8px;
  padding: 8px 24px;
  font-size: 16px;
  line-height: 24px;
  color: var(--navy);
  font-family: 'Inter', 'Roboto', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
  transition: background 0.2s;
  white-space: nowrap;
}

.contact-upload-btn:hover {
  background: #f0f4f8;
}

/* Hide native file input */
.contact-form input[type="file"] {
  display: none;
}

.contact-file-name {
  font-size: 14px;
  line-height: 22px;
  color: var(--dark-text);
  word-break: break-all;
}

/* Send button - full width teal */
.contact-submit-btn {
  width: 100%;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  font-family: 'Inter', 'Roboto', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
  transition: opacity 0.2s;
}

.contact-submit-btn:hover {
  opacity: 0.9;
}

/* Alert toast (success/fail) */
.contact-alert {
  position: fixed;
  top: 140px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 80%;
  max-width: 400px;
  text-align: center;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-size: 16px;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-alert.show {
  display: block;
  opacity: 1;
}

.contact-alert.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.contact-alert.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 1440px) {
  .contact-section {
    padding: 64px 80px;
  }
  .contact-hero-content {
    padding: 0 80px;
  }
}

@media (max-width: 1024px) {
  .contact-hero {
    height: 320px;
  }
  .contact-hero-content h1 {
    font-size: 64px;
    line-height: 74px;
  }
  .contact-section {
    padding: 56px 40px;
    gap: 48px;
  }
  .contact-section-body {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }
  .contact-info-col {
    flex: 1 1 auto;
  }
  .contact-form-card {
    flex: 1 1 100%;
    padding: 40px;
  }
  .contact-input-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .contact-hero {
    height: 240px;
  }
  .contact-hero-content {
    padding: 0 24px;
  }
  .contact-hero-content h1 {
    font-size: 44px;
    line-height: 56px;
  }
  .contact-section {
    padding: 40px 20px;
    gap: 40px;
  }
  .contact-section-title {
    font-size: 28px;
    line-height: 36px;
  }
  .contact-info-card {
    padding: 24px 32px;
  }
  .contact-info-card h3 {
    font-size: 20px;
  }
  .contact-form-card {
    padding: 24px;
    gap: 20px;
  }
  .contact-form {
    gap: 24px;
  }
  .contact-input-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .contact-upload-btn {
    padding: 8px 20px;
    font-size: 14px;
  }
}
