.qbf-overlay[hidden] {
  display: none;
}

.qbf-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}

.qbf-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 48, 0.62);
  backdrop-filter: blur(10px);
}

.qbf-modal {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: min(92vh, 920px);
  overflow: auto;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(10, 24, 48, 0.24);
  padding: 28px;
}

.qbf-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 33, 66, 0.08);
  color: #0f2142;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.qbf-head {
  margin-bottom: 24px;
  padding-right: 56px;
}

.qbf-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1762fd;
  margin-bottom: 10px;
}

.qbf-head h2 {
  font-size: 38px;
  line-height: 38px;
  margin: 0 0 10px;
}

.qbf-head p {
  margin: 0;
  font-size: 16px;
  color: oklch(44.6% 0.043 257.281);
}

.qbf-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.qbf-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qbf-field[data-span="full"] {
  grid-column: 1 / -1;
}

.qbf-field label {
  font-size: 13px;
  font-weight: 500;
  color: #0f2142;
}

.qbf-field input,
.qbf-field select,
.qbf-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(15, 33, 66, 0.14);
  border-radius: 18px;
  background: #f5f7fb;
  color: #0f2142;
  font-size: 15px;
}

.qbf-field textarea {
  min-height: 120px;
  resize: vertical;
}

.qbf-field input::placeholder,
.qbf-field textarea::placeholder {
  color: rgba(15, 33, 66, 0.45);
}

.qbf-field input:focus,
.qbf-field select:focus,
.qbf-field textarea:focus {
  outline: 2px solid rgba(23, 98, 253, 0.16);
  border-color: rgba(23, 98, 253, 0.3);
}

.qbf-actions {
  margin-top: 22px;
}

.qbf-submit {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 14px 20px;
  background: linear-gradient(124deg, rgba(26, 62, 190, 1) 0%, rgba(0, 180, 221, 1) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.qbf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.qbf-success {
  grid-column: 1 / -1;
  padding: 22px;
  border-radius: 22px;
  background: #f5f7fb;
  border: 1px solid rgba(15, 33, 66, 0.08);
}

.qbf-success h3 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 28px;
  color: #0f2142;
}

.qbf-success p {
  margin: 0;
  color: oklch(44.6% 0.043 257.281);
}

.qbf-submit[disabled] {
  opacity: 0.7;
  cursor: wait;
}

html.qbf-open {
  overflow: hidden;
}

@media only screen and (max-width: 700px) {
  .qbf-overlay {
    padding: 14px;
  }

  .qbf-modal {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .qbf-head {
    padding-right: 42px;
  }

  .qbf-head h2 {
    font-size: 30px;
    line-height: 30px;
  }

  .qbf-fields {
    grid-template-columns: 1fr;
  }

  .qbf-field[data-span="full"] {
    grid-column: auto;
  }
}
