/* Contact Page Specific Styles - Responsive Design */

/* Contact Hero Section */
.contact-hero {
  width: 100%;
  padding: 120px 5% 64px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  margin-top: 72px;
}

.contact-hero-content {
  max-width: 1216px;
  margin: 0 auto;
  text-align: center;
}

.contact-title {
  font-family: "Noto Sans SC", Helvetica;
  font-weight: 700;
  color: #0f172b;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.25;
  margin: 0 0 24px 0;
}

.contact-title-highlight {
  color: #155dfc;
}

.contact-subtitle {
  font-family: "Noto Sans SC", Helvetica;
  font-weight: 400;
  color: #62748e;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  margin: 0;
}

.contact-subtitle strong {
  font-weight: 700;
  color: #155dfc;
}

/* Contact Info Cards */
.contact-info-section {
  width: 100%;
  padding: 64px 5%;
  background-color: #ffffff;
}

.contact-info-container {
  max-width: 1216px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.contact-info-card {
  background-color: #f8fafc;
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  width: 48px;
  height: 48px;
}

.contact-card-title {
  font-family: "Noto Sans SC", Helvetica;
  font-weight: 700;
  color: #0f172b;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.contact-card-text {
  font-family: "Noto Sans SC", Helvetica;
  font-weight: 400;
  color: #62748e;
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

/* Contact Form Section */
.contact-form-section {
  width: 100%;
  padding: 64px 5% 96px;
  background-color: #ffffff;
}

.contact-form-container {
  max-width: 1216px;
  margin: 0 auto;
}

.contact-form-wrapper {
  background-color: #f8fafc;
  border-radius: 48px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: clamp(32px, 5vw, 64px);
}

.form-title {
  font-family: "Noto Sans SC", Helvetica;
  font-weight: 700;
  color: #0f172b;
  font-size: clamp(20px, 3vw, 24px);
  line-height: 1.3;
  margin: 0 0 32px 0;
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-full {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: "Noto Sans SC", Helvetica;
  font-weight: 700;
  color: #62748e;
  font-size: 12px;
  letter-spacing: 1.2px;
  line-height: 1.3;
  text-transform: uppercase;
  padding-left: 4px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 16px 20px;
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  font-family: "Noto Sans SC", Helvetica;
  font-weight: 400;
  color: #0f172b;
  font-size: 16px;
  line-height: 1.5;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(15, 23, 43, 0.5);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #155dfc;
  box-shadow: 0 0 0 3px rgba(21, 93, 252, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background-color: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.checkbox-label:hover {
  border-color: #155dfc;
  background-color: #eff6ff;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #155dfc;
}

.checkbox-label span {
  font-family: "Noto Sans SC", Helvetica;
  font-weight: 700;
  color: #45556c;
  font-size: 14px;
  line-height: 1.4;
  user-select: none;
}

.checkbox-label input[type="checkbox"]:checked + span {
  color: #155dfc;
}

/* Submit Button */
.form-submit-btn {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  padding: 20px 32px;
  background-color: #155dfc;
  border-radius: 16px;
  box-shadow: 0 8px 10px -6px #bedbff, 0 20px 25px -5px #bedbff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit-btn:hover {
  background-color: #1447e6;
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -6px #bedbff, 0 25px 35px -5px #bedbff;
}

.form-submit-btn span {
  font-family: "Noto Sans SC", Helvetica;
  font-weight: 700;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.5;
}

.form-submit-btn .btn-icon {
  width: 20px;
  height: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-hero {
    padding: 100px 5% 48px;
  }

  .contact-info-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-info-card {
    padding: 24px 20px;
  }

  .contact-form-section {
    padding: 48px 5% 64px;
  }

  .contact-form-wrapper {
    border-radius: 32px;
    padding: 32px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-form {
    gap: 16px;
  }

  .checkbox-group {
    flex-direction: column;
  }

  .checkbox-label {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    padding: 90px 5% 40px;
  }

  .contact-form-wrapper {
    padding: 24px 16px;
  }

  .form-input,
  .form-textarea {
    padding: 14px 16px;
    font-size: 15px;
  }

  .form-submit-btn {
    padding: 18px 24px;
  }
}


/* 表单消息样式 */
#form-messages {
  margin-bottom: 20px;
}

/* 提交按钮加载状态 */
.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 复选框组样式 */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

/* 表单消息样式 */
#form-messages {
  display: none;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.5;
  transition: all 0.3s ease;
}

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

#form-messages.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* 加载状态按钮样式 */
.form-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}