@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700;900&display=swap');

:root {
  --primary-orange: #ff4a00;
  --dark-bg: #161616;
  --text-dark: #161616;
  --text-white: #ffffff;
  --text-gray: rgba(22, 22, 22, 0.5);
  --border-radius-box: 10px;
  --border-radius-btn: 11px;
}

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

html {
  overflow-x: clip;
  /* Prevents horizontal scroll without clipping vertical content */
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 40px;
}

/* Base Mobile Elements (Hidden on Desktop) */
.mobile-header {
  display: none;
}

.mobile-floating-action {
  display: none;
}

/* Headers & Steps */
.top-benefits {
  display: flex;
  gap: 40px;
  margin-bottom: 10px;
  align-items: center;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 300;
  font-size: 24px;
}

.benefit-icon {
  width: 24px;
  height: 24px;
  fill: var(--primary-orange);
}

.page-title {
  font-weight: 900;
  font-size: 32px;
  color: #000;
  margin-bottom: 5px;
  line-height: 1.1;
}

.header-group {
  margin-top: 0;
}

/* Steps progress */
.steps-container {
  margin-bottom: 20px;
}

.steps-subtitle {
  color: var(--primary-orange);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 5px;
}

.steps-description {
  font-size: 16px;
  color: #000;
  max-width: 1088px;
  margin-bottom: 15px;
}

.steps-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-gray);
}

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

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #eee;
  font-size: 12px;
  font-weight: 300;
  color: #777;
}

.step-item.active .step-number {
  background-color: var(--primary-orange);
  color: #fff;
}

/* Main Layout: Left Form vs Right Sidebar */
.layout-grid {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.form-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Form Boxes */
.config-box {
  background-color: var(--dark-bg);
  border-radius: var(--border-radius-box);
  padding: 40px;
  color: var(--text-white);
  position: relative;
  overflow: visible;
}



.box-title {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--primary-orange);
  border-radius: 50%;
  color: var(--primary-orange);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  font-family: serif;
  margin-left: 10px;
  cursor: pointer;
  vertical-align: middle;
  position: relative;
  top: -3px;
}

.box-subtitle {
  font-size: 16px;
  font-weight: 300;
  margin-bottom: 25px;
  /* Reduced from 30px */
  max-width: 900px;
  line-height: 1.25;
  /* Thinner line-height per request */
  position: relative;
  z-index: 1;
}

.box-divider {
  height: 1px;
  background-color: rgba(255, 74, 0, 0.5);
  /* Orange dividing line as requested */
  margin-bottom: 25px;
  /* Reduced from 30px */
  position: relative;
  z-index: 1;
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 20px;
  align-items: center;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.btn-select {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 59px;
  padding: 0 30px;
  border-radius: var(--border-radius-btn);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background-color: #fff;
  color: #000;
  transition: all 0.2s ease;
  position: relative;
}

.btn-select.active {
  background-color: var(--primary-orange);
  color: #fff;
}

.btn-select.active svg {
  fill: #fff;
}

.btn-select svg {
  width: 24px;
  height: 24px;
  fill: #000;
}

/* Section 2 Details */
.section-2-grid {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  /* Align labels at the top */
  gap: 80px;
  /* Tighter gap */
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.form-label {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 15px;
  display: block;
}

.color-options {
  display: flex;
  gap: 20px;
}

.color-btn {
  width: 160px;
  height: 52px;
  /* Slightly shorter */
  border-radius: var(--border-radius-btn);
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 20px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  border: 1px solid transparent;
  background-color: #fff;
  color: #000;
}

.color-btn.active {
  background-color: var(--primary-orange);
  color: #fff;
  border-color: #000;
}

.color-dot {
  width: 42px;
  /* Figma: 42x42 */
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.color-dot.white-dot {
  background-color: #fff;
}

.color-dot.black-dot {
  background-color: #000;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 20px;
}

.right-controls {
  display: flex;
  flex-direction: column;
}

.quantity-label {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 15px;
  display: block;
}

.quantity-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.q-btn {
  background: none;
  border: none;
  color: var(--primary-orange);
  font-size: 28px;
  /* Larger symbols */
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.q-box {
  border: 1px solid var(--primary-orange);
  width: 72px;
  height: 41px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
}

.dome-preview {
  position: absolute;
  left: 70%;
  bottom: -60px;
  /* Forces the image to hang outside the bottom edge */
  width: 220px;
  /* Slightly larger as seen in the reference */
  height: auto;
  z-index: 10;
}

.dome-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Section 3 Details */
.btn-select.has-tag {
  position: relative;
}

.btn-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-orange);
  color: #fff;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 5px;
  white-space: nowrap;
  font-weight: 300;
}

.features-list {
  list-style: disc;
  margin-left: 20px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  margin-top: 30px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.large-preview-img {
  width: 100%;
  border-radius: 12px;
  margin-top: 20px;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.opslag-content-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.grid-btn {
  min-height: 80px;
  /* Taller to accommodate thicker/larger text */
  background-color: #fff;
  color: #000;
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  /* Align text to the left */
  padding: 0 20px;
  font-size: 18px;
  /* Increased font size */
  font-weight: 900;
  cursor: pointer;
  border: none;
  line-height: 1.2;
}

.grid-btn.active {
  background-color: var(--primary-orange);
  color: #fff;
}

.grid-btn span {
  font-weight: 900;
  /* Made bold to match the screenshot */
  font-size: 18px;
  /* Matched the top text size */
  margin-top: 4px;
}

.recorder-preview {
  position: absolute;
  right: 20px;
  bottom: 40px;
  width: 206px;
  text-align: center;
}

.recorder-preview img {
  width: 100%;
  height: auto;
}

.recorder-text {
  position: absolute;
  top: -65px;
  /* Moved higher up to match design */
  right: 15px;
  /* Centered visually with image */
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-align: left;
  line-height: 1.2;
}

.sidebar-wrapper {
  width: 464px;
  min-width: 464px;
  position: sticky;
  top: 40px;
}

/* Right Sidebar */
.sidebar {
  position: relative;
  width: 100%;
  height: 600px;
  background: linear-gradient(180deg, #262626 0%, #000000 100%);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}



.sidebar-header {
  padding: 23px 30px 15px 46px;
  color: #fff;
}

.sidebar-title {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 0;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.sidebar-price {
  font-size: 18px;
  font-weight: 900;
  color: #000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-price span {
  color: #fff;
  font-weight: 700;
}

.sidebar-price .price-amount {
  color: var(--primary-orange);
}

/* Items wrapper with scrollbar indicator */
.sidebar-items-wrapper {
  display: flex;
  position: relative;
  flex: 1;
  min-height: 0;
}

.sidebar-items {
  display: flex;
  flex-direction: column;
  padding: 0 87px 0 36px;
  /* 464 - 341 (line width) - 36 (left padding) = 87px right padding */
  flex: 1;
  overflow-y: auto;
  max-height: 310px; /* Show ~4 items, scroll for the rest */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.sidebar-items::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.summary-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 74, 0, 0.4);
  gap: 15px;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item.dimmed {
  opacity: 0.25;
}

.summary-icon {
  width: 53px;
  height: 53px;
  min-width: 53px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.summary-details {
  flex: 1;
}

.summary-details h4 {
  color: var(--primary-orange);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
  display: inline;
  margin-right: 6px;
}

.summary-details p {
  color: #fff;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.15;
}

.item-qty {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  display: inline;
}

/* Decorative scrollbar indicator */
.sidebar-scrollbar {
  width: 13px;
  height: 203px;
  /* Requested fixed height */
  background-color: var(--primary-orange);
  border-radius: 20px;
  position: absolute;
  right: 15px;
  top: 15px;
  /* Adjust top padding since it's no longer stretched bottom:0 */
  display: flex;
  align-items: flex-start;
  padding: 3px 2px;
  z-index: 4;
  /* Higher than man image to stay on top */
}

.scrollbar-thumb {
  width: 9px;
  height: 34px;
  background-color: rgba(255, 255, 255, 0.56);
  border-radius: 20px;
}

.sidebar-actions {
  position: absolute;
  top: 457px;
  left: 36px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  z-index: 5;
  /* Ensure they are above everything else */
}

.btn-primary {
  width: 173px;
  height: 36px;
  background-color: var(--primary-orange);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.btn-secondary {
  width: 151px;
  height: 36px;
  background-color: transparent;
  color: #fff;
  border: 1px solid var(--primary-orange);
  border-radius: 5px;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.sidebar-footer {
  background-color: var(--primary-orange);
  padding: 22px 30px 22px 20px;
  color: #fff;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  min-height: 88px;
  display: flex;
  align-items: flex-start;
  z-index: 2;
}

.sidebar-footer p {
  font-size: 16px;
  font-weight: 300;
  max-width: 284px;
  z-index: 2;
  position: relative;
  line-height: 1.0;
}

.sidebar-footer p strong {
  font-weight: 700;
}

.footer-man {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 160px;
  height: 227px;
  object-fit: cover;
  object-position: top left;
  pointer-events: none;
  z-index: 99;
  /* Higher than scrollbar (z-index 4), so the scrollbar goes over his head */
}

/* =========================================
   Responsive Adjustments for Smaller Desktops
   ========================================= */
@media (max-width: 1440px) {
  .container {
    padding: 40px 20px;
  }

  .layout-grid {
    gap: 30px;
  }



  .btn-select {
    padding: 0 15px;
    font-size: 16px;
  }

  .section-2-grid {
    gap: 30px;
  }
}

/* Fix for tall sidebar on short screens */
@media (max-height: 950px) {
  .sidebar {
    position: static;
  }
}

@media (max-width: 1150px) {
  .layout-grid {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-width: auto;
    max-width: 800px;
    margin: 0 auto;
    position: static;
    /* Disable sticky when stacked */
  }

  .form-column {
    min-width: 100%;
  }

  .dome-preview {
    display: none;
    /* Hide illustrative imagery if it overlaps on mobile/tablet */
  }

  .footer-man {
    right: 0;
  }
}

/* =========================================
   MOBILE RESPONSIVE CLASSES (max-width: 768px)
   ========================================= */

@media (max-width: 768px) {

  /* === GLOBAL MOBILE OVERRIDES === */
  *,
  *::before,
  *::after {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hide Desktop Sidebar */
  .sidebar-wrapper {
    display: none !important;
  }

  /* Show Mobile Header */
  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
    margin-bottom: 20px;
  }

  .mobile-logo {
    font-size: 18px;
    line-height: 1.1;
    font-weight: 300;
  }

  .mobile-logo strong {
    font-weight: 900;
    color: var(--primary-orange);
  }

  .mobile-header-icons {
    display: flex;
    gap: 18px;
    font-size: 22px;
    color: var(--primary-orange);
  }

  /* Show Mobile Floating Action */
  .mobile-floating-action {
    display: flex;
    margin-top: 25px;
  }

  .btn-step-2 {
    width: 100% !important;
    background-color: var(--primary-orange);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    padding: 16px 0;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
  }

  /* === STRUCTURAL === */
  .container {
    padding: 15px !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .layout-grid {
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
  }

  .form-column {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* === TOP BENEFITS === */
  .top-benefits {
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 15px !important;
    font-size: 13px !important;
  }

  .benefit-item {
    font-size: 13px !important;
    gap: 6px !important;
  }

  .benefit-icon {
    width: 18px !important;
    height: 18px !important;
  }

  /* === STEPS === */
  .steps-container {
    margin-bottom: 15px !important;
  }

  .steps-nav {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-top: 15px !important;
  }

  .step-item {
    font-size: 15px !important;
    gap: 10px !important;
  }

  /* === PAGE TITLE & TEXT === */
  .page-title {
    font-size: 22px !important;
  }

  .steps-subtitle {
    font-size: 16px !important;
  }

  .steps-description {
    font-size: 13px !important;
  }

  /* === CONFIG BOXES === */
  .config-box {
    padding: 20px 15px !important;
    overflow: visible !important;
  }

  .box-title {
    font-size: 18px !important;
  }

  .box-subtitle {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .box-divider {
    margin-bottom: 15px !important;
  }

  /* === BOX 1: Het camerasysteem === */
  .btn-group {
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }

  .btn-select {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: 44px !important;
    font-size: 13px !important;
    padding: 0 8px !important;
    gap: 6px !important;
    white-space: nowrap !important;
  }

  .btn-select svg,
  .btn-select i {
    width: 14px !important;
    height: 14px !important;
    font-size: 14px !important;
  }

  /* === BOX 2: Aantal camera('s) === */
  .section-2-grid {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 15px !important;
    padding-right: 0 !important;
  }

  .control-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .form-label,
  .quantity-label {
    font-size: 15px !important;
    margin-bottom: 0 !important;
  }

  .color-options {
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }

  .color-btn {
    padding: 0 10px !important;
    height: 38px !important;
    font-size: 13px !important;
  }

  .color-dot {
    width: 22px !important;
    height: 22px !important;
  }

  .quantity-actions {
    gap: 8px !important;
  }

  .q-btn {
    font-size: 18px !important;
  }

  .q-box {
    width: 38px !important;
    height: 38px !important;
    font-size: 16px !important;
  }

  .dome-preview {
    display: block !important;
    position: absolute !important;
    width: 120px !important;
    bottom: -20px !important;
    right: 5px !important;
    z-index: 10 !important;
  }

  /* === BOX 3: Beeldkwaliteit === */
  .resolution-grid {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }

  .resolution-grid .btn-select {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 0 6px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  .resolution-grid .btn-select.has-tag {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 0 6px !important;
  }

  .features-list {
    font-size: 13px !important;
  }

  .large-preview-img {
    width: 100% !important;
    height: auto !important;
  }

  /* === BOX 4: Opslag recorder === */
  .opslag-content-wrapper {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
  }

  .grid-2x2 {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 60% !important;
    flex: none !important;
  }

  .grid-btn {
    min-height: 44px !important;
    font-size: 13px !important;
    padding: 8px 10px !important;
    width: 100% !important;
    height: auto !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    line-height: 1.2 !important;
  }

  .grid-btn span {
    font-size: 13px !important;
    margin-top: 2px !important;
    font-weight: 700 !important;
  }

  .recorder-preview {
    position: relative !important;
    width: 40% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    margin: auto 0 !important;
    /* Perfect vertical centering insurance */
    padding-top: 60px;
    left: 3px;
  }

  .recorder-preview img {
    width: 100% !important;
    max-width: 140px !important;
    height: auto !important;
  }

  /* === FOOTER MAN IMAGE === */
  .footer-man {
    display: none !important;
  }
}