/* Dynamic QR Code Generator - Scoped CSS with prefix dq- */

/* Wrapper */
.dynamic-qr-generator-wrapper {
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  min-height: 100vh;
  background: #ffffff;
}

/* Override global body purple gradient for this page */
body:has(.dynamic-qr-generator-wrapper),
html:has(.dynamic-qr-generator-wrapper) {
  background: #ffffff !important;
}

/* Form Card */
.dq-form-card {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dq-form-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.dq-form-header {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #6366f1 100%);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dq-form-header h3 {
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
  letter-spacing: 0.025em;
}

.dq-form-section {
  padding: 2rem;
}

.dq-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.75rem;
  letter-spacing: 0.025em;
}

.dq-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.875rem;
  font-size: 0.95rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f8fafc;
}

.dq-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  background: white;
}

.dq-input::placeholder {
  color: #94a3b8;
}

.dq-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #475569;
  cursor: pointer;
  font-weight: 500;
}

.dq-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: #3b82f6;
  cursor: pointer;
}

.dq-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #6366f1 100%);
  color: white;
  padding: 1.125rem 2rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
  letter-spacing: 0.025em;
}

.dq-submit-btn:hover {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
  box-shadow: 0 8px 12px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.dq-submit-btn:active {
  transform: translateY(0);
}

/* Preview Card */
.dq-preview-card {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dq-preview-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.dq-preview-header {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dq-preview-header h3 {
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
  letter-spacing: 0.025em;
}

.dq-spinner {
  display: inline-block;
  width: 3rem;
  height: 3rem;
  border: 3px solid #e2e8f0;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.dq-error {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 6px rgba(239, 68, 68, 0.1);
}

.dq-qr-image {
  display: block;
  margin: 0 auto;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  max-width: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dq-qr-image:hover {
  transform: scale(1.05);
}

.dq-download-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dq-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.dq-download-btn:active {
  transform: translateY(0);
}

.dq-download-png {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.dq-download-png:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.dq-download-pdf {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.dq-download-pdf:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* Content Card */
.dq-content-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  padding: 2.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.dq-content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0ea5e9 0%, #3b82f6 50%, #6366f1 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dq-content-card:hover::before {
  opacity: 1;
}

.dq-content-card:hover {
  box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.1), 0 15px 15px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-4px);
}

/* FAQ Item */
.dq-faq-item {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 1rem;
}

.dq-faq-item:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1);
}

.dq-faq-toggle {
  width: 100%;
  padding: 1.5rem 2rem;
  text-align: left;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dq-faq-toggle:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.dq-faq-question {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
  letter-spacing: 0.025em;
}

.dq-faq-answer {
  padding: 1.5rem 2rem;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.75;
  background: #fafbfc;
  border-top: 1px solid #e2e8f0;
}

/* Section Heading */
.dq-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.75rem;
}

.dq-section-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dq-section-icon.blue {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
}

.dq-section-icon.green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.dq-section-icon.amber {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Modern Feature Card (inner cards) */
.dq-feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.dq-feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.04) 0%, rgba(99, 102, 241, 0.04) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.dq-feature-card:hover::after {
  opacity: 1;
}

.dq-feature-card:hover {
  border-color: #bae6fd;
  box-shadow: 0 12px 20px -8px rgba(14, 165, 233, 0.25);
  transform: translateY(-4px);
}

/* Gradient numbered badge */
.dq-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}

.dq-badge-circle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-size: 0.9rem;
}

.dq-badge-rounded {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  font-size: 1.1rem;
}

/* Step row with connector */
.dq-step-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 0.875rem;
  transition: all 0.25s ease;
}

.dq-step-row:hover {
  background: linear-gradient(135deg, #f0f9ff 0%, #eff6ff 100%);
}

/* Bullet list item */
.dq-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  transition: all 0.25s ease;
}

.dq-bullet-item:hover {
  background: #f0fdf4;
}

.dq-bullet-dot {
  flex-shrink: 0;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  margin-top: 0.45rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}
