/* Contact Section Styles */

/* Background decoration with centered text */
.section-bg-decoration {
  position: relative;
  width: 100%;
  height: 536px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 5% 100%, 0 85%);
  background-color: rgba(0, 0, 0, 0.6);
}

.section-bg-decoration img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

.section-bg-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.contact-us-label {
  background: #ffcc29;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* Hide badge on desktop */
@media (min-width: 769px) {
  .contact-us-label {
    display: none;
  }
}

.section-bg-text h1 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 16px;
  margin-top: 16px;
}

.section-bg-text h1 span {
  font-weight: 700;
}

.section-bg-text p {
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  opacity: 0.9;
  color: #f8f7ec;
}

/* Hide the first paragraph (Contact Us label) on desktop */
.section-bg-text p:first-child {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

@media (min-width: 769px) {
  .section-bg-text p:first-child {
    display: none;
  }
}

.contact-section .container {
  padding: 160px 135px 0px;
  max-width: -webkit-fill-available;
}
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  align-items: start;
}
.contact-header {
  border-bottom: 1px solid #cbcbd0;
}
.contact-info .section-title {
  text-align: left;
  font-weight: 400px;
}
.contact-description {
  font-size: 16px;
  color: #484848;
  line-height: 1.5;
  margin-bottom: 48px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
}

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

.contact-icon {
  /* font-size: 24px; */
  background: #ffcc29;
  padding: 7.5px 8px 8.5px;
  border-radius: 3px;
  width: 32px;
  height: 32px;
  /* flex-shrink: 0; */
  /* border: 2px solid #ef5a29; */
}

.contact-text p {
  color: #1f1f1f;
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
}

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

.contact-form h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: normal;
  color: #1f1f1f;
  text-align: center;
  margin: 0 0 24px 0;
}

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

.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.wpcf7-form p {
  margin: 0;
  text-align: left;
}

.wpcf7-form p:has(input[type="submit"]) {
  text-align: center;
  display: flex;
  justify-content: center;
  width: 100%;
}

.wpcf7-form .form-row {
  display: flex;
  gap: 16px;
}

.wpcf7-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.wpcf7-form label {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: normal;
  color: #2e2b2c;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form textarea,
.wpcf7-form select {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #484848;
  background-color: #f8f7ec;
  border: none;
  border-radius: 4px;
  padding: 17.6px 18.8px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: #484848;
  opacity: 1;
}

.wpcf7-form textarea {
  resize: none;
  min-height: 195px;
}

.wpcf7-form input[type="submit"],
.submit-btn {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: normal;
  color: #ffffff;
  background: #1f1f1f;
  border: none;
  border-radius: 8px;
  padding: 16px;
  min-height: 48px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.wpcf7-form input[type="submit"]:hover,
.submit-btn:hover {
  background: #000000;
}

/* Hide the spinner */
.wpcf7-form .wpcf7-spinner {
  display: none !important;
}

/* Services Dropdown/Checkbox Styling */
.wpcf7-form .form-group-services {
  position: relative;
}

/* Dropdown Toggle Button */
.wpcf7-form .form-group-services .services-dropdown-toggle {
  background-color: #f8f7ec;
  border: 1px solid #484848;
  border-radius: 4px;
  padding: 17.6px 18.8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #484848;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  transition: all 0.3s ease;
}

.wpcf7-form .form-group-services .services-dropdown-toggle:hover {
  border-color: #2e2b2c;
}

.wpcf7-form .form-group-services .services-dropdown-toggle .dropdown-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.wpcf7-form .form-group-services .services-dropdown-toggle .dropdown-arrow svg {
  width: 100%;
  height: 100%;
}

.wpcf7-form
  .form-group-services.dropdown-open
  .services-dropdown-toggle
  .dropdown-arrow {
  transform: rotate(180deg);
}

/* Checkbox Container - Hidden by default */
.wpcf7-form .form-group-services .wpcf7-checkbox {
  display: none;
  flex-direction: column;
  gap: 12px;
  background-color: #f8f7ec;
  border: 1px solid #484848;
  border-radius: 4px;
  padding: 17.6px 18.8px;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: -4px 4px 14px 0px rgba(0, 0, 0, 0.25);
  max-height: 300px;
  overflow-y: auto;
}

.wpcf7-form .form-group-services.dropdown-open .wpcf7-checkbox {
  display: flex;
}

.wpcf7-form .form-group-services .wpcf7-list-item {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border-bottom: 1px solid #cbcbd0;
  padding-bottom: 12px;
}

.wpcf7-form .form-group-services .wpcf7-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.wpcf7-form .form-group-services .wpcf7-list-item-label {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #484848;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.wpcf7-form .form-group-services input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #484848;
  border-radius: 4px;
  background-color: #f8f7ec;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin: 0;
}

.wpcf7-form .form-group-services input[type="checkbox"]:checked {
  background-color: #ffcc29;
  border-color: #484848;
}

.wpcf7-form .form-group-services input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%232E2B2C' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.wpcf7-form
  .form-group-services
  .wpcf7-list-item:has(input[type="checkbox"]:checked)
  .wpcf7-list-item-label {
  font-weight: 700;
  color: #2e2b2c;
}

/* Form validation styling */
.wpcf7-form .wpcf7-not-valid-tip {
  font-size: 12px;
  color: #dc3232;
  margin-top: 4px;
}

.wpcf7-form .wpcf7-validation-errors,
.wpcf7-form .wpcf7-acceptance-missing {
  border: 1px solid #dc3232;
  background-color: #fff;
  padding: 16px;
  margin: 16px 0;
  border-radius: 4px;
}

.wpcf7-form .wpcf7-response-output {
  margin: 16px 0;
  padding: 16px;
  border-radius: 4px;
}

.wpcf7-form .wpcf7-mail-sent-ok {
  border: 1px solid #46b450;
  background-color: #f7fcf7;
  color: #46b450;
}

/* Responsive Design */

@media (max-width: 1440px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 1024px) {
  .contact-section .container {
    padding: 160px 64px 0px;
  }
  .contact-content {
    gap: 80px;
  }
}

@media (max-width: 768px) {
  .section-bg-text h2 {
    font-size: 36px;
    margin-bottom: 12px;
  }

  .section-bg-text p {
    font-size: 16px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .wpcf7-form .form-row {
    flex-direction: column;
    gap: 24px;
  }

  .contact-details {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .section-bg-decoration {
    height: 599px;
    /* width: 375px; */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%, 0 85%);
  }

  .section-bg-text {
    margin-left: 32px;
    margin-right: 32px;
  }

  .section-bg-text h1 {
    font-size: 32px;
  }
  .section-bg-text h1 span {
    font-weight: unset;
  }

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

  .section-bg-text h2 {
    font-size: 28px;
    margin-bottom: 8px;
  }
}
