.cta-dialog {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cta-dialog[hidden] {
  display: none;
}

.cta-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 15, 50, 0.72);
}

.cta-dialog-panel {
  position: relative;
  width: min(480px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  background: #0c1736;
  color: #ffffff;
  border: 1px solid rgba(239, 180, 80, 0.28);
  border-radius: 20px;
  padding: 32px 28px 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.cta-dialog.is-open .cta-dialog-panel {
  animation: cta-dialog-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.cta-dialog-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.cta-dialog-kicker {
  margin: 0 0 8px;
  color: #EFB450;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cta-dialog-panel h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cta-dialog-context {
  margin: 0 0 22px;
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cta-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.cta-field label {
  color: #c5cde0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cta-field input,
.cta-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  outline: none;
}

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

.cta-field input:focus,
.cta-field textarea:focus {
  border-color: #EFB450;
}

.cta-dialog-submit {
  width: 100%;
  margin-top: 6px;
  border: 0;
  border-radius: 12px;
  background: #EFB450;
  color: #070F32;
  font: inherit;
  font-weight: 700;
  padding: 13px 18px;
  cursor: pointer;
}

.cta-dialog-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

.cta-dialog-error {
  margin: 12px 0 0;
  color: #f0a8a8;
  font-size: 0.9rem;
}

.cta-dialog-success {
  padding: 28px 8px 12px;
  text-align: center;
}

.cta-dialog-success p {
  margin: 0 0 22px;
  color: #c5cde0;
  line-height: 1.6;
}

.cta-dialog-success button {
  border: 1px solid rgba(239, 180, 80, 0.5);
  border-radius: 12px;
  background: transparent;
  color: #EFB450;
  font: inherit;
  font-weight: 700;
  padding: 12px 22px;
  cursor: pointer;
}

.cta-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

@keyframes cta-dialog-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 700px) {
  .cta-dialog {
    align-items: flex-end;
    padding: 0;
  }

  .cta-dialog-panel {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    padding: 28px 20px 24px;
  }

  .cta-dialog.is-open .cta-dialog-panel {
    animation-name: cta-sheet-in;
  }
}

@keyframes cta-sheet-in {
  from { transform: translateY(100%); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cta-dialog.is-open .cta-dialog-panel {
    animation: none;
  }
}
