.company-details {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 1060px;
  margin: 32px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, .3);
  border-bottom: 1px solid rgba(255, 255, 255, .3);
}

.contact-form {
  max-width: 1060px;
  margin-top: 34px;
  padding: 30px;
  background: #fff;
  color: #071b30;
  box-shadow: 0 22px 55px rgba(7, 27, 48, .18);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.contact-form label,
.contact-form label > span {
  display: block;
}

.contact-form label > span {
  margin-bottom: 9px;
  color: #455567;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d7e0e8;
  border-radius: 0;
  background: #f7f9fb;
  color: #071b30;
  font: 500 14px 'DM Sans', sans-serif;
  outline: 0;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-form input,
.contact-form select {
  height: 50px;
  padding: 0 15px;
}

.contact-form textarea {
  min-height: 130px;
  padding: 15px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #1769d2;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23, 105, 210, .12);
}

.contact-form-message {
  grid-column: 1 / -1;
}

.contact-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
}

.contact-form-footer small {
  color: #6c7782;
  font-size: 10px;
}

.contact-form .btn {
  border: 0;
  color: #fff;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

.contact-form .btn:disabled {
  cursor: wait;
  opacity: .65;
}

.contact-form-honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contact-submit-frame {
  display: none;
}

.contact-form-status {
  min-height: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.contact-form-status.is-sending,
.contact-form-status.is-success {
  min-height: 20px;
  margin-top: 18px;
}

.contact-form-status.is-sending {
  color: #53677a;
}

.contact-form-status.is-success {
  color: #14733d;
}

.company-details > div,
.company-details > a {
  min-height: 112px;
  padding: 22px 24px;
  border-right: 1px solid rgba(255, 255, 255, .3);
}

.company-details > :first-child {
  padding-left: 0;
}

.company-details > :last-child {
  border-right: 0;
}

.company-details span,
.company-details strong,
.company-details small {
  display: block;
}

.company-details span {
  margin-bottom: 10px;
  color: #cfe4ff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.company-details strong {
  color: #fff;
  font: 700 15px Manrope, sans-serif;
}

.company-details small {
  margin-top: 9px;
  color: #d8e9ff;
  font-size: 10px;
}

.company-details .tax-id {
  margin-top: 14px;
  letter-spacing: .08em;
}

.company-details .tax-id b {
  display: block;
  margin-top: 4px;
  color: #fff;
  font: 700 13px Manrope, sans-serif;
  letter-spacing: 0;
}

.company-details > a {
  transition: background .25s ease;
}

.company-details > a:hover {
  background: rgba(255, 255, 255, .1);
}

@media (max-width: 900px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-message {
    grid-column: auto;
  }

  .company-details {
    grid-template-columns: 1fr;
  }

  .company-details > div,
  .company-details > a {
    min-height: auto;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
  }

  .company-details > :last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .contact-form {
    padding: 22px 18px;
  }

  .contact-form-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-form .btn {
    width: 100%;
  }
}

/* Avalehe proovipilt: uus maja foto, olemasoleva tumeda teksti-varjutusega. */
.hero-bg {
  background-image:
    linear-gradient(90deg, rgba(4, 17, 30, .93) 0%, rgba(4, 17, 30, .72) 35%, rgba(4, 17, 30, .08) 74%),
    url('assets/relancer-hero-house.jpg');
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: 66px;
  min-height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: #1769d2;
  color: #fff;
  box-shadow: 0 12px 30px rgba(7, 27, 48, .25);
  font-family: Manrope, sans-serif;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .2s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #071b30;
}

.back-to-top-arrow {
  font-size: 24px;
  font-weight: 700;
  line-height: .9;
}

.back-to-top-label {
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.back-to-top:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 62px;
    min-height: 58px;
  }
}
