/* CSS for Contact us */
.acf-layout-contact-us {
  color: var(--color-white);
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
}

.acf-layout-contact-us::before {
  content: "";
  position: absolute;
  width: 802px;
  height: 802px;
  background-color: #5c489c;
  opacity: 0.35;
  filter: blur(160px);
  top: 50%;
  left: 83%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.acf-layout-contact-us .container {
  position: relative;
  z-index: 2;
}

.contact-us-heading {
  margin-bottom: 30px;
  text-align: left;
  max-width: 50%;
}

/* Locations Grid Styles */
.contact-locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 40px 0 30px 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-location-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  height: 100% !important;
  align-self: stretch !important;
  border-top: none !important;
  border-left: none !important;
  border-bottom: none !important;
  border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-sizing: border-box !important;
  padding: 18px 12px !important;
  text-align: left !important;
}

.contact-location-box:last-of-type {
  border-right: none !important;
}
.contact-locations-grid .location-city-title {
  margin-bottom: 12px;
}

.location-address {
  margin-bottom: 24px;
  width: 100%;
}

.location-address h1,
.location-address h2,
.location-address h3,
.location-address h4,
.location-address h5,
.location-address h6 {
  font-family: "Funnel Sans", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: clamp(0.875rem, 0.7821rem + 0.381vw, 1.125rem);
  line-height: 120%;
  letter-spacing: 0%;
  color: #ffffff;
  margin: 0 0 10px 0;
}

.location-address p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.5;
}

.location-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  width: 100%;
}

.location-info-row .info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-top: 3px;
  flex-shrink: 0;
}

.location-info-row .info-icon-img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.location-info-row .info-icon-svg {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
}

.location-info-row .info-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.location-info-row .location-link {
  font-family: "Funnel Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 120%;
  letter-spacing: 0%;
  color: rgba(255, 255, 255, 0.65) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.contact-us-footer-text {
  margin-bottom: 15px;
}

.contact-us-email-link {
  color: var(--color-1, #e65125) !important;
  text-decoration: underline !important;
  font-weight: 600;
  transition: opacity 0.2s ease;
  display: inline-block;
}

.contact-us-email-link:hover {
  opacity: 0.8;
}

.contact-form-title {
  margin-bottom: 24px;
  text-align: left;
}

/* Contact Form 7 Styling */
.acf-layout-contact-us .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.acf-layout-contact-us .wpcf7-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acf-layout-contact-us .wpcf7-form .form-group p {
  margin: 0;
  padding: 0;
}

.acf-layout-contact-us .wpcf7-form label {
  font-family: var(--font-secondary);
  color: var(--color-white);
  font-weight: 400;
  font-size: 18px;
  line-height: 120%;
  letter-spacing: 0%;
}

.acf-layout-contact-us .wpcf7-form input[type="text"],
.acf-layout-contact-us .wpcf7-form input[type="email"],
.acf-layout-contact-us .wpcf7-form input[type="tel"],
.acf-layout-contact-us .wpcf7-form textarea,
.acf-layout-contact-us .wpcf7-form select {
  width: 100%;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 24px 0 !important;
  color: var(--color-white) !important;
  font-family: var(--font-secondary) !important;
  font-weight: 400 !important;
  font-size: 18px !important;
  line-height: 120% !important;
  letter-spacing: 0% !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.3s ease !important;
}

.acf-layout-contact-us .wpcf7-form input[type="text"]:focus,
.acf-layout-contact-us .wpcf7-form input[type="email"]:focus,
.acf-layout-contact-us .wpcf7-form input[type="tel"]:focus,
.acf-layout-contact-us .wpcf7-form textarea:focus,
.acf-layout-contact-us .wpcf7-form select:focus {
  outline: none !important;
  border-bottom-color: #5c489c !important;
}

/* Custom select styling for Contact Form 7 dropdown */
.acf-layout-contact-us .wpcf7-form select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  padding-right: 30px !important;
  cursor: pointer !important;
}

.acf-layout-contact-us .wpcf7-form select option {
  background-color: #ffffff !important;
  color: #222222 !important;
}

/* Textarea height */
.acf-layout-contact-us .wpcf7-form textarea {
  height: 120px !important;
  resize: vertical !important;
}

/* Checkbox (Acceptance) custom styling */
.acf-layout-contact-us .wpcf7-form .form-acceptance label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  cursor: pointer !important;
  font-family: var(--font-secondary) !important;
  color: var(--color-white) !important;
  font-weight: 400 !important;
  font-size: 18px !important;
  line-height: 120% !important;
  letter-spacing: 0% !important;
}

.acf-layout-contact-us .wpcf7-form .form-acceptance input[type="checkbox"] {
  margin-top: 3px !important;
  width: 18px !important;
  height: 18px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 4px !important;
  background-color: transparent !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease !important;
  flex-shrink: 0 !important;
}

.acf-layout-contact-us
  .wpcf7-form
  .form-acceptance
  input[type="checkbox"]:checked {
  background-color: #5c489c !important;
  border-color: #5c489c !important;
}

.acf-layout-contact-us
  .wpcf7-form
  .form-acceptance
  input[type="checkbox"]:checked::after {
  content: "" !important;
  display: block !important;
  width: 5px !important;
  height: 9px !important;
  border: solid white !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) translate(-1px, -1px) !important;
}

.acf-layout-contact-us .wpcf7-form .form-acceptance a.terms-link {
  color: #ffffff !important;
  text-decoration: underline !important;
  transition: opacity 0.2s ease !important;
}

.acf-layout-contact-us .wpcf7-form .form-acceptance a.terms-link:hover {
  opacity: 0.8 !important;
}

/* Submit button positioning */
.acf-layout-contact-us .wpcf7-form .form-submit {
  margin-top: 15px;
}

.acf-layout-contact-us .wpcf7-form input[type="submit"].primary-btn {
  width: 100%;
}

.left-wrap-contact {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding-right: 20px;
}

/* Placeholder styling */
.acf-layout-contact-us .wpcf7-form ::placeholder {
  color: var(--color-white) !important;
  opacity: 1 !important;
}

.acf-layout-contact-us .wpcf7-form .select-service-label {
  padding-top: 24px;
}
.acf-layout-contact-us .wpcf7-list-item {
  padding: 24px 0;
}

.acf-layout-contact-us .form-container {
  padding-left: 50px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .acf-layout-contact-us::before {
    top: 25%;
    left: 110%;
  }

  .left-wrap-contact {
    padding-right: 0;
    border-right: none;
    margin-bottom: 50px;
  }

  .acf-layout-contact-us .contact-us-heading {
    text-align: center;
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-locations-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .contact-location-box {
    padding: 15px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    height: auto !important;
  }

  .contact-location-box:nth-child(2n) {
    border-right: none !important;
  }

  .contact-location-box:last-of-type {
    border-bottom: none !important;
  }

  .acf-layout-contact-us .wpcf7-form .form-acceptance label {
    font-size: 14px !important;
  }
  .contact-form-title {
    text-align: center;
  }
  .acf-layout-contact-us .form-container {
    padding: 0;
  }
}

@media (max-width: 575px) {
  .contact-locations-grid {
    grid-template-columns: 1fr !important;
  }

  .contact-location-box {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 24px 0 !important;
    min-height: auto !important;
    height: auto !important;
  }

  .contact-location-box:last-of-type {
    border-bottom: none !important;
  }

  .contact-us-content {
    font-size: 14px;
  }
}

.contact-form-wrapper .form-acceptance label {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    border: 0;
}

@media (min-width: 992px) and (max-width: 1400px) {
	.contact-locations-grid{
		grid-template-columns: repeat(1, 1fr);
	}
.contact-location-box {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-right: none !important;
}
    .contact-location-box:last-child {
        border-bottom: none !important;
    }
}