/* Freeform grid layout (matches Solspace grid template) */
.freeform-form button[type=submit].freeform-processing,
.dsignr-form button[type=submit].is-submitting {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
}

.freeform-row {
  display: block;
  margin: 0 -15px;
}

.freeform-row:after {
  content: "";
  display: table;
  clear: both;
}

.freeform-row .freeform-column {
  display: block;
  padding: 10px 15px;
  float: left;
  box-sizing: border-box;
}

.freeform-row .freeform-column .freeform-input {
  width: 100%;
  display: block;
  box-sizing: border-box;
  margin-bottom: 15px;
}

.dsignr-form .freeform-input::placeholder,
.dsignr-form textarea.freeform-input::placeholder,
.dsignr-form .freeform-input::-webkit-input-placeholder,
.dsignr-form textarea.freeform-input::-webkit-input-placeholder,
.dsignr-form .freeform-input::-moz-placeholder,
.dsignr-form textarea.freeform-input::-moz-placeholder,
.dsignr-form .freeform-input:-ms-input-placeholder,
.dsignr-form textarea.freeform-input:-ms-input-placeholder {
  color: #5a5e64;
  opacity: 1;
}

.freeform-row .freeform-column-6 { width: 50%; }
.freeform-row .freeform-column-12 { width: 100%; }

.dsignr-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.dsignr-form.is-submitting {
  opacity: 0.65;
  pointer-events: none;
}

.dsignr-form-error-wrap .dsignr-form-error {
  color: #c0392b;
  margin: 0;
}

.dsignr-form-widget.is-success .dsignr-form-wrap {
  display: none;
}

.dsignr-form-success {
  animation: dsignrFormSuccessIn 0.45s ease;
}

.dsignr-form-success .freeform-form-success {
  position: relative;
  margin: 0 15px;
  padding: 28px 24px 28px 72px;
  border: 1px solid rgba(79, 13, 207, 0.18);
  border-radius: 0;
  background: linear-gradient(135deg, rgba(173, 96, 181, 0.1) 0%, rgba(79, 13, 207, 0.08) 100%);
  color: #1d252c;
  font-family: Montserrat, sans-serif;
}

.dsignr-form-success .freeform-form-success::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: linear-gradient(298deg, #ad60b5 3%, #9a249c 60%, #4f0dcf 97%);
  box-shadow: 0 8px 18px rgba(79, 13, 207, 0.18);
}

.dsignr-form-success .freeform-form-success::after {
  content: "";
  position: absolute;
  left: 33px;
  top: 50%;
  width: 8px;
  height: 14px;
  transform: translateY(calc(-50% - 1px)) rotate(45deg);
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.dsignr-form-success-heading {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: #2c1f71;
}

.dsignr-form-success-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: #1d252c;
}

.contact-form .dsignr-form-success .freeform-form-success {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.contact-form .dsignr-form-success-heading,
.contact-form .dsignr-form-success-text {
  color: #fff;
}

.contact-form .dsignr-form-success-heading {
  color: #fff;
}

@keyframes dsignrFormSuccessIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Service pages and book-a-call: match Freeform fields inside make-common-form / frm_forms wrapper */
.make-common-form .frm_forms form .freeform-row .freeform-column,
.book-a-call-form .frm_forms form .freeform-row .freeform-column {
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.make-common-form .frm_forms form .freeform-input,
.book-a-call-form .frm_forms form .freeform-input {
  padding: 23px 57px 21px 20px;
  font-size: 16px;
  line-height: 24px;
  border: 1px solid rgb(29 37 44 / 25%);
  border-radius: 0;
  background-color: transparent;
  font-family: Montserrat, sans-serif;
}

.make-common-form .frm_forms form .freeform-input::placeholder,
.make-common-form .frm_forms form textarea.freeform-input::placeholder,
.book-a-call-form .frm_forms form .freeform-input::placeholder,
.book-a-call-form .frm_forms form textarea.freeform-input::placeholder,
.contact-form .frm_forms form .freeform-input::placeholder,
.contact-form .frm_forms form textarea.freeform-input::placeholder,
#getAQuote .freeform-input::placeholder,
#getAQuote textarea.freeform-input::placeholder,
#contct .freeform-input::placeholder,
#contct textarea.freeform-input::placeholder {
  color: #5a5e64;
  opacity: 1;
}

.contact-form .frm_forms form .freeform-input::placeholder,
.contact-form .frm_forms form textarea.freeform-input::placeholder,
#contct .freeform-input::placeholder,
#contct textarea.freeform-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.make-common-form .frm_forms form .freeform-column-has-placeholder,
.book-a-call-form .frm_forms form .freeform-column-has-placeholder {
  position: relative;
}

.make-common-form .frm_forms form .freeform-label-inline,
.book-a-call-form .frm_forms form .freeform-label-inline,
.contact-form .frm_forms form .freeform-label-inline,
#getAQuote .freeform-label-inline,
#contct .freeform-label-inline {
  display: block !important;
  position: absolute;
  left: 20px;
  top: 25px;
  color: #5a5e64;
  opacity: 1;
  font-size: 16px;
  line-height: normal;
  font-weight: 400;
  font-family: Montserrat, sans-serif;
  pointer-events: none;
  z-index: 5;
  padding: 0;
  margin: 0;
}

.make-common-form .frm_forms form .freeform-column-has-placeholder.has-value .freeform-label-inline,
.make-common-form .frm_forms form .freeform-column-has-placeholder:focus-within .freeform-label-inline,
.book-a-call-form .frm_forms form .freeform-column-has-placeholder.has-value .freeform-label-inline,
.book-a-call-form .frm_forms form .freeform-column-has-placeholder:focus-within .freeform-label-inline {
  display: none !important;
}

.make-common-form .frm_forms form button.frm_button_submit,
.book-a-call-form .frm_forms form button.frm_button_submit {
  padding: 20px 19px 18px 20px;
  margin: 0;
  width: auto;
  min-width: 130px;
  background: linear-gradient(298deg, #ad60b5 3%, #9a249c 60%, #4f0dcf 97%);
  color: #fff;
  border-radius: 0;
  border: 0;
  font-size: 18px;
  line-height: normal;
  letter-spacing: .55px;
  box-shadow: none;
  font-family: Montserrat, sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
}

.make-common-form .frm_forms form button.frm_button_submit:hover,
.book-a-call-form .frm_forms form button.frm_button_submit:hover {
  background: linear-gradient(298deg, #9a249c 3%, #8a1f8c 60%, #4f0dcf 97%);
}

#contct select#form-input-services,
#contct select[name="services[]"] {
  min-height: 150px;
}

.contact-form .frm_forms form button.frm_button_submit {
  font-family: Montserrat, sans-serif;
}

@media only screen and (max-width: 767px) {
  /*
   * Service-entry forms do not have the 30px parent gutter used by Contact,
   * Get a Quote and Book a Call.
   */
  .work-section-main .make-common-form {
    box-sizing: border-box;
    padding-right: 30px;
    padding-left: 30px;
  }
}
