.landing-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.landing-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.landing-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  border: none;
  cursor: pointer;
}

.landing-modal__dialog {
  position: relative;
  width: min(100%, 480px);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
  padding: 28px 28px 24px;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s ease;
}

.landing-modal.is-open .landing-modal__dialog {
  transform: translateY(0) scale(1);
}

.landing-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #f3f4f6;
  color: #374151;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.landing-modal__close:hover {
  background: #e5e7eb;
}

.landing-modal__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
  padding-right: 36px;
  margin-bottom: 8px;
}

.landing-modal__subtitle {
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
  margin-bottom: 20px;
}

.landing-modal__context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.landing-modal__tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef3ff;
  color: #2f5fd6;
  font-size: 13px;
  font-weight: 500;
}

.landing-modal__form {
  display: grid;
  gap: 14px;
}

.landing-modal__field {
  display: grid;
  gap: 6px;
}

.landing-modal__label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.landing-modal__label span {
  color: #ef4444;
}

.landing-modal__input,
.landing-modal__select,
.landing-modal__textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: #111827;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.landing-modal__input:focus,
.landing-modal__select:focus,
.landing-modal__textarea:focus {
  outline: none;
  border-color: var(--accent, #4f7ef7);
  box-shadow: 0 0 0 3px rgba(79, 126, 247, 0.18);
}

.landing-modal__input:read-only {
  background: #f9fafb;
  color: #4b5563;
}

.landing-modal__textarea {
  min-height: 96px;
  resize: vertical;
}

.landing-modal__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #4b5563;
}

.landing-modal__check input {
  margin-top: 2px;
  flex-shrink: 0;
}

.landing-modal__submit {
  margin-top: 4px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--accent, #4f7ef7);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.landing-modal__submit:hover {
  background: var(--accent-hover, #3d6ee8);
}

.landing-modal__submit:active {
  transform: scale(0.98);
}

.landing-modal__note {
  font-size: 12px;
  line-height: 1.45;
  color: #9ca3af;
  text-align: center;
}

.landing-modal__error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.landing-modal__error[hidden] {
  display: none;
}

.landing-modal__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.landing-modal__success {
  text-align: center;
  padding: 12px 0 8px;
}

.landing-modal__success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f7ed;
  color: #16a34a;
  font-size: 28px;
  font-weight: 700;
}

.landing-modal__success-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.landing-modal__success-text {
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
  margin-bottom: 20px;
}

.landing-modal__success-btn {
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent, #4f7ef7);
  cursor: pointer;
}

@media (max-width: 480px) {
  .landing-modal__dialog {
    padding: 22px 18px 18px;
    border-radius: 16px;
  }

  .landing-modal__title {
    font-size: 20px;
  }
}
