/* ======================================================
   VELTRIX TECHNOLOGIES - PERSONALIZED DEMO REQUEST SYSTEM
   Enterprise SaaS & ERP Live Demo Request UI Styles
   ====================================================== */

/* 1. Enterprise Section Card */
.personalized-demo-card {
  margin: 32px auto 0 auto;
  max-width: 720px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.personalized-demo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.35);
}

.personalized-demo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #06b6d4, #7c3aed);
}

.demo-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.demo-badge-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: demoPulse 1.8s infinite;
}

@keyframes demoPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.demo-card-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.demo-card-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 24px auto;
}

.btn-demo-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-demo-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-demo-trigger i {
  transition: transform 0.3s ease;
}

.btn-demo-trigger:hover i {
  transform: translateX(4px);
}


/* 2. Premium Modal Backdrop & Layout */
.demo-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.demo-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.demo-modal-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  border-radius: 24px;
  box-shadow: 0 25px 60px -15px rgba(26, 31, 110, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.94) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.demo-modal-backdrop.is-open .demo-modal-dialog {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.demo-modal-header {
  padding: 24px 28px 18px 28px;
  background: linear-gradient(135deg, #1a1f6e 0%, #312e81 100%);
  color: #ffffff;
  position: relative;
}

.demo-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.15);
  color: #a7f3d0;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.demo-modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.demo-modal-subtitle {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
  margin-bottom: 0;
}

.demo-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

/* Modal Body / Form */
.demo-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}

.demo-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .demo-form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.demo-form-group {
  margin-bottom: 16px;
}

.demo-form-group.full-width {
  grid-column: 1 / -1;
}

.demo-form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.demo-form-label span.req {
  color: #ef4444;
  margin-left: 2px;
}

.demo-form-control {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  color: #0f172a;
  background-color: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.demo-form-control:focus {
  background-color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3.5px rgba(79, 70, 229, 0.15);
}

textarea.demo-form-control {
  resize: vertical;
  min-height: 90px;
}

/* Modules Checkbox Grid */
.demo-modules-section {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.demo-modules-header {
  margin-bottom: 12px;
}

.demo-modules-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1a1f6e;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-modules-sub {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
}

.demo-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.demo-module-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.demo-module-chip:hover {
  border-color: #4f46e5;
  background: #f0fdf4;
}

.demo-module-chip input[type="checkbox"] {
  accent-color: #4f46e5;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.demo-module-chip.is-checked {
  background: #e0e7ff;
  border-color: #4f46e5;
  color: #1e1b4b;
}

/* Radio Pill Group */
.demo-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.demo-radio-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 20px;
  font-size: 0.83rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-radio-pill input[type="radio"] {
  accent-color: #4f46e5;
  width: 15px;
  height: 15px;
}

.demo-radio-pill:hover,
.demo-radio-pill.is-selected {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #ffffff;
}

/* Privacy Checkbox */
.demo-privacy-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  font-size: 0.84rem;
  color: #475569;
}

.demo-privacy-box input[type="checkbox"] {
  accent-color: #4f46e5;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Submit Action Button */
.demo-submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #1a1f6e 0%, #4f46e5 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.demo-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.45);
  background: linear-gradient(135deg, #111850 0%, #4338ca 100%);
}

.demo-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Error banner */
.demo-form-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}

/* Success View */
.demo-success-view {
  text-align: center;
  padding: 40px 24px;
  display: none;
}

.demo-success-icon {
  width: 72px;
  height: 72px;
  background: #d1fae5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 20px auto;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.25);
  animation: demoSuccessBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes demoSuccessBounce {
  0% { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.demo-success-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.demo-success-sub {
  font-size: 1.05rem;
  font-weight: 700;
  color: #059669;
  margin-bottom: 16px;
}

.demo-success-desc {
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 28px auto;
}

/* Honeypot field (hidden from view) */
.demo-hp-field {
  display: none !important;
}
