/* 
 * AI Doctorr Landing Page Style Sheet
 * Theme: Clean Medical-Tech
 * Version: 1.0.0
 */

/* ==========================================================================
   0. Font Import & Reset
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   1. CSS Custom Properties (Variables)
   ========================================================================== */
:root {
  /* Colors */
  --color-bg: #ffffff;
  --color-card-bg: #ffffff;
  --color-text-main: hsl(220, 30%, 12%);
  --color-text-muted: hsl(220, 10%, 45%);
  --color-primary: #076BF5;
  --color-primary-hover: #0050c7;
  --color-navy: #001034;
  --color-border: rgba(0, 16, 52, 0.08);
  --color-primary-glow: rgba(7, 107, 245, 0.15);
  
  /* Additional Premium Palette Colors */
  --color-navy-glow: rgba(7, 107, 245, 0.05);
  --color-success: #01B7BC;
  --color-success-glow: rgba(1, 183, 188, 0.20);
  --color-error: hsl(350, 80%, 55%);
  --color-error-glow: rgba(239, 68, 68, 0.15);
  --color-code-bg: #111827;
  
  /* Radii */
  --radius-card: 20px;
  --radius-button: 12px;
  --radius-input: 10px;
  --radius-pill: 100px;
  
  /* Typography */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Fira Code', 'Courier New', Courier, monospace;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.09);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

/* Selection */
::selection {
  background-color: var(--color-primary-glow);
  color: var(--color-navy);
}

/* ==========================================================================
   2. Base Styles & Typography
   ========================================================================== */
body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Glows */
body::before, body::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
}

body::before {
  top: 10%;
  right: -100px;
  background-color: var(--color-primary-glow);
}

body::after {
  top: 60%;
  left: -100px;
  background-color: var(--color-primary-glow); /* Soft medical blue glow */
}

/* Base Headings & Links */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-navy);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-primary-hover);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
  position: relative;
}

/* Taglines & Section Headers */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  background-color: var(--color-primary-glow);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--color-navy);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* Glow Elements */
.text-glow-accent {
  background: linear-gradient(135deg, var(--color-navy) 40%, var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.text-glow-green {
  text-shadow: 0 0 15px var(--color-primary-glow);
  color: var(--color-primary);
}

/* ==========================================================================
   3. Header & Navigation
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-navy);
}

.logo-icon {
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-icon svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 4px var(--color-primary-glow));
  animation: pulse-glow 3s infinite ease-in-out;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: var(--color-text-main);
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-normal);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta-btn {
  background-color: var(--color-navy);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-button);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.nav-cta-btn:hover {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 15px var(--color-primary-glow);
  transform: translateY(-1px);
}

/* Hamburger toggle for small screen */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-navy);
  margin: 5px 0;
  transition: var(--transition-normal);
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */
.hero {
  padding: 0;
  position: relative;
  overflow: hidden;
  height: 680px; /* Fixed height for consistent slide layout */
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.hero-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease-in-out;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  z-index: 1;
}

.hero-slider .hero-slide:nth-child(1) {
  background-image: radial-gradient(circle at 80% 20%, rgba(7, 107, 245, 0.08) 0%, transparent 60%),
                    radial-gradient(circle at 20% 80%, rgba(1, 183, 188, 0.08) 0%, transparent 60%),
                    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.96) 100%),
                    url('../images/hero_background.jpg') !important;
  background-color: #ffffff !important;
}

.hero-slider .hero-slide:nth-child(2) {
  background-image: radial-gradient(circle at 80% 20%, rgba(7, 107, 245, 0.08) 0%, transparent 60%),
                    radial-gradient(circle at 20% 80%, rgba(1, 183, 188, 0.08) 0%, transparent 60%),
                    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.96) 100%),
                    url('../images/hero_slide_2.jpg') !important;
  background-color: #ffffff !important;
}

.hero-slider .hero-slide:nth-child(3) {
  background-image: radial-gradient(circle at 80% 20%, rgba(7, 107, 245, 0.08) 0%, transparent 60%),
                    radial-gradient(circle at 20% 80%, rgba(1, 183, 188, 0.08) 0%, transparent 60%),
                    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.96) 100%),
                    url('../images/hero_slide_3.jpg') !important;
  background-color: #ffffff !important;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 10;
  position: relative;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out 0.4s, transform 0.8s ease-out 0.4s;
}

.hero-slide.active .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  line-height: 1.15;
  color: var(--color-navy);
  text-shadow: none;
}

.hero-title .text-glow-accent {
  background: linear-gradient(135deg, var(--color-navy) 40%, var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: rgba(0, 16, 52, 0.8);
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.65;
  text-shadow: none;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Secondary button inside light hero */
.hero .btn-secondary {
  background-color: #ffffff;
  border-color: var(--color-border);
  color: var(--color-navy);
  box-shadow: var(--shadow-sm);
}

.hero .btn-secondary:hover {
  background-color: var(--color-bg);
  border-color: rgba(0, 16, 52, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Slider dots styling */
.hero-slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.hero-slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(0, 16, 52, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-slider-dots .dot.active {
  background-color: var(--color-primary);
  transform: scale(1.25);
  box-shadow: 0 0 10px rgba(7, 107, 245, 0.4);
}

/* Slider navigation arrows */
.hero-slider-prev,
.hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--color-border);
  color: var(--color-navy);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-slider-prev:hover,
.hero-slider-next:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(7, 107, 245, 0.2);
}

.hero-slider-prev {
  left: 30px;
}

.hero-slider-next {
  right: 30px;
}

/* Button UI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-button);
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition-normal);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 25px var(--color-primary-glow), 0 0 0 1px var(--color-primary);
  position: relative;
  overflow: hidden;
  animation: primary-button-pulse 3s infinite alternate;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 55%
  );
  transform: rotate(45deg);
  transition: none;
  animation: shine-effect 4s infinite linear;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: 0 12px 30px rgba(7, 107, 245, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-navy);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--color-bg);
  border-color: hsl(220, 20%, 80%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   5. Specialties Cards (진료 과목)
   ========================================================================== */
.specialties-section {
  background-color: #f8fafc; /* light slate */
  background-image: radial-gradient(circle at 20% 30%, rgba(7, 107, 245, 0.03) 0%, transparent 40%),
                    radial-gradient(circle at 80% 70%, rgba(1, 183, 188, 0.03) 0%, transparent 45%);
  padding: 100px 0;
  position: relative;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.specialties-section .section-title {
  color: var(--color-navy);
}

.specialties-section .section-subtitle {
  color: var(--color-text-muted);
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.specialty-card {
  background: #fafafa; /* light gray background */
  border: 1px solid var(--color-border);
  border-radius: 16px; /* large rounded corners (16px) */
  box-shadow: 0 2px 4px rgba(0, 16, 52, 0.02); /* flat shadow */
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.specialty-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: transparent;
  transition: var(--transition-normal);
  z-index: 5;
}

.specialty-card:hover {
  transform: translateY(-4px); /* flat shadow that lifts on hover */
  border-color: var(--color-primary);
  box-shadow: 0 8px 16px rgba(0, 16, 52, 0.06); /* lifts on hover */
}

.specialty-card:hover::before {
  background-color: var(--color-primary);
}

.specialty-image-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.specialty-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-normal);
}

.specialty-card:hover .specialty-image {
  transform: scale(1.05);
}

.specialty-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.specialty-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-navy); /* dark navy */
  font-weight: 800;
  letter-spacing: -0.03em;
}

.specialty-card p {
  color: hsl(220, 20%, 35%); /* dark slate */
  font-size: 0.92rem;
  line-height: 1.55;
  flex-grow: 1;
}

/* ==========================================================================
   6. Before / After Cases (치료 성공 사례)
   ========================================================================== */
.cases-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.case-card {
  background: var(--color-card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--glass-shadow), var(--shadow-sm);
  transition: var(--transition-normal);
}

.case-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 30px var(--color-primary-glow);
}

.case-info {
  margin-bottom: 24px;
}

.case-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.case-card-title {
  font-size: 1.5rem;
  color: var(--color-navy);
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background-color: hsl(210, 15%, 90%);
  padding: 4px 12px;
  border-radius: 12px;
}

.case-tag.stack {
  background-color: var(--color-navy-glow);
  color: var(--color-navy);
}

.case-tag.cured-tag {
  background-color: var(--color-primary-glow);
  color: var(--color-primary);
}

.case-desc {
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

/* Comparative Grid (Before/After side-by-side IDE look) */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.comparison-box {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  background-color: var(--color-code-bg);
}

.comparison-box.before-box {
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.08);
}

.comparison-box.before-box:hover {
  border-color: rgb(239, 68, 68);
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.15);
}

.comparison-box.after-box {
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.comparison-box.after-box:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 25px var(--color-primary-glow);
}

/* Console Header */
.console-header {
  background-color: #1f2937;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.console-dots {
  display: flex;
  gap: 6px;
}

.console-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.console-dots span:nth-child(1) { background-color: #ef4444; }
.console-dots span:nth-child(2) { background-color: #fbbf24; }
.console-dots span:nth-child(3) { background-color: #10b981; }

.console-filename {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 500;
}

.console-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.comparison-box.before-box .console-badge {
  background-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.comparison-box.after-box .console-badge {
  background-color: var(--color-primary-glow);
  color: var(--color-primary);
}

/* Code Console Body */
.console-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
  color: #e5e7eb;
  min-height: 220px;
  overflow-x: auto;
}

.console-line {
  display: flex;
  margin-bottom: 4px;
}

.console-ln {
  color: #4b5563;
  width: 24px;
  margin-right: 16px;
  text-align: right;
  user-select: none;
}

.console-code {
  white-space: pre;
}

/* Syntax Highlighting Mockup */
.kw { color: #f472b6; }  /* Keyword */
.fn { color: #60a5fa; }  /* Function */
.str { color: #34d399; } /* String */
.cmt { color: #6b7280; } /* Comment */
.err { color: #f87171; text-decoration: underline wavy #ef4444; } /* Error */

.console-alert {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.console-alert.alert-error {
  background-color: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
  color: #f87171;
}

.console-alert.alert-success {
  background-color: rgba(1, 183, 188, 0.1);
  border-left: 3px solid #01B7BC;
  color: #01B7BC;
}

/* ==========================================================================
   7. Wizard Form Container (처방전 의뢰 폼)
   ========================================================================== */
.wizard-section {
  background: linear-gradient(180deg, var(--color-bg) 0%, rgba(241, 245, 249, 0.5) 100%);
}

.wizard-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--color-card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 48px;
  box-shadow: var(--glass-shadow), var(--shadow-lg);
  position: relative;
}

/* Step Indicators (Horizontal line with circles) */
.step-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 50px;
  z-index: 1;
}

.step-progress::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: rgba(226, 232, 240, 0.9);
  z-index: -1;
}

.step-progress-bar {
  position: absolute;
  top: 18px;
  left: 0;
  height: 3px;
  background-color: var(--color-primary);
  z-index: -1;
  width: 0%; /* JS will calculate dynamically (e.g. 0%, 33.3%, 66.6%, 100%) */
  transition: width var(--transition-normal);
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(100% / 4);
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.step-title {
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: center;
  transition: var(--transition-normal);
  white-space: nowrap;
}

/* Active & Completed States */
.step-item.active .step-circle {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: #fff;
  box-shadow: 0 0 0 4px var(--color-primary-glow);
  transform: scale(1.1);
}

.step-item.active .step-title {
  color: var(--color-navy);
  font-weight: 700;
}

.step-item.completed .step-circle {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.step-item.completed .step-title {
  color: var(--color-text-main);
  font-weight: 600;
}

/* Multi-Step Transitions */
.form-step {
  display: none;
  opacity: 0;
  transition: opacity var(--transition-normal) ease;
}

.form-step.active {
  display: block;
  opacity: 1;
}

.step-title-block {
  margin-bottom: 28px;
}

.step-main-title {
  font-size: 1.4rem;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.step-sub-title {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* Form Controls & Layout */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group.full-width {
  grid-column: span 2;
}

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

.form-label span.required {
  color: var(--color-error);
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 16, 52, 0.2); /* defined dark border */
  border-radius: var(--radius-input);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text-main);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: #fff;
  box-shadow: 0 0 0 4px var(--color-primary-glow);
}

.form-control::placeholder {
  color: #a0aec0;
}

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

/* Custom Select Dropdown */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234b5563'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 45px;
  cursor: pointer;
}

/* Custom Checkbox Design */
.checkbox-group {
  margin-top: 8px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding-left: 32px;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--color-text-main);
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 1px;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 1.5px solid rgba(0, 16, 52, 0.25); /* defined dark border */
  border-radius: 6px;
  transition: var(--transition-fast);
}

.checkbox-container:hover input ~ .checkmark {
  border-color: var(--color-primary);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary-glow);
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark::after {
  display: block;
}

/* Wizard Navigation buttons */
.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.wizard-actions .btn {
  padding: 12px 24px;
  font-size: 0.95rem;
}

.wizard-actions .btn-prev {
  background-color: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.wizard-actions .btn-prev:hover {
  background-color: var(--color-bg);
  color: var(--color-navy);
}

.wizard-actions .btn-next, 
.wizard-actions .btn-submit {
  margin-left: auto;
}

/* ==========================================================================
   8. Error Toast Styles (Slide-in Float Notifications)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 18px 24px;
  box-shadow: var(--shadow-lg), 0 10px 30px rgba(0, 0, 0, 0.05);
  transform: translateX(120%);
  animation: slide-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all var(--transition-normal);
  border-left: 4px solid var(--color-primary);
}

.toast.error {
  border-left-color: var(--color-error);
}

.toast.success {
  border-left-color: var(--color-primary);
}

.toast.hide {
  animation: slide-out 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast.error .toast-icon {
  color: var(--color-error);
}

.toast.success .toast-icon {
  color: var(--color-primary);
}

.toast-details {
  flex-grow: 1;
}

.toast-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 2px;
}

.toast-message {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: #a0aec0;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  transition: var(--transition-fast);
}

.toast-close:hover {
  color: var(--color-text-main);
}

/* ==========================================================================
   9. Footer
   ========================================================================== */
.footer {
  background-color: #fafafa;
  color: hsl(220, 20%, 30%);
  padding: 60px 0 30px 0;
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-logo {
  color: var(--color-navy);
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-link {
  color: hsl(220, 20%, 30%);
  font-size: 0.9rem;
}

.footer-link:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

.footer-copy {
  color: hsl(220, 10%, 55%);
}

/* ==========================================================================
   10. Animations Keyframes
   ========================================================================== */
@keyframes pulse-glow {
  0%, 100% {
    filter: drop-shadow(0 0 2px rgba(7, 107, 245, 0.3));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(7, 107, 245, 0.7));
    transform: scale(1.08);
  }
}

@keyframes shine-effect {
  0% {
    left: -100%;
  }
  15%, 100% {
    left: 200%;
  }
}

@keyframes primary-button-pulse {
  0% {
    box-shadow: 0 8px 25px var(--color-primary-glow), 0 0 0 1px var(--color-primary);
  }
  100% {
    box-shadow: 0 8px 25px rgba(7, 107, 245, 0.35), 0 0 0 4px rgba(7, 107, 245, 0.2);
  }
}

@keyframes slide-in {
  from {
    transform: translateX(120%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slide-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

/* ==========================================================================
   11. Responsive Media Queries
   ========================================================================== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .wizard-card {
    padding: 36px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .nav-menu {
    display: none; /* In a real scenario, this would toggle on menu click */
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .step-progress {
    margin-bottom: 36px;
  }
  
  .step-title {
    font-size: 0.75rem;
  }
  
  .case-card {
    padding: 24px;
  }
  
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .step-title {
    display: none; /* Hide labels on mobile to prevent overlapping */
  }
  
  .step-progress::before,
  .step-progress-bar {
    top: 18px;
  }
  
  .wizard-card {
    padding: 24px 16px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: calc(100% - 32px);
  }
}

/* Portfolio Card Animation Enhancements */
.portfolio-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease !important;
}

.portfolio-card:hover {
  transform: translateY(-6px) !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 15px 35px rgba(7, 107, 245, 0.12), 0 5px 15px rgba(0, 0, 0, 0.05) !important;
}

.portfolio-card:hover img {
  transform: scale(1.05) !important;
}

/* Floating Action Buttons Group */
.floating-actions {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-actions.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-btn-inquiry {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: #ffffff !important;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-pill); /* 100px */
  box-shadow: 0 10px 25px rgba(7, 107, 245, 0.25), 0 4px 10px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: var(--transition-normal);
}

.floating-btn-inquiry:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(7, 107, 245, 0.35), 0 6px 15px rgba(0, 0, 0, 0.15);
  filter: brightness(1.05);
}

.floating-btn-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  color: var(--color-navy);
  box-shadow: var(--glass-shadow);
  cursor: pointer;
  transition: var(--transition-normal);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0;
}

.floating-btn-top:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 10px 20px rgba(7, 107, 245, 0.15);
}
