/*
 * WPForms styling for the footer "Subscribe Form".
 * Replicates the default theme subscribe form (#footer .signsup form).
 * Loaded only when RPR Options > Forms > "Use Theme Forms" is Off.
 *
 * Suggested WPForms setup: Email field, "Customer / Trade" radio (inline),
 * optional reCAPTCHA, submit button labelled "SUBMIT".
 */

#footer .signsup .rpr-wpforms {
  max-width: 555px;
  margin-left: auto;
  margin-right: auto;
}

#footer .signsup .rpr-wpforms .wpforms-container,
#footer .signsup .rpr-wpforms .wpforms-container form {
  margin: 0;
  padding: 0;
}

/* Field rows (= .form-group) */
#footer .signsup .rpr-wpforms .wpforms-field {
  padding: 0;
  margin-bottom: 31px;
  text-align: center;
}

/* Hide main field labels; email uses placeholder like the theme form */
#footer .signsup .rpr-wpforms .wpforms-field > .wpforms-field-label,
#footer .signsup .rpr-wpforms .wpforms-field legend.wpforms-field-label {
  display: none;
}

#footer .signsup .rpr-wpforms fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

/* Inputs (= .form-control) */
#footer .signsup .rpr-wpforms input[type="email"],
#footer .signsup .rpr-wpforms input[type="text"] {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 52px;
  padding-left: 0;
  padding-right: 0;
  line-height: 1em;
  font-family: "Montserrat", Helvetica, Arial, sans-serif !important;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: .07em;
  text-align: center;
  color: #000;
  background: none;
  border: none;
  border-bottom: 1px solid #000 !important;
  border-radius: 0;
  box-shadow: none !important;
  transition: all 300ms ease;
}

#footer .signsup .rpr-wpforms input[type="email"]::placeholder,
#footer .signsup .rpr-wpforms input[type="text"]::placeholder {
  font-style: italic;
  color: #999;
  opacity: 1;
}

#footer .signsup .rpr-wpforms input[type="email"]:focus,
#footer .signsup .rpr-wpforms input[type="text"]:focus {
  background: #ebd8db;
  outline: 0;
  box-shadow: none !important;
}

#footer .signsup .rpr-wpforms input[type="email"]:focus::placeholder,
#footer .signsup .rpr-wpforms input[type="text"]:focus::placeholder {
  color: transparent;
}

/* Radio options (Customer / Trade), inline & centred */
#footer .signsup .rpr-wpforms .wpforms-field-radio ul,
#footer .signsup .rpr-wpforms .wpforms-field-radio ul[class*="wpforms-list-"] {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

#footer .signsup .rpr-wpforms .wpforms-field-radio ul li {
  display: inline-block;
  width: auto !important;
  margin: 0 25px !important;
  padding: 0;
  line-height: 17px;
}

#footer .signsup .rpr-wpforms .wpforms-field-radio ul li label.wpforms-field-label-inline {
  display: inline;
  margin: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
  color: #000;
}

/* Radio icon: the theme's iCheck wrapper (WPForms CSS collapses its size) */
#footer .signsup .rpr-wpforms .wpforms-field-radio .iradio_square {
  display: inline-block;
  width: 17px !important;
  height: 17px !important;
  margin: -2px 10px 0 0 !important;
  vertical-align: middle;
  background-repeat: no-repeat !important;
  background-position: -120px 0 !important;
}

#footer .signsup .rpr-wpforms .wpforms-field-radio .iradio_square.hover {
  background-position: -144px 0 !important;
}

#footer .signsup .rpr-wpforms .wpforms-field-radio .iradio_square.checked {
  background-position: -168px 0 !important;
}

/* reCAPTCHA centred */
#footer .signsup .rpr-wpforms .wpforms-recaptcha-container {
  display: flex;
  justify-content: center;
  padding: 0;
  margin-bottom: 31px;
}

/* Validation errors (= label.error) */
#footer .signsup .rpr-wpforms label.wpforms-error,
#footer .signsup .rpr-wpforms em.wpforms-error {
  display: block;
  margin: 3px 0 0;
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  color: #d00;
}

#footer .signsup .rpr-wpforms .wpforms-confirmation-container-full,
#footer .signsup .rpr-wpforms .wpforms-confirmation-container {
  margin: 0;
  background: none;
  border: none;
  text-align: center;
  font-size: 16px;
}

/* Submit (= .btn-submit .btn.btn-primary) */
#footer .signsup .rpr-wpforms .wpforms-submit-container {
  margin-top: 48px;
  padding: 0;
  text-align: center;
}

#footer .signsup .rpr-wpforms button.wpforms-submit {
  display: inline-block;
  height: auto;
  padding: 10px 30px;
  width: auto;
  min-width: 0;
  max-width: 100%;
  font-family: "Lato", Helvetica, Arial, sans-serif !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: normal;
  color: #000;
  background: #fff;
  border: 1px solid #000;
  border-radius: 0 10px 0 10px;
  box-shadow: none;
  cursor: pointer;
  transition: all 300ms ease;
}

@media (min-width: 768px) {
  #footer .signsup .rpr-wpforms button.wpforms-submit {
    padding: 14px 25px;
    font-size: 18px;
    min-width: 226px;
  }
}

#footer .signsup .rpr-wpforms button.wpforms-submit:hover,
#footer .signsup .rpr-wpforms button.wpforms-submit:focus {
  color: #fff !important;
  background: #d7b1b8 !important;
  border-color: #d7b1b8 !important;
  box-shadow: none;
}

#footer .signsup .rpr-wpforms button.wpforms-submit:disabled {
  opacity: .3;
}

/* ==========================================================================
 * Register Salon form (section "Form Register Salon")
 * Replicates .form-register-salon form.material
 * ========================================================================== */

.rpr-wpforms-register-salon {
  margin-bottom: 20px;
}

.rpr-wpforms-register-salon .wpforms-container,
.rpr-wpforms-register-salon .wpforms-container form {
  max-width: 291px;
  margin: 0 auto;
  padding: 0;
  font-family: "Lato", Helvetica, Arial, sans-serif !important;
}

/* Field rows (= .form-group) */
.rpr-wpforms-register-salon .wpforms-field {
  position: relative;
  margin: 0;
  padding: 14px 0 30px !important;
}

/* Floating label (= form.material label) */
.rpr-wpforms-register-salon .wpforms-field > .wpforms-field-label {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 1;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 30px;
  letter-spacing: normal;
  color: #545454;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
  transition: all 500ms ease;
}

.rpr-wpforms-register-salon .wpforms-required-label {
  color: inherit !important;
}

.rpr-wpforms-register-salon .wpforms-field select {
  padding: 0 !important;
}

.rpr-wpforms-register-salon .wpforms-recaptcha-container {
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0 0 30px;
}

/* Raised label: focused or filled */
.rpr-wpforms-register-salon .wpforms-field:focus-within > .wpforms-field-label,
.rpr-wpforms-register-salon .wpforms-field:has(input:not(:placeholder-shown)) > .wpforms-field-label,
.rpr-wpforms-register-salon .wpforms-field:has(select option:checked:not([value=""])) > .wpforms-field-label {
  top: 0;
  left: 0;
  font-size: 13px;
  line-height: 1em;
  letter-spacing: .01em;
  color: #000;
  transform: translateX(0);
}

/* Inputs & selects (= .form-control) */
.rpr-wpforms-register-salon .wpforms-field input[type="text"],
.rpr-wpforms-register-salon .wpforms-field input[type="email"],
.rpr-wpforms-register-salon .wpforms-field input[type="tel"],
.rpr-wpforms-register-salon .wpforms-field select {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 30px;
  min-height: 0;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 300;
  line-height: 1em;
  text-align: left;
  color: #000;
  background: none;
  border: none;
  border-bottom: 1px solid #d7b1b8;
  border-radius: 0;
  box-shadow: none !important;
  outline: 0;
  transition: all 500ms ease;
}

.rpr-wpforms-register-salon .wpforms-field input::placeholder {
  color: transparent !important;
  opacity: 1;
}

.rpr-wpforms-register-salon .wpforms-field input:focus,
.rpr-wpforms-register-salon .wpforms-field select:focus,
.rpr-wpforms-register-salon .wpforms-field:has(input:not(:placeholder-shown)) input,
.rpr-wpforms-register-salon .wpforms-field:has(select option:checked:not([value=""])) select {
  border-bottom-color: #000;
}

/* Validation errors (= label.error) */
.rpr-wpforms-register-salon label.wpforms-error,
.rpr-wpforms-register-salon em.wpforms-error {
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 100%;
  margin: 0;
  font-size: 13px;
  font-weight: 300;
  font-style: normal;
  letter-spacing: .01em;
  line-height: 1em;
  text-align: center;
  color: #d9534f;
}

.rpr-wpforms-register-salon .wpforms-field-container {
  margin: 0;
}

/* Submit area (= .btn-submit with the "* Required Fields" note) */
.rpr-wpforms-register-salon .wpforms-submit-container {
  margin: -20px 0 0;
  padding: 0;
}

.rpr-wpforms-register-salon .wpforms-submit-container::before {
  content: "* Required Fields";
  display: block;
  margin-bottom: 26px;
  font-size: 13px;
  line-height: 1em;
  text-align: right;
  color: #af8990;
}

.rpr-wpforms-register-salon button.wpforms-submit {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  padding: 10px 30px !important;
  margin: 0 !important;
  font-family: "Lato", Helvetica, Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  white-space: normal !important;
  color: #000 !important;
  background: #fff !important;
  border: 1px solid #000 !important;
  border-radius: 0 10px 0 10px !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: all 300ms ease !important;
}

@media (min-width: 768px) {
  .rpr-wpforms-register-salon button.wpforms-submit {
    padding: 14px 25px !important;
    font-size: 18px !important;
  }
}

.rpr-wpforms-register-salon button.wpforms-submit:hover,
.rpr-wpforms-register-salon button.wpforms-submit:focus {
  color: #fff !important;
  background: #d7b1b8 !important;
  border-color: #d7b1b8 !important;
  box-shadow: none;
}

.rpr-wpforms-register-salon button.wpforms-submit:disabled {
  opacity: .3;
}

.rpr-wpforms-register-salon .wpforms-confirmation-container-full,
.rpr-wpforms-register-salon .wpforms-confirmation-container {
  margin: 0;
  background: none;
  border: none;
  text-align: center;
}

/* ==========================================================================
 * Contact form (section "Form Contact")
 * Replicates .st-contact .form-contact form.material
 * ========================================================================== */

.rpr-wpforms-contact {
  position: relative;
  max-width: 291px;
  margin: 0 auto 40px;
  font-family: "Lato", Helvetica, Arial, sans-serif !important;
}

/* Desktop: office on the left, form in one column on the right */
@media (min-width: 768px) {
  .st-contact .inn:has(.rpr-wpforms-contact) {
    display: flex;
    align-items: flex-start;
  }

  .st-contact .inn:has(.rpr-wpforms-contact)::after {
    display: none;
  }

  .st-contact .inn:has(.rpr-wpforms-contact) .office {
    order: -1;
    box-sizing: border-box;
    width: 50%;
  }

  .rpr-wpforms-contact {
    box-sizing: border-box;
    width: 50%;
    max-width: none;
    margin: 0;
  }
}

.rpr-wpforms-contact .wpforms-container,
.rpr-wpforms-contact .wpforms-container form {
  margin: 0;
  padding: 0;
}

.rpr-wpforms-contact .wpforms-field-container {
  display: flex;
  flex-wrap: wrap;
}

/* Field rows (= .form-group) */
.rpr-wpforms-contact .wpforms-field {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 14px 0 30px !important;
}

/* Floating label (= form.material label) */
.rpr-wpforms-contact .wpforms-field > .wpforms-field-label {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 1;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 30px;
  letter-spacing: normal;
  color: #545454;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
  transition: all 500ms ease;
}

.rpr-wpforms-contact .wpforms-required-label {
  color: inherit !important;
}

.rpr-wpforms-contact .wpforms-field:focus-within > .wpforms-field-label,
.rpr-wpforms-contact .wpforms-field:has(input:not(:placeholder-shown)) > .wpforms-field-label,
.rpr-wpforms-contact .wpforms-field:has(textarea:not(:placeholder-shown)) > .wpforms-field-label,
.rpr-wpforms-contact .wpforms-field:has(select option:checked:not([value=""])) > .wpforms-field-label {
  top: 0;
  left: 0;
  font-size: 13px;
  line-height: 1em;
  letter-spacing: .01em;
  color: #000;
  transform: translateX(0);
}

/* Inputs, selects, textarea (= .form-control) */
.rpr-wpforms-contact .wpforms-field input[type="text"],
.rpr-wpforms-contact .wpforms-field input[type="email"],
.rpr-wpforms-contact .wpforms-field input[type="tel"],
.rpr-wpforms-contact .wpforms-field select,
.rpr-wpforms-contact .wpforms-field textarea {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  height: 30px;
  min-height: 0;
  padding: 0 !important;
  margin: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 300;
  line-height: 1em;
  text-align: left;
  color: #000;
  background: none;
  border: none;
  border-bottom: 1px solid #d7b1b8;
  border-radius: 0;
  box-shadow: none !important;
  outline: 0;
  transition: all 500ms ease;
}

.rpr-wpforms-contact .wpforms-field textarea {
  height: auto;
  min-height: 132px;
  line-height: 1.357em;
  resize: none;
}

.rpr-wpforms-contact .wpforms-field input::placeholder,
.rpr-wpforms-contact .wpforms-field textarea::placeholder {
  color: transparent !important;
  opacity: 1;
}

.rpr-wpforms-contact .wpforms-field input:focus,
.rpr-wpforms-contact .wpforms-field select:focus,
.rpr-wpforms-contact .wpforms-field textarea:focus,
.rpr-wpforms-contact .wpforms-field:has(input:not(:placeholder-shown)) input,
.rpr-wpforms-contact .wpforms-field:has(textarea:not(:placeholder-shown)) textarea,
.rpr-wpforms-contact .wpforms-field:has(select option:checked:not([value=""])) select {
  border-bottom-color: #000;
}

/* Checkboxes (Newsletter / Terms) */
.rpr-wpforms-contact .wpforms-field-checkbox {
  width: 100%;
  margin-left: 0;
  padding: 0 0 10px !important;
}

.rpr-wpforms-contact .wpforms-field-checkbox > .wpforms-field-label,
.rpr-wpforms-contact .wpforms-field-checkbox legend.wpforms-field-label {
  display: none;
}

.rpr-wpforms-contact fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.rpr-wpforms-contact .wpforms-field-checkbox ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rpr-wpforms-contact .wpforms-field-checkbox ul li {
  display: block;
  width: 100% !important;
  margin: 0 !important;
  padding: 0;
  line-height: 1.428571429;
}

.rpr-wpforms-contact .wpforms-field-checkbox ul li label.wpforms-field-label-inline {
  display: inline;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 300;
  line-height: inherit;
  color: #000;
}

.rpr-wpforms-contact .wpforms-field-checkbox ul li label a {
  font-weight: 700;
  color: #d7b1b8;
}

.rpr-wpforms-contact .wpforms-field-checkbox .icheckbox_square {
  display: inline-block;
  width: 17px !important;
  height: 17px !important;
  margin: -2px 10px 0 0 !important;
  vertical-align: middle;
  background-repeat: no-repeat !important;
  background-position: 0 0 !important;
}

.rpr-wpforms-contact .wpforms-field-checkbox .icheckbox_square.hover {
  background-position: -24px 0 !important;
}

.rpr-wpforms-contact .wpforms-field-checkbox .icheckbox_square.checked {
  background-position: -48px 0 !important;
}

/* reCAPTCHA */
.rpr-wpforms-contact .wpforms-recaptcha-container {
  width: 100%;
  padding: 0;
  margin: 0 0 30px;
}

/* Validation errors (= label.error) */
.rpr-wpforms-contact label.wpforms-error,
.rpr-wpforms-contact em.wpforms-error {
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 100%;
  margin: 0;
  font-size: 13px;
  font-weight: 300;
  font-style: normal;
  letter-spacing: .01em;
  line-height: 1em;
  text-align: center;
  color: #d9534f;
}

.rpr-wpforms-contact .wpforms-field-checkbox label.wpforms-error {
  position: static;
  text-align: left;
}

/* Submit (= .btn-submit .btn.btn-primary) + stockists link below it */
.rpr-wpforms-contact .wpforms-submit-container {
  margin: 0;
  padding: 0;
  text-align: center;
}

.rpr-wpforms-contact button.wpforms-submit {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  padding: 10px 30px !important;
  margin: 0 !important;
  font-family: "Lato", Helvetica, Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  white-space: normal !important;
  color: #000 !important;
  background: #fff !important;
  border: 1px solid #000 !important;
  border-radius: 0 10px 0 10px !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: all 300ms ease !important;
}

@media (min-width: 768px) {
  .rpr-wpforms-contact button.wpforms-submit {
    padding: 14px 25px !important;
    font-size: 18px !important;
    min-width: 226px;
  }
}

.rpr-wpforms-contact button.wpforms-submit:hover,
.rpr-wpforms-contact button.wpforms-submit:focus {
  color: #fff !important;
  background: #d7b1b8 !important;
  border-color: #d7b1b8 !important;
}

.rpr-wpforms-contact button.wpforms-submit:disabled {
  opacity: .3 !important;
}

.rpr-wpforms-contact > .btn.toggle-el {
  display: none;
  letter-spacing: 0;
}

@media (min-width: 768px) {
  .rpr-wpforms-contact > .btn.toggle-el {
    display: block;
    margin-top: 20px;
    padding: 14px 0;
    text-align: center;
    border: none !important;
    background: none;
  }

  .rpr-wpforms-contact > .btn.toggle-el:hover {
    background: none !important;
    color: inherit !important;
  }

  .rpr-wpforms-contact > .btn.toggle-el .icon {
    font-size: 18px;
  }
}

.rpr-wpforms-contact .wpforms-confirmation-container-full,
.rpr-wpforms-contact .wpforms-confirmation-container {
  margin: 0;
  background: none;
  border: none;
}

/* Contact form: refinements */
.rpr-wpforms-contact .wpforms-field select {
  -webkit-appearance: menulist !important;
  appearance: auto !important;
}

.rpr-wpforms-contact .wpforms-field > .wpforms-field-label {
  letter-spacing: .04em;
}

.rpr-wpforms-contact .wpforms-field-checkbox ul li {
  display: flex !important;
  align-items: flex-start;
}

.rpr-wpforms-contact .wpforms-field-checkbox ul li label.wpforms-field-label-inline {
  display: block;
  flex: 1;
  letter-spacing: .04em;
}

.rpr-wpforms-contact .wpforms-field-checkbox .icheckbox_square {
  flex: 0 0 17px;
  margin-top: 1px !important;
}

/* Remove WPForms' default 24px vertical margin on desktop */
@media (min-width: 768px) {
  .rpr-wpforms .wpforms-container.wpforms-container-full {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}
