.flooring-quote {
  background: #f3f3f3;
  padding: 72px 20px 110px;
  scroll-margin-top: 110px;
}

.flooring-quote__inner {
  max-width: 1240px;
  margin: 0 auto;
}

.flooring-quote__title {
  margin: 0 0 18px;
  color: #000000;
  font-family: "Nike Futura ND", "din-2014", sans-serif;
  font-size: 48px;
  font-weight: 800;
  font-synthesis: none;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.flooring-quote__title span {
  color: #ff0000;
}

.flooring-quote__intro {
  max-width: 920px;
  margin: 0 auto 28px;
  color: #000000;
  font-family: "din-2014", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

.flooring-quote__form {
  display: flex;
  flex-direction: column;
  padding: 36px 40px 40px;
  background: #ffffff;
  text-align: left;
  box-shadow: 0 0 0 1px #eeeeee;
}

.flooring-quote__legend {
  margin: 0 0 8px;
  color: #000000;
  font-family: "din-2014", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.flooring-quote__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 18px 28px;
}

.flooring-quote__row--three {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.flooring-quote__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 14px 0 0;
  color: #8a8a8a;
  font-family: "din-2014", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.flooring-quote__field input,
.flooring-quote__field select {
  box-sizing: border-box;
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid #c8c8c8;
  border-radius: 0;
  background: #ffffff;
  color: #000000;
  font-family: "Inter", "din-2014", sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  outline: none;
  appearance: none;
}

.flooring-quote__field select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1 1.5 L8 8.5 L15 1.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.flooring-quote__field input:focus,
.flooring-quote__field select:focus {
  border-color: #000000;
}

.flooring-quote__error {
  margin: 16px 0 0;
  color: #b42318;
  font-family: "Inter", "din-2014", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}

.flooring-quote__error[hidden] {
  display: none;
}

.flooring-quote__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
}

.flooring-quote__note {
  margin: 0;
  max-width: 520px;
  color: #000000;
  font-family: "din-2014", sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.flooring-quote__note strong {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
}

.flooring-quote__submit {
  flex: 0 0 auto;
  min-width: 320px;
  height: 58px;
  padding: 0 28px;
  border: 0;
  background: #000000;
  color: #ffffff;
  font-family: "Inter", "din-2014", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.flooring-quote__submit:hover,
.flooring-quote__submit:focus-visible {
  background: #1a1a1a;
}

.flooring-quote__submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.flooring-quote__title[hidden],
.flooring-quote__intro[hidden],
.flooring-quote__form[hidden],
.flooring-quote__success[hidden] {
  display: none !important;
}

.flooring-quote__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 88px 24px 96px;
  background: #ffffff;
  text-align: center;
}

.flooring-quote__badge {
  display: block;
  width: 72px;
  height: 72px;
  margin-bottom: 28px;
  object-fit: contain;
}

.flooring-quote__thanks {
  max-width: 760px;
  margin: 0;
  color: #111111;
  font-family: "din-2014", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
}

.flooring-quote__thanks span {
  color: #1a73e8;
}

@media (max-width: 1024px) {
  .flooring-quote {
    box-sizing: border-box;
    width: 100%;
    padding: 28px 12px 48px;
    overflow-x: hidden;
  }

  .flooring-quote__inner,
  .flooring-quote__form {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .flooring-quote__title {
    font-size: 28px;
    line-height: 1.15;
    overflow-wrap: break-word;
  }

  .flooring-quote__intro {
    font-size: 15px;
    line-height: 1.4;
  }

  .flooring-quote__form {
    padding: 18px 12px 20px;
  }

  .flooring-quote__legend {
    margin-bottom: 4px;
    font-size: 22px;
  }

.flooring-quote__row,
.flooring-quote__row--three {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
}

.flooring-quote__field {
  position: static;
  min-width: 0;
  max-width: 100%;
  margin-top: 0;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.flooring-quote__label {
  position: static;
  display: block;
}

.flooring-quote__field input,
.flooring-quote__field select {
  width: 100%;
  max-width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 0 36px 0 12px;
  font-size: 15px;
  line-height: 1.2;
}

.flooring-quote__field input {
  padding-right: 12px;
}

.flooring-quote__field select {
  padding-right: 36px;
  background-position: right 12px center;
}

.flooring-quote__footer {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin-top: 18px;
}

.flooring-quote__submit {
  order: -1;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  white-space: normal;
}

.flooring-quote__note {
  max-width: none;
  font-size: 14px;
}

  .flooring-quote__success {
    padding: 48px 12px 56px;
  }

  .flooring-quote__thanks {
    font-size: 22px;
  }
}
