/* Base input styling */
.contact-form .form-field__input,
.contact-form .form-field__textarea {
  width: 100%;
  background: #EAEBEE 0% 0% no-repeat padding-box;
  border: 0.1rem solid #979DA5;
  padding: 1.1rem 2rem;
  color: #010D1B;
  border-radius: 0;
  outline: none;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 2.4rem;
}

.contact-form .contact-form__image-wrapper{
  margin-bottom: 5.2rem;
  height: auto;
}

.contact-form .form-field{
  margin-bottom: 2rem;
}

/* Placeholder styling */
.contact-form .form-field__input::placeholder,
.contact-form .form-field__textarea::placeholder {
  color: #C9CDD3;
  opacity: 1;
}

/* Focus state */
.contact-form .form-field__input:focus,
.contact-form .form-field__textarea:focus {
  border-color: #010D1B;
  background-color: #ffffff;
}

/* Error state */
.contact-form .form-field__input.input-validation-error,
.contact-form .form-field__textarea.input-validation-error {
  border-color: #E10600;
}

.form-field__message.text-error{
  color: #E10600;
  margin-top: 0.5rem;
  font-size: 1.2rem;
}

/* Dropdown buttons look like inputs */
.contact-form .dropdown__button {
  width: 100%;
  background: #EAEBEE;
  border: 0.1rem solid #979DA5;
  padding: 1.1rem 2rem;
  color: #010D1B;
  text-align: left;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 2.4rem;
}

/* Remove Bootstrap default arrow */
.contact-form .dropdown__button.dropdown-toggle::after {
  display: none;
}

/* Custom arrow alignment */
.contact-form .dropdown__button .icon {
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 2.4rem;
}

.contact-form .form-field__label, .contact-form .form-field.form-field--checkbox .form-field__wrapper .form-field__label p{
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 2.4rem;
  margin-bottom: 2px;
}
.contact-form .form-field .icon-arrow-down-right:before {
  content: "\e903";
  transform: rotate(45deg);
  display: block;
  font-size: 1.6rem;
}
/* Placeholder style */
.contact-form .dropdown__button-label {
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 2.4rem;
}

/* When dropdown has value */
.contact-form .dropdown__button-label.has-value {
  color: #010D1B;
}

.contact-form .config-text__cta-wrapper{
  border: none;
  transition: 0.3s all;
  margin-top: 3.4rem;
  width: fit-content;
  max-width: fit-content;
}

/* Focus state */
.contact-form .dropdown__button:focus,
.contact-form .dropdown__button:active,
.contact-form .dropdown__button:hover{
  outline: none;
  border-color: #010D1B;
  background-color: #ffffff;
  box-shadow: none;
}

/* Validation error */
.contact-form .dropdown__button.input-validation-error {
  border-color: #E10600;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 2.4rem;
}

/* Dropdown menu */
main ul li.dropdown__item::before{display:none;}
.contact-form .dropdown-menu {
  width: 100%;
  border-radius: 0;
  border: 0.1rem solid #979DA5;
  padding: 0;
  max-height: 25rem;
  overflow: auto;
}

.contact-form .dropdown__item{
  margin: 0;
  list-style: none;
  padding-left: 0;
}

.contact-form .dropdown__item a {
  padding: 1.2rem 2rem;
  display: block;
  color: #010D1B;
  transition: 0.3s all;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 2.4rem;
}

.contact-form .dropdown__item.active a{
  background: #ffffff;
}

.contact-form .dropdown__item a:hover,
.contact-form .dropdown__item a:focus-visible {
  background: #ffffff;
}

/* highlight dropdown when validation fails */
.contact-form .dropdown__button.input-validation-error {
  border-color: #E10600;
  background-color: #fff;
}

.contact-form .form-field.form-field--checkbox .form-field__wrapper {
  display: flex;
  gap: 2.3rem;
  align-items: self-start;
}

.contact-form .form-field__checkbox{
  height: 2.1rem;
  min-width: 2.1rem;
  margin-top: 0.2rem;
  background-color: red;
  -webkit-appearance: none;
  appearance: none;
  border: 2px solid var(--gray-100);
  border-radius: 2px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
}
.contact-form .form-field__checkbox:checked {
border-color: var(--gray-300);
    background-color: var(--gray-100);
}

.contact-form .form-field.form-field--checkbox .form-field__wrapper .form-field__label{
  color: #979DA5;
}

.contact-form .form-field.form-field--checkbox .form-field__wrapper .form-field__label a{
  text-decoration: underline;
  color: #979DA5;
}

@media (max-width: 991px){
  .contact-form__content {
    margin-bottom: 3rem;
  }
  .contact-form .contact-form__content .contact-form__image-wrapper{
    height: auto;
    width: 75%;
    margin: auto;
    margin-bottom: 3rem;
  }
}

@media (max-width: 767px){
  .contact-form .contact-form__content{
    display: block;
    margin-bottom: 3.2rem;
  }
  .contact-form .contact-form__content .contact-form__image-wrapper {
    width: 100%;
}
}
