.mars-form {
  all: initial;
  font-family: 'Open Sans', sans-serif;
  color: #333;
  line-height: 1.5;
  box-sizing: border-box;
}

.mars-form * {
  box-sizing: border-box;
}

.mars-form a {
  color: #32BBDB;
  text-decoration: underline !important; 
}

.mars-form a:hover {
  color: #005077;
  text-decoration: underline;
}

.mars-form a:focus {
  color: #005077;
  text-decoration: underline;
}

.mars-form [type=button] {
  color: #005077;
  text-decoration: underline;
}

.mars-form .required-star {
  color: #ff4d4f;
}

.customer-form-wrapper {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;           
  gap: 40px;
  padding: 40px;
  background-color: #fff;
  border-radius: 20px;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.mars-form .customer-form-wrapper img {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.mars-form .customer-form-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  flex: 0 0 calc((100% - 40px) / 2); 
  max-width: calc((100% - 40px) / 2);
  min-width: 0;                      
  box-sizing: border-box;
}


.customer-form-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;               
  display: block;
}

.mars-form .customer-form-image {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 calc((100% - 40px) / 2); 
  max-width: calc((100% - 40px) / 2);
  min-width: 0;                 
  box-sizing: border-box;
}

.mars-form .submit-button-container {
  margin-top: 0px;
}

.mars-form .submit-button-container {
  flex: 0 0 100%;
  max-width: 100%;
  order: 3;               
}

.mars-form .customer-form-content h2 {
  font-size: 28px;
  font-weight: 600;
  margin-top: 0px;
  color: #333;
}

.mars-form .customer-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 16px;
}

.mars-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mars-form .form-field label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.mars-form .form-field-full {
  grid-column: span 2;
}

.mars-form .customer-form-grid input,
.mars-form .customer-form-grid textarea {
  background-color: #F1F2F6;
  border: 0px solid #dcdfe6;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  box-shadow: none;
}

.mars-form .form-field input,
.mars-form .form-field textarea {
  background-color: #F1F2F6;
  border: 0px solid #dcdfe6;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  box-shadow: none;
}

.mars-form .customer-form-grid textarea {
  grid-column: span 2;
  resize: vertical;
}

.mars-form .customer-form-checkboxes {
  margin-top: 20px;
  font-size: 14px;
  color: #333;
}

.mars-form .customer-form-checkboxes label {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-bottom: 10px;
}

.mars-form .customer-form-footer {
  font-size: 12px;
  color: #888;
  margin-top: 16px;
}

.mars-form .customer-form-submit {
  background: #32BBDB;
  color: white;
    border: 1px solid #31A3DB;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 0px auto 0;
  width: 100%;
  max-width: 200px;
}

.mars-form .customer-form-submit:hover {
  background-color: #ffffff;
  color: #31A3DB;
  border: 1px solid #31A3DB;
}

.mars-form .customer-form-submit:focus {
  background-color: #ffffff;
  color: #31A3DB;
  border: 1px solid #31A3DB;
}

.mars-form #form-message {
  text-align: center;
  font-size: 14px;
}

.mars-form .phone-wrapper {
  display: flex;
  align-items: stretch;  
  height: 44.5px;          
}
.mars-form .phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 10px;        
  background: #F1F2F6;
  border: 0px solid #dcdfe6;
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 14px;
  color: #666;
  height: 100%;
  line-height: 1;             
}

.mars-form .phone-wrapper input[type="tel"] {
  flex: 1;
  height: 100%;
  padding: 0 16px;        
  border: 0px solid #dcdfe6;
  border-left: none;
  border-radius: 0 8px 8px 0;
  background-color: #F1F2F6;
  font-size: 14px;
  line-height: 1;   
  box-shadow: none;          
}

.mars-form .modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 10%;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
}

    .mars-form .modal-content {
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 4px 32px rgba(0,0,0,0.12);
      min-width: 320px;
      max-width: 90vw;
      max-height: 80vh;
      overflow-y: auto;
      position: relative;
      text-align: left;
    }
    .mars-form .close {
      position: fixed;
      top: 15%;
      right: 12%;
      font-size: 42px;
      color: #888;
      background: none;
      border: none;
      cursor: pointer;
      font-weight: bold;
      z-index: 1;
      transition: color 0.2s;
    }

    #activityModal .modal-content {
      padding: 5% 9%;
      margin: auto;
      font-size: 15px;
      line-height: 1.3;
      color: #444;
    }
    #activityModal .modal-content h1 {
      font-size: 24px;
      font-weight: 700;
      text-align: center;
      margin-bottom: 24px;
      color: #222;
    }
    #activityModal .modal-content h2 {
      font-size: 18px;
      font-weight: 600;
      margin-top: 24px;
      margin-bottom: 5px;
      color: #222;
    }
    #activityModal .modal-content ol,
    #activityModal .modal-content ul {
      padding-left: 20px;
      margin-bottom: 16px;
    }
    #activityModal .modal-content li {
      margin-bottom: 1px;
    }

.mars-form .form-group {
  margin-bottom: 20px;
}

.mars-form .form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
}

.mars-form .form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.mars-form .form-row > div {
  flex: 1 1 45%;
}

.mars-form .form-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
}

.mars-form .form-wrapper {
  background: #fff;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  max-width: 800px;
  margin: 0 auto;
}

.mars-form input[type="text"],
.mars-form input[type="email"],
.mars-form input[type="tel"],
.mars-form textarea,
.mars-form select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.mars-form input:focus,
.mars-form select:focus,
.mars-form textarea:focus {
  border-color: #32BBDB;
  outline: none;
}

.mars-form .link-btn {
  background: none;
  border: none;
  color: #32BBDB;
  cursor: pointer;
  text-decoration: underline;
  font-size: 12px;
  padding: 0;
}

.mars-form .link-btn:hover {
  color: #005077 !important;
  background-color: transparent !important;
  text-decoration: underline !important;
}

.mars-form .submit-button {
  background-color: #31A3DB;
  color: #fff;
  font-size: 16px;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mars-form .submit-button:hover {
  background-color: #ffffff;
  color: #31A3DB;
  border: 1px solid #31A3DB;
}

.mars-form .error-message {
  color: #d63638;
  font-size: 14px;
  margin-top: 5px;
}

.mars-form .success-message {
  color: #28a745;
  font-size: 14px;
  margin-top: 5px;
}



@media (max-width: 768px) {
  .mars-form .customer-form-wrapper {
    flex-direction: column;   /* 移动端堆叠 */
    gap: 24px;
    padding: 20px;
  }
  .mars-form .customer-form-image,
  .mars-form .customer-form-content {
    flex: 0 0 auto;
    max-width: 100%;
  }
  /* 移动端排序：表单(1) -> 提交(2) -> 图片(3) */
  .mars-form .customer-form-content { order: 1; }
  .mars-form .submit-button-container { order: 2; }
  .mars-form .customer-form-image { order: 3; }
}