/* ==========================================================================
   VARUN SATHEESH | APPOINTMENT BOOKING SYSTEM
   Ultra-Premium Glassmorphism Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg-deep: #07090e;
  --bg-surface: #0d111a;
  --bg-elevated: #141923;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-gold: rgba(245, 158, 11, 0.35);
  --glass-border-red: rgba(225, 29, 72, 0.35);
  
  --crimson: #e11d48;
  --crimson-dark: #be123c;
  --crimson-glow: rgba(225, 29, 72, 0.4);
  
  --gold: #f59e0b;
  --gold-light: #fde68a;
  --gold-dark: #b45309;
  --gold-glow: rgba(245, 158, 11, 0.35);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --blur-md: blur(20px);
  --blur-lg: blur(32px);
}

/* Base resets & typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
}

/* Background Glowing Orbs & Ambient Mesh */
.ambient-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.28;
  will-change: transform;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-red {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #e11d48 0%, rgba(190, 18, 60, 0.2) 70%, transparent 100%);
  top: -120px;
  right: -80px;
}

.orb-gold {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #f59e0b 0%, rgba(217, 119, 6, 0.25) 70%, transparent 100%);
  bottom: 5%;
  left: -100px;
  animation-duration: 22s;
  animation-delay: -5s;
}

.orb-center {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(147, 18, 52, 0.2) 0%, rgba(15, 23, 42, 0.1) 70%, transparent 100%);
  top: 45%;
  left: 35%;
  animation-duration: 25s;
}

@keyframes floatOrb {
  0% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
  100% { transform: translate(-25px, 25px) scale(0.95); }
}

/* Luxury Font Families */
.font-cinzel {
  font-family: 'Cinzel', serif;
}

.font-playfair {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Glassmorphism Containers */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 
              inset 0 1px 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8),
              inset 0 1px 2px 0 rgba(255, 255, 255, 0.15);
}

.glass-panel-gold {
  border-color: var(--glass-border-gold);
  box-shadow: 0 15px 35px -10px rgba(245, 158, 11, 0.12),
              inset 0 1px 2px 0 rgba(253, 230, 138, 0.2);
}

.glass-panel-gold:hover {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 20px 45px -10px rgba(245, 158, 11, 0.22),
              inset 0 1px 3px 0 rgba(253, 230, 138, 0.3);
}

.glass-panel-red {
  border-color: var(--glass-border-red);
  box-shadow: 0 15px 35px -10px rgba(225, 29, 72, 0.15),
              inset 0 1px 2px 0 rgba(251, 113, 133, 0.2);
}

/* Infinite Marquee Ticker */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(7, 9, 14, 0.95), rgba(190, 18, 60, 0.25), rgba(245, 158, 11, 0.25), rgba(7, 9, 14, 0.95));
  border-bottom: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  z-index: 50;
}

.ticker {
  display: inline-block;
  white-space: nowrap;
  padding: 8px 0;
  animation: ticker 28s linear infinite;
}

.ticker:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 2rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fde68a;
  text-transform: uppercase;
}

@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Glass Inputs */
.glass-input {
  width: 100%;
  background: rgba(13, 17, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 13px 16px;
  color: #f8fafc;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.glass-input:focus {
  outline: none;
  background: rgba(13, 17, 26, 0.95);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2),
              0 0 20px rgba(245, 158, 11, 0.15);
}

.glass-input::placeholder {
  color: #64748b;
}

/* Reason Radio/Cards */
.reason-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.reason-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: transparent;
  transition: all 0.25s ease;
}

.reason-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
}

.reason-card.selected {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.16) 0%, rgba(245, 158, 11, 0.16) 100%);
  border-color: var(--gold);
  box-shadow: 0 8px 25px -5px rgba(245, 158, 11, 0.3);
}

.reason-card.selected::before {
  background: linear-gradient(180deg, var(--crimson), var(--gold));
}

/* Slot Badges */
.slot-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.875rem;
  color: #cbd5e1;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slot-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fff;
}

.slot-btn.selected {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.25), rgba(245, 158, 11, 0.25));
  border-color: var(--gold);
  color: #fde68a;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

/* CTA Buttons */
.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #07090e;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 15px 30px -5px rgba(245, 158, 11, 0.6);
  transform: translateY(-2px);
}

.btn-crimson {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  box-shadow: 0 10px 25px -5px rgba(225, 29, 72, 0.4);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-crimson:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  box-shadow: 0 15px 30px -5px rgba(225, 29, 72, 0.6);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 14px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* Gold Text Glow */
.text-glow-gold {
  text-shadow: 0 0 16px rgba(245, 158, 11, 0.45);
}

.text-glow-red {
  text-shadow: 0 0 16px rgba(225, 29, 72, 0.45);
}

/* Step Indicator */
.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
}

.step-dot.active {
  background: linear-gradient(135deg, var(--crimson), var(--gold));
  border-color: var(--gold-light);
  color: #07090e;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.step-dot.completed {
  background: #10b981;
  border-color: #34d399;
  color: #07090e;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #07090e;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.4);
}

/* Shimmer Animation */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.shimmer-effect {
  position: relative;
  overflow: hidden;
}

.shimmer-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: translateX(-100%);
  animation: shimmer 2.5s infinite;
}

/* Animations */
.animate-fadeIn {
  animation: fadeIn 0.4s ease-out forwards;
}

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

/* Responsive adjust */
@media (max-width: 640px) {
  .orb {
    filter: blur(70px);
  }
  .orb-red {
    width: 320px;
    height: 320px;
  }
  .orb-gold {
    width: 300px;
    height: 300px;
  }
}
