.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: rgba(10, 21, 47, 0.62);
  backdrop-filter: blur(6px);
}

.lightbox-modal.visible .modal_small {
  opacity: 1;
  transform: translateY(0);
}

.modal_small {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(520px, 100%);
  max-width: 100%;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid #e5e9f5;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
  box-shadow: 0 28px 68px -24px rgba(var(--blue-rgb, 30, 83, 223), 0.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.modal_small .h1-small {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.modal_small .modal__subtitle {
  margin: 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.5;
}

.icon_close {
  position: absolute;
  inset: 14px 14px auto auto;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.04);
  color: #111827;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.icon_close:hover,
.icon_close:focus-visible {
  background: rgba(var(--blue-rgb, 30, 83, 223), 0.08);
  transform: scale(1.03);
}

.form-block {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-wrapper {
  width: 100%;
}

.field-wrapper.top {
  margin-top: 8px;
}

.field-input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #e2e5f1;
  background: #f8f9fd;
  color: #0f172a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field-input::placeholder {
  color: #9ca3af;
}

.field-input:hover {
  border-color: rgba(var(--blue-rgb, 30, 83, 223), 0.35);
}

.field-input:focus {
  border-color: rgba(var(--blue-rgb, 30, 83, 223), 0.7);
  box-shadow: 0 0 0 3px rgba(var(--blue-rgb, 30, 83, 223), 0.12);
  outline: none;
  background: #fff;
}

.modal_small .button {
  width: 100%;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 18px 38px -18px rgba(var(--blue-rgb, 30, 83, 223), 0.55);
}

.modal_small .button .btn-arrow {
  right: 24px;
}

.paragraph-9 {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.close-lightbox {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: transparent;
}

.success-message-2,
.error-message {
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.4;
}

.success-message-2 {
  background-color: var(--combine-library--success-100);
  border: 1px solid var(--combine-library--success-800);
  color: var(--combine-library--success-800);
  text-align: left;
}

.error-message {
  background-color: var(--combine-library--error-100);
  border: 1px solid var(--combine-library--error-800);
  color: var(--combine-library--error-800);
  margin-top: 8px;
}

@media screen and (max-width: 767px) {
  .modal_small {
    padding: 26px 22px;
    gap: 12px;
  }

  .modal_small .h1-small {
    font-size: 22px;
  }
}

@media screen and (max-width: 479px) {
  .lightbox-modal {
    padding: 18px 14px;
  }

  .modal_small {
    padding: 22px 18px;
    border-radius: 14px;
    width: 100%;
  }
}
