.wdbf-entry-modal[hidden] {
  display: none;
}

.wdbf-entry-modal {
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  position: fixed;
  z-index: 10001;
}

.wdbf-entry-modal,
.wdbf-entry-modal *,
.wdbf-entry-modal *::before,
.wdbf-entry-modal *::after {
  box-sizing: border-box;
}

.wdbf-entry-modal__overlay {
  background:
    radial-gradient(circle at top, rgba(74, 147, 255, 0.16), transparent 38%),
    rgba(6, 11, 20, 0.76);
  backdrop-filter: blur(8px);
  inset: 0;
  position: absolute;
}

.wdbf-entry-modal__dialog {
  background: #ffffff;
  border: 1px solid rgba(209, 220, 235, 0.92);
  border-radius: 24px;
  box-shadow: 0 34px 90px rgba(3, 10, 19, 0.34);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.82fr);
  left: 50%;
  max-height: calc(100vh - 56px);
  max-width: 940px;
  overflow: hidden;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
}

.wdbf-entry-modal__panel,
.wdbf-entry-modal__aside {
  min-width: 0;
  padding: 30px;
}

.wdbf-entry-modal__panel {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  position: relative;
}

.wdbf-entry-modal__panel::after {
  background: linear-gradient(180deg, rgba(223, 232, 244, 0.72), rgba(223, 232, 244, 0));
  content: "";
  height: 1px;
  left: 30px;
  position: absolute;
  right: 30px;
  top: 104px;
}

.wdbf-entry-modal__aside {
  background:
    radial-gradient(circle at top right, rgba(94, 168, 255, 0.32), transparent 34%),
    linear-gradient(160deg, #0f1724 0%, #162033 52%, #0b1220 100%);
  color: #f8fbff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.wdbf-entry-modal__aside::before,
.wdbf-entry-modal__aside::after {
  content: "";
  position: absolute;
}

.wdbf-entry-modal__aside::before {
  border: 1px solid rgba(148, 195, 255, 0.18);
  border-radius: 18px;
  inset: 18px;
}

.wdbf-entry-modal__aside::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent);
  inset: 0 auto 0 0;
  width: 1px;
}

.wdbf-entry-modal__eyebrow,
.wdbf-entry-modal__aside h2,
.wdbf-entry-modal__aside p {
  position: relative;
  z-index: 1;
}

.wdbf-entry-modal__eyebrow {
  color: #9fd0ff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.wdbf-entry-modal__aside h2 {
  font-size: 2.1rem;
  line-height: 1.04;
  margin: 0 0 14px;
  max-width: 11ch;
}

.wdbf-entry-modal__aside p {
  color: rgba(232, 240, 252, 0.82);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
  max-width: 26ch;
}

.wdbf-entry-modal__close {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.2rem;
  font-weight: 400;
  height: 42px;
  justify-content: center;
  position: absolute;
  right: 18px;
  top: 18px;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  width: 42px;
  z-index: 3;
}

.wdbf-entry-modal__close:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.42);
  transform: rotate(90deg);
}

.wdbf-entry-form {
  display: grid;
  gap: 20px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding-right: 6px;
}

.wdbf-entry-form__intro {
  display: grid;
  gap: 10px;
  padding-right: 52px;
}

.wdbf-entry-form__intro h3 {
  color: #0f1f33;
  font-family: Poppins, Arial, sans-serif;
  font-size: 1.72rem;
  line-height: 1.08;
  margin: 0;
  max-width: 14ch;
}

.wdbf-entry-form__intro p {
  color: #64748b;
  font-family: Poppins, Arial, sans-serif;
  line-height: 1.65;
  margin: 0;
  max-width: 33ch;
}

.wdbf-entry-form__fields {
  display: grid;
  gap: 14px 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wdbf-entry-form__field {
  display: grid;
  gap: 8px;
}

.wdbf-entry-form__field span {
  color: #475467;
  font-family: Poppins, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

.wdbf-entry-form__field select {
  appearance: none;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #d4dfec;
  border-radius: 14px;
  color: #162033;
  font-family: Poppins, Arial, sans-serif;
  font-size: 0.98rem;
  min-height: 54px;
  padding: 0 44px 0 15px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  width: 100%;
}

.wdbf-entry-form__field select:hover {
  border-color: #b9c8db;
}

.wdbf-entry-form__field select:focus {
  border-color: #4a93ff;
  box-shadow: 0 0 0 4px rgba(74, 147, 255, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.wdbf-entry-form__field select:disabled {
  background: #f3f6fa;
  border-color: #e1e8f1;
  color: #98a2b3;
}

.wdbf-entry-form__submit {
  align-items: center;
  background: linear-gradient(135deg, #2a7fff 0%, #55a3ff 100%);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 18px 30px rgba(55, 137, 255, 0.26);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-family: Poppins, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  justify-content: center;
  min-height: 56px;
  padding: 0 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  width: 100%;
}

.wdbf-entry-form__submit:hover {
  box-shadow: 0 22px 36px rgba(55, 137, 255, 0.3);
  filter: saturate(1.05);
  transform: translateY(-1px);
}

.wdbf-entry-form__submit:active {
  transform: translateY(0);
}

body.wdbf-entry-modal-open {
  left: 0;
  overflow: hidden;
  position: fixed;
  right: 0;
  width: 100%;
}

@media (max-width: 960px) {
  .wdbf-entry-modal__dialog {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .wdbf-entry-modal__panel,
  .wdbf-entry-modal__aside {
    padding: 24px;
  }
}

@media (max-width: 860px) {
  .wdbf-entry-modal {
    display: flex;
    padding: 8px;
  }

  .wdbf-entry-modal__dialog {
    align-self: center;
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    left: auto;
    max-height: calc(100dvh - 16px);
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    top: auto;
    transform: none;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .wdbf-entry-modal__panel::after,
  .wdbf-entry-modal__aside::after {
    display: none;
  }

  .wdbf-entry-modal__panel,
  .wdbf-entry-modal__aside {
    padding: 20px;
  }

  .wdbf-entry-modal__panel {
    min-height: 0;
  }

  .wdbf-entry-modal__aside {
    display: none;
  }

  .wdbf-entry-modal__close {
    background: rgba(15, 23, 36, 0.7);
    position: fixed;
    right: 18px;
    top: 14px;
  }

  .wdbf-entry-form {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .wdbf-entry-form__intro {
    padding-right: 54px;
  }

  .wdbf-entry-form__fields {
    grid-template-columns: 1fr;
  }

  .wdbf-entry-form__field,
  .wdbf-entry-form__field select,
  .wdbf-entry-form__submit {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .wdbf-entry-modal {
    padding: 0;
  }

  .wdbf-entry-modal__dialog {
    border-radius: 0;
    max-height: 100dvh;
    min-height: 100dvh;
    width: 100%;
  }

  .wdbf-entry-modal__panel,
  .wdbf-entry-modal__aside {
    padding: 18px 16px;
  }

  .wdbf-entry-form {
    gap: 16px;
  }

  .wdbf-entry-form__intro {
    padding-right: 0;
  }

  .wdbf-entry-form__intro h3 {
    font-size: 1.38rem;
    max-width: none;
  }

  .wdbf-entry-form__intro p {
    font-size: 0.93rem;
  }

  .wdbf-entry-form__field select {
    font-size: 0.95rem;
    min-height: 50px;
  }

  .wdbf-entry-form__submit {
    bottom: 0;
    position: sticky;
    z-index: 2;
  }
}
