/*
 * Copie des styles du thème (themes/bwa/assets/css/contact/*)
 * pour que le rendu du widget reste identique même sans CSS du thème.
 */

/*
--------------------------------------
Containers
--------------------------------------
*/
.wrapper__inner {
  position: relative;
  width: 100%;
  max-width: var(--container-primary-max-width);
  margin: 0 auto;
  padding-bottom: 20px;
}

#content {
  padding: 0;
}

#contact .card {
  background: none;
}

.contact-form__left,
.contact-form__right {
  background: var(--color-white-default);
}

/*
--------------------------------------
Form -- body
--------------------------------------
*/
.contact-form {
  color: var(--color-grey-font-default);
  width: 100%;
  margin-top: 30px;
}

.contact-logo-container {
  display: flex;
  justify-content: center;
  padding-bottom: 0.5em;
}

.contact-links-list-hours {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-links-list-hours a {
  font-weight: 500;
  border-radius: 5px;
  transition: all 0.35s ease-in-out;
  margin-top: 1em;
}

.contact-form__right .form-group {
  width: 48%;
}

.contact-form__right .form-group.full {
  width: 100%;
}

.contact-form .page-header h1 {
  border-bottom: none;
  line-height: 1;
  background: none;
  font-size: 2rem;
  text-align: center;
}

.contact-form .page-header p {
  text-align: center;
}

.contact-form .input-group .input-group-btn > .btn {
  background: var(--color-primary);
}

/*
--------------------------------------
Form -- footer
--------------------------------------
*/
.form-footer {
  width: 100%;
  display: flex;
  justify-content: center;
}

.form-group .form-control-label {
  font-size: 18px;
}

/*
--------------------------------------
HONEYPOT
--------------------------------------
*/
.label-special-token {
  pointer-events: none;
  opacity: 0;
  height: 0;
}

/*
--------------------------------------
Success message
--------------------------------------
*/
.alert.alert-success {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 0;
}

.contact-form .alert {
  font-size: 1rem;
  font-weight: 500;
}

/*
--------------------------------------
Responsive
--------------------------------------
*/
@media (max-width: 767px) {
  #contact .contact-form__right .form-group {
    width: 90% !important;
  }
}

@media (max-width: 1199px) {
  .contact-form__right {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  #contact .contact-form__right .form-group {
    width: 50%;
  }

  .contact-form__right .form-footer {
    display: flex;
    justify-content: center;
  }
}

@media (min-width: 1200px) {
  .form-fields {
    display: flex;
    justify-content: center;
  }

  .contact-form__form {
    gap: 40px;
    max-width: 1200px;
  }

  .contact-form__left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .contact-form__right {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4%;
  }
}

