/* Contact Page Banner with Parallax Effect */
.contact-page-banner {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.contact-banner-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Parallax effect */
  z-index: 1;
}

/* Fallback background if no image is set */
.contact-banner-background:not([style*="background-image"]) {
  background-image: url('https://luathoangphi.vn/wp-content/themes/giaodienver2/images/gt.jpg');
}

/* Overlay for better text readability */
.contact-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Fallback overlay if not set via ACF */
.contact-banner-background:not([style*="background-image"]) ~ .contact-banner-overlay:not([style]) {
  background: rgba(15, 34, 100, 0.4); /* Dark blue overlay */
}

.contact-banner-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.contact-page-title {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Contact Form and Info Section */
.contact-form-info-section {
  padding: 60px 0;
  background: #fff;
}

.contact-form-wrapper {
  background: #f8f9fa;
  padding: 40px;
  border-radius: 8px;
}

.contact-form-title {
  font-size: 28px;
  font-weight: 700;
  color: #0f2264;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

.contact-form-subtitle {
  font-size: 16px;
  color: #666;
  margin: 0 0 25px 0;
}

.contact-form-contact-info {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.form-contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.form-contact-link i {
  color: #ea7a2b;
  font-size: 18px;
}

.form-contact-link:hover {
  color: #ea7a2b;
}

/* Contact Form 7 Styles - Same as service page */
.contact-form-wrapper .wpcf7-form {
  display: block;
  overflow: hidden;
  font-size: 0;
}

.contact-form-wrapper .wpcf7-form > p {
  display: block;
  margin-bottom: 20px;
  font-size: 14px;
}

.contact-form-wrapper .wpcf7-form > p:has([name="your-name"]),
.contact-form-wrapper .wpcf7-form > p:has([name="services"]),
.contact-form-wrapper .wpcf7-form > p:has([name="your-message"]) {
  width: 100%;
  display: block;
}

.contact-form-wrapper .wpcf7-form > p:has([name="your-email"]),
.contact-form-wrapper .wpcf7-form > p:has([name="tel"]) {
  display: inline-block;
  width: calc(50% - 11px);
  vertical-align: top;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.contact-form-wrapper .wpcf7-form > p:has([name="your-email"]) {
  margin-right: 20px;
}

.contact-form-wrapper .wpcf7-form > p:has([name="services"]) {
  clear: both;
}

.contact-form-wrapper .wpcf7-form > p:has([type="submit"]) {
  width: 100%;
  text-align: center;
  margin-top: 10px;
}

.contact-form-wrapper .wpcf7-form input[type="submit"],
.contact-form-wrapper .wpcf7-form .wpcf7-submit {
  display: inline-block;
  width: auto;
}

.contact-form-wrapper .wpcf7-form input,
.contact-form-wrapper .wpcf7-form select,
.contact-form-wrapper .wpcf7-form textarea {
  width: 100%;
  box-sizing: border-box;
}

.contact-form-wrapper .wpcf7-form br {
  display: none;
}

.contact-form-wrapper .wpcf7-form input[type="text"],
.contact-form-wrapper .wpcf7-form input[type="email"],
.contact-form-wrapper .wpcf7-form input[type="tel"],
.contact-form-wrapper .wpcf7-form select,
.contact-form-wrapper .wpcf7-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  background: #fff;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.contact-form-wrapper .wpcf7-form input:focus,
.contact-form-wrapper .wpcf7-form select:focus,
.contact-form-wrapper .wpcf7-form textarea:focus {
  outline: none;
  border-color: #ea7a2b;
}

.contact-form-wrapper .wpcf7-form input::placeholder,
.contact-form-wrapper .wpcf7-form textarea::placeholder {
  color: #999;
}

.contact-form-wrapper .wpcf7-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form-wrapper .wpcf7-form input[type="submit"],
.contact-form-wrapper .wpcf7-form .wpcf7-submit {
  background: #ea7a2b;
  color: #fff;
  border: none;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.contact-form-wrapper .wpcf7-form input[type="submit"]:hover,
.contact-form-wrapper .wpcf7-form .wpcf7-submit:hover {
  background: #d66a1f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(234, 122, 43, 0.3);
}

/* Contact Info Wrapper */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e9e7e7;
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
}

.contact-info-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-info-content {
  flex: 1;
}

.contact-info-label {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-bottom: 5px;
}

.contact-info-value {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
}

/* Offices Section */
.offices-section {
  padding: 0 0 60px 0;
  background: transparent;
}

.offices-section .offices-wrapper {
  border-top: 1px solid #e9e7e7;
  padding-top: 60px;
}

.office-card {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.office-name {
  font-size: 24px;
  font-weight: 700;
  color: #0f2264;
  margin: 0 0 25px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #e9e7e7;
}

.office-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.office-info-item:last-of-type {
  margin-bottom: 0;
}

.office-info-item i {
  flex-shrink: 0;
  font-size: 24px;
  color: #ea7a2b;
  margin-top: 2px;
}

.office-info-content {
  flex: 1;
}

.office-info-label {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-bottom: 5px;
}

.office-info-value {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

.office-info-value a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.office-info-value a:hover {
  color: #ea7a2b;
}

.office-map {
  margin-top: 25px;
  border-radius: 8px;
  overflow: hidden;
}

.office-map iframe {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
}

/* Responsive */
@media (max-width: 991px) {
  .contact-page-title {
    font-size: 36px;
  }

  .contact-form-wrapper {
    padding: 30px 20px;
  }

  .contact-form-title {
    font-size: 24px;
  }

  .office-card {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .contact-page-banner {
    height: 300px;
  }

  .contact-page-title {
    font-size: 28px;
  }

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

  .contact-form-wrapper {
    padding: 25px 20px;
  }

  .contact-form-contact-info {
    gap: 15px;
  }

  .contact-form-wrapper .wpcf7-form > p:has([name="your-email"]),
  .contact-form-wrapper .wpcf7-form > p:has([name="tel"]) {
    display: block;
    width: 100%;
    margin-right: 0;
  }

  .offices-section {
    padding: 40px 0;
  }

  .office-card {
    padding: 20px;
  }

  .office-name {
    font-size: 20px;
  }
}

