/* General form styling */
#contactForm {
  display: grid;
  grid-template-columns: 1fr;
  /* Consistent column widths */
  row-gap: 20px;
  /* Space between rows */
  margin: 0 auto 68px auto;
  max-width: 733px;
  width: 100%;
  padding: 0 20px;
}

.contact-form__block-title {
  max-width: 1050px;
  width: 100%;
  padding: 0 20px;
  margin: 0 auto;
}

.contact-form__item.input-hidden {
  display: none;
}

#contactForm label {
  font-family: "Intel One Text", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #000;
  margin: 0;
}

#contactForm .contact-form__label {
  font-family: "Intel One Text", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #000;
  margin: 0;
}

.contact-form__legal {
  font-family: "Intel One Text", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5em;
}

.contact-form__legal a {
  font-family: "Intel One Text", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5em;
}

.results-form__title {
  font-family: "Intel One", sans-serif;
  font-weight: 500;
  font-size: 46px;
  color: #000;
  margin: 20px 0 4px 0;
}

.results-form__subtitle {
  font-family: "Intel One Text", sans-serif;
  font-weight: 400;
  font-size: 30px;
  text-align: center;
  color: #000;
  margin: 0;
}

@media all and (max-width: 768px) {
  .results-form__title {
    font-size: 36px;
    line-height: 1em;
    margin-bottom: 8px;
  }
}

.contact-form__title {
  font-family: "Intel One", sans-serif;
  font-weight: 500;
  font-size: 46px;
  color: #000 !important;
  text-align: center;
  margin: 27px 0 20px 0;
}

.contact-form__subtitle {
  font-family: "Intel One Text", sans-serif;
  font-weight: 400;
  font-size: 30px;
  text-align: center;
  color: #000;
  margin: 0 0 45px 0;
}

.contact-form__field-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  column-gap: 30px;
  align-items: center;
}

.contact-form__field-block .warning {
  color: red;
  padding-left: 1px;
}


#contactForm .dropdown-wrapper {
  position: relative;

}

#contactForm .dropdown-wrapper input {
  font-family: "Intel One Text", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #000;
  width: -webkit-fill-available;
  height: 40px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  padding: 9px 17px;
  outline: none;
}

#contactForm .dropdown-wrapper .arrow,
#contactForm .dropdown-wrapper .arrow-product,
#contactForm .dropdown-wrapper .arrow-company,
#contactForm .dropdown-wrapper .arrow-planning,
#contactForm .dropdown-wrapper .arrow-market {
  position: absolute;
  right: 0;
  top: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

#contactForm #contactFormCompanySize,
#contactForm #appPlanningToMarket {
  cursor: pointer;
}

#contactForm .dropdown-content {
  display: none;
  position: absolute;
  border: 1px solid #ced4da;
  border-radius: 6px;
  box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.25);
  top: 40px;
  background-color: #ffffff;
  max-height: 300px;
  overflow-y: auto;
  width: 100%;
  z-index: 1;
}

#contactForm .dropdown-content .dropdown-country-list {
  font-family: "Intel One Text", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #000;
  padding: 5px 10px;
  margin-bottom: 10px;
  cursor: pointer;
}

#contactForm .dropdown-content .dropdown-country-list:first-child {
  margin-top: 12px;
}

#contactForm .dropdown-content .dropdown-country-list:hover {
  background: rgba(0, 163, 246, 0.15);
}

#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm input[type="tel"],
#contactForm select {
  font-family: "Intel One Text", sans-serif;
  width: 100%;
  /* Full width of their column */
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: white;
  height: 40px;
}


#contactForm .contact-form__field-tel {
  display: flex;
  align-items: center;
}

#contactForm #telCountry {
  font-family: "Intel One Text", sans-serif;
  font-weight: 400;
  font-size: 14px;
  border: 1px solid #cacaca;
  border-radius: 10px 0 0 10px;
  padding: 11px 10px 10px 0;
  text-align: end;
  outline: none;
  width: 44px;
}

#contactForm #telNumber {
  font-family: "Intel One Text", sans-serif;
  font-weight: 400;
  font-size: 14px;
  border: 1px solid #cacaca;
  border-radius: 0 10px 10px 0;
  padding: 11px 13px 10px 10px;
  width: 172px;
  outline: none;
}

#contactForm .contact-form__field-tel-plus {
  font-family: "Intel One Text", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #000;
  margin-right: 10px;
}

#contactForm select {
  font-size: 14px;
}


#contactForm input[type="checkbox"]:before {
  background-color: red;
}

.checkbox-group__block {
  display: block;
  position: relative;
  padding-left: 27px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 22px;
  user-select: none;
}

/* Hide the browser's default checkbox */
.checkbox-group__block input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkbox-group__block .checkmark {
  position: absolute;
  top: 50%;
  left: 9px;
  transform: translate(-50%, -50%);
  height: 20px;
  width: 20px;
  background-color: #fff;
  border-radius: 4px;
  border: 1px solid #CACACA;
}

/* On mouse-over, add a grey background color */
.checkmark:hover {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
#contactForm input:checked~.checkmark {
  background-color: #0054ae;
}

.checkbox-group__block .checkbox-label {
  font-family: "Intel One Text", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #000;
  padding: 0;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.container input:checked~.checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
}

#contactForm select {
  appearance: none;
}


#contactForm select option {
  font-family: "Intel One Text", sans-serif;
  font-weight: 400;
  font-size: 14px;
  padding: 5px 10px 5px 10px;
}

#contactForm .placeholder {
  color: grey !important;
}

#contactForm select option:hover {
  background: rgba(0, 163, 246, 0.15);
}

.contact-form__field-block .select-wrapper {
  width: 100%;
}

.contact-form__field-block select option:hover {
  background-color: #00A3F6;
}

#contactForm select:hover {
  cursor: pointer;
}

#contactForm .checkbox-group {
  display: grid;
  grid-template-columns: max-content max-content;
  /* Two columns for checkboxes */
  gap: 10px 28px;
}

#contactForm input[type="submit"] {
  font-family: "Intel One Text", sans-serif;
  font-weight: 500;
  font-size: 18px;
  margin-top: 40px;
  /* Space before the submit button */
  background-color: #0054ae;
  color: #ffffff;
  padding: 10px 20px;
  border: none;
  width: 100%;
}

#contactForm input[type="submit"]:hover {
  background-color: #003399;
}

#contactForm .error-message {
  grid-column: 2;
  /* Align error message under the inputs */
  color: red;
  font-size: 12px;
}

.contact-form__other-input {
  display: grid;
  grid-column: 2;
  row-gap: 5px;
  margin-top: 10px;
}

.custom-form__submit-btn {
  font-family: "Intel One Text", sans-serif;
  font-weight: 500 !important;
  font-size: 18px !important;
  border-radius: 5px;
  padding: 10px 20px 12px 20px;
  width: 100%;
  margin-top: 20px;
  background: #0054ae;
}


@media (max-width: 992px) {
  .contact-form__title {
    font-size: 38px;
  }

  .contact-form__subtitle {
    font-size: 18px;
    line-height: 24px;
  }
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  #contactForm {
    grid-template-columns: 1fr;
    /* Single column on mobile */
    row-gap: 20px;
  }

  #contactForm label {
    text-align: left;
    /* Align labels to the left on mobile */
    grid-column: 1;
    /* Full width */
    margin-bottom: 10px;
  }

  #contactForm .contact-form__label {
    text-align: left;
    /* Align labels to the left on mobile */
    grid-column: 1;
    /* Full width */
    margin-bottom: 10px;
  }


  #contactForm .checkbox-group {
    grid-template-columns: 1fr;
    /* Single column for checkboxes on mobile */
  }

  .contact-form__field-block {
    display: flex;
    flex-direction: column;
    align-items: start;
  }

  #contactForm input[type="submit"] {
    margin-top: 20px;
  }

  .contact-form__field-block.contact-select:before {
    top: 30px;
    height: 38px;
  }

  .contact-form__field-block.contact-select:after {
    top: 46px;
  }

  #contactForm .checkbox-group {
    margin-top: 10px;
  }

  .contact-form__other-input {
    row-gap: 0;
    width: 100%;
  }
}