/* ==========================================================================
   FLOOR & FURNISHINGS PREMIUM CONSULTATION LEAD FORM DESIGN SYSTEM
   ========================================================================== */

/* --- Custom Properties & Color Palette --- */
:root {
  --primary: #a3523b;              /* Burnt terracotta red */
  --primary-hover: #88412e;        /* Deep terracotta */
  --primary-light: #fdf5f1;       /* Very soft terracotta tint */
  --primary-border: #f2dfd5;      /* Light border primary color */
  --secondary: #dca385;            /* Muted bronze / elegant gold */
  
  --bg-warm: #fcf9f6;              /* Premium linen/cream warm background */
  --bg-card: #ffffff;              /* Pure white for card elevation */
  --bg-input: #fdfcfa;             /* Subtle warm tint for input fields */
  
  --text-dark: #1e1916;            /* Deep obsidian dark text */
  --text-medium: #4e4440;          /* Muted graphite text */
  --text-muted: #8d817a;           /* Muted warm gray text */
  
  --border-color: #e5dbd5;         /* Soft warm gray border */
  --border-focus: #a3523b;         /* Focused terracotta border */
  --shadow-sm: 0 2px 8px rgba(29, 25, 23, 0.03);
  --shadow-md: 0 10px 24px rgba(29, 25, 23, 0.05);
  --shadow-lg: 0 20px 48px rgba(29, 25, 23, 0.08);
  
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --transition-smooth: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  --transition-fast: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-field: 14px;            /* Standard 14-16px radius for premium fields */
}

/* --- Global Reset & Accessibility --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Custom Scrollbar for Luxury Scroll Feel */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-warm);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --- Split Layout Wrapper --- */
.app-container {
  display: grid;
  grid-template-columns: 420px 1fr;
  min-height: 100vh;
  width: 100vw;
  background-color: var(--bg-warm);
}

/* --- Split Left Side: Premium Brand Sidebar Showcase (Exactly as it is) --- */
.sidebar-showcase {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 420px;
  background-image: url('assets/banner-desktop.png');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  color: #ffffff;
  z-index: 10;
  overflow: hidden;
}

.sidebar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(29, 25, 23, 0.9) 0%, rgba(163, 82, 59, 0.75) 100%);
  z-index: 1;
}

.sidebar-header, .sidebar-offer-card, .sidebar-footer {
  position: relative;
  z-index: 2;
}

.brand-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

.sidebar-offer-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin: 40px 0;
  box-shadow: var(--shadow-lg);
}

.badge {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 15px;
}

.sidebar-offer-card h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.offer-sub {
  font-size: 1.05rem;
  color: #e5dbd5;
  margin-bottom: 25px;
}

.offer-sub .highlight {
  color: #ffffff;
  font-weight: 700;
}

.offer-features {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  width: 20px;
  height: 20px;
  color: var(--secondary);
  flex-shrink: 0;
}

.feature-item span {
  font-size: 0.95rem;
  font-weight: 500;
}

.location-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 25px;
}

.loc-icon {
  width: 18px;
  height: 18px;
  color: var(--secondary);
  flex-shrink: 0;
}

/* --- Split Right Side: Redesigned Premium White Panel --- */
.wizard-container {
  grid-column: 2;               /* Explicitly place in the second grid column */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 56px;                /* Exactly 56px padding on all sides */
  background-color: var(--bg-warm);
}

.mobile-header, .mobile-offer-overlay {
  display: none;
}

/* --- Progress Navigation (Top Aligned, Centered Horizontally) --- */
.form-wizard-header {
  margin-bottom: 56px;
  width: 100%;
  max-width: 1080px;            /* Aligns perfectly on the visual grid */
  display: flex;
  justify-content: center;
}

.step-indicator-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 820px;             /* Perfectly spans across indicators */
  position: relative;
}

.step-dot {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition-smooth);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-warm);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.step-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

/* Active & Inactive indicators states */
.step-dot.active .step-num {
  border-color: var(--primary);
  background: var(--primary);   /* Terracotta filled circle */
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(163, 82, 59, 0.2);
}

.step-dot.active .step-label {
  color: var(--text-dark);
}

.step-dot.completed .step-num {
  border-color: var(--primary);
  background: transparent;
  color: var(--primary);        /* Outlined terracotta for completed */
}

.step-dot.completed .step-label {
  color: var(--primary);
}

/* Connector Line styling */
.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border-color);
  margin: 0 16px;
  z-index: 1;
  border-radius: 1px;
  transition: var(--transition-smooth);
}

.step-connector.completed {
  background: var(--primary);
}

/* --- 2-Column Split Content Area (Desktop Editorial Layout) --- */
.wizard-content-split {
  display: grid;
  grid-template-columns: 32% 68%;
  gap: 40px;                    /* Calm, elegant grid spacing */
  width: 100%;
  max-width: 1080px;
  margin: auto auto;            /* Centered horizontally and vertically */
  align-items: center;          /* Aligns items vertically */
}

/* Left Column: Editorial Info (32% width, max-width 320px) */
.intro-column {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.intro-step-block {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  flex-direction: column;
  transition: var(--transition-smooth);
}

.intro-step-block.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.step-badge {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 15px;
}

.intro-step-block h2 {
  font-size: clamp(32px, 3.2vw, 48px); /* Fluid typography to prevent cramp */
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 16px;
  word-wrap: break-word;
  white-space: normal;
  word-break: keep-all;         /* Prevent breaking words mid-character */
}

.step-subtitle {
  font-size: 18px;              /* Exact 18px body regular */
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-medium);
}

/* Right Column: Card Container with Form contents (68% width, max-width 720px) */
.form-column {
  width: 100%;
  max-width: 720px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-card {
  background: var(--bg-card);   /* Warm white background */
  border-radius: var(--radius-lg); /* Exact 20px radius */
  padding: 40px;                /* Exact 40px padding */
  box-shadow: var(--shadow-lg); /* Soft luxury shadow */
  border: 1px solid rgba(229, 219, 213, 0.4);
  width: 100%;
  position: relative;
}

/* --- Form step control wrapper --- */
#leadForm {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.form-step {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

.form-step.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
  transition: var(--transition-smooth);
}

/* --- Form Fields & 2-Column Grid --- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;                    /* Exact 24px equal spacing */
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

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

.form-group label {
  margin-bottom: 8px;           /* Proper label spacing */
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.01em;
}

.required-label::after {
  content: " *";
  color: var(--primary);
}

.optional-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.field-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 8px;
}

/* --- Premium Inputs & Field Heights --- */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-field); /* 14-16px radius */
  transition: var(--transition-smooth);
  width: 100%;
  height: 56px;                 /* Exact 56px field height */
}

.input-wrapper:focus-within {
  border-color: var(--border-focus);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(163, 82, 59, 0.05);
}

.input-wrapper input {
  width: 100%;
  height: 100%;
  padding: 0 20px;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  border-radius: var(--radius-field);
}

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

.input-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  margin-left: 20px;
  flex-shrink: 0;
}

.input-icon + input {
  padding-left: 10px;
}

.phone-prefix {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  padding-left: 20px;
  padding-right: 10px;
  border-right: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  align-items: center;
}

.phone-prefix + input {
  padding-left: 12px;
}

/* Textarea wrapper & Field height override */
.text-area-wrapper {
  height: auto !important;      /* Override 56px for textareas */
  flex-direction: column;
  align-items: flex-end;
  padding-bottom: 8px;
}

.text-area-wrapper textarea {
  width: 100%;
  padding: 16px 20px;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  resize: vertical;
}

.char-count {
  font-size: 0.7rem;
  color: var(--text-muted);
  padding-right: 14px;
}

/* --- Searchable Custom Localities Dropdown --- */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 56px;                 /* Exact 56px field height */
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-field); /* 14-16px radius */
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.custom-select-trigger:hover {
  border-color: var(--text-muted);
}

.custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--border-focus);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(163, 82, 59, 0.05);
}

.custom-select-trigger span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arrow-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.custom-select-wrapper.open .arrow-icon {
  transform: rotate(180deg);
}

.custom-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  z-index: 99;
  overflow: hidden;
  animation: dropdownFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.custom-select-wrapper.open .custom-options {
  display: flex;
}

.search-box {
  padding: 8px;
  border-bottom: 1px solid var(--border-color);
}

.search-box input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  background: var(--bg-input);
}

.search-box input:focus {
  border-color: var(--border-focus);
}

.options-list-container {
  max-height: 200px;
  overflow-y: auto;
}

.select-option {
  padding: 12px 20px;
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition-fast);
}

.select-option:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.select-option.selected {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

/* --- India-wide Predictive Location Autocomplete --- */
.autocomplete-wrapper {
  position: relative;
  width: 100%;
}

.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  z-index: 99;
  max-height: 250px;
  overflow-y: auto;
  animation: dropdownFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.autocomplete-wrapper.open .autocomplete-dropdown {
  display: flex;
}

/* Styled Autocomplete Suggestions */
.autocomplete-option {
  padding: 12px 20px;
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition-fast);
  border-bottom: 1px solid rgba(229, 219, 213, 0.3);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.autocomplete-option:last-child {
  border-bottom: none;
}

.autocomplete-option:hover,
.autocomplete-option.selected {
  background: var(--primary-light);
  color: var(--primary);
}

.autocomplete-option-icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.autocomplete-option:hover .autocomplete-option-icon {
  color: var(--primary);
}

/* Style overrides for Google Places Autocomplete dropdown */
.pac-container {
  background-color: #ffffff !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  font-family: var(--font-body) !important;
  z-index: 9999 !important;
  margin-top: 6px !important;
  padding: 4px 0 !important;
  border-top: 1px solid var(--border-color) !important;
}

.pac-item {
  padding: 12px 20px !important;
  font-size: 0.9rem !important;
  color: var(--text-dark) !important;
  cursor: pointer !important;
  border-top: none !important;
  border-bottom: 1px solid rgba(229, 219, 213, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  transition: var(--transition-fast) !important;
}

.pac-item:last-child {
  border-bottom: none !important;
}

.pac-item:hover {
  background-color: var(--primary-light) !important;
}

.pac-item-query {
  font-size: 0.9rem !important;
  color: var(--text-dark) !important;
}

.pac-matched {
  color: var(--primary) !important;
  font-weight: bold !important;
}

.pac-icon {
  margin-right: 10px !important;
  margin-top: 0 !important;
  flex-shrink: 0 !important;
}

/* --- Validation Errors --- */
.error-message {
  display: none;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
  margin-top: 4px;
}

.error-message.centered {
  text-align: center;
}

.form-group.has-error .input-wrapper,
.form-group.has-error .custom-select-trigger {
  border-color: var(--primary);
}

.form-group.has-error .error-message {
  display: block;
}

.form-group-block.has-error .error-message {
  display: block;
  margin-top: 8px;
}

/* --- Visual Grid Selection Cards (Property Types & Rooms) --- */
.form-group-block {
  display: flex;
  flex-direction: column;
}

.section-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.section-sublabel {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -6px;
  margin-bottom: 12px;
}

.visual-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 15px;
}

.option-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-field); /* 14-16px radius */
  height: 96px;                 /* Clean visual card height */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: var(--transition-smooth);
  user-select: none;
}

.option-card:hover {
  border-color: var(--primary-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

.option-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

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

.card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Option Card Selected States */
.option-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(163, 82, 59, 0.04);
}

.option-card:has(input:checked) .card-title {
  color: var(--primary);
}

/* Checkmark dot reveal on option card */
.option-card::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #ffffff;
  opacity: 0;
  transform: scale(0.6);
  transition: var(--transition-smooth);
}

.option-card:has(input:checked)::after {
  opacity: 1;
  transform: scale(1);
  border-color: var(--primary);
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 8px;
  background-position: center;
  background-repeat: no-repeat;
}

/* --- Pill Design Toggles --- */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-option {
  position: relative;
  cursor: pointer;
}

.pill-option input {
  position: absolute;
  opacity: 0;
}

.pill-option span {
  display: block;
  padding: 8px 18px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-medium);
  transition: var(--transition-smooth);
}

.pill-option:hover span {
  border-color: var(--text-muted);
}

.pill-option input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* --- Budget & Choice Cards (Height 56px) --- */
.budget-cards-grid,
.method-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  width: 100%;
}

.choice-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-field); /* 14-16px radius */
  height: 56px;                 /* Exact 56px field height */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: var(--transition-smooth);
}

.choice-card input {
  position: absolute;
  opacity: 0;
}

.choice-card:hover {
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.choice-card-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.choice-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.choice-card-content span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Budget Specific elements */
.budget-scale {
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.budget-title {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Choice Selected State */
.choice-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(163, 82, 59, 0.04);
}

.choice-card:has(input:checked) .choice-icon,
.choice-card:has(input:checked) .budget-scale {
  color: var(--primary);
}

.choice-card:has(input:checked) .choice-card-content span {
  color: var(--primary);
}

/* --- Category Panels (Step 3 Requirements Select) --- */
.category-panel-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.category-block {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.category-title {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  font-weight: 700;
  border-bottom: 1px solid var(--bg-warm);
  padding-bottom: 8px;
}

.option-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

/* Checkbox Row Element */
.checkbox-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-option input {
  position: absolute;
  opacity: 0;
}

.checkbox-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.checkbox-option:hover .checkbox-box {
  border-color: var(--text-muted);
}

.checkbox-option input:checked + .checkbox-box {
  background: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.checkbox-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-medium);
  transition: var(--transition-fast);
}

.checkbox-option input:checked ~ .checkbox-label {
  color: var(--primary);
}

/* --- Color Palette Card Selector --- */
.color-palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.color-palette-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-field); /* 14-16px radius */
  padding: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.color-palette-card input {
  position: absolute;
  opacity: 0;
}

.color-palette-card:hover {
  border-color: var(--text-muted);
}

.color-card-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.color-swatch-box {
  display: flex;
  gap: 3px;
  height: 20px;
  width: 100%;
}

.color-swatch-box .swatch {
  flex: 1;
  border-radius: 3px;
}

.color-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dark);
}

.color-palette-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(163, 82, 59, 0.04);
}

.color-palette-card:has(input:checked) .color-name {
  color: var(--primary);
}

/* --- Reference Upload Dropzone Component --- */
.upload-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-field); /* 14-16px radius */
  background: var(--bg-input);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.upload-dropzone:hover {
  border-color: var(--primary-border);
  background: var(--primary-light);
}

.upload-dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(163, 82, 59, 0.04);
}

.file-input-hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.dropzone-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.upload-cloud-icon {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
}

.upload-dropzone:hover .upload-cloud-icon,
.upload-dropzone.dragover .upload-cloud-icon {
  color: var(--primary);
}

.main-prompt-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.main-prompt-text span {
  color: var(--primary);
  text-decoration: underline;
}

/* Upload Preview Gallery styling */
.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.preview-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #ffffff;
}

.preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-thumb-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(29, 25, 23, 0.75);
  border: none;
  color: #ffffff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.remove-thumb-btn:hover {
  background: rgba(163, 82, 59, 0.95);
}

/* --- Sticky CTA Navigation Footer Buttons --- */
.wizard-footer {
  /* Sticky button bottom-right inside the form card container */
  position: sticky;
  bottom: -40px;                /* Sits at the bottom boundary of card */
  background: #ffffff;
  padding: 20px 0 0 0;
  margin-top: 24px;
  border-top: 1px solid rgba(229, 219, 213, 0.4);
  display: flex;
  justify-content: flex-end;
  z-index: 10;
}

.wizard-footer.two-buttons {
  justify-content: space-between;
}

/* CTA Pill Button (Terracotta, pill shape, soft shadow) */
.btn-pill-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 32px;
  border-radius: 30px;          /* Rounded pill shape */
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
}

.btn-primary.btn-pill-cta {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(163, 82, 59, 0.15); /* Soft shadow */
}

.btn-primary.btn-pill-cta:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(163, 82, 59, 0.25);
}

.btn-secondary.btn-pill-cta {
  background-color: #ffffff;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.btn-secondary.btn-pill-cta:hover {
  background-color: var(--bg-warm);
  border-color: var(--text-muted);
}

.full-width {
  width: 100%;
}

.m-top-30 { margin-top: 30px; }
.m-top-20 { margin-top: 20px; }
.m-top-10 { margin-top: 10px; }

/* --- Legal Footer --- */
.wizard-footer-legal {
  margin-top: 56px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  text-align: center;
}

.wizard-footer-legal p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- SUCCESS SCREEN VIEW --- */
.success-screen-wrapper {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 10px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  min-height: 70vh;
}

.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 100;
}

.success-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  width: 100%;
  animation: successScaleUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes successScaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-badge {
  display: inline-block;
  background: #e1f5eb;
  color: #107c41;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.success-card h2 {
  font-size: 2.2rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.success-desc {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-bottom: 30px;
}

.success-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e1f5eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px auto;
}

.success-checkmark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: block;
  stroke-width: 3.5;
  stroke: #107c41;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px #107c41;
  animation: check-fill .4s ease-in-out .4s forwards, check-scale .3s ease-in-out .9s cubic-bezier(0.16, 1, 0.3, 1) alternate infinite;
}

.success-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3.5;
  stroke-miterlimit: 10;
  stroke: #107c41;
  fill: none;
  animation: stroke .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke .3s cubic-bezier(0.65, 0, 0.45, 1) .6s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

/* Consultation Summary Table */
.consultation-summary-card {
  background: var(--bg-warm);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 25px;
  text-align: left;
}

.consultation-summary-card h4 {
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.summary-row .label {
  color: var(--text-muted);
  font-weight: 500;
}

.summary-row .value {
  color: var(--text-dark);
  font-weight: 600;
  text-align: right;
  max-width: 60%;
}

.text-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stylist booking progress animation */
.booking-status-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-medium);
  margin-bottom: 30px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(163, 82, 59, 0.4);
  animation: dotPulse 1.5s infinite;
}

@keyframes dotPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(163, 82, 59, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(163, 82, 59, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(163, 82, 59, 0);
  }
}

.success-cta-block {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.success-cta-block .btn {
  padding: 12px 20px;
  font-size: 0.85rem;
}


/* ==========================================================================
   RESPONSIVE LAYOUT STYLING (TABLET & MOBILE BREAKPOINTS)
   ========================================================================== */

/* Mid-size screens (Desktop space constraints) */
@media screen and (max-width: 1200px) {
  .wizard-content-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .intro-column {
    max-width: 100%;
  }

  .intro-step-block h2 {
    font-size: 36px;
    margin-bottom: 12px;
  }

  .step-subtitle {
    font-size: 16px;
  }
}

/* Tablet & Smaller Screens */
@media screen and (max-width: 1023px) {
  .app-container {
    grid-template-columns: 1fr;
  }
  
  .sidebar-showcase {
    display: none; /* Hide desktop sidebar */
  }
  
  .wizard-container {
    margin-left: 0;
    padding: 30px 40px;
  }
  
  /* Show Mobile Header */
  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
  }
  
  .mobile-brand-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
  }
  
  .mobile-offer-badge-btn {
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-display);
    outline: none;
    transition: var(--transition-fast);
  }
  
  .mobile-offer-badge-btn:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
  }
  
  /* Mobile Offer Modal Overlay style */
  .mobile-offer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 25, 23, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
  }
  
  .mobile-offer-overlay.open {
    display: flex;
  }
  
  .mobile-offer-modal {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    position: relative;
    text-align: center;
    animation: successScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  
  .close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
  }
  
  .mobile-offer-modal h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--text-dark);
  }
  
  .mobile-offer-modal p {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 20px;
  }
  
  .modal-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding: 10px;
    background: var(--bg-warm);
    border-radius: var(--radius-sm);
  }

  /* Split layout overrides for mobile */
  .form-wizard-header {
    margin-bottom: 30px;
  }

  .step-connector {
    margin: 0 8px;
  }

  .wizard-content-split {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .intro-column {
    max-width: 100%;
  }

  .intro-step-block h2 {
    font-size: 32px;            /* Slightly smaller heading on tablet */
    margin-bottom: 12px;
  }

  .step-subtitle {
    font-size: 16px;
  }

  .form-card {
    padding: 30px;
  }
}

/* Mobile Screens (Phone) */
@media screen and (max-width: 575px) {
  .wizard-container {
    padding: 24px 16px;         /* Compact visual grid on mobile */
  }
  
  .form-wizard-header {
    margin-bottom: 24px;
  }
  
  .step-label {
    display: none;              /* Hide labels on phones to prevent text cramp */
  }
  
  .step-connector {
    margin: 0 10px;
  }
  
  .intro-step-block h2 {
    font-size: 28px;            /* Mobile optimized scale */
    line-height: 1.25;
  }
  
  .form-card {
    padding: 20px 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .visual-option-grid {
    grid-template-columns: repeat(2, 1fr); /* Compact double grids */
    gap: 10px;
  }
  
  .option-card {
    height: 84px;
  }
  
  .card-icon {
    font-size: 1.4rem;
  }
  
  .card-title {
    font-size: 0.75rem;
  }
  
  .option-row-grid {
    grid-template-columns: 1fr;
  }
  
  .budget-cards-grid,
  .method-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .color-palette-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .category-block {
    padding: 16px;
  }
  
  /* Mobile Sticky Bottom CTA Button (Full Width overlay) */
  .wizard-footer {
    position: relative;
    bottom: 0;
    padding-top: 16px;
    margin-top: 16px;
  }
  
  .wizard-footer.two-buttons {
    flex-direction: column-reverse;
    gap: 10px;
  }
  
  .wizard-footer .btn {
    width: 100%;                /* Full width CTA on mobile */
  }
  
  .success-card {
    padding: 30px 16px;
  }
  
  .success-card h2 {
    font-size: 1.8rem;
  }
  
  .success-cta-block {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  
  .success-cta-block .btn {
    width: 100%;
  }
}

/* --- FULL-SCREEN PREMIUM LOADER OVERLAY --- */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(251, 247, 244, 0.96); /* Elegant warm cream backdrop */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000; /* Physically overlays everything including header */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loader-overlay.active {
  display: flex;
  opacity: 1;
}

.loader-content {
  text-align: center;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 420px;
}

/* Premium Terracotta Double Spinner Ring */
.luxury-spinner {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.luxury-spinner div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 4px solid var(--primary);
  border-radius: 50%;
  animation: luxurySpinner 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: var(--primary) transparent transparent transparent;
}

.luxury-spinner div:nth-child(1) {
  animation-delay: -0.45s;
}

.luxury-spinner div:nth-child(2) {
  animation-delay: -0.3s;
}

.luxury-spinner div:nth-child(3) {
  animation-delay: -0.15s;
}

@keyframes luxurySpinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loader-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-top: 10px;
}

.loader-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}
