/* BrandMonks Intake System - Final Split Screen Design */

html {
  scroll-behavior: smooth;
}

:root {
  --primary: #FF7B62;
  --primary-bg: #FFF5F2;
  --text-dark: #1F2937;
  --text-grey: #6B7280;
  --border-color: #E5E7EB;
  --bg-dark: #000000;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
}

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

/* Body Background - Floating Orb Style */
body {
  font-family: var(--font-family);
  background-color: #050505;
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow-x: hidden;
  /* Prevent horizontal scroll from orb */
}

/* Floating Orb */
body::before {
  content: '';
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 74, 0.15) 0%, rgba(255, 107, 74, 0) 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  animation: floatOrb 20s ease-in-out infinite;
  filter: blur(60px);
}

@keyframes floatOrb {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  33% {
    transform: translate(-30%, -60%) scale(1.1);
  }

  66% {
    transform: translate(-70%, -40%) scale(0.9);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ... existing styles ... */

.brand-logo img {
  height: auto;
  width: 100%;
  max-width: 180px;
  display: block;
}

/* Large Wrapper for Split Layout */
.split-wrapper {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  align-items: flex-start;
  gap: 40px;
  position: relative;
  z-index: 1;
}

/* ... existing sidebar styles ... */

/* Custom Dropdown Styling */
select.form-select,
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 12px 16px;
  padding-right: 40px;
  /* Space for arrow */
  font-size: 14px;
  color: #111827;
  width: 100%;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

select.form-select:hover,
select:hover {
  border-color: var(--primary);
}

select.form-select:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

/* Fix for placeholder/default option color if needed */
select:invalid {
  color: #9CA3AF;
}

/* Invalid Input Styling for Validation */
/* [DISABLED] Legacy .invalid styling 
input.invalid,
textarea.invalid,
select.invalid {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

input.invalid:focus,
textarea.invalid:focus,
select.invalid:focus {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}
*/


/* Left Sidebar (Dark) */
.sidebar {
  width: 35%;
  padding: 60px 40px;
  color: white;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
}

.brand-logo {
  margin-bottom: 40px;
}

.brand-logo img {
  height: auto;
  width: 100%;
  max-width: 180px;
  display: block;
}

.sidebar h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: white;
  line-height: 1.2;
}

.sidebar p {
  color: #E5E7EB;
  line-height: 1.6;
  margin-bottom: 32px;
  font-size: 16px;
  max-width: 90%;
}

.usp-list {
  list-style: none;
  margin-bottom: auto;
}

/* Ruimte Fix & Uniformity */
#step-listing h2,
.wizard-step h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-dark);
}

.form-group,
.listing-type-grid,
.service-grid {
  margin-bottom: 40px;
  /* Meer lucht zoals index.html */
}

/* Specific override for inside grids if needed, but 'service-grid' usually contains cards 
.service-grid .card-inner {
   consistent height/padding if needed 
}                   */

.wizard-step label {
  margin-bottom: 10px;
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #374151;
}

/* Helper text adjustments */
.type-card-inner div:last-child {
  color: #6B7280;
  /* Lichter grijs */
}

/* Product Item Styling Update */
.product-item {
  background: #fff;
  border: 1px solid #F3F4F6;
  padding: 32px;
  /* Increased padding */
  border-radius: 12px;
  margin-bottom: 24px;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Upload Feedback Styling */
.upload-box-label {
  position: relative;
  border: 1px dashed #D1D5DB;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #FAFAFA;
}

.upload-box-label:hover {
  border-color: #FF6B4A;
  background: #fff;
}

.file-feedback {
  display: block;
  font-size: 12px;
  color: #10B981;
  /* Groen voor succes */
  margin-top: 8px;
  font-weight: 600;
  min-height: 18px;
}

/* Verwijder knop styling */
.product-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  /* More space */
}

.btn-remove-product {
  background: none;
  border: none;
  color: #EF4444;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}

.btn-remove-product:hover {
  color: #DC2626;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  /* Increased gap */
  margin-bottom: 24px;
}

.usp-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  /* Tighter spacing */
  color: white;
  /* Pure white text */
  font-weight: 500;
  font-size: 15px;
}

.usp-icon {
  color: #10B981;
  /* Green checkmark */
  font-weight: bold;
  font-size: 18px;
}

.contact-details {
  margin-top: 40px;
  color: white;
  font-size: 15px;
  line-height: 1.6;
}

.contact-details strong {
  color: white;
  font-weight: 700;
  margin-right: 4px;
}

/* Contact Links Styling */
.contact-details a {
  color: inherit;
  /* Behoud de grijze/witte kleur van de parent */
  text-decoration: none;
  /* Geen onderstreping standaard */
  transition: color 0.2s ease;
}

.contact-details a:hover {
  color: #FF6B4A;
  /* BrandMonks Orange on hover (more visibility than white on white) */
  text-decoration: underline;
}

/* ... Sidebar content styles remain ... */

/* Right Content (White Card) */
.main-card {
  width: 65%;
  flex: 1;
  background: white;
  border-radius: 24px;
  /* Requested 20px+ */
  padding: 60px;
  /* Ruime padding */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: relative;
  /* REMOVED overflow-y: auto to allow body scroll */
  display: flex;
  flex-direction: column;
}

/* --- Form Styles (Restored) --- */
.form-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  margin-top: 32px;
  color: var(--text-dark);
}

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

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-dark);
}

/* Input Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text-dark);
  background: white;
  transition: all 0.2s;
  box-sizing: border-box;
  /* Critical for padding */
}

/* Readonly / Magic Link Filled State */
.readonly-filled {
  background-color: #F9FAFB !important;
  /* Extremely light gray */
  color: #6B7280 !important;
  /* Light text */
  cursor: default;
}

/* Custom Error State */
/* [DISABLED] Legacy input.invalid
input.invalid,
textarea.invalid {
  border-color: #EF4444;
  background-color: #FEF2F2;
}
*/

/* Custom Error Message Bubble */
.error-message {
  color: #EF4444;
  font-size: 12px;
  margin-top: 6px;
  display: block;
  font-weight: 500;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.1);
}

textarea {
  resize: vertical;
  /* Allow vertical resize only */
}

.main-card h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-dark);
}

/* Checkbox Cards Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  /* Reduced gap */
  margin-bottom: 40px;
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  position: relative;
  cursor: pointer;
  display: block;
  /* Label element behaves as block */
}

/* Hide default checkbox */
.service-card input[type="checkbox"] {
  display: none;
}

/* The card visual */
.card-inner {
  display: flex;
  align-items: center;
  /* background: #F9FAFB; -> Removed to let type-card-inner handle it or similar? No, standard card style */
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  /* Match design usually 12px or more */
  padding: 16px;
  /* Compact styling */
  transition: all 0.2s;
  height: 100%;
}

.service-card:hover .card-inner {
  border-color: #D1D5DB;
  /* Slightly darker on hover */
}

/* The Checkbox Square itself */
.cb-square {
  width: 20px;
  height: 20px;
  border: 1px solid #D1D5DB;
  border-radius: 5px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  flex-shrink: 0;
  transition: all 0.2s;
}

.service-label {
  font-weight: 500;
  /* Medium instead of SemiBold */
  font-size: 14px;
  /* Smaller */
  color: var(--text-dark);
}

/* Selected State Logic */
.service-card input:checked+.card-inner {
  border-color: var(--primary);
  /* #FF6B4A */
  background-color: #FFF5F2;
  /* Very light orange */
}

.service-card input:checked+.card-inner .cb-square {
  background-color: var(--primary);
  border-color: var(--primary);
  /* Optional checkmark SVG could be added via background-image if desired, or handled via pseudo-element */
}

/* Pseudo element for checkmark */
.cb-square::after {
  content: "";
  display: block;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  margin-bottom: 2px;
}

/* --- Wizard Styles --- */

/* Fix: Make form take full height to push nav to bottom */
#extensive-form {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  flex: 1;
  /* Grow to fill main-card */
}

.wizard-step {
  display: none;
  animation: fadeIn 0.4s ease;
  flex: 1;
  /* Push footer down */
}

/* Progress Bar */
.wizard-progress-track {
  width: 100%;
  height: 6px;
  background: #F3F4F6;
  border-radius: 3px;
  margin-bottom: 32px;
  overflow: hidden;
}

.wizard-progress-bar {
  height: 100%;
  background: var(--primary);
  /* Orange */
  width: 0%;
  transition: width 0.3s ease;
}

.wizard-step.active {
  display: block;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  /* Push to bottom of flex container */
  padding-top: 24px;
  border-top: 1px solid #E5E7EB;
}

.wizard-nav button {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

button:active {
  transform: scale(0.98);
}

#btn-prev {
  background: transparent;
  color: var(--text-grey);
  border: 1px solid #E5E7EB;
}

#btn-prev:hover {
  background: #F3F4F6;
  color: var(--text-dark);
}

#btn-next {
  background: var(--primary);
  /* #FF6B4A */
  color: white;
  border: none;
  margin-left: auto;
  /* Push to right if prev hidden */
}

#btn-next:hover {
  background: #E85A3A;
  /* Slightly darker orange, NOT white/transparent */
  color: white;
}

.wizard-step-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.wizard-step-subtitle {
  font-size: 14px;
  color: var(--text-grey);
  margin-bottom: 24px;
}

.service-card input:checked+.card-inner .cb-square::after {
  opacity: 1;
}


/* Specific Cards (Icon + Text) for Phase 2 Listing Types */
.icon-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 cols for Listing types */
  gap: 12px;
}

.icon-card {
  cursor: pointer;
  position: relative;
}

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

.icon-card-inner {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
  background: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.icon-card-inner svg {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  color: var(--text-grey);
}

.icon-card input:checked+.icon-card-inner {
  border-color: var(--primary);
  background-color: var(--primary-bg);
}

.icon-card input:checked+.icon-card-inner svg {
  color: var(--primary);
}

/* Generic Radio Group (Text only) */
.radio-group-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-btn-label {
  cursor: pointer;
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.radio-btn-label input {
  accent-color: var(--primary);
  margin: 0;
  width: 16px;
  height: 16px;
}

.radio-btn-label:hover {
  border-color: var(--text-grey);
}


/* Main CTA Button */
.btn-submit {
  width: 100%;
  background-color: var(--primary);
  color: white;
  font-size: 16px;
  font-weight: 700;
  padding: 16px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 32px;
  transition: background 0.2s;
}

.btn-submit:hover {
  background-color: #E55A3B;
}

/* Animated Gradient Keyframes */
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Mobile */
@media (max-width: 900px) {
  .split-wrapper {
    flex-direction: column;
    margin: 0;
    min-height: auto;
  }

  .sidebar {
    width: 100%;
    padding: 30px;
  }

  .main-card {
    width: 100%;
    border-radius: 20px 20px 0 0;
    /* Rounded top on mobile */
    padding: 30px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .icon-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  body::before {
    /* Maak de orb statisch of kleiner op mobiel om batterij/cpu te sparen */
    animation: none;
    width: 300px;
    height: 300px;
    opacity: 0.5;
  }
}

/* --- Onboarding / Drag & Drop Styles --- */



/* Dynamic Icon System (voor externe SVG's met kleurwissel) */
.dynamic-icon {
  width: 48px;
  height: 48px;
  background-color: #374151;
  /* Standaard donkergrijs */
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: background-color 0.2s ease;
  display: inline-block;
}

/* Kleur van het icoon veranderen bij selectie */
input[type="radio"]:checked+.type-card-inner .dynamic-icon {
  background-color: #FF4F00;
}

/* Active State: Oranje */
input:checked+.type-card-inner .dynamic-icon,
input:checked+.icon-box-inner .dynamic-icon,
input:checked+.card-inner .dynamic-icon {
  background-color: #FF6B4A;
  /* BrandMonks Oranje */
}

.onboarding-greeting {
  font-size: 16px;
  margin-bottom: 24px;
  color: #4B5563;
  background-color: #F3F4F6;
  padding: 12px 16px;
  border-radius: 6px;
  border-left: 4px solid #10B981;
  /* Green accent */
}

/* Drag & Drop Zone */
.drag-drop-zone {
  border: 2px dashed #D1D5DB;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  background-color: #FAFAFA;
  transition: all 0.2s ease;
  cursor: pointer;
  margin-bottom: 12px;
  position: relative;
}

.drag-drop-zone:hover,
.drag-drop-zone.drag-over {
  border-color: #10B981;
  background-color: #ECFDF5;
}

.drag-drop-zone input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.dd-icon {
  font-size: 24px;
  color: #9CA3AF;
  margin-bottom: 8px;
  display: block;
}

.dd-text {
  font-weight: 500;
  color: #374151;
}

.dd-subtext {
  font-size: 12px;
  color: #6B7280;
  margin-top: 4px;
}

/* Selected Files List */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #E5E7EB;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
}

.file-name {
  color: #374151;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 80%;
}

.file-remove {
  color: #EF4444;
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
}

.file-remove:hover {
  color: #DC2626;
}

/* Progress / Success States */
.upload-status {
  display: none;
  /* Hidden by default */
  text-align: center;
  padding: 40px;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: #E5E7EB;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 16px;
  margin-bottom: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: #10B981;
  width: 0%;
  transition: width 0.3s ease;
}

.success-message {
  display: none;
  text-align: center;
  padding: 40px;
}

.success-icon {
  font-size: 48px;
  color: #10B981;
  margin-bottom: 16px;
  display: block;
}

.hidden {
  display: none !important;
}

/* --- Thank You Page Styles --- */

/* Specific modifier for the Thank You page card to make it compact/smaller */
.main-card.thank-you-card {
  width: auto;
  /* Let it shrink to content */
  max-width: 700px;
  /* Maximum standard width */
  align-self: center;
  /* Center vertically if in flex container */
  padding: 60px 80px;
  /* Internal padding */
  min-height: auto;
  /* Remove implied large height */
  margin: 0 auto;
  /* Center horizontally */
  flex: 0 0 auto;
  /* Do not grow */
}

/* On mobile, standard main-card takes over, but we can refine */
@media (max-width: 900px) {
  .main-card.thank-you-card {
    width: 100%;
    padding: 40px;
  }
}


.thank-you-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Removed large fixed height */
}

.thank-you-title {
  font-size: 32px;
  /* Slightly larger as per reference */
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-dark);
}

/* --- Card Micro-interactions --- */
.service-card,
.icon-box-inner,
.option-card-inner {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.service-card:hover .card-inner,
.icon-box-label:hover .icon-box-inner,
.option-card-label:hover .option-card-inner {
  border-color: #FF6B4A80;
  /* Light orange border on hover */
}

/* --- Loading Spinner --- */
.btn-loading {
  color: transparent !important;
  position: relative;
  pointer-events: none;
  cursor: not-allowed;
}

.btn-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Progress Bar (New Design) --- */
.wizard-progress-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  /* User said 3px but 6px looks better visually with text line-height. Sticking close to request though. Let's do 4px. */
  width: 100%;
  margin-bottom: 32px;
}

/* Progress Bar - Pill Shape */
.wizard-progress-track {
  background-color: #FFF5F2;
  /* Zeer licht oranje */
  border-radius: 999px;
  /* Pill shape */
  height: 12px;
  border: none;
  margin-bottom: 40px;
  width: 100%;
}

.wizard-progress-bar {
  background-color: #FF6B4A;
  border-radius: 999px;
  height: 100%;
  width: 0%;
  transition: width 0.4s ease;
}


/* Titel Styling */
#welcome-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-dark);
}

/* Input Styling Tweaks */
input[readonly] {
  background-color: #FAFAFA;
  /* Iets grijzer om aan te geven dat het al bekend is */
  color: #6B7280;
  cursor: default;
}

/* --- Smooth Section Transitions --- */
/* We will use keyframes for entering sections. 
   Exiting is tricky with straight display:none, so we focus on Smooth Entry (Slide Up/In).
*/
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
    /* User asked for translateX, but Y usually feels better for wizards. Let's stick to user request X if strict? "Huidige ... X-20px". Okay let's try X. */
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.wizard-step.active {
  display: block;
  animation: slideUpFade 0.4s ease forwards;
}

.thank-you-text {
  font-size: 18px;
  /* Slightly larger readability */
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 40px;
  max-width: 550px;
}

.btn-secondary {
  width: 100%;
  background-color: #F3F4F6;
  /* Light grey */
  color: var(--text-dark);
  border: 1px solid #E5E7EB;
  font-size: 16px;
  font-weight: 600;
  padding: 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.2s;
  text-decoration: none;
  /* In case we use <a> tags */
  display: block;
  /* If <a> tag */
  text-align: center;
}

/* --- Product Listing Styles (New) --- */

/* Listing Type Cards */
.listing-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.type-card-label input {
  display: none;
}

.type-card-inner {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.type-card-label input:checked+.type-card-inner {
  border-color: #FF6B4A;
  background-color: #FFF5F2;
}

.type-icon {
  font-size: 24px;
  margin-bottom: 12px;
  color: #1F2937;
}

/* Upload Box Styling (Dashed) */
.upload-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 8px;
}

.upload-box-label {
  border: 1px dashed #D1D5DB;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #FAFAFA;
}

.upload-box-label:hover {
  border-color: #FF6B4A;
  background: #fff;
}

.upload-icon {
  color: #FF6B4A;
  font-size: 20px;
  margin-bottom: 8px;
}

/* Product Item Styling */
.product-item {
  background: #fff;
  border: 1px solid #F3F4F6;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 16px;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Helper link */
.helper-link {
  font-size: 13px;
  color: #6B7280;
  text-align: center;
  display: block;
  margin-top: 8px;
}

.helper-link a {
  color: #1F2937;
  text-decoration: underline;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-dashed-full {
  width: 100%;
  border: 1px dashed #FF6B4A;
  background: #FFF5F2;
  color: #FF6B4A;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 32px;
  transition: all 0.2s;
}

.btn-dashed-full:hover {
  background: #FFE4DD;
}

@media (max-width: 600px) {

  .listing-type-grid,
  .upload-grid-2,
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

/* --- 3D Step Styles --- */

/* Option Cards (Yes/No style) */
.option-card-label input {
  display: none;
}

.option-card-inner {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  /* Slightly softer than Listing Types */
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
  height: 100%;
}

.option-card-label input:checked+.option-card-inner {
  border-color: #FF6B4A;
  background: #FFF5F2;
}

.custom-check {
  width: 20px;
  height: 20px;
  border: 1px solid #D1D5DB;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.option-card-label input:checked+.option-card-inner .custom-check {
  background: #FF6B4A;
  border-color: #FF6B4A;
}

.custom-check::after {
  content: "";
  display: block;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  margin-top: -2px;
}

.option-card-label input:checked+.option-card-inner .custom-check::after {
  opacity: 1;
}

/* Icon Grid (Perspectives) */
.icon-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.icon-box-label input {
  display: none;
}

.icon-box-inner {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #fff;
  min-height: 100px;
  transition: all 0.2s;
}

.icon-box-label input:checked+.icon-box-inner {
  border-color: #FF6B4A;
  background: #FFF5F2;
}

/* Small checkmark top-right logic for icon box */
/* Fix voor Icon Box vinkjes positie */
.icon-box-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  min-height: 100px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.icon-box-check {
  position: absolute;
  top: 10px;
  left: 10px;
  /* Linksboven */
  right: auto;
  width: 20px;
  height: 20px;
  background: white;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  display: flex;
  /* Altijd zichtbaar frame */
}

/* Actieve status */
.icon-box-label input:checked+.icon-box-inner .icon-box-check {
  background: #FF6B4A;
  border-color: #FF6B4A;
}

.icon-box-check::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  position: absolute;
  top: 3px;
  left: 7px;
  transform: rotate(45deg);
}

/* NEW: Inline SVG Icon Styling */
.custom-icon-svg {
  width: 32px;
  height: 32px;
  stroke: #6B7280;
  /* Default Grey */
  stroke-width: 2;
  fill: none;
  transition: all 0.2s ease;
}

/* Parent Checked -> Icon becomes Orange */
.type-card-label input:checked+.type-card-inner .custom-icon-svg,
.icon-box-label input:checked+.icon-box-inner .custom-icon-svg {
  stroke: #FF6B4A;
}

/* Validation Error Styles */
/* [DISABLED] Legacy .input-error and .group-error
.input-error {
  border: 1px solid #EF4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

.group-error {
  border: 1px solid #EF4444 !important;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
  background-color: rgba(239, 68, 68, 0.02);
}
*/

/* File Upload Visual List */
.file-list-container {
  margin-top: 12px;
  width: 100%;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #374151;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.file-item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
  font-weight: 500;
}

.btn-remove-file {
  background: none;
  border: none;
  color: #EF4444;
  font-weight: bold;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.btn-remove-file:hover {
  background: #FEE2E2;
  transform: scale(1.1);
}


.icon-box-check::after {
  /* Clear old pseudo element content if any */
  content: none;
}

/* Responsive adjustment for icon grid */
@media (max-width: 600px) {
  .icon-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.btn-secondary:hover {
  background-color: #E5E7EB;
  border-color: #D1D5DB;
}

/* Ensure buttons act like blocks if using <a> tags */
button.btn-submit,
a.btn-submit {
  display: block;
  text-decoration: none;
  text-align: center;
}

/* Zorg dat de checkbox ook werkt binnen de horizontale kaarten (Functionaliteiten) */
.type-card-label input:checked+.type-card-inner .icon-box-check {
  background: #FF6B4A;
  border-color: #FF6B4A;
}

/* Teken het vinkje wanneer de checkbox in een horizontale kaart geselecteerd is */
.type-card-label input:checked+.type-card-inner .icon-box-check::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  position: absolute;
  top: 3px;
  left: 6px;
  /* Iets aangepast voor centrering */
  transform: rotate(45deg);
}

/* Basis styling voor de checkbox in de functionaleiten grid */
.type-card-inner .icon-box-check {
  position: relative;
  /* Belangrijk voor positionering vinkje */
  width: 20px;
  height: 20px;
  background: white;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  flex-shrink: 0;
  display: block;
}

/* --- CLEAN START FIX (STRICT OPT-IN) --- */

/* 1. Default State: Always Gray/Clean */
input:invalid,
textarea:invalid,
select:invalid {
  border-color: #E5E7EB !important;
  background-color: #FFFFFF !important;
  box-shadow: none !important;
  outline: none !important;
}

.validation-group:invalid {
  border: none !important;
  background: none !important;
}

/* 2. Opt-In Validation States */
/* PAS als de container de class .show-errors heeft, laten we de browser :invalid zien */

.show-errors input:invalid,
.show-errors textarea:invalid,
.show-errors select:invalid {
  border-color: #EF4444 !important;
  background-color: #FEF2F2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* 3. Explicit JS Error Classes (altijd rood, want JS heeft dit bepaald) 
   MAAR: Ook deze mogen alleen zichtbaar zijn als we in de 'show-errors' modus zitten. 
   Dit voorkomt dat browsers die de HTML cachen/restoren met classes toch rood tonen. */

.show-errors input.input-error,
.show-errors textarea.input-error,
.show-errors select.input-error {
  border-color: #EF4444 !important;
  background-color: #FEF2F2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* Voor de groepen ook strenger zijn: */
.show-errors .validation-group.group-error,
.show-errors .group-error {
  border: 1px solid #EF4444 !important;
  border-radius: 12px;
  padding: 10px;
  background-color: rgba(239, 68, 68, 0.05) !important;
}

.field-error-message,
.group-error-message {
  color: #DC2626;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}

input.invalid,
textarea.invalid,
select.invalid {
  border-color: #EF4444 !important;
  background-color: #FEF2F2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}
