/**
 * Contactme
 */

body {
  position: relative;
}

.contactMe,
.contactMe * {
  box-sizing: border-box;
}

.contactMe {
  width: auto;
  margin: 0 auto;
  padding: 0;
  background: #fffcf7;
  border: 1px solid #ccc;
  border-radius: 10px;
  container-type: inline-size;
}

.contactMe *,
.contactMe input,
.contactMe textarea,
.contactMe select,
.contactMe button {
  margin: 0;
  outline: none !important;
  color: #3d3633;
  font-size: 14px;
}

.contactMe.xsmall { max-width: 300px; }
.contactMe.small  { max-width: 400px; }
.contactMe.medium { max-width: 700px; }

.contactMe > header {
  padding: 30px 30px 20px;
}

.contactMe > header > hr {
  display: none;
}

.contactMe > section {
  padding: 30px;
  background: #fdfbfb;
  border-radius: 10px;
}

/* Form fields */
.contactMe .form-row {
  width: 100%;
  margin-bottom: 10px;
}

.contactMe .form-row.two {
  font-size: 0;
  white-space: nowrap;
}

.contactMe .form-row.two > div {
  display: inline-block;
  width: calc(50% - 5px);
}

.contactMe .form-row.two > div:first-child {
  margin-right: 10px;
}

.contactMe .form-row.three {
  font-size: 0;
}

.contactMe .form-row.three > div {
  display: inline-block;
  width: calc(33% - 6px);
  vertical-align: top;
}

.contactMe .form-row.three > div:nth-child(2) {
  width: calc(34% - 8px);
  margin-left: 10px;
  margin-right: 10px;
}

.contactMe .form-row .title {
  display: none;
  margin-bottom: 3px;
  font-size: 14px;
  line-height: 16px;
  text-align: left;
}

.contactMe .form-row .title.keep-visible {
  display: block;
}

.contactMe .field {
  width: 100%;
  margin: 0;
  background: #FFF;
  font-size: 14px;
  box-shadow: none;
}

.contactMe.xsmall .field {
  font-size: 13px;
}

.contactMe input,
.contactMe select {
  height: 40px;
  padding-left: 10px;
  padding-right: 10px;
  border: 1px solid #ccc;
  background: #FFF;
}

.contactMe textarea {
  height: 100px;
  padding: 10px;
  border: 1px solid #ccc;
  background: #FFF;
  resize: none;
  line-height: 14px;
}

/* Native select styled to replace Select2 look */
.contactMe select.field {
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #888 50%),
    linear-gradient(135deg, #888 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.contactMe select.field::-ms-expand {
  display: none;
}

/* RGPD text */
.contactMe .checkbox-radio span.rgpd p.txt-rgpd {
  position: relative;
  margin: 0 5px 0 48px;
  text-align: left;
}

.contactMe .checkbox-radio span.rgpd a {
  color: #94b352;
}

/* Checkbox / radio */
.contactMe .checkbox-radio {
  height: 80px;
}

.contactMe .checkbox-radio > div {
  position: relative;
}

.contactMe .checkbox-radio > div > div {
  position: absolute;
  top: 0;
  left: 0;
}

.contactMe .checkbox-radio input[type="checkbox"],
.contactMe .checkbox-radio input[type="radio"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
}

.contactMe .checkbox-radio input[type="checkbox"]:checked + label:after,
.contactMe .checkbox-radio input[type="radio"]:checked + label:after {
  content: "";
  position: absolute;
  top: 11px;
  left: 11px;
  display: inline-block;
  width: 18px;
  height: 18px;
  background: #99CC49;
}

.contactMe .checkbox-radio label {
  display: inline-block;
  margin: 0;
  padding-left: 40px;
  line-height: 40px;
  cursor: pointer;
}

.contactMe .checkbox-radio label:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid #ccc;
  background: #FFF;
  cursor: pointer;
}

.contactMe .checkbox-radio.rounded label:before,
.contactMe .checkbox-radio.rounded label:after {
  border-radius: 50% !important;
}

.contactMe .checkbox-radio label > span {
  display: inline-block;
  margin-left: 7px;
  color: #000;
  font-size: 14px;
  line-height: 16px;
  vertical-align: middle;
}

/* File field */
.contactMe .form-row.file {
  position: relative;
}

.contactMe .form-row.file input {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.contactMe .form-row.file label {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  padding: 11px 10px 11px 44px;
  border: 1px solid #ccc;
  color: #9B9B9B;
  font-size: 14px;
  line-height: 16px;
  font-weight: 200;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.contactMe .form-row.file label.selected {
  color: inherit;
}

.contactMe .form-row.file label i {
  position: absolute;
  top: 7px;
  left: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #99CC49;
  background-image: url(../imgs/arrow-up.png);
  background-repeat: no-repeat;
  background-size: 14px 14px;
  background-position: left 5px center;
}

.contactMe .form-row.file.unboxed label {
  padding: 8px 20px 8px 55px;
  border: none;
  color: inherit;
  font-size: 22px;
  line-height: 24px;
}

.contactMe .form-row.file.unboxed label i {
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background-size: 26px 26px;
  background-position: left 7px center;
}

.contactMe .form-row + .form-row.file.unboxed,
.contactMe .form-row.file.unboxed + .form-row {
  margin-top: 20px;
}

/* Google reCAPTCHA */
.contactMe .re-captcha {
  margin-top: 20px;
  margin-bottom: 10px;
}

.contactMe .re-captcha.invisible {
  margin: 0;
}

.contactMe .grecaptcha-badge {
  display: none;
}

/* Messages */
.contactMe .msg {
  display: none;
  margin: 20px 0 10px;
  padding: 12px 20px 12px 40px;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-position: left 12px top 12px;
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  word-break: break-word;
}

.contactMe .msg.error {
  margin-top: 20px;
  color: #FFF;
  background-color: #FFA12A;
  background-image: url(../contactme/imgs/x.png);
}

.contactMe .msg.success {
  margin-top: 20px;
  color: #FFF;
  background-color: #00D466;
  background-image: url(../contactme/imgs/tick.png);
}

.contactMe .msg strong {
  color: inherit;
}

/* Button */
.contactMe .btn {
  margin-top: 35px;
  padding: 12px 40px;
  border: 0;
  background: #94b352;
  color: #ECEFE3;
  font-weight: 400;
  cursor: pointer;
}

.contactMe .btn:hover {
  background: #a6ce67;
  color: #FFFFFF;
}

/* Theme Minimal */
.contactMe.theme-minimal {
  border: none;
  border-radius: 0;
}

.contactMe.theme-minimal input,
.contactMe.theme-minimal select,
.contactMe.theme-minimal textarea {
  border-width: 0 0 1px 0;
}

.contactMe.theme-minimal > section {
  border-radius: 0;
}

.contactMe.theme-minimal .form-row.file.boxed label {
  border-width: 0 0 1px 0;
  line-height: 17px;
}

/* Theme Modern */
.contactMe.theme-modern > header {
  padding-bottom: 10px;
}

.contactMe.theme-modern .form-row {
  margin-bottom: 20px;
}

.contactMe.theme-modern .form-row .title {
  display: block;
  padding-left: 10px;
  color: #858585;
  font-size: 11px;
  line-height: 12px;
  font-weight: 400;
  text-transform: uppercase;
}

.contactMe.theme-modern input,
.contactMe.theme-modern select {
  padding-left: 20px;
  padding-right: 20px;
  background: #EAEAEA;
  border-radius: 20px;
}

.contactMe.theme-modern > header input,
.contactMe.theme-modern > header select {
  background: #FFF;
}

.contactMe.theme-modern textarea {
  padding: 15px 20px;
  background: #EAEAEA;
  border-radius: 10px;
}

.contactMe.theme-modern > header textarea {
  background: #FFF;
}

.contactMe.theme-modern select.field {
  padding-left: 20px;
  padding-right: 44px;
}

.contactMe.theme-modern .checkbox-radio label:before {
  background: #EAEAEA;
  border-radius: 10px;
}

.contactMe.theme-modern .checkbox-radio label > span {
  color: #858585;
  font-size: 11px;
  line-height: 12px;
  font-weight: 400;
  text-transform: uppercase;
}

.contactMe.theme-modern .checkbox-radio input[type="checkbox"]:checked + label:after,
.contactMe.theme-modern .checkbox-radio input[type="radio"]:checked + label:after {
  border-radius: 5px;
}

.contactMe.theme-modern .form-row.file.boxed label {
  padding: 14px 20px 12px 44px;
  background: #EAEAEA;
  border-radius: 20px;
  color: #858585;
  font-size: 11px;
  line-height: 12px;
  font-weight: 400;
  text-transform: uppercase;
}

.contactMe.theme-modern .form-row.file.boxed label.selected {
  padding-top: 11px;
  padding-bottom: 11px;
  color: inherit;
  font-size: 14px;
  line-height: 16px;
  font-weight: 200;
  text-transform: none;
}

.contactMe.theme-modern .btn {
  width: 100%;
}

.contactMe.theme-modern input::placeholder,
.contactMe.theme-modern textarea::placeholder {
  color: transparent;
}

/* Theme London */
.contactMe.theme-london {
  background: #FFF;
}

.contactMe.theme-london > header {
  padding-bottom: 0;
}

.contactMe.theme-london > header > hr {
  display: block;
  margin: 0;
  padding: 10px 0 0;
  border: none;
  border-bottom: 1px solid #454545;
}

.contactMe.theme-london .form-row {
  margin-bottom: 20px;
}

.contactMe.theme-london .form-row .title {
  display: block;
  color: #454545;
  font-size: 11px;
  line-height: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.contactMe.theme-london input,
.contactMe.theme-london select,
.contactMe.theme-london textarea {
  border: 1px solid #B0B0B0;
}

.contactMe.theme-london .form-row.file.boxed label {
  padding: 14px 20px 12px 44px;
  border: 1px solid #B0B0B0;
  color: #454545;
  font-size: 11px;
  line-height: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.contactMe.theme-london .form-row.file.boxed label.selected {
  padding-top: 11px;
  padding-bottom: 11px;
  color: inherit;
  font-size: 14px;
  line-height: 16px;
  font-weight: 200;
  text-transform: none;
}

.contactMe.theme-london .form-row.file label i {
  border-radius: 0;
  background-color: #454545;
}

.contactMe.theme-london .checkbox-radio label:before {
  border: 1px solid #B0B0B0;
}

.contactMe.theme-london .checkbox-radio label > span {
  color: #454545;
  font-size: 11px;
  line-height: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.contactMe.theme-london .btn {
  border-radius: 0;
  background: #454545;
}

.contactMe.theme-london input::placeholder,
.contactMe.theme-london textarea::placeholder {
  color: transparent;
}

/* Responsive replacement for old EQCSS */
@container (max-width: 399px) {
  .contactMe .form-row.two > div,
  .contactMe .form-row.three > div,
  .contactMe .form-row.three > div:nth-child(2) {
    display: block;
    width: 100%;
    margin: 0 0 10px;
  }

  .contactMe .form-row.two > div:first-child {
    margin-right: 0;
  }

  .contactMe.theme-modern .form-row.three > div,
  .contactMe.theme-london .form-row.three > div {
    margin-bottom: 20px;
  }

  .contactMe .re-captcha {
    transform: scale(0.785);
    transform-origin: 0 0;
  }

  .contactMe .re-captcha.invisible {
    transform: none;
  }
}