/* =====================================================================
 * contact-us.css — 联系我们页面样式
 * 
 * 【代码规范】
 * 1. 不重写 h1/h2/h3 标题元素（由 common.css 统一定义）
 * 2. 优先复用 common.css 工具类
 * 3. 本文件只写联系我们页面独有的样式
 * ===================================================================== */

.contact-page {
  margin-top: 65px;
}

.contact-hero{
  background: rgba(0, 0, 0, 0.2) url(/img/banner/banner-5.webp) no-repeat center center;
  background-blend-mode: multiply;
}

/* ==================== Contact Section ==================== */
.contact-section.section-container {
  padding: 80px 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 550px;
  min-height: 650px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* ==================== Left Side - Form ==================== */
.form-side {
  padding: 60px 50px;
  background: #fff;
}

.form-content h1 {
  font-size: 42px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.form-subtitle {
  font-size: 16px;
  margin: 20px 0;
}

/* Form Styles */
.quote-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-form-group {
  display: flex;
  flex-direction: column;
}


/* Input with Icon */
.input-with-icon,
.textarea-with-icon {
  position: relative;
  display: flex;
  align-items: flex-start;
}

.input-with-icon i,
.textarea-with-icon i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
  pointer-events: none;
}

.textarea-with-icon i {
  top: 18px;
  transform: none;
}

.input-with-icon input,
.textarea-with-icon textarea {
  width: 100%;
  padding: 14px 16px 14px 46px;
  border: none;
  border-bottom: 1px solid #ddd;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #fff;
  color: #222;
}

.textarea-with-icon textarea{
   border: 1px solid #ddd;
}

.input-with-icon input::placeholder,
.textarea-with-icon textarea::placeholder {
  color: #999;
}

.input-with-icon input:focus,
.textarea-with-icon textarea:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

.textarea-with-icon textarea {
  resize: vertical;
  min-height: 120px;
  padding-top: 14px;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}


.submit-btn-orange {
  padding: 14px 40px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn-orange:hover {
  background: var(--accent);
}

/* ==================== Right Side - Contact Info ==================== */
.info-side {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  padding: 60px 45px;
  display: flex;
  flex-direction: column;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: 100%;
}

/* Info Header */
.info-header {
  margin-bottom: 10px;
}

.info-subtitle {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 5px;
  opacity: 0.95;
  color: #fff;
}

.info-description {
  font-size: 15px;
  line-height: 1.7;
  color: #fff;
}

/* Contact Details */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 20px;
  color: #fff;
}

.contact-text {
  font-size: 16px;
  color: #fff;
  line-height: 1.6;
  text-decoration: none;
  transition: all 0.3s ease;
  padding-top: 10px;
}

.contact-text:hover {
  text-decoration: underline;
}

/* Company Message */
.company-message {
  margin-top: auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.quote-icon {
  font-size: 32px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 15px;
}

.company-message p {
  font-size: 15px;
  line-height: 1.7;
  color: #fff;
  opacity: 0.95;
  margin: 0;
}

/* Form Validation */
.input-with-icon input.error,
.textarea-with-icon textarea.error {
  border-color: #e53e3e;
}

.input-with-icon input.error:focus,
.textarea-with-icon textarea.error:focus {
  box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.1);
}

/* ==================== Responsive Design ==================== */

/* Tablet */
@media (max-width: 1024px) {
  .contact-container {
    grid-template-columns: 1fr;
  }

  .form-side {
    padding: 50px 40px;
  }

  .info-side {
    padding: 50px 40px;
  }

  .form-content h1 {
    font-size: 36px;
  }

  .info-header h2 {
    font-size: 42px;
  }

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

/* Mobile */
@media (max-width: 768px) {
  .contact-page {
    margin-top: 60px;
  }

  .contact-section.section-container {
    padding: 40px 0;
  }

  .contact-container {
    box-shadow: none;
  }

  .form-side {
    padding: 35px 25px;
  }

  .form-content h1 {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .form-subtitle {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .quote-form {
    gap: 18px;
  }

  .input-with-icon input,
  .textarea-with-icon textarea {
    padding: 12px 14px 12px 42px;
    font-size: 14px;
  }

  .input-with-icon i,
  .textarea-with-icon i {
    left: 14px;
    font-size: 14px;
  }

  .textarea-with-icon textarea {
    min-height: 100px;
  }

  .form-actions {
    flex-direction: column;
    gap: 15px;
  }

  .file-upload-btn,
  .submit-btn-orange {
    width: 100%;
    justify-content: center;
    padding: 12px 30px;
    font-size: 14px;
  }

  .info-side {
    padding: 40px 25px;
  }

  .info-header {
    margin-bottom: 5px;
  }

  .info-subtitle {
    font-size: 14px;
  }

  .info-header h2 {
    font-size: 36px;
    margin-bottom: 12px;
  }

  .info-description {
    font-size: 14px;
  }

  .contact-details {
    gap: 20px;
  }

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

  .contact-icon i {
    font-size: 18px;
  }

  .contact-text {
    font-size: 14px;
    padding-top: 8px;
  }

  .company-message {
    padding-top: 25px;
  }

  .quote-icon {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .company-message p {
    font-size: 14px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .form-side {
    padding: 30px 20px;
  }

  .form-content h1 {
    font-size: 24px;
  }

  .form-subtitle {
    font-size: 13px;
  }

  .input-with-icon input,
  .textarea-with-icon textarea {
    padding: 11px 12px 11px 38px;
    font-size: 13px;
  }

  .input-with-icon i,
  .textarea-with-icon i {
    left: 12px;
    font-size: 13px;
  }

  .file-upload-btn,
  .submit-btn-orange {
    padding: 11px 24px;
    font-size: 13px;
  }

  .info-side {
    padding: 35px 20px;
  }

  .info-header h2 {
    font-size: 32px;
  }

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

  .contact-icon i {
    font-size: 16px;
  }

  .contact-text {
    font-size: 13px;
  }

  .company-message p {
    font-size: 13px;
  }
}
