/* Reset some default styles */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

/* Hide Mobile-only elements */
.header-mobile { display: none; }

/* Top navigation bar for admin pages */
.admin-nav {
  position: fixed;
  width: 100%;
  height: 70px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  padding: 0;                /* No side padding here */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  z-index: 1000;
}

.nav-content {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 16px; /* already present */
  height: 100%;
  gap: 36px;           /* <--- add or increase this! (try 36px, adjust as you want) */
}

/* Group logo, greeting, and nav links container */
.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Logo */
.nav-logo img {
  height: 45px;
  max-width: 180px;
  display: block;
}

/* Greeting */
.nav-greeting {
  font-size: 16px;
  color: #000000;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  line-height: 1;
}

/* Main nav links */
.main-nav-links {
  list-style: none;
  display: flex;
  flex: 1 1 auto;
  padding: 0;
  margin: 0;
  gap: 6px;
  min-width: 0;
  align-items: center;
}

.main-nav-links li a {
  color: #000000;
  text-decoration: none;
  font-size: 15px;
  height: 45px;
  line-height: 45px;
  padding: 0px 12px;
  border-radius: 4px;
  transition: background-color 0.2s ease-in-out;
  white-space: nowrap;
}




.main-nav-links li a:hover {
  background-color: #f2f2f2;
}

.main-nav-links li a.active {
  background-color: #e00000;
  color: #ffffff;
  font-weight: bold;
}

/* Hamburger icon */
.hamburger {
  margin-left: 0;           /* no auto, just right after nav-content */
  margin-right: 16px;       /* nice gap from the right edge */
  flex-shrink: 0;
  font-size: 26px;
  cursor: pointer;
  color: #000;
  position: relative;
  z-index: 1001;
  height: 48px;
  display: flex;
  align-items: center;
}

/* Dropdown menu */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 10px 20px;
  background-color: #ffffff;
  border: 1px solid #ccc;
  position: absolute;
  top: 70px;
  right: 20px;
  display: none;
  flex-direction: column;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.nav-menu.show {
  display: flex;
}

.nav-menu li a {
  color: #000;
  text-decoration: none;
}

/* Login container — still used on login page */
.login-container {
  background-color: white;
  padding: 60px 50px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 500px;
  margin-top: 10px;
}

.login-logo {
  display: block;
  margin: 0 auto 30px auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.login-btn {
    padding: 14px 0;    /* 16px top & bottom, 0 left & right (or add left/right as needed) */
    font-size: 16px;
}

.login-container h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #1c1c1c;
}

/* Form styles (used on login/register) */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.normalbutton {
 width: auto !important;
 margin-top: 10px;
}

button[type="submit"] {
  width: 100%;
  background-color: #e00000;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #c40000;
}

/* Password input wrapper */
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
  padding: 10px 40px 10px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password svg {
  width: 20px;
  height: 20px;
  fill: #cc0000;
  transition: fill 0.3s ease;
}



/* Utility class for centering pages like login */
.centered-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Admin page content wrapper */
.page-content,
.page-content-sellform {
  flex: 1 1 auto;
  background-color: #f7f9fc; /* fallback base */
  margin: 60px auto 0 auto; /* Remove bottom margin! */
  padding: 40px;
  border-radius: 10px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.page-content {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 0;
}

/* User table styles */
.user-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #fff;
  border: 1px solid #ccc;
}

.user-table th,
.user-table td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: left;
  vertical-align: middle;
}

.user-table th {
  background-color: #f8f8f8;
  font-weight: bold;
}

.user-table input[type="text"],
.user-table input[type="password"],
.user-table input[type="email"],
.user-table select {
  width: 100%;
  padding: 6px 10px;
  box-sizing: border-box;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.add-user-btn,
.change-btn {
  padding: 8px 14px;
  background-color: #e00000;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
}

.change-btn {
  background-color: #777;
  cursor: default;
}

.add-user-btn:hover {
  background-color: #c40000;
}

.delete-btn {
  color: red;
  text-decoration: none;
  font-weight: bold;
}

.delete-btn:hover {
  text-decoration: underline;
}

.new-user-row td {
  background-color: #fafafa;
}

.user-table td:nth-child(4),
.user-table th:nth-child(4) {
  width: 120px; /* Adjust as needed */
  text-align: center;
}

.user-table td:nth-child(3),
.user-table th:nth-child(3) {
  width: 220px;
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
  -moz-box-shadow: 0 0 0px 1000px #ffffff inset !important;
  box-shadow: 0 0 0px 1000px #ffffff inset !important;
  -webkit-text-fill-color: #000 !important;
  caret-color: #000;
  transition: background-color 9999s ease-out, color 9999s ease-out;
}

td.role-column {
  text-transform: capitalize;
}

/* Alerts */
.alert {
  padding: 10px 15px;
  border-radius: 6px;
  margin: 15px 0;
  font-weight: bold;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/*Sell Form */
/* colors */
:root {
  --primary-bg: #ffffff;
  --highlight: #e74c3c;
  --text-color: #000000;
  --accent: #f70000;
}

.form-step {
  background-color: #f7f9fc;
  padding: 40px 30px;
  border-radius: 0 0 12px 12px;
  position: relative;
  z-index: 1;
  margin-top: 0;
  display: none;
}
.form-step.active {
  display: block;
}

.highlight {
  color: var(--accent);
  font-style: italic;
}

.tagline {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  color: #333;
}

/* --- Tabbed Form Layout --- */
.form-tabs-wrapper {
  background-color: #f7f9fc;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 40px;
}

/* TAB HEADINGS BAR */
.step-tabs {
  display: flex;
  color: white;
  font-weight: bold;
  position: relative;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  overflow: hidden;
}

.step-tabs span {
  flex: 1;
  text-align: center;
  padding: 16px;
  background-color: #f70000;
  color: #ffffff;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  opacity: 1;
}

.step-tabs span.active {
  background-color: #f7f9fc;
  color: #1b2935;
  z-index: 2;
  box-shadow: 0 -4px 0 #f7f9fc;
  position: relative;
  margin-bottom: -16px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.step-tabs span:first-child.active {
  border-top-right-radius: 12px;
}
.step-tabs span:last-child.active {
  border-top-left-radius: 12px;
}
.step-tabs span:nth-child(2).active {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* TAB CONTENT PANEL */
.form-panel {
  background-color: #f7f9fc;
  padding: 40px 30px;
  border-radius: 0 0 12px 12px;
  position: relative;
  z-index: 1;
  margin-top: 0 !important;
}

.form-panel h2 {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

/* Match button to style */
.form-panel button[type="submit"] {
  padding: 12px 24px;
  background-color: #e00000;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 20px;
  width: 50%;
  margin-right: 25%;
  transition: background-color 0.3s ease;
}

.form-panel button[type="submit"]:hover {
  background-color: #c40000;
}

/* Category grid and cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.icon-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;  /* center horizontally */
  justify-content: center; /* center vertically if you want */
}

.icon-card img {
  display: block;
  margin: 0 auto 0 auto;
  max-width: 100px;
  height: 100px;         
}

.icon-card span {
  display: block;
  color: black;
}

.bakkie {
  transform: scale(1.15); /* Adjust until it looks right */
}



/* Hide radio inputs */
input[type="radio"] {
  display: none;
}

/* Grouped Category Styling */
.category-group {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  margin-top: 1rem;
}



.category-option {
  flex: 1;
  display: flex;
}

.category-option input[type="radio"] {
  display: none;
}

.category-option .icon-card {
  border: 1px solid #555;
  border-radius: 0;
  padding: 1.5rem 1rem;
  background: #ffffff;
  color: #000000;
  width: 100%;
  text-align: center;
   transition: 
    box-shadow 0.24s cubic-bezier(.22,.68,.53,1.01),
    transform 0.22s cubic-bezier(.22,.68,.53,1.01),
    background 0.22s, color 0.18s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  will-change: transform, box-shadow;
  
  box-sizing: border-box;
}


.category-option.last .icon-card {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.category-option .icon-card img {
  margin-bottom: 0.5rem;
}

.category-option .icon-card span {
  color: #000000;
}

.category-option input[type="radio"]:checked + .icon-card {
  background-color: #ffffff;
  color: #ce3234;
}

.category-option input[type="radio"]:checked + .icon-card span {
  color: #000000;
}

.category-option input[type="radio"]:checked + .icon-card img {
  filter: none;
}

.sell-form-heading {
  display: flex;
  flex-direction: column;
  align-items: center;      /* Center horizontally */
  justify-content: flex-start; /* Or use center if you want to center vertically in the container */
  text-align: center;       /* Center text inside the elements */
  width: 100%;              /* Take full width of parent */
  margin-bottom: 32px;      /* Space below heading */
}

.sell-form-heading h2,
.sell-form-heading p {
  margin: 0;
}

.sell-form-heading h2 {
  margin-bottom: 16px;
}

.category-option .icon-card:hover,
input[type="radio"]:focus + .icon-card,
input[type="radio"]:checked + .icon-card {
  color: #fff;
  transform: translateY(-12px) scale(1.04);
  box-shadow: 0 16px 36px rgba(247,0,0,0.25), 0 4px 12px rgba(0,0,0,0.16);
  border: 2px solid #f70000; /* or #f70000 for a bold border */
  z-index: 2;
  position: relative;
}

.modern-how-steps,
.modern-how-steps.two-cols {
  margin: 36px auto 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 38px 42px;
  max-width: 1400px;
  width: 100%;
  padding: 0 32px;
}



.how-step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  font-size: 1.18rem;
  font-weight: 700;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 1px 6px #2221;
  letter-spacing: 0.01em;
  margin-top: 2px;
}
.how-step h3 {
  margin: 0 0 6px 0;
  font-size: 1.10rem;
  color: #232323;
  font-weight: 700;
}
.how-step p {
  margin: 0;
  color: #222;
  font-size: 1rem;
  opacity: .85;
  line-height: 1.48;
}

.tab {
  position: relative;
  padding-right: 20px; /* space for checkmark */
  /* remove display:flex or justify-content if present */
}
.tab-checkmark {
  display: none;
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  pointer-events: none;
}
.tab.completed .tab-checkmark {
  display: inline-block;
}
.tab-checkmark img {
  width: 100%;
  height: 100%;
  display: block;
}

.fuel-select-group {
  display: flex;
  gap: 4px;
  margin: 12px 0;
}
.fuel-btn {
  flex: 1;
  padding: 12px;
  background: #1b2733;
  color: #fff;
  font-size: 1.1em;
  border-radius: 8px;
  cursor: pointer;
  opacity: 1;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.fuel-btn.selected, .fuel-btn:active {
  background: #222c36;
  border-color: #f70000;
}
.fuel-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  background: repeating-linear-gradient(
    45deg, #1b2733, #1b2733 8px, #222c36 8px, #222c36 16px
  );
  color: #888;
  border-color: #444;
}

.trans-select-group {
  display: flex;
  gap: 4px;
  margin: 12px 0;
}
.trans-btn {
  flex: 1;
  padding: 12px;
  background: #1b2733;
  color: #fff;
  font-size: 1.1em;
  border-radius: 8px;
  cursor: pointer;
  opacity: 1;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.trans-btn.selected, .trans-btn:active {
  background: #222c36;
  border-color: #f70000;
}
.trans-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  background: repeating-linear-gradient(
    45deg, #1b2733, #1b2733 8px, #222c36 8px, #222c36 16px
  );
  color: #888;
  border-color: #444;
}

/*red checkmark on buttons*/
.fuel-btn.selected::after,
.trans-btn.selected::after {
  content: '';
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin-left: 0.35em;
  vertical-align: -0.13em;
  background: url('data:image/svg+xml;utf8,<svg fill="%23f70000" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M7.629 15.7a1 1 0 0 1-.707-.293l-4.2-4.2a1 1 0 1 1 1.415-1.414l3.494 3.494 7.037-7.037a1 1 0 1 1 1.414 1.415l-7.744 7.744a1 1 0 0 1-.709.291z"/></svg>') no-repeat center center;
  background-size: 1em 1em;
  /* Prevent wrapping if label is long */
  position: relative;
  top: 1px;
}

/* Shared styling for selects and inputs */
.custom-input,
.custom-select {
  width: 100%;
  background: #1b2733;
  color: #fff;
  border: 2px solid #cfd8e3;
  border-radius: 15px;
  padding: 16px 20px;
  font-size: 1.15em;
  box-sizing: border-box;
  transition: border 0.2s, box-shadow 0.2s;
  appearance: none; /* removes default arrow in some browsers */
  outline: none;
}

/* Custom arrow for selects */
.custom-select {
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg fill="white" viewBox="0 0 24 24" width="20" height="20"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 22px;
  cursor: pointer;
}

/* On focus: highlight field */
.custom-input:focus,
.custom-select:focus {
  border-color: #f70000;
}

/* Optional: label styling */
.custom-label {
  color: #000000;
  font-size: 1.1em;
  margin-bottom: 6px;
  display: block;
  font-weight: 500;
}

.custom-field {
  margin-bottom: 18px;
  position: relative;
}


/* Chrome, Safari, Edge, Opera: */
.custom-input::-webkit-outer-spin-button,
.custom-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox: */
.custom-input[type=number] {
  -moz-appearance: textfield;
}

.condition-select-group {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}
.condition-btn {
  flex: 1;
  background: #1b2733;
  color: #fff;
  border: 2px solid #cfd8e3;
  font-size: 1.08em;
  border-radius: 12px;
  padding: 14px 0;
  transition: border 0.2s, color 0.2s, background 0.2s;
  cursor: pointer;
  outline: none;
}
.condition-btn.selected {
  border-color: #f70000;
  /* Optionally: show a red checkmark for consistency: */
}
.condition-btn:focus {
  border-color: #f70000;
}

.condition-btn.selected::after {
  content: '';
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin-left: 0.35em;
  vertical-align: -0.13em;
  background: url('data:image/svg+xml;utf8,<svg fill="%23f70000" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M7.629 15.7a1 1 0 0 1-.707-.293l-4.2-4.2a1 1 0 1 1 1.415-1.414l3.494 3.494 7.037-7.037a1 1 0 1 1 1.414 1.415l-7.744 7.744a1 1 0 0 1-.709.291z"/></svg>') no-repeat center center;
  background-size: 1em 1em;
  position: relative;
  top: 1px;
}

.color-picker-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 12px 0 8px 0;
}
.color-btn {
  border: none;
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}



.color-btn.selected {
  border: 3px solid #111 !important;   /* Only show border when selected */
}

.color-btn-other {
  background: none;
  padding: 0;
}

.color-btn-other.selected {
  border: 3px solid #111;
}
.colorwheel-svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.color-btn-other svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  pointer-events: none;
}

.color-btn, .color-btn-other {
  overflow: hidden;
}

#accidentDetails {
  max-width: 100%;
}

.custom-textarea {
  width: 80%;
  min-height: 70px;
  box-sizing: border-box;
  background: #fff;                /* Match your button bg */
  color: #000000;                        /* White text for contrast */
  border: 2px solid #f70000;          /* Red border to match selected button */
  border-radius: 16px;                /* Same rounded corners as buttons */
  padding: 16px 20px;                 /* Generous padding like your buttons */
  font-size: 1.1rem;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  margin-top: 6px;
  resize: none;

}
.custom-textarea:focus {
  border-color: #e23d3d;              /* Slightly lighter red on focus */
  box-shadow: 0 0 0 2px #f7000025;    /* Soft glow on focus */
}

.custom-upload-btn {
  background: #1f2730;
  color: #fff;
  border: 2px solid #f70000;
  border-radius: 16px;
  padding: 12px 22px;
  cursor: pointer;
  margin-bottom: 16px;
  font-size: 1rem;
  transition: border 0.2s;
}
.custom-upload-btn:hover {
  border-color: #e23d3d;
}

.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.photo-thumb {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #eee;
  background: #202830;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
}
.photo-thumb .remove-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  background: #f70000cc;
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-size: 1.1em;
  line-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-info {
  color: #888;
  font-size: 0.9em;
  margin-top: 5px;
}


.photo-drop-area {
  border: 2px dashed #bbb;
  border-radius: 16px;
  background: #f9fafd;
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
  transition: border-color 0.2s, background 0.2s;
}
.photo-drop-area.dragover {
  border-color: #f70000;
  background: #fff0f0;
}
.custom-upload-btn {
  background: #1f2730;
  color: #fff;
  border: 2px solid #f70000;
  border-radius: 16px;
  padding: 12px 22px;
  cursor: pointer;
  font-size: 1rem;
  margin-left: 10px;
}
.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.photo-thumb {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #eee;
  background: #202830;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
}
.photo-thumb .remove-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  background: #f70000cc;
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-size: 1.1em;
  line-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-info {
  color: #888;
  font-size: 0.9em;
  margin-top: 5px;
}



.custom-submit-btn {
    padding: 12px 24px;
    background-color: #e00000;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.custom-submit-btn:hover, .custom-submit-btn:focus {
  background: #d70000;
  box-shadow: 0 4px 20px 0 #f7000035;
  outline: none;
}

.step-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 16px; /* Optional: spacing between buttons on small screens */
}



#vehicleTypeTabLabel {
  color: unset !important;
  background: unset !important;
}

.step-tabs .tab.active #vehicleTypeTabLabel {
  color: #111;  /* Or #000 for pure black */
  background: transparent !important;
}

/* hide awesomeplete small bottom text */
.visually-hidden {
    
    display: none;
}

/* Awesomplete Dropdown - Custom Styling */
.awesomplete {
  width: 100%;
  font-family: inherit;
  font-size: 1.12em;
}

.awesomplete ul {
  background: #1b232c;           /* Same as your input bg */
  color: #fff;
  border-radius: 12px;
  border: none;
  box-shadow: 0 6px 24px 0 #0002;
  padding: 6px 0;
  margin: 0;
  font-size: 1em;
  z-index: 2000;
}

.awesomplete li {
  padding: 14px 28px;
  margin: 6px 12px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: #1b232c;           /* Same as input */
  color: #fff;
  cursor: pointer;
  transition: border 0.18s, background 0.18s, color 0.12s;
  font-size: 1.07em;
  box-sizing: border-box;
}

.awesomplete li:last-child {
  border-bottom: none;
}

.awesomplete li[aria-selected="true"],
.awesomplete li:hover {
  border: 2px solid #f70000;
  background: #1b232c;
  color: #fff;
}

/* Highlight (mark) */
.awesomplete mark {
  background: none;
  color: #f70000;
  font-weight: bold;
}

/* Awesomplete Dropdown - Custom Styling (scoped to Edit Customer Modal) */
#editCustomerModal .awesomplete {
  width: 100% !important;
  font-family: inherit !important;
  font-size: 1.12em !important;
}

#editCustomerModal .awesomplete ul {
  background: #ffffff !important;           /* Same as your input bg */
  color: #000000 !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 6px 24px 0 #0002 !important;
  padding: 6px 0 !important;
  margin: 0 !important;
  font-size: 1em !important;
  z-index: 2000 !important;
}

#editCustomerModal .awesomplete li {
  padding: 14px 28px !important;
  margin: 6px 12px !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  background: #ffffff !important;           /* Same as input */
  color: #000000 !important;
  cursor: pointer !important;
  transition: border 0.18s, background 0.18s, color 0.12s !important;
  font-size: 1.07em !important;
  box-sizing: border-box !important;
}

#editCustomerModal .awesomplete li:last-child {
  border-bottom: none !important;
}

#editCustomerModal .awesomplete li[aria-selected="true"],
#editCustomerModal .awesomplete li:hover {
  border: 1px solid #f70000 !important;
  background: #ffffff !important;
  color: #000000 !important;
}

/* Highlight (mark) */
#editCustomerModal .awesomplete mark {
  background: none !important;
  color: #f70000 !important;
  font-weight: bold !important;
}



#cityInput,
#suburbInput,
.awesomplete ul li {
  text-transform: capitalize;
}


.step-heading {
    text-align: center;
}

.about-us-section {
  max-width: 900px;
  margin: 0px auto 0 auto;
  padding: 32px 28px;
  text-align: center;
}

.about-us-section h2 {
  margin-bottom: 16px;
  color: #222;
  font-size: 2rem;
  font-weight: bold;
}

.about-us-section p {
  color: #333;
  font-size: 1.13rem;
  line-height: 1.7;
}

.AboutUsBanner {
  width: 100%;           /* Span the full width of the parent */
  overflow: hidden;      /* Crop any overflow if image is too large */
  background: #f7f8fa;   /* Optional: matches your site background */
}

.AboutUsBanner img {
  width: 100%;
  height: auto;         /* Auto height keeps the aspect ratio */
  display: block;
}

.about-contact-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 48px;
  max-width: 1600px;   /* Or 100% if you want full width below the photo */
  width: 100%;
  margin: 0 auto;
  padding: 48px 32px 0 0; /* Matches left/right margin with banner if needed */
}

.about-us-section,
.contact-us-section {
  flex: 1 1 0;
  max-width: none;      /* No max-width */
  min-width: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px #0001;
  padding: 40px 32px;
  margin-top: 0;
  display: flex;
  align-items: flex-start;
}

.about-us-centered,
.contact-us-centered {
  width: 100%;
  max-width: 100%;
  text-align: center;
}


.about-us-centered h2,
.contact-us-centered h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 32px;
  font-weight: bold;
}

.about-us-centered p,
.contact-us-centered p {
  text-align: center;
  margin: 0 auto 32px auto;
  max-width: 95%;
  font-size: 1.23rem;
  line-height: 1.7;
}



.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  gap: 28px;
}

.contact-link {
  display: flex;
  align-items: center;
  font-size: 1.23rem;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover {
  color: #e82121;
}

.contact-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  font-size: 2rem;      /* Make all icons same size */
  margin-right: 14px;
}

.phone-icon {
  color: #e82121;
}
.email-icon {
  color: #e82121;
}
.whatsapp-icon {
  color: #24D366;
}

.seeInPerson {
    font-size:1.5rem !important;
}

.location-icon {
  color: #e82121; /* Red pin, matching your style */
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 70px; /* Adjust to your navbar height */
}

.success-modal {
  position: fixed;
  z-index: 1000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,34,34,0.60);
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-modal-inner {
  background: #fff;
  border-radius: 14px;
  padding: 2em 3em;
  box-shadow: 0 6px 32px rgba(0,0,0,0.16);
  text-align: center;
  font-family: inherit;
}
.success-modal-inner h2 {
  margin: 0 0 10px 0;
  color: #2a3a50; /* Use your theme color */
}
.success-modal-inner p {
  margin: 0;
  color: #222;
}

.leads-table {
    width: 100%;
    border-spacing: 0;
    margin-top: 80px;
    background: #fff;
    table-layout: auto;
    overflow-y: visible;
    max-width: 100vw;
    
}




.leads-table th.action-col,
.leads-table td.action-col {
    text-align: center !important;
    vertical-align: middle !important;
}


/* Table header: Only bottom border */
.leads-table th {
    border-bottom: 2px solid #000;
    text-align: center;
    vertical-align: middle;
    font-size: clamp(13px, 1vw, 16px);
    white-space: nowrap;
    background: #fff;
    width: auto;
    box-sizing: border-box;
}

/* Table body: Add 1px border to each cell except last column */
.leads-table td {
    padding: 7px 8px;
    text-align: center;
    vertical-align: middle;
    font-size: clamp(13px, 1vw, 16px);
    border: 1px solid #e2e2e2;
    border-right: none;
    width: auto;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* Add left border to first cell so grid looks complete */
.leads-table td:first-child {
    border-left: 1px solid #e2e2e2;
}

/* Row striping and hover */
.leads-table tr.even { background: #f7f9fc; }
.leads-table tr.odd { background: #fff; }
.leads-table tr.lead-row:hover { background: #e7eaf0; cursor: pointer; }

/* Offer button */
.offer-btn {
    background: #be0000;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.decline-btn,.declined-dnd-btn {
    background: #181b18;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}




#table-container, .table-container {
    height: 90vh;
    width: 100%;
    overflow-y: visible;
}

.pagination-bar {
    margin: 35px 0 0 0 !important;
    display: flex;
    gap: 6px;
    align-items: center;
}
.pagination-bar .pag-btn {
    background: #181b18;
    color: #ffffff;
    padding: 5px 13px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}
.pagination-bar .pag-btn.active, .pagination-bar .pag-btn:hover {
    background: #f70000;
    color: #000000;
    cursor: pointer;
}

/* Container for the detail view */
.view-lead-container {
    max-width: 100vw;
    margin: 0;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-wrap: wrap;
    gap: 44px;
    align-items: flex-start;
    Margin-top: 20px;
    padding: 0 32px; /* Or any value, e.g. 24px or 40px */
    box-sizing: border-box;
}

/* Vehicle image gallery */
.lead-images-gallery {
    flex: 1 1 290px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    min-width: 0;
    max-width: 100%;
}

.lead-photo {
    max-width: 100%;
    max-height: 210px;
    border-radius: 10px;
    box-shadow: 0 2px 12px 0 #b7b7b745;
    background: #f7f9fc;
    border: 1px solid #e2e2e2;
    object-fit: cover;
}

/* Lead detail tables */
.lead-details {
    flex: 2 1 40%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    
}

.lead-details h2 {
    font-size: 25px;
    color: #181b18;
    letter-spacing: -1px;
    font-weight: 800;
}

.lead-details table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 32px;
    background: #fff;
}

.lead-details th, .lead-details td {
    text-align: left;
    font-size: 15px;
    padding: 7px 12px 7px 0;
}

.lead-details th {
    color: #888;
    width: 170px;
    font-weight: 600;
    background: none;
    border: none;
    padding-right: 0;
}

.lead-details td {
    color: #181b18;
    border-bottom: 1px solid #e2e2e2;
    background: none;
}

.lead-details tr:last-child td {
    border-bottom: none;
}

.lead-details h3 {
    font-size: 18px;
    margin: 32px 0 10px 0;
    font-weight: 700;
    color: #be0000;
}

.back-btnviewleads {
    margin-top: 24px;
    background: #181b18;
    color: #fff;
    padding: 10px 24px;
    border-radius: 7px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 1px 5px 0 #b7b7b755;
    letter-spacing: 1px;
    transition: background 0.18s, color 0.18s;
    float:right;
    Margin-bottom: 24px;
}

.back-btnviewleads:hover {
    background: #be0000;
    color: #fff;
    text-decoration: none;
}



.offer-dropdown input.offer-amount-input { 
    padding: 5px; 
    border: 1px solid #ddd; 
    border-radius: 3px; 
    font-size: 15px;
}
.offer-dropdown button { 
    padding: 5px 14px; 
    border-radius: 2px; 
    border: none; 
    background: #e4001b; 
    color: #fff; 
    cursor: pointer;
}
.offer-dropdown button.offer-cancel-btn {
    background: #111;
}

.decline-dropdown select.decline-reason-select,
.decline-dropdown input.decline-other-input,
.declined-dnd-dropdown select.declined-dnd-reason,
 .declined-dnd-dropdown input.declined-dnd-other {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 15px;
}

.decline-dropdown button {
    padding: 5px 14px;
    border-radius: 2px;
    border: none;
    background: #e4001b;
    color: #fff;
    cursor: pointer;
}

.decline-dropdown button.decline-cancel-btn {
    background: #111;
}

.declined-dnd-dropdown button {
    padding: 5px 14px;
    border-radius: 2px;
    border: none;
    background: #e4001b;
    color: #fff;
    cursor: pointer;
}

.lead-actions-row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.lead-actions-row .actions-left{display:flex; gap:10px; flex-wrap:wrap; align-items:center;}
.lead-actions-row .actions-spacer{flex:1;}
.lead-actions-row .actions-right{display:flex; align-items:center;}
.vehicle-title-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:6px; /* optional */
}
.vehicle-title{margin:0;}


.declined-dnd-cancel {
    background: #111 !important;
    color: #fff !important;
}

.decline-dropdown select.decline-reason-select,
.declined-dnd-dropdown select.declined-dnd-reason{
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 15px;
    width: 100%;
    background: #fff;
    color: #222;
    outline: none;
    appearance: none;         /* Remove default styling */
    -webkit-appearance: none; /* For Safari/Chrome */
    -moz-appearance: none;    /* For Firefox */
    box-sizing: border-box;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}

.decline-dropdown select.decline-reason-select:focus {
    border-color: #e4001b;
}

.declined-dnd-dropdown select.declined-dnd-reason:focus {
    border-color: #e4001b;
}

.decline-dropdown input.decline-other-input {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 15px;
    width: 100%;
    margin-bottom: 8px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.decline-dropdown input.decline-other-input:focus {
    border-color: #e4001b;
}

/* Custom highlight color for dropdown */
.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[role="listbox"] .choices__item.is-highlighted {
    background-color: #e4001b !important;
    color: #fff !important;
}

/* Style the main input to match your design */
.choices__inner {
    border: 1px solid #e4001b !important;
    border-radius: 3px !important;
    font-size: 15px;
    background: #fff;
    color: #222;
    min-height: 38px;
}

/* Remove dropdown arrow text */
.choices__item--selectable {
    font-size: 15px;
}

/* Style dropdown on focus */
.choices__inner.is-focused {
    border-color: #e4001b;
    box-shadow: 0 0 0 2px rgba(228,0,27,0.08);
}
/* View Leads Page */

/* Container for all 3 columns */
.view-lead-3col {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
  box-sizing: border-box;
}

/* Photos left column */
.lead-images-gallery {
  flex: 1 1 20%;
  max-width: 20%;
  min-width: 0;
  box-sizing: border-box;
  margin-bottom: 20px;
}

/* Center column (details) */
.lead-details {
  flex: 2 1 44%;
  max-width: 45%;
  min-width: 0;
  box-sizing: border-box;
}

.comments-block {
  flex: 1 1 28%;
  max-width: 30%;
  min-width: 0;
  box-sizing: border-box;
}


.vehicle-title {
  margin-top: 0;
}

/* Title + buttons row */
.vehicle-title-row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;              /* buttons can drop under title if cramped */
}

/* Title should use remaining width and never push buttons down */
.vehicle-title{
  margin:0;           /* grow, and also allow shrinking */
  min-width:0;                 /* allow ellipsis to work */
  white-space:nowrap;          /* keep one line */
  overflow:hidden;
  text-overflow:ellipsis;      /* “…” instead of wrapping */
}

/* Button cluster */
.lead-actions{
  display:flex;
  gap:10px;
  flex:0 0 auto;               /* don’t let actions steal width from the title */
}

/* Normalize button sizing so none gets taller on wide screens */
.print-pdf-btn,
.offer-btn,
.decline-btn,
.declined-dnd-btn{
  line-height:1.2;
  padding:8px 14px;
  height:auto;                 /* prevent odd stretching */
  white-space:nowrap;
}

@media (min-width: 1200px) {
  .lead-details {
    max-width: 960px; /* or some smaller width */
    margin: auto;
  }
}


.section-heading {
  color: #b20000;
  margin-top: 36px;
}

/* Comments right column */
.comments-block {
  flex: 1;
  min-width: 30%;
  max-width: 35%;
  margin-left: 18px;
}

.comments-list {
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden; /* this hides the horizontal scrollbar */
  background: #fafafa;
  border: 1px solid #eee;
  padding: 12px;
  margin-bottom: 16px;
}

.comment-item {
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.comment-user {
  color: #b20000;
  font-weight: bold;
  margin-right: 2px;
}

.comment-date {
  color: #888;
  font-size: 11px;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  margin-right: 2px;
}

/* Edit & delete buttons + icons */
.edit-comment-btn,
.delete-comment-btn {
  background: none !important;
  border: none !important;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  box-shadow: none !important;
  outline: none;
}

.delete-comment-btn {
    margin-bottom: 1px;
}


.comment-edit-icon,
.comment-delete-icon {
  width: 16px !important;
  height: 16px !important;
  display: inline-block;
  vertical-align: middle;
}

.comment-edit-icon path,
.comment-delete-icon path {
  fill: #444 !important;
  transition: fill 0.2s;
}

.edit-comment-btn:hover .comment-edit-icon path,
.delete-comment-btn:hover .comment-delete-icon path {
  fill: #000 !important;
}

.comment-icon-spacer {
  display: inline-block;
  width: 4px;
  vertical-align: middle;
}

.comment-text {
  color: #222;
}

/* Edit comment form */
.edit-comment-form {
  display: none;
  max-width: 100%;
}
.edit-comment-form textarea {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
}

.edit-comment-btn-row {
  display: flex;
  gap: 8px;              /* space between buttons */
  margin-top: 10px;      /* space above the row */
}

.edit-comment-save-btn,
.edit-comment-cancel-btn {
  padding: 4px 18px;
  font-size: 12px !important;
  border-radius: 3px !important;
  border: none;
  box-sizing: border-box;
  min-width: 50px;
  width: 30% !important;/* Ensures both are equal width */
  font-weight: 500;
  display: inline-block;
  text-align: center;
}

.edit-comment-cancel-btn:hover{
    background-color: #8b8b8b !important;
}

/* Add comment form */


.comment-submit-btn {
  background: #b20000;
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 8px 28px;
  margin-top: 10px;
  width: 100%;
  font-size: 20px;
  cursor: pointer;
}

.no-comments {
  color: #aaa;
  width: 100%;
}

/* Back button (optional, keep your existing styles if you have them) */
.back-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 8px 22px;
  background: #b20000;
  color: #fff;
  border: none;
  border-radius: 3px;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.2s;
}
.back-btn:hover {
  background: #880000;
}



.lead-lightbox-overlay {
    position: fixed; z-index: 9999; left: 0; top: 0;
    width: 100vw; height: 100vh;
    background: rgba(33,33,33,0.92);
    display: flex; align-items: center; justify-content: center;
}

.lead-lightbox-img.hidden {
    display: none !important;
}

.lead-lightbox-img-wrap {
    position: relative;
    background: transparent;
    border-radius: 16px;
    box-shadow: 0 8px 36px #222b;
    max-width: 92vw;
    max-height: 84vh;
    min-width: 60vw;    /* <--- Add this */
    min-height: 50vh;   /* <--- And this */
    padding: 0;
    overflow: visible;
}


.lead-lightbox-img,
.lead-lightbox-img.active,
.lead-lightbox-img.animating {
    display: block;
    position: static;
    left: 0; top: 0; right: 0; bottom: 0;
    margin: auto;
    width: 100%;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 10px !important;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(.5,0,.5,1), transform 0.6s cubic-bezier(.5,0,.5,1);
    z-index: 1;
    box-shadow: 0 2px 12px #2223;
    border: 10px solid #fff;
}

.lead-lightbox-img.active,
.lead-lightbox-img.animating {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
    transform: none;
}



.lead-lightbox-img.slide-in-left  { transform: translateX(-1000px); }
.lead-lightbox-img.slide-in-right { transform: translateX(1000px); }
.lead-lightbox-img.slide-out-left  { transform: translateX(-1000px); opacity: 0; }
.lead-lightbox-img.slide-out-right { transform: translateX(1000px);  opacity: 0; }

/* Arrows and close, unchanged from before */
.lead-lightbox-close {
    position: absolute; top: 12px; right: 20px;
    color: #333; font-size: 2.5rem;
    cursor: pointer; user-select: none;
    background: #fff; border-radius: 50%;
    box-shadow: 0 2px 8px #2224;
    padding: 0 8px; line-height: 1;
    z-index: 10;
    transition: color 0.2s, background 0.2s;
}
.lead-lightbox-close:hover { color: #b20000; background: #f7dada; }
.lead-lightbox-prev, .lead-lightbox-next {
    position: absolute; top: 50%;
    color: #fff; font-size: 4rem; cursor: pointer;
    user-select: none;
    background: transparent;
    border: none;
    border-radius: 0;
    width: auto; height: auto;
    padding: 0 18px;
    display: flex; align-items: center; justify-content: center;
    transform: translateY(-50%);
    z-index: 10;
    transition: color 0.15s;
    box-shadow: none;
}
.lead-lightbox-prev { left: 0; }
.lead-lightbox-next { right: 0; }
.lead-lightbox-prev:hover, .lead-lightbox-next:hover {
    color: #b20000;
    background: transparent;
    box-shadow: none;
}

.lead-photo {
    transition: transform 0.32s cubic-bezier(.5,1.7,.35,.95), box-shadow 0.25s;
    cursor: pointer;
    border-radius: 18px;
    box-shadow: 0 2px 10px #2222;
}
.lead-photo:hover {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 12px 32px #2225, 0 0 0 2px #b2000022;
    z-index: 1;
}


.comments-block textarea { border-radius:6px; border:1px solid #bbb; }
.comments-block button:hover { background:#a00000; }

.view-lead-3col {
    margin-top: 80px;
}


.comment-form {
  display: block;
  align-items: flex-start; /* If you want buttons/textarea side-by-side, use flex instead */
}

.comment-textarea {
  flex: 1;
  padding: 6px;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 0;
  box-shadow: none;
  border: 1px solid #ccc;
  resize: none; /* Hide resize handle */
  font-family: 'Montserrat', Arial, sans-serif; /* Use your site font */
  margin-bottom: 8px;
}

.comment-submit-btn {
  padding: 8px 16px;
  background: #b20000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  font-size: 1.1em;
  width: 100%;
}

.comments-block {
    max-width: 420px; /* or whatever you want the comment column width to be */
    width: 100%;
    min-width: 320px; /* prevents too narrow */
    box-sizing: border-box;
}

.comments-block textarea,
.comments-block .edit-comment-text {
    width: 100% !important;
    box-sizing: border-box;
    margin-bottom: 8px;
    font-family: inherit;
    resize: none;
}

.comments-block .comment-edit-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

.comments-block .comment-edit-actions button {
    flex: 1 1 0;
    width: 50%; /* or just flex:1 for two equal buttons */
    min-width: 0;
    padding: 8px 0;
    border-radius: 4px;
    border: none;
    color: #fff;
    background: #b20000;
    font-size: 16px;
    cursor: pointer;
}

.comments-block .comment-edit-actions button.cancel-btn {
    background: #ccc;
    color: #222;
}

.comments-block .edit-comment-form {
    width: 100%;
}

@media print {
  /* Force everything onto one page */
  html, body {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    font-size: 15px !important;
    color: #000 !important;
    line-height: 1.18 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
   /* HIDE NAV AND TOP HEADER ELEMENTS */
  nav, .navbar, .header, .main-header, .site-header, .top-nav, .menu, .logo, .main-menu, .nav, .admin-panel-bar {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
  }

  /* Remove all edit, button and navigation elements */
  .edit-field-btn,
  .edit-field-form,
  .edit-comment-btn,
  .delete-comment-btn,
  .comment-edit-icon,
  .comment-delete-icon,
  .back-btnviewleads,
  .print-pdf-btn,
  .navbar,
  .menu,
  .section-heading svg,
  .edit-field-btn-row,
  .edit-comment-form,
  button,
  .inline-edit-btn,
  .inline-cancel-btn {
    display: none !important;
  }

  /* Remove scrollbars */
  ::-webkit-scrollbar { display: none !important; }

  /* Expand the width of main content for best use of page */
  .view-lead-container, .view-lead-3col, .lead-details, .comments-block {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    float: none !important;
    display: block !important;
  }

  /* Table improvements for compactness */
  table {
    width: 100% !important;
    font-size: 15px !important;
    border-collapse: collapse !important;
    margin: 0 0 16px 0 !important;
    background: #fff !important;
  }
  th, td {
    padding: 4px 8px !important;
    border: 1px solid #ddd !important;
    text-align: left !important;
    font-size: 15px !important;
    background: #fff !important;
  }
  th {
    font-weight: bold !important;
    color: #222 !important;
    background: #f8f8f8 !important;
    width: 28%;
  }

  /* Section headings */
  .section-heading {
    margin-top: 20px !important;
    margin-bottom: 4px !important;
    color: #b20000 !important;
    font-size: 19px !important;
    font-weight: bold !important;
    border: none !important;
    padding: 0 !important;
  }

  /* Make images smaller and fit more on top row */
  .lead-images-gallery {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
    justify-content: flex-start !important;
    page-break-inside: avoid !important;
  }
  .lead-photo {
    width: 110px !important;
    height: 70px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: 1px solid #bbb !important;
    background: #fff !important;
  }

  /* Hide comment add box and controls, but show existing comments if you want */
  .comment-form,
  .comment-submit-btn,
  .comment-textarea,
  #hidden-delete-form {
    display: none !important;
  }
  .comments-list {
    margin-top: 0 !important;
  }
  .comment-item {
    padding: 0 0 4px 0 !important;
    margin: 0 0 2px 0 !important;
    border: none !important;
    background: none !important;
  }

.customer-details-section, .customer-details-table {
    page-break-before: always !important;
    break-before: page !important; /* For modern browsers */
    margin-top: 0 !important;
    padding-top: 0 !important;
    }

  /* Remove footer, fixed navs, etc if present */
  footer, .footer, .site-footer {
    display: none !important;
  }
  
  
   /* Support both ID casings just in case */
  #VerifyLeadEditModal,
  #verifyLeadEditModal {
    display: block !important;
    visibility: visible !important;
    position: static !important;   /* no fixed overlay in print */
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    background: #fff !important;
    transform: none !important;
    opacity: 1 !important;
    z-index: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Normalise common modal wrappers */
  #VerifyLeadEditModal .modal,
  #VerifyLeadEditModal .modal-dialog,
  #VerifyLeadEditModal .modal-content,
  #VerifyLeadEditModal .modal-body,
  #verifyLeadEditModal .modal,
  #verifyLeadEditModal .modal-dialog,
  #verifyLeadEditModal .modal-content,
  #verifyLeadEditModal .modal-body {
    display: block !important;
    position: static !important;
    transform: none !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  /* If any ancestor is hiding content via visibility: hidden */
  #VerifyLeadEditModal * ,
  #verifyLeadEditModal * {
    visibility: visible !important;
  }

  /* Kill the dark overlay */
  .modal-backdrop,
  .modal-backdrop.show {
    display: none !important;
  }

  /* Your global print CSS hides many “edit/field/form” bits.
     Re-enable them *inside* the modal so values show up. */
  #VerifyLeadEditModal .edit-field-form,
  #VerifyLeadEditModal .edit-field-btn-row,
  #VerifyLeadEditModal .inline-edit-btn,
  #VerifyLeadEditModal .inline-cancel-btn,
  #verifyLeadEditModal .edit-field-form,
  #verifyLeadEditModal .edit-field-btn-row,
  #verifyLeadEditModal .inline-edit-btn,
  #verifyLeadEditModal .inline-cancel-btn {
    display: block !important;
  }

  /* Show form fields/labels */
  #VerifyLeadEditModal input,
  #VerifyLeadEditModal select,
  #VerifyLeadEditModal textarea,
  #VerifyLeadEditModal label,
  #verifyLeadEditModal input,
  #verifyLeadEditModal select,
  #verifyLeadEditModal textarea,
  #verifyLeadEditModal label {
    display: inline-block !important;
  }

  /* Still hide modal controls */
  #VerifyLeadEditModal .btn,
  #VerifyLeadEditModal .btn-close,
  #VerifyLeadEditModal button,
  #verifyLeadEditModal .btn,
  #verifyLeadEditModal .btn-close,
  #verifyLeadEditModal button {
    display: none !important;
  }

  /* Optional: start the modal on a new page */
  #VerifyLeadEditModal, #verifyLeadEditModal { break-before: page !important; } 
  #VerifyLeadEditModal.force-show-print,
  #verifyLeadEditModal.force-show-print { display:block !important; }
  
  
  /* Print snapshot of Verify modal values */
  #verify-print-snapshot { display: block !important; }
  /* Hide the live modal itself on print */
  #VerifyLeadEditModal, #verifyLeadEditModal { display: none !important; }

  /* Snapshot look to match your tables */
  #verify-print-snapshot {
    page-break-before: always;   /* start on a new page (optional) */
    font-size: 15px !important;
  }
  #verify-print-snapshot h2 {
    margin: 0 0 8px 0 !important;
    color: #b20000 !important;
    font-size: 19px !important;
  }
  #verify-print-snapshot table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #fff !important;
  }
  #verify-print-snapshot th, #verify-print-snapshot td {
    border: 1px solid #ddd !important;
    padding: 4px 8px !important;
    text-align: left !important;
    vertical-align: top !important;
  }
  #verify-print-snapshot th {
    width: 28% !important;
    background: #f8f8f8 !important;
    font-weight: bold !important;
  }
  
}

/* === PRINT: Verification snapshot ======================================= */
@media print {
  /* Show the snapshot, hide the live modals */
  #verify-print-snapshot { display: block !important; }
  #verifyLeadModal, #verifyLeadEditModal { display: none !important; }

  #verify-print-snapshot { page-break-before: always; font-size: 15px !important; }
  #verify-print-snapshot h2 {
    margin: 0 0 8px 0 !important;
    color: #b20000 !important;
    font-size: 19px !important;
  }
  #verify-print-snapshot table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #fff !important;
    margin: 0 0 12px 0 !important;
  }
  #verify-print-snapshot th, #verify-print-snapshot td {
    border: 1px solid #ddd !important;
    padding: 4px 8px !important;
    text-align: left !important;
    vertical-align: top !important;
  }
  #verify-print-snapshot th {
    width: 28% !important;
    background: #f8f8f8 !important;
    font-weight: bold !important;
  }

#verify-print-snapshot .photo-grid {
  display: grid !important;
  gap: 10px !important;
  margin-top: 8px !important;
}

  #verify-print-snapshot .photo-grid img {
    width: 100% !important;
    height: 90px !important;
    object-fit: cover !important;
    border: 1px solid #bbb !important;
    border-radius: 6px !important;
    background: #fff !important;
  }
}



/* Edit vehicle modal on view-leads.php */
/* Modal content scroll */
#vehicleEditModal .modal-content,
#editCustomerModal .modal-content {
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;
}

/* Black text inside selects */
#vehicleEditModal select.custom-select,
#vehicleEditModal select.custom-select option,
#editCustomerModal select.custom-select,
#editCustomerModal select.custom-select option {
  color: #000 !important;
  background-color: #fff;
}

.vehicle-edit-btn {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 0 0 4px;
    cursor: pointer;
    vertical-align: middle;
    outline: none;
    display: inline-flex;
    align-items: center;
}






.vehicle-title-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}

.vehicle-title {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 800;
  color: #2a3a50;
  /* Or your color/theme */
}

.print-pdf-btn {
  padding: 8px 24px;
  font-weight:600;
  background: #fff;
  color: #b20000;
  border: 2px solid #b20000;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.15s, color 0.15s;
}
.print-pdf-btn:hover {
 box-shadow: 0 4px 18px 0 rgba(0,0,0,0.18), 0 1.5px 8px 0 rgba(0,0,0,0.15);
  transform: translateY(-2px) scale(1.04); /* Optional: makes it pop out a bit */
  outline: none;
}

.declined-dnd-btn:hover {
 box-shadow: 0 4px 18px 0 rgba(0,0,0,0.18), 0 1.5px 8px 0 rgba(0,0,0,0.15);
  transform: translateY(-2px) scale(1.04); /* Optional: makes it pop out a bit */
  outline: none;
}

 .verify-btn:hover{
 box-shadow: 0 4px 18px 0 rgba(0,0,0,0.18), 0 1.5px 8px 0 rgba(0,0,0,0.15);
  transform: translateY(-2px) scale(1.04); /* Optional: makes it pop out a bit */
  outline: none;
}

.offer-btn:hover{
 box-shadow: 0 4px 18px 0 rgba(0,0,0,0.18), 0 1.5px 8px 0 rgba(0,0,0,0.15);
  transform: translateY(-2px) scale(1.04); /* Optional: makes it pop out a bit */
  outline: none;
}

.decline-btn:hover{
 box-shadow: 0 4px 18px 0 rgba(0,0,0,0.18), 0 1.5px 8px 0 rgba(0,0,0,0.15);
  transform: translateY(-2px) scale(1.04); /* Optional: makes it pop out a bit */
  outline: none;
}




.edit-field-form {
  display: inline-block;
  margin: 0;
  padding: 0;
  vertical-align: middle;
  width: 100%;
}

.edit-field-btn-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}



.edit-field-btn {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 0 0 4px;   /* Small left gap so it's not too close to the text */
  cursor: pointer;
  vertical-align: middle;
  outline: none;
  display: inline-flex;
  align-items: center;
}

.edit-field-save-btn,
.edit-field-cancel-btn {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 4px;
  border: none;
  margin: 0;
  min-width: unset;
  height: 28px;
  line-height: 1.2;
  transition: box-shadow 0.2s, background 0.2s;
}


.edit-field-save-btn {
  background: #b20000;
  color: #fff;
  font-weight: 500;
}
.edit-field-save-btn:hover {
  background: #930000;
  box-shadow: 0 2px 6px rgba(178,0,0,0.14);
}

.edit-field-cancel-btn {
  background: #eee;
  color: #222;
}
.edit-field-cancel-btn:hover {
  background: #e0e0e0;
  box-shadow: 0 2px 6px rgba(80,80,80,0.08);
}

/* Space out the form/input/buttons from the text nicely */
.edit-field-form input[type="text"],
.edit-field-form textarea {
  font-size: 15px;
  padding: 4px 6px;
  margin-bottom: 0;
  margin-right: 0;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fff;
  box-sizing: border-box;
}

.edit-field-btn:focus {
  outline: 1px solid #b20000; /* Optional: subtle focus ring for accessibility */
}

.edit-field-btn svg {
  display: inline-block;
  vertical-align: middle;
}

.edit-field-btn:hover svg path {
  fill: #222 !important;
}


.edit-field-form .edit-field-btn-row {
  display: flex;
  justify-content: flex-end; /* push to the right */
  gap: 8px;
  margin-top: 4px;
}



.cancel-field-edit-btn {
    padding: 4px 18px;
    font-size: 12px !important;
    border-radius: 3px !important;
    border: none;
    box-sizing: border-box;
    min-width: 50px;
    font-weight: 500;
    display: inline-block;
    text-align: center;
    cursor:pointer;
}

.cancel-field-edit-btn:hover{
    background-color: #8b8b8b !important;
}

.inline-cancel-btn {
  background: #eee;
  color: #222;
}

.inline-edit-btn {
  padding: 4px 10px;
    font-size: 12px !important;
    border-radius: 3px !important;
    border: none;
    box-sizing: border-box;
    width: 20% !important;
    font-weight: 500;
    display: inline-block;
    text-align: center;
}

.inline-edit-btn:hover {
  background-color: #000000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.11);
}

.inline-cancel-btn:hover {
  background: #ddd !important;
}

.edit-field-form button {
  font-size: 14px;
  margin: 0;
  box-shadow: none;
}

.inline-edit-group {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.edit-field-form {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.edit-field-form.active {
  display: flex !important;
}

.inline-edit-input {
  min-width: 120px;
  font-size: 15px;
  height: 32px;
}

.inline-edit-btn, .inline-cancel-btn {
  padding: 3px 18px;
  font-size: 14px;
  border-radius: 4px;
  margin: 0;
  min-width: 62px;
  background: #e00000;
  color: #fff;
  border: none;
  transition: box-shadow 0.2s;
}
.inline-cancel-btn {
  background: #eee;
  color: #222;
  border: none;
}
.inline-edit-btn:hover {
  box-shadow: 0 2px 8px rgba(150,0,0,0.13);
}
.inline-cancel-btn:hover {
  box-shadow: 0 2px 8px rgba(100,100,100,0.08);
}

textarea {
    resize: none;
}

/* Appointments Pop-Up*/
.modal {
  position: fixed; 
  top: 0; left: 0; 
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  z-index: 1000;
}
.modal-content {
  background: #fff; 
  padding: 30px 30px 20px 30px; 
  border-radius: 8px; 
  width: 100%; 
  max-width: 400px; 
  position: relative;
}
.close-btn {
  position: absolute; 
  right: 20px; 
  top: 15px; 
  font-size: 28px; 
  color: #888; 
  cursor: pointer;
  border: none;
  background: none !important;
}
.modal label { 
  display:block; 
  margin-top:12px; 
  margin-bottom:4px; 
}
.modal input, .modal textarea {
  width: 100%; 
  padding: 8px; 
  margin-bottom: 8px; 
  border-radius: 4px; 
  border: 1px solid #ddd;
  font-size: 16px;
}

.modal select {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 16px;
    background: #fff;
}

.action-btn.deal-done-btn {
    background: #e4001b;
    color: #fff;
    font-weight: bold;
    border: none;
    padding: 7px 20px;
    border-radius: 6px;
    margin-right: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.action-btn.deal-done-btn:hover {
    background: #a80016;
}

.action-btn.deal-not-done-btn {
    background: #222;
    color: #fff;
    font-weight: bold;
    border: none;
    padding: 7px 20px;
    border-radius: 6px;
    margin-right: 0;
    cursor: pointer;
    transition: background 0.2s;
}

.action-btn.deal-not-done-btn:hover {
    background: #444;
}

/* Filter for Deals Done table */
.filter-form {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 80px;
    margin-bottom: 8px;        /* Reduce bottom space */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    width: fit-content;
    min-height: 28px;           /* Lower minimum height */
    margin-left: 5px;
}

.filter-form label {
    font-weight: 500;
    color: #333;
    margin-right: 2px;
    margin-left: 0px;
    font-size: 0.95rem;           /* Optional: slightly smaller text */
}

.filter-btn {
    padding: 5px 16px;
    font-size: 0.95rem !important;
    min-width: 60px !important;
    height: 28px;
    margin-left: 8px;
    width: auto !important;
    background-color: #e00000;
    color: white;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.filter-btn:hover {
    background: #bb1200;
}

.dealsdone-select {
    padding: 4px 16px 4px 8px; /* Less vertical space */
    border-radius: 6px;
    border: 1px solid #b6b6b6;
    font-size: 0.95rem;
    height: 28px;  
}
.dealsdone-select:focus {
    border-color: #df2b18;
    background: #fff;
}


/* Collapsible section styling */
/* Group header row for collapsible months */
.group-header-row td.group-header-td {
    background: #f70000;
    color: #ffffff;
    text-align: left;
    position: relative;
    border-bottom: 2px solid #ffffff !important;
}
.collapse-btn {
    background: none;
    color: inherit;
    border: none;
    font: inherit;
    padding: 0;
    margin: 0;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    font-size: inherit;
}
.group-title {
    margin-left: 8px;
}
.arrow {
    display: inline-block;
    width: 20px;
    transition: transform 0.2s;
    font-size: 18px;
}

.deals-done-container {
    width: 100%;
    height: auto !important;
    overflow-y: visible;
}

.pagination-bar-deals{
    margin: 30px 0 0 0 !important;
    display: flex;
    gap: 6px;
    align-items: center;
}

.pagination-bar-deals .pag-btn {
    background: #181b18;
    color: #ffffff;
    padding: 5px 13px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}
.pagination-bar-deals .pag-btn.active, .pagination-bar .pag-btn:hover {
    background: #f70000;
    color: #000000;
    cursor: pointer;
}

.deals-notdone-container {
    width: 100%;
    height: auto !important;
    overflow-y: visible;
}

.pagination-bar {
    margin: 30px 0 0 0 !important;
    display: flex;
    gap: 6px;
    align-items: center;
}

.pagination-bar .pag-btn {
    background: #181b18;
    color: #ffffff;
    padding: 5px 13px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}
.pagination-bar .pag-btn.active,
.pagination-bar .pag-btn:hover {
    background: #f70000;
    color: #000000;
    cursor: pointer;
}

#dealsNotDoneTable {
  margin-top:0 !important;  
}

#dealsDoneTable {
    margin-top:0 !important;
}

.dealsnotdone-select {
    padding: 4px 16px 4px 8px; /* Less vertical space */
    border-radius: 6px;
    border: 1px solid #b6b6b6;
    font-size: 0.95rem;
    height: 28px;  
}
.dealsnotdone-select:focus {
    border-color: #df2b18;
    background: #fff;
}

/* Declined by Dealer Table Adjustment */
#dealerDeclinedTable {
  table-layout: fixed;
  width: 100%;
  max-width: 100vw;
}

/* Declined by Customer Table Adjustment */
#declinedByCustomerTable {
  table-layout: fixed;
  width: 100%;
  max-width: 100vw;
}

/* Accepted by Customer Table Adjustment */
#acceptedByCustomerTable {
  table-layout: fixed;
  width: 100%;
  max-width: 100vw;
}

/* Pending Offers Table Adjustment */
#pendingOffersTable {
  table-layout: fixed;
  width: 100%;
  max-width: 100vw;
}

/* New Leads Table Adjustment */
#newLeadsTable {
  table-layout: fixed;
  width: 100%;
  max-width: 100vw;
}

/* verification chips */
.v-badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:2px 6px; border-radius:6px; font-weight:600;
  font-size:12px; line-height:1.2; white-space:nowrap;
}
.v-icon{ width:14px; height:14px; }
.v-yes{ color:#1f8f3b; background:rgba(40,167,69,.08); border:1px solid rgba(40,167,69,.25); }
.v-no { color:#c0392b; background:rgba(220,53,69,.08); border:1px solid rgba(220,53,69,.25); }





/* New Leads Table Adjustment */
#newLeadsTable th:nth-child(1),  #newLeadsTable td:nth-child(1)  { width: 5%; }   /* Lead ID */
#newLeadsTable th:nth-child(2),  #newLeadsTable td:nth-child(2)  { width: 5%; }   /* Verified */
#newLeadsTable th:nth-child(3),  #newLeadsTable td:nth-child(3)  { width: 4%; }   /* Year */
#newLeadsTable th:nth-child(4),  #newLeadsTable td:nth-child(4)  { width: 8%; }   /* Make */
#newLeadsTable th:nth-child(5),  #newLeadsTable td:nth-child(5)  { width: 9%; }   /* Model */
#newLeadsTable th:nth-child(6),  #newLeadsTable td:nth-child(6)  { width: 11%; }  /* Model Type */
#newLeadsTable th:nth-child(7),  #newLeadsTable td:nth-child(7)  { width: 6%; }   /* KM */
#newLeadsTable th:nth-child(8),  #newLeadsTable td:nth-child(8)  { width: 6%; }   /* Color */
#newLeadsTable th:nth-child(9),  #newLeadsTable td:nth-child(9)  { width: 7%; }   /* Surname */
#newLeadsTable th:nth-child(10), #newLeadsTable td:nth-child(10) { width: 11%; }  /* Location */
#newLeadsTable th:nth-child(11), #newLeadsTable td:nth-child(11) { width: 8%; }   /* Expected Price */
#newLeadsTable th:nth-child(12), #newLeadsTable td:nth-child(12) { width: 8%; }   /* Trade Value */
#newLeadsTable th:nth-child(13), #newLeadsTable td:nth-child(13) { width: 8%; }   /* Retail Value */
#newLeadsTable th:nth-child(14), #newLeadsTable td:nth-child(14) { width: 10%; }  /* Submitted At */





/* Pending Offers Table Adjustment */
#pendingOffersTable th:nth-child(1),  #pendingOffersTable td:nth-child(1)  { width: 5%; }   /* Lead ID */
#pendingOffersTable th:nth-child(2),  #pendingOffersTable td:nth-child(2)  { width: 4%; }   /* Year */
#pendingOffersTable th:nth-child(3),  #pendingOffersTable td:nth-child(3)  { width: 7%; }   /* Make */
#pendingOffersTable th:nth-child(4),  #pendingOffersTable td:nth-child(4)  { width: 8%; }   /* Model */
#pendingOffersTable th:nth-child(5),  #pendingOffersTable td:nth-child(5)  { width: 11%; }  /* Model Type */
#pendingOffersTable th:nth-child(6),  #pendingOffersTable td:nth-child(6)  { width: 6%; }   /* KM */
#pendingOffersTable th:nth-child(7),  #pendingOffersTable td:nth-child(7)  { width: 6%; }   /* Color */
#pendingOffersTable th:nth-child(8),  #pendingOffersTable td:nth-child(8)  { width: 7%; }   /* Surname */
#pendingOffersTable th:nth-child(9),  #pendingOffersTable td:nth-child(9)  { width: 11%; }  /* Location */
#pendingOffersTable th:nth-child(10), #pendingOffersTable td:nth-child(10) { width: 8%; }   /* Expected Price */
#pendingOffersTable th:nth-child(11), #pendingOffersTable td:nth-child(11) { width: 8%; }   /* Trade Value */
#pendingOffersTable th:nth-child(12), #pendingOffersTable td:nth-child(12) { width: 8%; }   /* Retail Value */
#pendingOffersTable th:nth-child(13), #pendingOffersTable td:nth-child(13) { width: 8%; }   /* Offer Amount */
#pendingOffersTable th:nth-child(14), #pendingOffersTable td:nth-child(14) { width: 11%; }  /* Offer Date */


/* Accepted by Customer Table Adjustment */
#acceptedByCustomerTable th:nth-child(1),  #acceptedByCustomerTable td:nth-child(1)  { width: 5%; }  /* Lead ID */
#acceptedByCustomerTable th:nth-child(2),  #acceptedByCustomerTable td:nth-child(2)  { width: 4%; }  /* Year */
#acceptedByCustomerTable th:nth-child(3),  #acceptedByCustomerTable td:nth-child(3)  { width: 8%; }  /* Make */
#acceptedByCustomerTable th:nth-child(4),  #acceptedByCustomerTable td:nth-child(4)  { width: 8%; }  /* Model */
#acceptedByCustomerTable th:nth-child(5),  #acceptedByCustomerTable td:nth-child(5)  { width: 11%; } /* Model Type */
#acceptedByCustomerTable th:nth-child(6),  #acceptedByCustomerTable td:nth-child(6)  { width: 6%; }  /* KM */
#acceptedByCustomerTable th:nth-child(7),  #acceptedByCustomerTable td:nth-child(7)  { width: 6%; }  /* Color */
#acceptedByCustomerTable th:nth-child(8),  #acceptedByCustomerTable td:nth-child(8)  { width: 7%; }  /* Surname */
#acceptedByCustomerTable th:nth-child(9),  #acceptedByCustomerTable td:nth-child(9)  { width: 11%; } /* Location */
#acceptedByCustomerTable th:nth-child(10), #acceptedByCustomerTable td:nth-child(10) { width: 8%; }  /* Expected Price */
#acceptedByCustomerTable th:nth-child(11), #acceptedByCustomerTable td:nth-child(11) { width: 8%; }  /* Trade Value */
#acceptedByCustomerTable th:nth-child(12), #acceptedByCustomerTable td:nth-child(12) { width: 8%; }  /* Retail Value */
#acceptedByCustomerTable th:nth-child(13), #acceptedByCustomerTable td:nth-child(13) { width: 8%; }  /* Offer Amount */
#acceptedByCustomerTable th:nth-child(14), #acceptedByCustomerTable td:nth-child(14) { width: 10%; } /* Accepted At */



/* Declined by Customer Table Adjustment */
#declinedByCustomerTable th:nth-child(1),  #declinedByCustomerTable td:nth-child(1)  { width: 5%; }  /* Lead ID */
#declinedByCustomerTable th:nth-child(2),  #declinedByCustomerTable td:nth-child(2)  { width: 4%; }  /* Year */
#declinedByCustomerTable th:nth-child(3),  #declinedByCustomerTable td:nth-child(3)  { width: 7%; }  /* Make */
#declinedByCustomerTable th:nth-child(4),  #declinedByCustomerTable td:nth-child(4)  { width: 8%; }  /* Model */
#declinedByCustomerTable th:nth-child(5),  #declinedByCustomerTable td:nth-child(5)  { width: 11%; } /* Model Type */
#declinedByCustomerTable th:nth-child(6),  #declinedByCustomerTable td:nth-child(6)  { width: 6%; }  /* KM */
#declinedByCustomerTable th:nth-child(7),  #declinedByCustomerTable td:nth-child(7)  { width: 6%; }  /* Color */
#declinedByCustomerTable th:nth-child(8),  #declinedByCustomerTable td:nth-child(8)  { width: 7%; }  /* Surname */
#declinedByCustomerTable th:nth-child(9),  #declinedByCustomerTable td:nth-child(9)  { width: 11%; } /* Location */
#declinedByCustomerTable th:nth-child(10), #declinedByCustomerTable td:nth-child(10) { width: 8%; }  /* Expected Price */
#declinedByCustomerTable th:nth-child(11), #declinedByCustomerTable td:nth-child(11) { width: 8%; }  /* Trade Value */
#declinedByCustomerTable th:nth-child(12), #declinedByCustomerTable td:nth-child(12) { width: 8%; }  /* Retail Value */
#declinedByCustomerTable th:nth-child(13), #declinedByCustomerTable td:nth-child(13) { width: 8%; }  /* Offer Amount */
#declinedByCustomerTable th:nth-child(14), #declinedByCustomerTable td:nth-child(14) { width: 11%; } /* Declined Date */




/* Dealer Declined Table Adjustment */
#declinedTable th:nth-child(1),  #declinedTable td:nth-child(1)  { width: 5%; }   /* Lead ID */
#declinedTable th:nth-child(2),  #declinedTable td:nth-child(2)  { width: 5%; }   /* Year */
#declinedTable th:nth-child(3),  #declinedTable td:nth-child(3)  { width: 7%; }   /* Make */
#declinedTable th:nth-child(4),  #declinedTable td:nth-child(4)  { width: 8%; }   /* Model */
#declinedTable th:nth-child(5),  #declinedTable td:nth-child(5)  { width: 11%; }  /* Model Type */
#declinedTable th:nth-child(6),  #declinedTable td:nth-child(6)  { width: 6%; }   /* KM */
#declinedTable th:nth-child(7),  #declinedTable td:nth-child(7)  { width: 6%; }   /* Color */
#declinedTable th:nth-child(8),  #declinedTable td:nth-child(8)  { width: 7%; }   /* Surname */
#declinedTable th:nth-child(9),  #declinedTable td:nth-child(9)  { width: 11%; }  /* Location */
#declinedTable th:nth-child(10), #declinedTable td:nth-child(10) { width: 8%; }   /* Expected Price */
#declinedTable th:nth-child(11), #declinedTable td:nth-child(11) { width: 8%; }   /* Trade Value */
#declinedTable th:nth-child(12), #declinedTable td:nth-child(12) { width: 8%; }   /* Retail Value */
#declinedTable th:nth-child(13), #declinedTable td:nth-child(13) { width: 10%; }  /* Decline Reason */
#declinedTable th:nth-child(14), #declinedTable td:nth-child(14) { width: 10%; }  /* Declined At */






/* Appointments Table Adjustment */
#appointmentsTable th:nth-child(1),  #appointmentsTable td:nth-child(1)  { width: 5%; }   /* Lead ID */
#appointmentsTable th:nth-child(2),  #appointmentsTable td:nth-child(2)  { width: 5%; }   /* Name */
#appointmentsTable th:nth-child(3),  #appointmentsTable td:nth-child(3)  { width: 5%; }   /* Surname */
#appointmentsTable th:nth-child(4),  #appointmentsTable td:nth-child(4)  { width: 10%; }  /* Expected Price */
#appointmentsTable th:nth-child(5),  #appointmentsTable td:nth-child(5)  { width: 12%; }  /* Appointment Date */
#appointmentsTable th:nth-child(6),  #appointmentsTable td:nth-child(6)  { width: 18%; }  /* Appointment Location */
#appointmentsTable th:nth-child(7),  #appointmentsTable td:nth-child(7)  { width: 10%; }  /* Purchaser */
#appointmentsTable th:nth-child(8),  #appointmentsTable td:nth-child(8)  { width: 10%; }  /* Buyer */
#appointmentsTable th:nth-child(9),  #appointmentsTable td:nth-child(9)  { width: 8%; }  /* Status */
#appointmentsTable th:nth-child(10),  #appointmentsTable td:nth-child(10)  { width: 17%; }  /* Notes */



/* Deals not Done Table Adjustment */
#dealsNotDoneTable th:nth-child(1),  #dealsNotDoneTable td:nth-child(1)  { width: 4%; }   /* Lead ID */
#dealsNotDoneTable th:nth-child(2),  #dealsNotDoneTable td:nth-child(2)  { width: 4%; }   /* Year */
#dealsNotDoneTable th:nth-child(3),  #dealsNotDoneTable td:nth-child(3)  { width: 7%; }   /* Make */
#dealsNotDoneTable th:nth-child(4),  #dealsNotDoneTable td:nth-child(4)  { width: 8%; }   /* Model */
#dealsNotDoneTable th:nth-child(5),  #dealsNotDoneTable td:nth-child(5)  { width: 10%; }  /* Model Type */
#dealsNotDoneTable th:nth-child(6),  #dealsNotDoneTable td:nth-child(6)  { width: 5%; }   /* KM */
#dealsNotDoneTable th:nth-child(7),  #dealsNotDoneTable td:nth-child(7)  { width: 5%; }   /* Color */
#dealsNotDoneTable th:nth-child(8),  #dealsNotDoneTable td:nth-child(8)  { width: 6%; }   /* Surname */
#dealsNotDoneTable th:nth-child(9),  #dealsNotDoneTable td:nth-child(9)  { width: 8%; }   /* Expected Price */
#dealsNotDoneTable th:nth-child(10), #dealsNotDoneTable td:nth-child(10) { width: 8%; }   /* Offer Amount */
#dealsNotDoneTable th:nth-child(11), #dealsNotDoneTable td:nth-child(11) { width: 6%; }   /* Purchaser */
#dealsNotDoneTable th:nth-child(12), #dealsNotDoneTable td:nth-child(12) { width: 6%; }   /* Buyer */
#dealsNotDoneTable th:nth-child(13), #dealsNotDoneTable td:nth-child(13) { width: 6%; }   /* Closed By */
#dealsNotDoneTable th:nth-child(14), #dealsNotDoneTable td:nth-child(14) { width: 10%; }  /* Closed At */
#dealsNotDoneTable th:nth-child(15), #dealsNotDoneTable td:nth-child(15) { width: 7%; }   /* Reason */

/* Deals Done Table Adjustment */
#dealsDoneTable th:nth-child(1),  #dealsDoneTable td:nth-child(1)  { width: 4%; }   /* Lead ID */
#dealsDoneTable th:nth-child(2),  #dealsDoneTable td:nth-child(2)  { width: 4%; }   /* Year */
#dealsDoneTable th:nth-child(3),  #dealsDoneTable td:nth-child(3)  { width: 7%; }   /* Make */
#dealsDoneTable th:nth-child(4),  #dealsDoneTable td:nth-child(4)  { width: 8%; }   /* Model */
#dealsDoneTable th:nth-child(5),  #dealsDoneTable td:nth-child(5)  { width: 9%; }  /* Model Type */
#dealsDoneTable th:nth-child(6),  #dealsDoneTable td:nth-child(6)  { width: 5%; }   /* KM */
#dealsDoneTable th:nth-child(7),  #dealsDoneTable td:nth-child(7)  { width: 5%; }   /* Color */
#dealsDoneTable th:nth-child(8),  #dealsDoneTable td:nth-child(8)  { width: 6%; }   /* Surname */
#dealsDoneTable th:nth-child(9),  #dealsDoneTable td:nth-child(9)  { width: 8%; }   /* Expected Price */
#dealsDoneTable th:nth-child(10), #dealsDoneTable td:nth-child(10) { width: 10%; }  /* Purchased Amount */
#dealsDoneTable th:nth-child(11), #dealsDoneTable td:nth-child(11) { width: 9%; }   /* Purchaser */
#dealsDoneTable th:nth-child(12), #dealsDoneTable td:nth-child(12) { width: 9%; }   /* Buyer */
#dealsDoneTable th:nth-child(13), #dealsDoneTable td:nth-child(13) { width: 7%; }   /* Closed By */
#dealsDoneTable th:nth-child(14), #dealsDoneTable td:nth-child(14) { width: 11%; }  /* Closed At */




/* VERIFY LEAD CSS */
.verify-btn{
  background:#fff;border:2px solid #c1121f;color:#000;padding:.55rem .9rem;border-radius:.6rem;
  display:inline-flex;align-items:center;gap:.5rem;font-weight:600; cursor:pointer;
}
.verify-btn.verified{
  border-color:#20a162;color:#000;background:#fff;font-weight:600;
}
.verify-btn .verify-check{font-weight:600}

.verify-modal{position:fixed;inset:0;background:rgba(0,0,0,.5);display:none;z-index:1000}
.verify-modal.show{display:block}
.verify-dialog{background:#fff;max-width:640px;margin:5vh auto;border-radius:12px;overflow:hidden;box-shadow:0 10px 40px rgba(0,0,0,.25)}
.verify-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #eee}
.verify-close{background:none;border:0;font-size:22px;line-height:1;cursor:pointer}
.verify-body{padding:16px 20px;display:grid;gap:14px}
.verify-footer{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid #eee}
.v-row{display:grid;gap:6px}





/* Edit photos button */
.lead-images-gallery { position: relative; }       /* make it the containing block */
#openPhotoEdit {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;                                      /* above the image */
}

.comment-author {
    color: #b20000;
    font-weight: bold;
    margin-right: 2px;
}

.comment-time {
    color: #888 !important;
    font-size: 15px;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    margin-right: 2px;
    font-weight: normal !important;
}

.comment-tag {
    color:#000000 !important;
    font-weight:normal !important;
}


/* ===== Photo chooser (animated bottom sheet) — explicit colors ===== */

/* Backdrop */
.chooser-backdrop[hidden] { display: none !important; }
.chooser-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: end center;           /* bottom sheet vibe */
  background: rgba(0, 0, 0, 0.45);   /* dim overlay */
  opacity: 0;
  transition: opacity 0.18s ease-out;
}
.chooser-backdrop.open { opacity: 1; }

/* Card (sheet) */
.chooser-card {
  width: 92vw;
  max-width: 420px;
  margin: 0 0 24px;
  background: #111a22;                          /* card surface */
  color: #ffffff;                                /* text */
  border: 1px solid rgba(255, 255, 255, 0.08);  /* subtle border */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  will-change: transform, opacity;              /* for spring anim */
}

/* Title bar */
.chooser-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 14px 16px;
  background:
    linear-gradient(0deg, rgba(211, 47, 47, 0.08), rgba(211, 47, 47, 0.08)),
    #0b1118;                                     /* surface under gradient */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Options + Cancel buttons */
.chooser-option,
.chooser-cancel {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #ffffff;
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  border-radius: 0; /* keep square inside sheet; sheet has 16px radius */
}

.chooser-option + .chooser-option {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Generic hover/focus */
.chooser-option:hover,
.chooser-option:focus-visible {
  background: rgba(255, 255, 255, 0.06); /* hover */
  outline: none;
}

/* Camera option gets a subtle brand tint on hover/focus */
.chooser-option[data-source="camera"]:hover {
  background: rgba(211, 47, 47, 0.12);  /* brand accent weak */
}
.chooser-option[data-source="camera"]:focus-visible {
  outline: 2px solid #d32f2f;           /* brand accent */
  outline-offset: -2px;
}

/* Cancel row */
.chooser-cancel {
  text-align: center;
  font-weight: 700;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.chooser-cancel:hover,
.chooser-cancel:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

/* ===== Spring animations for bottom sheet (enter/exit) ===== */

@keyframes sheetIn {
  0%   { transform: translateY(28px) scale(0.98); opacity: 0; }
  60%  { transform: translateY(-8px) scale(1);    opacity: 1; }
  80%  { transform: translateY(4px); }
  100% { transform: translateY(0); }
}

@keyframes sheetOut {
  0%   { transform: translateY(0);    opacity: 1; }
  100% { transform: translateY(28px) scale(0.98); opacity: 0; }
}

.chooser-card.spring-in  { animation: sheetIn 420ms cubic-bezier(.2,.8,.2,1) both; }
.chooser-card.spring-out { animation: sheetOut 300ms cubic-bezier(.2,.7,.2,1) both; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .chooser-backdrop { transition: none; }
  .chooser-card.spring-in,
  .chooser-card.spring-out { animation: none !important; }
}



/* Optional: For screen, hide .edit-field-form unless editing */
@media screen {
  .edit-field-form:not(.active) {
    display: none;
  }
}

/* Responsive: tablet and below */
@media (max-width: 1100px) {
  .view-lead-3col {
    flex-direction: column;
    gap: 16px;
  }
  .lead-images-gallery,
  .lead-details,
  .comments-block {
    max-width: 100%;
    flex: 1 1 100%;
  }
}


@media (min-width: 1700px) {
  .leads-table th, .leads-table td {
    font-size: 15px;
    padding: 6px 6px;
  }
}

@media (max-width: 900px) {
  .view-lead-3col { flex-direction: column; }
  .lead-images-gallery, .lead-details, .comments-block { max-width:none; min-width:0; margin-left:0 !important; }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .login-container {
    margin: 40px 20px;
    padding: 30px 20px;
  }
  .main-nav-links {
    flex-wrap: wrap;
  }
  .nav-content {
    padding-left: 6px;
  }
  .hamburger {
    margin-right: 6px;
  }
}

/* ==== Full Mobile Polish: Makes your entire site look/feel like a modern app ==== */
@media (max-width: 700px) {
  html, body {
    background: #f7f9fc !important;
    overflow-x: hidden !important;
  }

  /* Core page container */
  .page-content,
  .page-content-sellform {
    padding: 0 0 0 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    max-width: 100vw !important;
    width: 100vw !important;
  }
  .sell-form-heading,
  .how-step,
  .about-us-section,
  .contact-us-section {
    padding-left: 8px !important;
    padding-right: 8px !important;
    box-sizing: border-box !important;
  }

  /* Forms and tabbed content */
  .form-tabs-wrapper {
    margin: 0 0 18px 0 !important;
    overflow-x: auto !important;
    width: 100vw;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18), 0 1.5px 6px rgba(0,0,0,0.10) !important;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    Border: 1px solid #f7f9fc !important;
  }
  .step-tabs {
    flex-direction: row !important;
    font-size: 15px !important;
  }
  .step-tabs span {
    font-size: 14px !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    font-size: 0.97em !important;  /* Optional: Shrink font if needed */
  }

  .form-panel,
  .form-step {
    padding: 14px 6px !important;
    border-radius: 0 0 18px 18px !important;
    margin-top: 0 !important;
    font-size: 1em !important;
  }
  .form-panel h2,
  .sell-form-heading h2,
  .step-heading {
    font-size: 1.18rem !important;
  }
  .custom-field {
    margin-bottom: 13px !important;
    padding: 0 !important;
  }
  .custom-label {
    font-size: 1em !important;
  }
  .custom-input, .custom-select, .custom-textarea {
    font-size: 1.07em !important;
    padding: 12px 12px !important;
    border-radius: 10px !important;
    width: 100% !important;
  }
  .color-picker-group {
    gap: 7px !important;
    flex-wrap: wrap !important;
  }
  .color-btn, .color-btn-other {
    width: 28px !important;
    height: 28px !important;
  }
  /* Stack button groups */
  .fuel-select-group,
  .trans-select-group,
  .condition-select-group {
    flex-direction: column !important;
    gap: 4px !important;
  }
  .fuel-btn,
  .trans-btn,
  .condition-btn {
    font-size: 1em !important;
    padding: 13px !important;
    border-radius: 8px !important;
    width: 100% !important;
  }
  .custom-upload-btn {
    padding: 8px 12px !important;
    font-size: 1em !important;
    border-radius: 10px !important;
  }
  .photo-thumb {
    width: 62px !important;
    height: 62px !important;
    border-radius: 8px !important;
  }
  .step-buttons {
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 16px !important;
  }
  .custom-submit-btn {
    width: 100% !important;
    padding: 13px 0 !important;
    font-size: 1.09em !important;
    border-radius: 10px !important;
    margin-right: 0 !important;
  }

  /* How it works: stacked steps */
  .modern-how-steps,
  .modern-how-steps.two-cols {
    grid-template-columns: 1fr !important;
    gap: 14px 0 !important;
    padding: 0 6px !important;
    max-width: 100vw !important;
    width: 100vw !important;
  }
  .how-step h3 {
    font-size: 1.02rem !important;
  }
  .how-step {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* About & Contact sections stacked */
  .about-contact-wrapper {
    flex-direction: column !important;
    gap: 24px !important;
    padding: 0 0 0 0 !important;
  }
  .about-us-section,
  .contact-us-section {
    max-width: 100vw !important;
    padding: 20px 8px !important;
    margin: 0 !important;
    box-shadow: none !important;
  }
  .about-us-centered h2,
  .contact-us-centered h2 {
    font-size: 1.32rem !important;
  }
  .about-us-centered p,
  .contact-us-centered p {
    font-size: 1.05rem !important;
  }
  /* Footer and misc */
  .AboutUsBanner img {
    width: 100vw !important;
    height: auto !important;
    border-radius: 0 !important;
  }
}



@media (min-width: 1300px) {
  .main-nav-links li a{
    font-size: 14px;
    padding: 7px 10px;
  }
}

@media (max-width: 1100px) {
  .modern-how-steps,
  .modern-how-steps.two-cols {
    grid-template-columns: 1fr 1fr;
    max-width: 900px;
    padding: 0 16px;
  }
}
@media (max-width: 700px) {
  .modern-how-steps,
  .modern-how-steps.two-cols {
    grid-template-columns: 1fr;
    max-width: 98vw;
    gap: 20px 0;
    padding: 0 4px;
  }
}

@media (max-width: 700px) {
    
    .page-content-sellform {
  margin-top: 100px !important; /* Match to your header/nav height */
}
    
  .admin-nav {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: #fff;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    padding: 8px 0 4px 0 !important;
    gap: 0 !important;
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
  }
  .nav-logo {
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    display: flex !important;
    margin-bottom: 2px !important;
    order: 0 !important;
  }
  .main-nav-links {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    order: 1 !important;
    margin: 0 !important;
    padding: 0 0 2px 0 !important;
    gap: 12px !important;
  }
  .main-nav-links li {
    margin: 0 !important;
  }
  .main-nav-links li a {
    font-size: 1em !important;
    padding: 7px 0 2px 0 !important;
    white-space: nowrap !important;
  }
  .main-nav-links li a.active,
  .main-nav-links li a:hover {
    background: #f8f8f8;
    color: #e00000;
  }
  
    .header-mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18), 0 1.5px 6px rgba(0,0,0,0.10);
    height: 11vh;
    /* Remove margin-left or margin-right if you have it! */
  }
  .nav-logo-mobile img {
    max-width: 150px;
    margin-bottom: 10px;
    margin-top: 7px;
  }
  .main-nav-links-mobile {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 0;
    margin: 0;
  }
  .main-nav-links-mobile li {
    list-style: none;
    margin: 0;
  }
  .main-nav-links-mobile a {
    font-size: 1.1em;
    padding: 7px 0;
    text-decoration: none;
    color: #000000;
    padding-right: 6px;
  }
    
    /* Hide desktop-only elements */
    .admin-nav {
      display:none;
    }
    
  .main-nav-links-mobile li:not(:first-child) {
  border-left: 2px solid #e00000; /* Red for a fancier look */
  padding-left: 6px;
}

.step-tabs .tab {
    display: none !important;   /* Hide all tabs */
  }
  .step-tabs .tab.active {
    display: flex !important;   /* Show only the active tab */
    width: 100vw;
    align-items: center !important;
    justify-content: center;
    font-size: 1em !important;
    background-color: #f70000 !important;
    color: #ffffff !important;
    Margin-bottom:0px;
    
  }
  .step-tabs .tab .tab-checkmark {
    display: none !important;
  }
  
  #vehicleTypeTabLabel{
      color:#ffffff !important;
      padding:0 !important;
  }
  
  .category-group {
    padding-left: 10px !important;
    padding-right: 10px !important;
    /* Or more, adjust to taste */
  }
  
}




/* ---------- 375px: keep 3 across, no horizontal scroll ---------- */
@media (max-width: 375px) {
  .category-group {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    padding: 8px !important;
    overflow-x: hidden !important;

    /* Grey background fix */
    background: #fff !important;           /* paint strip white */
    border-radius: 12px !important;        /* match card style */
    overflow: visible !important;
    padding-bottom: 14px
    height: auto !important;

    /* remove any old scroll fade/mask */
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }
  
  .category-group .icon-card:hover {
    transform: translateY(-4px);      /* small lift to avoid big jumps */
  }
  
  .category-group::before,
  .category-group::after {
    content: none !important;
    display: none !important;
  }

  .category-group .icon-card img {
    width: clamp(46px, 20vw, 56px);
  }
  .category-group .icon-card span {
    font-size: 12px;
  }
  
      .main-nav-links-mobile a {
        font-size: 1em;
        padding: 4px 0 10px 0;
        text-decoration: none;
        color: #000000;
        padding-right: 4px;
    }
    
  
}

/* ---------- 320px: keep 3 across, just smaller ---------- */
@media (max-width: 320px) {
  .category-group {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    padding: 6px 6px 16px !important;  /* extra bottom room for hover lift */
    overflow: visible !important;
  }

  .category-group .icon-card {
    padding: 8px 6px !important;
  }

  .category-group .icon-card img {
    width: clamp(38px, 18vw, 46px);
    height: auto;
  }

  .category-group .icon-card span {
    font-size: 11px;
    line-height: 1.2;
    white-space: normal; /* allow “Panel Van” to wrap if needed */
  }
}




/* Responsive: Stack on small screens */
@media (max-width: 900px) {
  .about-contact-wrapper {
    flex-direction: column;
    gap: 32px;
    padding: 16px 0;
  }
  .about-us-section,
  .contact-us-section {
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
  }
}

/* Responsive for mobile */
@media (max-width: 850px) {
    .view-lead-container {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 6px;
    }
    .lead-images-gallery {
        max-width: 100%;
        min-width: unset;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
        justify-content: center;
    }
    .lead-details {
        width: 100%;
    }
    .lead-details table {
        font-size: 14px;
    }
}




@media (max-width: 900px) {
    .lead-lightbox-img-wrap { max-width: 99vw; max-height: 94vh; padding: 2vw; }
    .lead-lightbox-img { max-width: 97vw; max-height: 80vh; }
    .lead-lightbox-prev, .lead-lightbox-next { left: 4px; right: 4px; font-size: 2.1rem; width: 36px; height: 36px; }
}
@keyframes fadeIn { from { opacity: 0; transform: scale(0.97);} to { opacity: 1; transform: scale(1);} }










