/*
 * llfurnace.com lead forms.
 *
 * Self-contained: every rule is scoped to .llf-form so the forms look the same
 * wherever they are placed, and carry over to another site with this file.
 * Sizes are in rem because the theme scales its em values by section.
 */

.llf-form {
  box-sizing: border-box;
  color: #1c1917;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  margin: 0 auto;
  max-width: 46rem;
  text-align: left;
  width: 100%;
}

.llf-form *,
.llf-form *::before,
.llf-form *::after {
  box-sizing: border-box;
}

.llf-form [hidden] {
  display: none !important;
}

.llf-form .llf-extra {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* Layout */

.llf-form .llf-grid {
  display: grid;
  gap: 1.125rem 1.25rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.llf-form .llf-field {
  grid-column: span 6;
  margin: 0;
  min-width: 0;
}

.llf-form .llf-field--half {
  grid-column: span 3;
}

.llf-form .llf-field--third {
  grid-column: span 2;
}

.llf-form .llf-heading {
  border-bottom: 1px solid #d6d3d1;
  color: #1c1917;
  font-size: .875rem !important;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.3;
  margin: 2rem 0 1.125rem;
  padding: 0 0 .5rem;
  text-align: left;
  text-transform: uppercase;
}

.llf-form .llf-heading:first-of-type {
  margin-top: 0;
}

/* Labels and controls */

.llf-form .llf-label {
  color: #1c1917;
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.3;
  margin: 0 0 .375rem;
}

.llf-form .llf-required {
  color: #b91c1c;
}

.llf-form .llf-input {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background: #fff;
  border: 1px solid #a8a29e;
  border-radius: .25rem;
  box-shadow: none;
  color: #1c1917;
  display: block !important;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  height: 3rem;
  line-height: 1.4;
  margin: 0;
  max-width: none;
  outline: 0;
  padding: .75rem .875rem;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100% !important;
}

.llf-form .llf-input[hidden] {
  display: none !important;
}

.llf-form .llf-input::placeholder {
  color: #78716c;
  opacity: 1;
}

.llf-form .llf-input:hover {
  border-color: #78716c;
}

.llf-form .llf-input:focus {
  background: #fff;
  border-color: #1c1917;
  box-shadow: 0 0 0 3px rgba(28, 25, 23, .16);
}

.llf-form .llf-textarea {
  height: auto;
  line-height: 1.5;
  max-height: none;
  min-height: 6rem;
  resize: vertical;
}

.llf-form .llf-select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%231c1917' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-position: right .875rem center;
  background-repeat: no-repeat;
  cursor: pointer;
  padding-right: 2.5rem;
}

.llf-form .llf-select.llf-select--empty {
  color: #78716c;
}

.llf-form .llf-select option {
  color: #1c1917;
}

.llf-form .llf-input.llf-invalid {
  border-color: #b91c1c;
}

.llf-form .llf-input.llf-invalid:focus {
  box-shadow: 0 0 0 3px rgba(185, 28, 28, .16);
}

.llf-form .llf-error {
  color: #b91c1c;
  display: block;
  font-size: .8125rem;
  line-height: 1.35;
  margin: .375rem 0 0;
}

/* Messages, spam check, button */

.llf-form .llf-actions {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: 1.5rem 0 0;
}

.llf-form .llf-status {
  border: 1px solid transparent;
  border-left-width: 4px;
  border-radius: .25rem;
  display: none;
  font-size: .9375rem;
  line-height: 1.45;
  margin: 0 0 1rem;
  padding: .75rem 1rem;
  text-align: left;
  width: 100%;
}

.llf-form .llf-status--info {
  background: #f5f5f4;
  border-color: #d6d3d1;
  border-left-color: #57534e;
  color: #1c1917;
  display: block;
}

.llf-form .llf-status--error {
  background: #fef2f2;
  border-color: #fecaca;
  border-left-color: #b91c1c;
  color: #7f1d1d;
  display: block;
}

.llf-form .llf-check:not(:empty) {
  margin: 0 0 1rem;
}

.llf-form .llf-submit {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background: #b91c1c;
  border: 1px solid #b91c1c;
  border-radius: .25rem;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.2;
  margin: 0;
  min-width: 12rem;
  padding: .9375rem 2.25rem .8125rem;
  text-align: center;
  text-transform: uppercase;
  transition: background-color .15s ease, border-color .15s ease;
}

.llf-form .llf-submit:hover {
  background: #991b1b;
  border-color: #991b1b;
}

.llf-form .llf-submit:focus-visible {
  box-shadow: 0 0 0 3px rgba(185, 28, 28, .3);
  outline: 0;
}

.llf-form .llf-submit[disabled] {
  cursor: default;
  opacity: .65;
}

.llf-form .llf-note {
  color: #57534e;
  font-size: .8125rem !important;
  font-weight: 400;
  line-height: 1.3;
  margin: .875rem 0 0 !important;
}

/* Placements */

/* Furnace and series pages: the form sits on a gray section. */
.learn-more .llf-form {
  background: #fff;
  border-radius: .5rem;
  box-shadow: 0 1px 3px rgba(28, 25, 23, .12), 0 8px 24px rgba(28, 25, 23, .08);
  margin-bottom: 2rem;
  margin-top: 1.5rem;
  padding: 2rem 2.25rem 1.75rem;
}

/* Contact page: use the whole card; it was sized to sit beside a map. */
.contact-wrap .input-cont.llf-host {
  padding: 2em 1.5em 2.5em;
  width: auto;
}

.contact-wrap .input-cont.llf-host .llf-form {
  margin-top: 1.75rem;
  max-width: 40rem;
}

/* Landing pages: compact. */
.llf-form--landing {
  margin: .875rem 0 0;
  max-width: none;
}

.llf-form--landing .llf-grid {
  gap: .75rem .875rem;
}

.llf-form--landing .llf-input {
  height: 2.625rem;
  padding: .5rem .75rem;
}

.llf-form--landing .llf-textarea {
  height: auto;
  min-height: 4.5rem;
}

.llf-form--landing .llf-actions {
  align-items: flex-start;
  margin-top: 1rem;
}

.sect-contact .llf-form--landing {
  margin: 1.25rem auto 0;
  max-width: 40rem;
}

.sect-contact .llf-form--landing .llf-actions {
  align-items: center;
}

@media (max-width: 40rem) {
  .llf-form .llf-field--half,
  .llf-form .llf-field--third {
    grid-column: span 6;
  }

  .llf-form .llf-submit {
    width: 100%;
  }

  .learn-more .llf-form {
    padding: 1.5rem 1.25rem;
  }

  .contact-wrap .input-cont.llf-host {
    padding: 1.5em 1em 2em;
  }
}
