/* ============================
   GLOBAL STYLES & BRAND COLORS
   ============================ */
:root {
  --brand-red: #C53030;
  --brand-red-dark: #9B2C2C;
  --brand-red-light: #E53E3E;
  --brand-black: #1a1a1a;
  --brand-gray: #2d2d2d;
  --brand-white: #ffffff;
  --brand-off-white: #f7f7f7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--brand-black);
  min-height: 100vh;
  color: #333;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-black) 70%);
  opacity: 0.95;
  z-index: 0;
}

#app {
  width: 100%;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ============================
   LOGO WATERMARK
   ============================ */
.logo-watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.08;
  width: 500px;
  height: 500px;
  background: url('/static/logo.png') center center no-repeat;
  background-size: contain;
  z-index: 0;
  pointer-events: none;
}

/* ============================
   SCREEN MANAGEMENT
   ============================ */
.screen {
  display: none;
  min-height: 100vh;
  padding: 2rem;
  animation: fadeIn 0.5s ease-in;
  position: relative;
  z-index: 1;
}

.screen.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

/* ============================
   WELCOME SCREEN
   ============================ */
.hero-section {
  text-align: center;
  max-width: 800px;
  background: var(--brand-white);
  padding: 4rem 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  border: 4px solid var(--brand-red);
}

.logo-container {
  margin-bottom: 2rem;
}

.logo-container img {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  display: block;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--brand-black);
}

.hero-title .highlight {
  color: var(--brand-red);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #4a5568;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* ============================
   BUTTONS
   ============================ */
.btn-primary {
  background: var(--brand-red);
  color: var(--brand-white);
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(197, 48, 48, 0.4);
}

.btn-primary:hover {
  background: var(--brand-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 48, 48, 0.6);
}

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

.btn-primary.btn-large {
  padding: 1.25rem 3rem;
  font-size: 1.25rem;
}

.btn-primary i {
  margin-right: 0.5rem;
}

.btn-submit {
  background: var(--brand-red);
  color: var(--brand-white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 0.5rem;
}

.btn-submit:hover {
  background: var(--brand-red-dark);
  transform: scale(1.05);
}

/* ============================
   PROGRESS BAR
   ============================ */
.progress-bar {
  width: 100%;
  max-width: 800px;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.progress-fill {
  height: 100%;
  background: var(--brand-red);
  border-radius: 10px;
  transition: width 0.5s ease;
  width: 0%;
  box-shadow: 0 0 10px rgba(197, 48, 48, 0.5);
}

/* ============================
   CHAT INTERFACE
   ============================ */
.chat-container {
  width: 100%;
  max-width: 800px;
  background: var(--brand-white);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  height: 70vh;
  overflow: hidden;
  border: 3px solid var(--brand-red);
}

.chat-messages {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--brand-off-white);
}

.chat-bubble {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 80%;
  animation: slideIn 0.3s ease;
}

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

.bot-bubble {
  align-self: flex-start;
}

.user-bubble {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.bot-bubble i {
  color: var(--brand-red);
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.user-bubble i {
  color: var(--brand-black);
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.chat-bubble span {
  background: #e8e8e8;
  padding: 1rem 1.25rem;
  border-radius: 15px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--brand-black);
}

.user-bubble span {
  background: var(--brand-red);
  color: var(--brand-white);
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

/* ============================
   CHAT INPUT AREA
   ============================ */
.chat-input-area {
  padding: 1.5rem 2rem;
  border-top: 2px solid #e5e7eb;
  background: var(--brand-white);
}

.input-group {
  display: flex;
  align-items: center;
}

.chat-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.chat-input:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.1);
}

/* ============================
   OPTIONS & SELECTIONS
   ============================ */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.option-btn {
  background: white;
  border: 2px solid #e5e7eb;
  padding: 1rem;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  color: var(--brand-black);
}

.option-btn:hover {
  border-color: var(--brand-red);
  background: #fff5f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197, 48, 48, 0.2);
}

.multi-select-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.checkbox-option:hover {
  border-color: var(--brand-red);
  background: #fff5f5;
}

.checkbox-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--brand-red);
}

.checkbox-option span {
  font-size: 1rem;
  color: var(--brand-black);
}

.mt-3 {
  margin-top: 1.5rem;
}

/* ============================
   BUDGET SLIDER
   ============================ */
.slider-container {
  padding: 1rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.slider-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--brand-black);
}

.slider-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-red);
}

.budget-slider {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  outline: none;
  -webkit-appearance: none;
  background: #e5e7eb;
  margin-bottom: 1rem;
}

.budget-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-red);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(197, 48, 48, 0.5);
}

.budget-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-red);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(197, 48, 48, 0.5);
  border: none;
}

.tier-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.tier-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
  flex: 1;
}

/* ============================
   REVEAL SCREEN
   ============================ */
.reveal-container {
  width: 100%;
  max-width: 900px;
  background: var(--brand-white);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  padding: 3rem;
  border: 4px solid var(--brand-red);
}

.reveal-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--brand-red);
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: var(--brand-red);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.plan-tier-badge {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-white);
}

.plan-budget {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-white);
}

.plan-summary-text {
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 12px;
  margin-bottom: 2rem;
  border-left: 4px solid var(--brand-red);
}

.plan-summary-text p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #4b5563;
}

.services-list h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--brand-black);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #fff5f5;
  border-radius: 10px;
  border: 2px solid var(--brand-red);
}

.service-card i {
  color: var(--brand-red);
  font-size: 1.25rem;
}

.service-card span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--brand-black);
}

.chart-container {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
}

#budget-chart {
  max-width: 400px;
  height: 400px;
}

.reveal-actions {
  text-align: center;
  margin-top: 2rem;
}

/* ============================
   SUCCESS SCREEN
   ============================ */
.success-container {
  text-align: center;
  max-width: 600px;
  background: var(--brand-white);
  padding: 4rem 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 4px solid var(--brand-red);
}

.success-icon {
  font-size: 5rem;
  color: var(--brand-red);
  margin-bottom: 1.5rem;
}

.success-container h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--brand-black);
}

.success-container p {
  font-size: 1.125rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.success-note {
  background: #fff5f5;
  padding: 1rem;
  border-radius: 10px;
  border-left: 4px solid var(--brand-red);
  margin-top: 1.5rem;
  font-weight: 500;
  color: var(--brand-black);
}

/* ============================
   TOAST NOTIFICATIONS
   ============================ */
.toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
  z-index: 1000;
  border-left: 4px solid var(--brand-red);
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-success {
  border-left: 4px solid var(--brand-red);
}

.toast i {
  color: var(--brand-red);
  font-size: 1.25rem;
}

.toast span {
  font-size: 0.95rem;
  color: var(--brand-black);
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */
@media (max-width: 768px) {
  .logo-watermark {
    width: 300px;
    height: 300px;
  }

  .logo-container img {
    width: 120px;
    height: 120px;
  }

  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .chat-container {
    height: 80vh;
  }
  
  .reveal-container {
    padding: 2rem 1.5rem;
  }
  
  .reveal-title {
    font-size: 1.75rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .options-grid {
    grid-template-columns: 1fr;
  }
  
  .toast {
    right: 1rem;
    left: 1rem;
  }
}
