/**
 * Rule 219 Exemption Analyzer - Unified Intake UI Styles
 * Path: /static/css/ext_ui/unified_intake.css
 * 
 * Envera Consulting - Light Theme
 */

 :root {
  /* Envera brand colors */
  --envera-green: #76A642;
  --envera-green-dark: #5e8c32;
  --envera-green-light: #8ab856;
  --envera-green-dim: rgba(118, 166, 66, 0.12);
  --envera-green-subtle: rgba(118, 166, 66, 0.06);
  
  /* Light theme base */
  --bg-base: #ffffff;
  --bg-elevated: #f5f7f9;
  --bg-surface: #ffffff;
  --bg-hover: #ebedf0;
  --bg-chat: #f0f2f4;
  
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-default: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.15);
  
  --text-primary: #1a1d21;
  --text-secondary: #4b5563;
  --text-tertiary: #6b7280;
  --text-muted: #9ca3af;
  
  /* Semantic colors */
  --accent-green: #059669;
  --accent-green-dim: rgba(5, 150, 105, 0.12);
  --accent-amber: #d97706;
  --accent-amber-dim: rgba(217, 119, 6, 0.12);
  --accent-red: #dc2626;
  --accent-red-dim: rgba(220, 38, 38, 0.1);
  --accent-blue: #3b82f6;
  --accent-blue-dim: rgba(59, 130, 246, 0.1);
  
  /* Thinking state - use Envera green */
  --thinking-bg: linear-gradient(135deg, rgba(118, 166, 66, 0.06), rgba(94, 140, 50, 0.1));
  --thinking-border: rgba(118, 166, 66, 0.3);
  
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Subtle background gradient */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 0%, rgba(118, 166, 66, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(94, 140, 50, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.logo {
  height: 30px;
  opacity: 1;
}

.header-text {
  flex: 1;
  min-width: 200px;
}

.header-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.header-sub {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.header-chip {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--envera-green-dim);
  color: var(--envera-green);
  font-size: 0.72rem;
  font-weight: 500;
  border: 1px solid rgba(118, 166, 66, 0.2);
}

/* Chat panel */
.chat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-default);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.chat-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-icon {
  width: 36px;
  height: 36px;
  background: var(--envera-green-dim);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.chat-title {
  font-weight: 600;
  font-size: 15px;
}

.chat-meta {
  font-size: 12px;
  color: var(--text-tertiary);
}

.status-chip {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-surface);
  color: var(--text-tertiary);
  border: 1px solid var(--border-subtle);
}

.status-chip.active {
  background: var(--envera-green-dim);
  color: var(--envera-green);
  border-color: rgba(118, 166, 66, 0.25);
}

.status-chip.complete {
  background: var(--accent-green-dim);
  color: var(--accent-green);
  border-color: rgba(16, 185, 129, 0.25);
}

.status-chip.error {
  background: var(--accent-red-dim);
  color: var(--accent-red);
  border-color: rgba(239, 68, 68, 0.25);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-chip.active .status-dot {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

.sample-btn {
  padding: 6px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sample-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

/* Chat messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 380px;
  max-height: 55vh;
  background: var(--bg-chat);
}

.msg {
  display: flex;
  gap: 12px;
  animation: msgIn 0.3s ease;
}

.msg.user {
  flex-direction: row-reverse;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.msg.assistant .avatar {
  background: var(--envera-green-dim);
  color: var(--envera-green);
}

.msg.user .avatar {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.msg-body {
  max-width: 85%;
}

.msg-label {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.msg.user .msg-label {
  text-align: right;
}

.bubble {
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 1.55;
}

.msg.assistant .bubble {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.msg.user .bubble {
  background: var(--envera-green);
  color: white;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 12px;
  animation: msgIn 0.3s ease;
}

.typing-indicator .avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  background: var(--envera-green-dim);
  color: var(--envera-green);
}

.typing-bubble {
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--envera-green);
  border-radius: 50%;
  animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { 
    transform: translateY(0); 
    opacity: 0.4;
  }
  30% { 
    transform: translateY(-8px); 
    opacity: 1;
  }
}

/* Thinking box */
.thinking-box {
  background: var(--thinking-bg);
  border: 1px solid var(--thinking-border);
  border-radius: 12px;
  padding: 14px 16px;
}

.thinking-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(118, 166, 66, 0.15);
}

.thinking-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--envera-green);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.thinking-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--envera-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.thinking-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.thinking-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0;
  animation: stepIn 0.3s ease forwards;
  flex-wrap: wrap;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.step-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  background: var(--bg-hover);
  color: var(--text-muted);
  flex-shrink: 0;
}

.thinking-step.active .step-icon {
  background: var(--accent-amber-dim);
  color: var(--accent-amber);
}

.thinking-step.done .step-icon {
  background: var(--accent-green-dim);
  color: var(--accent-green);
}

.thinking-step.done {
  color: var(--text-primary);
}

.thinking-step.error .step-icon {
  background: var(--accent-red-dim);
  color: var(--accent-red);
}

/* Step detail - shows subgroup/subclass badges under steps */
.step-detail {
  width: 100%;
  margin-left: 28px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Badge for subgroup/subclass names */
.detail-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-blue-dim);
  color: var(--accent-blue);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Confidence percentage */
.detail-conf {
  font-size: 11px;
  color: var(--accent-green);
  font-weight: 600;
  padding: 2px 6px;
  background: var(--accent-green-dim);
  border-radius: 4px;
}

/* Note text (e.g., "→ narrowing...") */
.detail-note {
  font-size: 11px;
  color: var(--text-tertiary);
  font-style: italic;
}

/* Thinking result badge */
.thinking-result {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--accent-green-dim);
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: 8px;
}

.thinking-result.error {
  background: var(--accent-red-dim);
  border-color: rgba(220, 38, 38, 0.2);
}

.thinking-result-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.thinking-result.error .thinking-result-label {
  color: var(--accent-red);
}

.thinking-result-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2px;
}

/* Finalized thinking box (after processing completes) */
.thinking-box.finalized {
  padding: 0;
  background: transparent;
  border: none;
}

.thinking-box.finalized .thinking-result {
  margin-top: 0;
}

/* Question styling */
.question-num {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.question-text {
  font-weight: 500;
  color: var(--text-primary);
}

/* Final result */
.result-box {
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.result-box.exempt {
  background: var(--accent-green-dim);
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.result-box.not-exempt {
  background: var(--accent-red-dim);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.result-box.uncertain {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.result-status {
  font-weight: 700;
  font-size: 15px;
}

.result-box.exempt .result-status {
  color: var(--accent-green);
}

.result-box.not-exempt .result-status {
  color: var(--accent-red);
}

.result-box.uncertain .result-status {
  color: rgb(245, 158, 11);
}

.result-citation {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Input area */
.input-area {
  padding: 16px 18px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.input-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

textarea {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: none;
  min-height: 48px;
  max-height: 120px;
  transition: border-color 0.2s ease;
}

textarea:focus {
  outline: none;
  border-color: var(--envera-green);
}

textarea::placeholder {
  color: var(--text-muted);
}

.send-btn {
  padding: 12px 22px;
  background: var(--envera-green);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.send-btn:hover:not(:disabled) {
  background: var(--envera-green-dark);
  transform: translateY(-1px);
}

.send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.send-btn svg {
  width: 16px;
  height: 16px;
}

/* Disclaimer */
.disclaimer {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--accent-amber-dim);
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.disclaimer strong {
  color: var(--accent-amber);
}

.disclaimer a {
  color: var(--accent-amber);
  text-decoration: underline;
}

/* Footer */
.footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

.footer a {
  color: var(--text-tertiary);
  text-decoration: none;
}

.footer a:hover {
  color: var(--envera-green);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* =========================================================================
   NEW: Feedback Inline (appears below result box)
   ========================================================================= */

.feedback-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.feedback-inline.visible {
  opacity: 1;
  transform: translateY(0);
}

.feedback-inline-label {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.feedback-inline-buttons {
  display: flex;
  gap: 6px;
}

.feedback-btn-mini {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.feedback-btn-mini:hover {
  background: var(--bg-hover);
  transform: scale(1.1);
}

.feedback-btn-mini.selected.positive {
  background: var(--accent-green-dim);
  border-color: var(--accent-green);
}

.feedback-btn-mini.selected.negative {
  background: var(--accent-red-dim);
  border-color: var(--accent-red);
}

.feedback-inline-thanks {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-green);
}

.feedback-inline-thanks.active {
  display: flex;
}

/* =========================================================================
   NEW: Feedback Expanded (text area)
   ========================================================================= */

.feedback-expanded {
  display: none;
  padding: 14px;
  margin: 12px 0;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  animation: feedbackSlideDown 0.3s ease;
}

.feedback-expanded.active {
  display: block;
}

@keyframes feedbackSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.feedback-expanded-header {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.feedback-textarea {
  width: 100%;
  min-height: 70px;
  padding: 10px 12px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  background: var(--bg-surface);
  color: var(--text-primary);
}

.feedback-textarea:focus {
  outline: none;
  border-color: var(--envera-green);
  box-shadow: 0 0 0 3px var(--envera-green-dim);
}

.feedback-textarea::placeholder {
  color: var(--text-muted);
}

.feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.feedback-skip {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.feedback-skip:hover {
  background: var(--bg-hover);
}

.feedback-submit {
  padding: 8px 14px;
  background: var(--envera-green);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.feedback-submit:hover {
  background: var(--envera-green-dark);
}

/* =========================================================================
   NEW: CTA Container
   ========================================================================= */

.cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-default);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.cta-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-text {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--envera-green);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(118, 166, 66, 0.3);
  transition: all 0.2s ease;
}

.cta-btn:hover {
  background: var(--envera-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(118, 166, 66, 0.35);
}

.cta-btn svg {
  width: 16px;
  height: 16px;
}

/* =========================================================================
   NEW: Contact Modal
   ========================================================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 24px;
  width: 90%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.modal-close {
  width: 28px;
  height: 28px;
  border: none;
  background: var(--bg-elevated);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.modal-form-group {
  margin-bottom: 14px;
}

.modal-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.modal-label .required {
  color: var(--accent-red);
}

.modal-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-input:focus {
  outline: none;
  border-color: var(--envera-green);
  box-shadow: 0 0 0 3px var(--envera-green-dim);
}

.modal-input::placeholder {
  color: var(--text-muted);
}

textarea.modal-input {
  min-height: 80px;
  resize: vertical;
}

.modal-submit {
  width: 100%;
  padding: 12px 16px;
  background: var(--envera-green);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-top: 16px;
}

.modal-submit:hover:not(:disabled) {
  background: var(--envera-green-dark);
}

.modal-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.modal-submit svg {
  width: 16px;
  height: 16px;
}

.modal-success {
  display: none;
  text-align: center;
  padding: 16px 0;
}

.modal-success.active {
  display: block;
}

.modal-success-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-green-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 24px;
  color: var(--accent-green);
}

.modal-success-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.modal-success-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.modal-success-btn {
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-success-btn:hover {
  background: var(--bg-hover);
}

/* =========================================================================
   NEW: Disclaimer Modal Styles
   ========================================================================= */

.warning-banner {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}

.warning-banner-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.warning-banner-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
}

.disclaimer-text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
  text-align: center;
}

#disclaimerModal .modal-title {
  text-align: center;
  margin-bottom: 16px;
}

.disclaimer-text a {
  color: var(--envera-green);
  text-decoration: none;
  font-weight: 500;
}

.disclaimer-text a:hover {
  text-decoration: underline;
}