/* Estimate form: shared by the home page section and the service-page popup */
.na-form {
  --na-accent: #c84600;
  --na-head: 'Oswald', Arial, sans-serif;
  --na-text: 'Inter Tight', Arial, sans-serif;
  position: relative;
  padding: 36px 32px 30px;
  border-radius: 6px;
  background: var(--na-accent);
}
.na-form *, .na-form *::before, .na-form *::after { box-sizing: border-box; }
.na-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.na-form__field { margin-bottom: 18px; }
.na-form__label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--na-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.na-form__input {
  display: block;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 13px 16px;
  border: 2px solid transparent;
  border-radius: 3px;
  background: #fff;
  color: #121212;
  font-family: var(--na-text);
  font-size: 16px;
  line-height: 1.3;
  outline: none;
  transition: border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.na-form__input::placeholder { color: #8a8a8a; }
.na-form__input:focus { border-color: #121212; }
select.na-form__input {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23121212' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
textarea.na-form__input { min-height: 110px; resize: vertical; }
.na-form__error { display: none; margin-top: 6px; font-size: 13px; color: #fff; font-weight: 600; }
.na-form__field.is-error .na-form__input { border-color: #121212; }
.na-form__field.is-error .na-form__error { display: block; }
.na-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.na-form__submit {
  display: block;
  width: 100%;
  min-height: 56px;
  margin-top: 6px;
  border: 0;
  border-radius: 3px;
  background: #121212;
  color: #fff;
  font-family: var(--na-head);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.na-form__submit:hover { background: #2a2a2a; }
.na-form__submit:disabled { opacity: 0.7; cursor: wait; }
.na-form__status:not(:empty) { margin: 14px 0 0; font-size: 14px; font-weight: 600; text-align: center; color: #fff; }
.na-form__note { margin: 16px 0 0; font-size: 13px; line-height: 1.45; text-align: center; color: rgba(255, 255, 255, 0.8); }
.na-form__note a { color: #fff; }

@media screen and (max-width: 479px) {
  .na-form { padding: 26px 18px 22px; }
  .na-form__row { grid-template-columns: 1fr; }
}

/* Popup */
html.na-modal-open { overflow: hidden; }
.na-modal {
  width: min(600px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 48px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #161616;
  color: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  overflow: auto;
  overscroll-behavior: contain;
}
.na-modal::backdrop { background: rgba(0, 0, 0, 0.72); }
.na-modal[open] { animation: na-modal-in 0.22s ease-out; }
@keyframes na-modal-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.na-modal__inner { position: relative; padding: 34px 32px 32px; }
.na-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}
.na-modal__close:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.na-modal__close svg { width: 22px; height: 22px; }
.na-modal__kicker {
  margin: 0 0 10px;
  font-family: 'Inter Tight', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ee5300;
}
.na-modal__title {
  margin: 0 48px 12px 0;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
}
.na-modal__text {
  margin: 0 0 24px;
  font-family: 'Inter Tight', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

@media screen and (max-width: 639px) {
  .na-modal {
    width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
  }
  .na-modal__inner { padding: 22px 16px 28px; }
  .na-modal__title { font-size: 26px; }
  .na-modal__text { font-size: 15px; margin-bottom: 18px; }
}
