/* ============================================
   BlueTime — Design System & Styles
   Wise in Blue · wiseinblue.com/bluetime
   ============================================ */

/* --- Font Inter self-hosted (GDPR-clean) --- */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-greek.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0370-03FF;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-greek-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+1F00-1FFF;
}

/* --- CSS Variables --- */
:root {
  --primary: #1a56db;
  --primary-light: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.3);
  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.25);
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.2);
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.2);

  --bg-dark: #0a0f1e;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --bg-card-selected: rgba(59, 130, 246, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(59, 130, 246, 0.5);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Light Mode Overrides --- */
[data-theme="light"] {
  --primary: #1a56db;
  --primary-light: #2563eb;
  --primary-glow: rgba(37, 99, 235, 0.2);
  --accent-gold: #d97706;
  --accent-gold-glow: rgba(217, 119, 6, 0.15);
  --danger: #dc2626;
  --danger-glow: rgba(220, 38, 38, 0.1);
  --success: #059669;
  --success-glow: rgba(5, 150, 105, 0.1);

  --bg-dark: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-card-selected: rgba(37, 99, 235, 0.06);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-active: rgba(37, 99, 235, 0.4);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
}

[data-theme="light"] body {
  background: linear-gradient(135deg, #e0e9ff 0%, #f1f5f9 60%, #e8f5f0 100%);
}

[data-theme="light"] .bg-particles::before {
  background: radial-gradient(ellipse at 30% 20%, rgba(26, 86, 219, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

[data-theme="light"] .form-select option {
  background: #ffffff;
  color: #0f172a;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- Background Particles --- */
.bg-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-particles::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(26, 86, 219, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 60%);
  animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(1deg); }
  66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

/* --- App Container --- */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 24px 40px;
  min-height: 100vh;
}

/* --- Header --- */
.header {
  padding: 14px 0 8px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.logo-img {
  height: 28px;
  width: auto;
  flex-shrink: 0;
  display: none;
}

@media (min-width: 560px) {
  .logo-img { display: block; }
}

.logo-wise {
  color: var(--text-secondary);
}

.logo-sep {
  color: var(--text-muted);
  font-weight: 300;
}

.logo-blue {
  background: linear-gradient(135deg, var(--primary-light), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 1.3rem;
}

.header-hero {
  width: 100%;
  text-align: center;
  padding: 10px 0 4px;
}

.header-hero-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
  line-height: 1.2;
}

.header-hero-icon {
  font-size: 2rem;
  margin: 4px 0 8px;
  line-height: 1;
}

.header-hero-sub {
  color: var(--text-muted);
  font-size: 0.97rem;
  font-weight: 400;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.5;
}

@media (min-width: 560px) {
  .header-hero-title { font-size: 1.9rem; }
  .header-hero-sub   { font-size: 1.02rem; }
}

/* --- Progress Bar --- */
.progress-bar-container {
  padding: 24px 0 32px;
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 500px;
  margin: 0 auto;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--transition-smooth);
}

.progress-step.active .step-circle {
  background: var(--primary);
  border-color: var(--primary-light);
  color: white;
  box-shadow: 0 0 20px var(--primary-glow);
}

.progress-step.completed .step-circle {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.step-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
}

.progress-step.active .step-label {
  color: var(--primary-light);
}

.progress-step.completed .step-label {
  color: var(--success);
}

.progress-line {
  flex: 1;
  height: 2px;
  background: var(--border-subtle);
  margin: 0 4px;
  margin-bottom: 22px;
  border-radius: 2px;
  overflow: hidden;
  min-width: 40px;
}

.progress-line-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Steps --- */
.step {
  display: none;
  animation: fadeSlideIn 0.5s ease forwards;
}

.step.active {
  display: block;
}

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

.step-content {
  max-width: 100%;
}

.step-title {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.step-3 .step-title {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-light), #818cf8, var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-red {
  background: linear-gradient(135deg, var(--accent-gold), var(--danger));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 600px;
}

/* --- Form Elements --- */
.form-group {
  margin-bottom: 28px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.form-select {
  width: 100%;
  max-width: 400px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color var(--transition-fast);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-select option {
  background: #1e293b;
  color: var(--text-primary);
}

/* --- Sector Tabs --- */
.sector-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.sector-tab {
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.sector-tab:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  color: var(--text-primary);
}

.sector-tab.active {
  background: var(--bg-card-selected);
  border-color: var(--primary-light);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 0 0 2px var(--primary-glow);
}

[data-theme="light"] .sector-tab {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.08);
  color: var(--text-secondary);
}

[data-theme="light"] .sector-tab:hover {
  background: rgba(37, 99, 235, 0.06);
  border-color: var(--primary-light);
}

[data-theme="light"] .sector-tab.active {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--primary-light);
  color: var(--primary);
}

/* --- Aspiration Box --- */
.aspiration-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 24px 0;
  text-align: center;
}

.aspiration-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.aspiration-text strong {
  color: var(--text-primary);
}

.aspiration-text em {
  color: var(--primary-light);
  font-style: normal;
  font-weight: 600;
}

[data-theme="light"] .aspiration-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(16, 185, 129, 0.04) 100%);
  border-color: rgba(37, 99, 235, 0.15);
}

[data-theme="light"] .aspiration-text {
  color: var(--text-secondary);
}

/* --- Sliders --- */
.slider-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--border-subtle);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 10px var(--primary-glow);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 20px var(--primary-glow);
}

.slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 10px var(--primary-glow);
  cursor: pointer;
}

.slider-value-display {
  display: flex;
  align-items: baseline;
  gap: 2px;
  min-width: 80px;
  justify-content: flex-end;
}

.slider-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-light);
  font-variant-numeric: tabular-nums;
}

.slider-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.slider-context {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-active);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

.btn-next {
  margin-top: 12px;
}

.btn-cta {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-restart {
  margin-top: 16px;
  font-size: 0.85rem;
  padding: 10px 20px;
}

.step-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 12px;
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  opacity: 0.6;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-glow), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.service-card:hover {
  opacity: 0.85;
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.service-card.selected {
  opacity: 1;
  border-color: var(--border-active);
  background: var(--bg-card-selected);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.service-card.selected::before {
  opacity: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.card-icon {
  font-size: 1.6rem;
}

.card-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary-light);
}

.badge-vrm {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.card-hours {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.service-card.selected .card-hours {
  opacity: 1;
  max-height: 40px;
  margin-top: 4px;
}

.card-hours label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-hours .mini-slider {
  flex: 1;
  min-width: 40px;
}

.card-hours .mini-value {
  flex-shrink: 0;
  min-width: 28px;
}

.mini-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.mini-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 2px solid var(--bg-dark);
  cursor: pointer;
}

.mini-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 2px solid var(--bg-dark);
  cursor: pointer;
}

.mini-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-light);
  min-width: 28px;
  text-align: right;
}

/* --- Live Counter --- */
.live-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.counter-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.counter-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.counter-hours {
  color: var(--accent-gold);
}

.counter-divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
}

/* --- Stress Meter --- */
.stress-meter {
  margin-bottom: 8px;
}

.stress-slider-container {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 400px;
}

.stress-emoji {
  font-size: 1.5rem;
}

.stress-slider {
  flex: 1;
}

.stress-slider::-webkit-slider-thumb {
  background: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold-glow);
}

.stress-slider::-moz-range-thumb {
  background: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold-glow);
}

.stress-value {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* --- Results --- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.results-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 600px;
  margin: 0 auto;
  margin-bottom: 32px;
}

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: cardPop 0.6s ease forwards;
  opacity: 0;
}

.result-card:nth-child(1) { animation-delay: 0.1s; }
.result-card:nth-child(2) { animation-delay: 0.3s; }
.result-card:nth-child(3) { animation-delay: 0.5s; }

@keyframes cardPop {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.result-cost {
  border-color: rgba(239, 68, 68, 0.2);
}

.result-cost::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, var(--danger-glow), transparent 70%);
  pointer-events: none;
}

.result-time {
  border-color: rgba(16, 185, 129, 0.2);
}

.result-time::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, var(--success-glow), transparent 70%);
  pointer-events: none;
}

.result-opportunity {
  border-color: rgba(245, 158, 11, 0.2);
}

.result-opportunity::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, var(--accent-gold-glow), transparent 70%);
  pointer-events: none;
}

.result-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.result-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.result-big-number {
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
  font-variant-numeric: tabular-nums;
}

.result-cost .result-big-number {
  color: var(--danger);
}

.result-time .result-big-number {
  color: var(--success);
}

.result-opportunity .result-big-number {
  color: var(--accent-gold);
}

.result-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.result-yearly {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.result-yearly strong {
  color: var(--text-primary);
}

/* --- Chart --- */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 24px;
}

.chart-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 16px;
}

/* --- Stress Message --- */
.stress-message {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(239, 68, 68, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.stress-msg-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.stress-message p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.stress-message strong {
  color: var(--accent-gold);
}

/* --- Benchmark --- */
.benchmark-box {
  background: var(--bg-card);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 32px;
}

.benchmark-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.benchmark-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.benchmark-text strong {
  color: var(--primary-light);
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 40px 0 16px;
  border-top: 1px solid var(--border-subtle);
}

.cta-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.cta-sub {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 40px 0 20px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

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

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

/* --- Responsive --- */
@media (max-width: 640px) {
  .app-container {
    padding: 16px 16px 32px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .slider-container {
    flex-wrap: wrap;
  }

  .slider-value-display {
    min-width: auto;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-cta {
    width: 100%;
    justify-content: center;
  }

  .step-buttons {
    flex-direction: column-reverse;
  }

  .live-counter {
    gap: 16px;
    padding: 12px 16px;
  }

  .progress-steps {
    gap: 0;
  }

  .step-label {
    font-size: 0.6rem;
  }

  .step-circle {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  .stress-message {
    flex-direction: column;
    text-align: center;
  }

  .benchmark-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .header-controls {
    margin-left: 0;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-cta {
    width: 100%;
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   HEADER CONTROLS (lang + theme)
   ============================================= */
.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: all var(--transition-fast);
  color: var(--text-primary);
}

.theme-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
}

/* =============================================
   LANGUAGE SELECTOR
   ============================================= */
#lang-selector-wrapper {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
}

.lang-flag-img {
  border-radius: 2px;
  display: block;
}

.lang-code {
  letter-spacing: 0.5px;
}

.lang-arrow {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #1e293b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  list-style: none;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 100;
  display: none;
  backdrop-filter: blur(12px);
}

[data-theme="light"] .lang-dropdown {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.lang-dropdown.open {
  display: block;
  animation: fadeSlideIn 0.15s ease forwards;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lang-option:hover,
.lang-option.selected {
  background: var(--bg-card-selected);
}

.lang-name {
  font-size: 0.82rem;
  color: var(--text-primary);
  font-family: var(--font);
}

.lang-btn-attract {
  animation: attractPulse 1.5s ease 1s forwards;
}

@keyframes attractPulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 3px var(--primary-glow); }
}

/* =============================================
   FORM INPUT (used in contact form)
   ============================================= */
.form-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.92rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-input.input-error {
  border-color: var(--danger);
}

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

.form-error {
  display: none;
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 4px;
}

.form-optional {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 4px;
  font-weight: 400;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* =============================================
   CONTACT FORM WRAPPER
   ============================================= */
.contact-form-wrapper {
  margin-top: 32px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 32px;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(12px);
  max-width: 600px;
  margin: 24px auto 0;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.form-back-btn {
  margin-top: 16px;
  display: block;
  text-align: center;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 24px 0;
}

.form-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--success-glow);
  border: 2px solid var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--success);
  font-weight: 700;
}

.form-success h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--success);
}

.form-success p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 380px;
}
