/* Contact page styles */

/* Hero Section with Background and Floating Form */
.contact-hero {
  background-image: url('../images/contact-bg.png');
  background-color: #fff;
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  min-height: calc(100vh - 5rem);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 1.25rem 3.125rem;
  position: relative;
}

/* Contact Form Container - Floating on background */
.contact-form-container {
  width: 75rem;
  background: white;
  padding: 3.125rem 0;
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 0 4.375rem 0 rgba(79,79,79,0.1);
  position: relative;
  z-index: 3;
  box-sizing: border-box;
}

/* Form content wrapper */
.contact-form {
  width: 51.75rem;
  margin: 0 auto;
}

.contact-form-title {
  font-size: 2.125rem;
  font-weight: 600;
  color: #344356;
  text-align: left;
  margin-bottom: 1.875rem;
}

.form-row {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5625rem;
}

.form-group {
  flex: 1;
}

.form-group label {
  display: none;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  height: 2.75rem;
  padding: 0.75rem 0.9375rem;
  background: #F2F4F7;
  border: 0.0625rem solid #EEEEEE;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
  color: #333;
  line-height: 1.25rem;
  font-size: 0.875rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1E5AA8;
}

.form-group textarea {
  height: 7.5rem;
  resize: vertical;
  background: #F2F4F7;
  border: 0.0625rem solid #EEEEEE;
  border-radius: 0.5rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin: 1.875rem 0;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
  width: auto;
}

.checkbox-group label {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #666;
  margin-bottom: 0;
}

/* Consent section styling */
.consent-section {
  margin: 1.875rem 0;
  text-align: justify;
}

.consent-main {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 0.9375rem;
}

.consent-main input[type="checkbox"] {
  margin-top: 0.25rem;
  width: auto;
  flex-shrink: 0;
}

.consent-main > label {
  display: block;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #333;
  margin-bottom: 0;
  flex: 1;
}

.consent-options {
  display: flex;
  gap: 1.875rem;
  margin-left: 0;
}

.consent-options .checkbox-group {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.consent-options .checkbox-group input[type="checkbox"] {
  margin: 0;
  width: auto;
}

.consent-options .checkbox-group label {
  display: block !important;
  font-size: 0.75rem;
  color: #333;
  margin: 0;
}

.privacy-notice {
  margin-top: 0.9375rem;
}

.privacy-notice p {
  font-size: 0.75rem;
  color: #333;
  line-height: 1.4;
  margin: 0;
}

/* Checkbox styling */
input[type="checkbox"] {
  accent-color: #063196;
}

/* For better browser compatibility */
input[type="checkbox"]:checked {
  background-color: #063196;
  border-color: #063196;
}

.submit-btn {
  height: 3.375rem;
  width: 27.5rem;
  background: #0E6ACE;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  margin: 1.25rem auto 0;
  display: block;
}

.submit-btn:hover {
  background: #0A5BB8;
}

/* Success Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  border-radius: 1.25rem;
  padding: 3.125rem 2.5rem 2.5rem;
  max-width: 32.5rem;
  width: 90%;
  position: relative;
  text-align: center;
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.15);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5625rem;
  font-size: 1.875rem;
  color: #ccc;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #999;
}

.success-icon {
  margin-bottom: 1.875rem;
}

.success-checkmark {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: block;
  margin: 0 auto 1.875rem;
  position: relative;
  background: #4CAF50;
  border: 0.1875rem solid #4CAF50;
}

.success-checkmark .check-icon {
  width: 4.375rem;
  height: 4.375rem;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-checkmark .check-icon::before {
  content: '✓';
  color: #4CAF50;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
}

.modal-body h3 {
  color: #1E5AA8;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  line-height: 1.2;
}

.ok-btn {
  background: #1E5AA8;
  color: white;
  border: none;
  padding: 0.9375rem 3.125rem;
  border-radius: 1.875rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  min-width: 7.5rem;
}

.ok-btn:hover {
  background: #1a4d96;
}

/* 小于1200 */
@media screen and (max-width: 1200px) {
  .contact-form-container {
    width: 100%;
  }
}
/* Responsive Styles for Mobile Devices */
@media screen and (max-width: 768px) {
  .navbar.transparent {
    background-color: #fff;
  }
  
  .contact-hero {
    padding: 0;
    background-image: url(../images/contact-m-bg.png);
  }
  
  .contact-form {
    width: 100%;
    padding: 0 1.5rem;
  }
  
  .contact-form-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 2.5rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    height: 5rem;
    font-size: 1.75rem;
    color: #333;
  }

  .form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
  font-size: 1.75rem;
}
  
  .consent-main {
    flex-direction: column;
    margin-bottom: 1.25rem;
    align-items: flex-end;
  }
  
  .consent-options {
    margin-top: 1.25rem;
  }
  
  .submit-btn {
    width: 100%;
    height: 5rem;
    font-size: 1.75rem;
    margin-top: 3.125rem;
  }
  .consent-main > label, .privacy-notice p, .consent-options .checkbox-group label {
    font-size: 1.5rem;
    line-height: 2.125rem;
  }

  .consent-options .checkbox-group input[type="checkbox"] {
    width: 1.75rem;
    height: 1.75rem;
  }
}

@media screen and (max-width: 480px) {
  .contact-hero {
    padding: 0;
  }
  
  .contact-form-container {
    padding: 1.25rem 0;
    border-radius: 0.9375rem 0.9375rem 0 0;
  }
  
  .form-group textarea {
    height: 6.25rem;
  }
  
  .consent-options {
    gap: 0.625rem;
  }
  
  .modal-content {
    padding: 2.5rem 1.25rem 1.875rem;
  }
  
  .modal-body h3 {
    font-size: 1.375rem;
    margin-bottom: 1.875rem;
  }
  
  .ok-btn {
    padding: 0.75rem 2.5rem;
    font-size: 0.875rem;
  }
}


