/* =========================================
   REQUEST A QUOTE POPUP
========================================= */

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 25px;

  overflow-y: auto;
}

.quote-modal.active {
  display: flex;
}

/* Dark background */

.quote-modal-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.72);

  backdrop-filter: blur(4px);
}

/* Popup box */

.quote-modal-box {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 720px;

  max-height: calc(100vh - 50px);

  overflow-y: auto;

  background: #ffffff;

  padding: 42px;

  border-radius: 12px;

  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);

  animation: quotePopupIn 0.25s ease;
}

@keyframes quotePopupIn {

  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

}

/* Close button */

.quote-close {
  position: absolute;

  top: 15px;
  right: 18px;

  width: 38px;
  height: 38px;

  border: none;

  background: #f2f2f2;

  border-radius: 50%;

  font-size: 28px;
  line-height: 1;

  cursor: pointer;

  transition: 0.2s ease;
}

.quote-close:hover {
  background: #111;
  color: #fff;
}

/* Header */

.quote-modal-header {
  margin-bottom: 28px;
  padding-right: 35px;
}

.quote-modal-header h2 {
  margin: 5px 0 10px;

  font-size: 34px;
}

.quote-modal-header p {
  margin: 0;

  line-height: 1.7;
}

/* Form */

.quote-form {
  width: 100%;
}

.quote-form-row {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 20px;

  margin-bottom: 18px;
}

.quote-field {
  margin-bottom: 18px;
}

.quote-field label {
  display: block;

  margin-bottom: 7px;

  font-size: 14px;
  font-weight: 600;
}

.quote-field input,
.quote-field select,
.quote-field textarea {

  width: 100%;

  box-sizing: border-box;

  border: 1px solid #d8d8d8;

  border-radius: 6px;

  padding: 13px 14px;

  font-family: inherit;

  font-size: 15px;

  background: #fff;

  outline: none;

  transition: border-color 0.2s ease,
              box-shadow 0.2s ease;
}

.quote-field input,
.quote-field select {
  height: 48px;
}

.quote-field textarea {
  resize: vertical;

  min-height: 120px;
}

.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus {

  border-color: #222;

  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

/* Submit */

.quote-submit {

  width: 100%;

  border: none;

  padding: 15px 20px;

  background: #111;

  color: #fff;

  border-radius: 6px;

  font-family: inherit;

  font-size: 15px;

  font-weight: 600;

  cursor: pointer;

  transition: 0.25s ease;
}

.quote-submit:hover {
  background: #333;
}

.quote-submit span {
  margin-left: 8px;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

  .quote-modal {

    align-items: flex-start;

    padding: 15px;
  }

  .quote-modal-box {

    max-height: calc(100vh - 30px);

    padding: 30px 22px;

    border-radius: 10px;
  }

  .quote-modal-header h2 {

    font-size: 27px;
  }

  .quote-form-row {

    grid-template-columns: 1fr;

    gap: 0;
  }

  .quote-close {

    top: 10px;
    right: 10px;
  }

}