.quote-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.quote-popup.is-open {
  display: block;
}

.quote-popup__overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.quote-popup__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 20px 15px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.8);
}

.quote-popup__frame {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 692px;
  min-height: 395px;
  height: auto;
  padding: 8px;
  border-radius: 28px;
  background: linear-gradient(180deg, #0073e4 0%, #8ec2f6 30%, #fdfeff 70%);
  box-shadow: 0 2px 12px 1px #0000003d;
}

.quote-popup__card {
  position: relative;
  display: flex;
  box-sizing: border-box;
  width: 100%;
  min-height: calc(395px - 16px);
  height: auto;
  padding: 32px;
  border-radius: 20px;
  background: #ffffff;
}

.quote-popup__card.is-success {
  align-items: center;
  justify-content: center;
}

.quote-popup__card.is-success .quote-popup__form {
  display: none !important;
}

.quote-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 40px;
  background: transparent;
  color: #cccccc;
  line-height: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.quote-popup__close-icon {
  display: block;
  width: 13.15px;
  height: 13.15px;
  flex-shrink: 0;
}

.quote-popup__close:hover {
  background: #f1f1f1;
  color: #333333;
}

.quote-popup__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  width: 100%;
  height: auto;
  align-items: stretch;
}

.quote-popup__form[hidden] {
  display: none !important;
}

.quote-popup__form-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.quote-popup__fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quote-popup__info-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-width: 0;
  min-height: 100%;
  padding-right: 12px;
}

.quote-popup__info-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quote-popup__title {
  margin: 0;
  color: #1e1e1e;
  font-family: "Urbanist", sans-serif;
  font-size: 24px;
  font-weight: 700;
  font-style: normal;
  line-height: 140%;
  letter-spacing: 0.01em;
  vertical-align: middle;
}

.quote-popup__subtitle {
  margin: 0;
  color: #333333;
  font-family: "Urbanist", sans-serif;
  font-size: 14px;
  font-weight: 500;
  font-style: normal;
  line-height: 160%;
  letter-spacing: 0.01em;
  vertical-align: middle;
}

.quote-popup__field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 300px;
  max-width: 100%;
}

.quote-popup__label {
  margin: 0;
  color: #646464;
  font-family: "Urbanist", sans-serif;
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
  line-height: 160%;
  letter-spacing: 0.01em;
  vertical-align: middle;
}

.quote-popup__input {
  box-sizing: border-box;
  width: 300px;
  max-width: 100%;
  height: 44px;
  padding: 12px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  color: #1e1e1e;
  font-family: "Urbanist", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 160%;
  background: #ffffff;
}

.quote-popup__input:hover {
  border-color: #bdbdbd;
}

.quote-popup__input:focus {
  border-color: #0073e4;
  outline: none;
}

.quote-popup__input.input-error {
  border-color: #ff383c;
}

.quote-popup__input.input-success {
  border-color: #1a9e5a;
}

.quote-popup__input::placeholder {
  color: #bdbdbd;
}

.quote-popup__input[type="number"] {
  -moz-appearance: textfield;
}

.quote-popup__input[type="number"]::-webkit-outer-spin-button,
.quote-popup__input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quote-popup__feedback {
  display: none;
  font-family: "Urbanist", sans-serif;
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
  line-height: 100%;
  letter-spacing: 0;
}

.quote-popup__feedback.error,
.quote-popup__feedback.success {
  display: block;
}

.quote-popup__feedback.error {
  color: #ff383c;
}

.quote-popup__feedback.success {
  color: #1a9e5a;
}

.quote-popup__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 300px;
  max-width: 100%;
  height: 44px;
  margin-top: 32px;
  padding: 8px 16px;
  border: 0;
  border-radius: 12px;
  background: #0073e4;
  color: #ffffff;
  font-family: "Urbanist", sans-serif;
  font-size: 16px;
  font-weight: 600;
  font-style: normal;
  line-height: 20px;
  letter-spacing: 0.0015em;
  text-align: center;
  cursor: pointer;
}

.quote-popup__submit:hover {
  background: #2087ec;
}

.quote-popup__submit:disabled {
  cursor: not-allowed;
  background: linear-gradient(to right, #afcdeb, #7a9bbf);
}

.quote-popup__trust {
  margin-top: 0;
}

.quote-popup__trust-label {
  margin: 0 0 6px;
  color: #646464;
  font-family: "Urbanist", sans-serif;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  line-height: 20px;
  letter-spacing: 0.04em;
  vertical-align: middle;
  text-transform: uppercase;
}

.quote-popup__logos {
  display: grid;
  grid-template-columns: repeat(4, 70px);
  grid-template-rows: 37px;
  width: 280px;
  height: 37px;
  max-width: 100%;
}

.quote-popup__logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 70px;
  height: 37px;
  padding: 4.11px 0;
  gap: 4.11px;
  border: 0.5px solid #cccccc;
}

.quote-popup__logo-cell + .quote-popup__logo-cell {
  border-left: 0;
}

.quote-popup__logo-cell img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.quote-popup__success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  flex: 1 1 auto;
  min-height: calc(395px - 16px - 64px);
  padding: 40px 24px;
  text-align: center;
}

.quote-popup__success.is-visible,
.quote-popup__card.is-success .quote-popup__success {
  display: flex;
}

.quote-popup__success-check {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.quote-popup__success-check img {
  display: block;
  width: 44px;
  height: 44px;
}

.quote-popup__success-title {
  margin: 32px 0 0;
  color: #1e1e1e;
  font-family: "Urbanist", sans-serif;
  font-size: 36px;
  font-weight: 700;
  font-style: normal;
  line-height: 140%;
  letter-spacing: 0.01em;
  text-align: center;
  vertical-align: middle;
}

.quote-popup__success-message {
  margin: 8px 0 0;
  max-width: 520px;
  color: #333333;
  font-family: "Urbanist", sans-serif;
  font-size: 18px;
  font-weight: 500;
  font-style: normal;
  line-height: 160%;
  letter-spacing: 0.01em;
  text-align: center;
  vertical-align: middle;
}

.quote-popup__success-message strong {
  font-weight: 700;
  color: #333333;
}

.quote-popup__success-line2 {
  display: block;
}

@media (max-width: 760px) {
  .quote-popup__frame {
    height: auto;
    max-height: calc(100vh - 40px);
  }

  .quote-popup__card {
    height: auto;
    max-height: calc(100vh - 56px);
    padding: 28px 20px 24px;
    overflow: auto;
  }

  .quote-popup__form {
    display: flex;
    flex-direction: column;
    gap: 28px;
    height: auto;
  }

  .quote-popup__info-col {
    display: contents;
  }

  .quote-popup__info-top {
    order: 1;
  }

  .quote-popup__form-col {
    order: 2;
  }

  .quote-popup__trust {
    order: 3;
    margin-top: 4px;
  }

  .quote-popup__field,
  .quote-popup__input,
  .quote-popup__submit {
    width: 100%;
  }

  .quote-popup__subtitle {
    margin-top: 0;
  }

  .quote-popup__logos {
    width: 280px;
    max-width: 100%;
  }

  .quote-popup__success-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: 0.01em;
    color: #1e1e1e;
  }

  .quote-popup__success-message {
    width: 258px;
    max-width: 100%;
    font-size: 14px;
    font-weight: 500;
    line-height: 160%;
    letter-spacing: 0.01em;
  }

  .quote-popup__success-line2 {
    display: inline;
  }
}

@media (max-width: 480px) {
  .quote-popup__frame {
    border-radius: 20px;
  }

  .quote-popup__card {
    padding: 24px 16px 20px;
    border-radius: 14px;
  }

  .quote-popup__close {
    top: 8px;
    right: 8px;
  }

  .quote-popup__title {
    font-size: 22px;
  }

  .quote-popup__success {
    min-height: 260px;
    padding: 32px 12px;
  }

  .quote-popup__logos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .quote-popup__logo-cell {
    width: 100%;
  }
}
