/* ===========================================
   Configurator Header Wrapper
   =========================================== */

/* Define header height CSS variable */
:root {
  --header-height: 130px;
}

/* Mobile: header height = compact nav (56px) + progress bar (47px) */
@media screen and (max-width: 768px) {
  :root {
    --header-height: 103px;
  }
}

@media screen and (max-width: 480px) {
  :root {
    --header-height: 103px;
  }
}

/* Unified olive background for navigation + progress */
.configurator-header-wrapper {
  background-color: #b0b8a8;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  overflow: visible !important;
}

/* Mobile: rounded bottom corners on navigation bar */
@media screen and (max-width: 768px) {
  .configurator-header-wrapper {
    border-radius: 0 0 16px 16px;
  }
}

/* Desktop: Use flexbox centering to match homepage body behavior */
@media screen and (min-width: 769px) {
  .configurator-header-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* Desktop: Let header-wrapper use full width like original design */
@media screen and (min-width: 769px) {
  .configurator-header-wrapper .header-wrapper {
    background-color: transparent;
    position: static;
    width: 100%;
    max-width: 1280px;
  }
}

/* Base styles for header-wrapper inside configurator */
.configurator-header-wrapper .header-wrapper {
  background-color: transparent;
  position: static;
}

/* Desktop: Ensure header uses same positioning as homepage */
.configurator-header-wrapper .header {
  margin-top: 0 !important;
  position: relative !important; /* Override sticky positioning from home.css */
  top: auto !important;
}

/* Desktop: Force Nunito font on navigation to match homepage */
@media screen and (min-width: 769px) {
  .configurator-header-wrapper .menu-link,
  .configurator-header-wrapper .menu-link a {
    font-family: 'Nunito', Arial, sans-serif !important;
  }
}

/* Mobile: Style header-wrapper with white background and rounded corners */
@media screen and (max-width: 768px) {
  .configurator-header-wrapper .header-wrapper {
    margin: 0 16px !important;
    padding: 0 !important;
    background-color: #fff !important;
    border-radius: 0 0 16px 16px !important;
    position: relative !important;
    top: -4px !important;
  }

  .configurator-header-wrapper .header .header-inner {
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 8px 16px !important;
  }
}

/* ===========================================
   Configurator Progress Indicator Styles
   =========================================== */

/* Progress Indicator Container - Olive Green Background */
.configurator-progress {
  background: transparent;
  padding: 10px 40px;
  position: relative;
  overflow: visible;
  z-index: 100;
}

.progress-scroll-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  border-radius: 5px;
  width: 32px;
  height: 35px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 110;
  color: #000;
  transition: all 0.2s;
  box-shadow: none;
}

.progress-scroll-btn:hover {
  background: #f5f5f5;
  color: #000;
  transform: translateY(-50%);
}

.progress-scroll-left {
  left: 0;
}

.progress-scroll-right {
  right: 0;
}

.progress-steps-wrapper {
  overflow: hidden;
  margin: 0 auto;
  max-width: 1200px;
}

.progress-steps {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.configurator-progress .progress-step {
  display: flex !important;
  align-items: center !important;
  flex-direction: row !important;
  gap: 0 !important;
  padding: 0 !important;
  background: #697757 !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  height: 35px !important;
  min-width: 91px !important;
}

.configurator-progress .progress-step:hover {
  filter: brightness(0.95) !important;
  transform: translateY(-1px) !important;
}

.configurator-progress .progress-step.active {
  background: #E29427 !important;
}

.configurator-progress .progress-step.active .step-number {
  background: #C8801B !important;
}

.configurator-progress .progress-step.completed {
  background: #697757 !important;
}

.configurator-progress .progress-step.completed .step-number {
  background: #5a6449 !important;
}

.configurator-progress .step-number {
  width: 36px !important;
  height: 100% !important;
  border-radius: 5px 0 0 5px !important;
  background: #5a6449 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #fff !important;
  flex-shrink: 0 !important;
}

.configurator-progress .step-number::before,
.configurator-progress .step-number::after {
  display: none !important;
}

.configurator-progress .step-number * {
  border-radius: 0 !important;
  background: transparent !important;
}

.configurator-progress .step-label {
  font-family: 'Nunito', sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 140% !important;
  color: #fff !important;
  padding: 0 12px 0 8px !important;
  flex: 1 !important;
  /* display controlled by media queries - desktop shows, mobile hides */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .progress-steps {
    gap: 4px;
  }

  .progress-step {
    height: 32px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .step-label {
    font-size: 14px;
    padding: 0 10px 0 6px;
  }
}

@media (max-width: 768px) {
  /* Mobile Floating Progress Indicator */
  .configurator-progress {
    position: relative;
    padding: 6px 32px;
    background: transparent;
    z-index: 100;
  }

  .mobile-progress-indicator {
    background: transparent;
    position: relative;
  }

  .progress-scroll-btn {
    display: flex;
    width: 32px;
    height: 35px;
    top: 17.5px; /* half of pill height */
    transform: translateY(-50%);
  }

  .progress-scroll-left {
    left: 0;
  }

  .progress-scroll-right {
    right: 0;
  }

  .progress-steps-wrapper {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
    padding-top: 0;
  }

  .progress-steps-wrapper::-webkit-scrollbar {
    display: none;
  }

  /* Mobile progress line - runs behind the pills with gradient fade on left */
  .mobile-progress-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(to right, transparent 0%, #697757 calc(50vw - 90px), #697757 100%);
    top: 17.5px; /* half of pill height (35px/2) */
    left: 0;
    right: 0;
    z-index: 1;
  }

  .progress-steps {
    justify-content: flex-start;
    /* Center first step: 50vw minus half of step width (45px) */
    padding: 0 4px 0 calc(50vw - 45px);
    gap: 6px;
    position: relative;
    z-index: 1;
  }

  /* Mobile Pill-style progress steps (matching desktop design) */
  .progress-step-pill {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 0 !important;
    padding: 0 !important;
    background: #9ba98c !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    height: 35px !important;
    min-width: auto !important;
  }

  .progress-step-pill:hover {
    filter: brightness(0.95) !important;
    transform: translateY(-1px) !important;
  }

  .progress-step-pill.active {
    background: #E29427 !important;
  }

  .progress-step-pill.active .step-number-pill {
    background: #C8801B !important;
  }

  .progress-step-pill.completed {
    background: #697757 !important;
  }

  .progress-step-pill.completed .step-number-pill {
    background: #5a6449 !important;
  }

  .step-number-pill {
    width: 36px !important;
    height: 100% !important;
    border-radius: 5px 0 0 5px !important;
    background: #697757 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #fff !important;
    flex-shrink: 0 !important;
  }

  .step-label-pill {
    font-family: 'Nunito', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 140% !important;
    color: #fff !important;
    padding: 0 10px 0 8px !important;
    display: block !important;
  }
}

@media (max-width: 480px) {
  .configurator-progress {
    padding: 8px 32px;
  }

  .progress-scroll-btn {
    width: 32px;
    height: 35px;
  }

  .progress-scroll-btn svg {
    width: 16px;
    height: 16px;
  }

  .progress-scroll-left {
    left: 0;
  }

  .progress-scroll-right {
    right: 0;
  }

  .progress-step {
    min-width: 40px;
    width: 40px;
    height: 40px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}

/* ===========================================
   Desktop Figma Progress Bar Design
   =========================================== */

/* Desktop Progress Bar - Show on desktop, hide on mobile */
.desktop-progress-bar {
  display: flex !important;
  justify-content: center !important;
  width: 100%;
}

.mobile-progress-indicator {
  display: none !important;
}

/* Ensure desktop progress bar labels are visible */
.desktop-progress-bar .step-label {
  display: block !important;
  visibility: visible !important;
}

/* Step hover effects */
.figma-progress-step {
  cursor: pointer;
}

.figma-progress-step:hover .step-bg {
  filter: brightness(1.05);
}

/* Active step styles */
.figma-progress-step.active .step-bg {
  background-color: #e29427 !important;
}

.figma-progress-step.active .step-number-bg {
  background-color: #c8801b !important;
}

/* Completed step styles */
.figma-progress-step.completed .step-bg {
  background-color: #697757 !important;
}

.figma-progress-step.completed .step-number-bg {
  background-color: #5a6449 !important;
}

/* Responsive behavior for desktop progress bar */
@media (max-width: 768px) {
  .desktop-progress-bar {
    display: none !important;
  }

  .mobile-progress-indicator {
    display: block !important;
  }
}
