/**
 * NumeraIQ Trial Modal Styles
 * Matching React TrialModal.tsx exactly - bottom-right positioned
 */

/* Backdrop (matching React: fixed inset-0 bg-dark/80 backdrop-blur-sm z-50) */
.trial-backdrop {
  position: fixed;
  inset: 0;
  background-color: hsl(var(--dark) / 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.trial-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Modal (matching React: fixed right-4 bottom-4 z-50 w-full max-w-md) */
.trial-modal {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 151;
  width: calc(100% - 2rem);
  max-width: 28rem;
  background-color: hsl(var(--cream));
  border: 1px solid hsl(var(--dark) / 0.1);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(20px, 20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trial-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, 0);
}

/* Header (matching React: bg-dark text-cream p-6 relative) */
.trial-header,
.trial-modal > div > .bg-dark {
  background-color: #0a0a0a !important;
  color: #F5F3EE !important;
  padding: 1.5rem;
  position: relative;
}

/* Modal header label - lime color */
#trial-modal .bg-dark p.text-lime,
#trial-modal .bg-dark .label-technical,
.trial-modal .bg-dark p.text-lime,
.trial-modal .bg-dark .label-technical {
  color: #D4FF00 !important;
}

/* Modal header headline - white/cream color */
#trial-modal .bg-dark h2,
.trial-modal .bg-dark h2 {
  color: #F5F3EE !important;
}

/* Close button (matching React: absolute top-4 right-4 text-cream/60 hover:text-cream) */
.trial-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(var(--cream) / 0.6);
  transition: color 0.2s ease;
}

.trial-close:hover {
  color: hsl(var(--cream));
}

.trial-close svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Headline (matching React: text-2xl md:text-3xl font-bold tracking-tight) */
.trial-headline {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: hsl(var(--cream));
  margin: 0;
}

@media (min-width: 768px) {
  .trial-headline {
    font-size: 1.875rem;
  }
}

/* Content area (matching React: p-6) */
.trial-content {
  padding: 1.5rem;
}

/* Benefits list (matching React: mb-6 space-y-3) */
.trial-benefits {
  list-style: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Benefit item (matching React: flex items-center gap-3) */
.trial-benefit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Benefit check (matching React: w-5 h-5 bg-lime rounded-full) */
.benefit-check {
  width: 1.25rem;
  height: 1.25rem;
  background-color: hsl(var(--lime));
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-check svg {
  width: 0.75rem;
  height: 0.75rem;
  color: hsl(var(--dark));
}

.trial-benefit span:last-child {
  font-size: 0.875rem;
  color: hsl(var(--dark));
}

/* Form (matching React: space-y-4) */
.trial-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Form label (matching React: label-technical text-muted-foreground) */
.form-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--text-muted));
}

/* Form input (matching React: w-full px-4 py-3 bg-white border border-dark/20...) */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: white;
  border: 1px solid hsl(var(--dark) / 0.2);
  color: hsl(var(--dark));
  font-family: var(--font-mono);
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}

.form-input::placeholder {
  color: hsl(var(--dark) / 0.4);
}

.form-input:focus {
  outline: none;
  border-color: hsl(var(--dark));
}

/* Submit button (matching React: w-full btn-lime) */
.trial-submit {
  width: 100%;
  justify-content: center;
}

.trial-submit svg {
  transition: transform 0.2s ease;
}

.trial-submit:hover svg {
  transform: translateX(4px);
}

/* Disclaimer (matching React: text-xs text-muted-foreground text-center mt-4) */
.trial-disclaimer {
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
  text-align: center;
  margin-top: 0.5rem;
}

/* Success state (matching React: py-8 text-center) */
.trial-success {
  display: none;
  padding: 2rem 0;
  text-align: center;
}

.trial-success.is-visible {
  display: block;
}

.trial-form-container.is-hidden {
  display: none;
}

/* Success icon (matching React: w-16 h-16 text-lime mx-auto mb-4) */
.success-icon {
  width: 4rem;
  height: 4rem;
  color: hsl(var(--lime));
  margin: 0 auto 1rem;
}

/* Success title (matching React: text-xl font-bold text-dark mb-2) */
.success-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--dark));
  margin: 0 0 0.5rem 0;
}

/* Success text (matching React: text-muted-foreground) */
.success-text {
  color: hsl(var(--text-muted));
  margin: 0;
}
