/* ================================================================
   Cabinet Estimator – Form Construction LLC
   Brand: #B5935A (gold), #2D2D2D (dark), #1A1A1A (body), #E0E0E0 (border)
   ================================================================ */

:root {
  --ce-gold: #B5935A;
  --ce-dark: #2D2D2D;
  --ce-body: #1A1A1A;
  --ce-border: #E0E0E0;
  --ce-bg: #FAFAFA;
  --ce-white: #FFFFFF;
  --ce-error: #C0392B;
  --ce-success: #27AE60;
  --ce-muted: #6B6B6B;
  --ce-radius: 4px;
  --ce-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

/* ----------------------------------------------------------------
   BASE RESET
   ---------------------------------------------------------------- */
.ce-estimator *,
.ce-estimator *::before,
.ce-estimator *::after {
  box-sizing: border-box;
}

.ce-estimator {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ce-body);
  line-height: 1.5;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

.ce-estimator a {
  color: var(--ce-gold);
  text-decoration: none;
}

.ce-estimator a:hover {
  text-decoration: underline;
}

/* ----------------------------------------------------------------
   PROGRESS BAR  (label above dot, 2-line)
   ---------------------------------------------------------------- */
.ce-progress-bar {
  display: flex;
  align-items: flex-end;
  margin: 32px 0 40px;
  gap: 0;
}

.ce-progress-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  cursor: default;
}

/* Connecting line: sits at the dot level.
   Label is ~34px tall + 6px gap = 40px above dot centre (14px) → top:40px */
.ce-progress-step::before {
  content: '';
  position: absolute;
  top: 48px;
  left: -50%;
  right: 50%;
  height: 2px;
  background: var(--ce-border);
  z-index: 0;
}

.ce-progress-step:first-child::before {
  display: none;
}

.ce-progress-step.active::before,
.ce-progress-step.done::before {
  background: var(--ce-gold);
}

.ce-progress-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ce-muted);
  text-align: center;
  line-height: 1.4;
  min-height: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.ce-progress-step.active .ce-progress-label,
.ce-progress-step.done .ce-progress-label {
  color: var(--ce-gold);
}

.ce-progress-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--ce-border);
  background: var(--ce-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ce-muted);
  position: relative;
  z-index: 1;
  transition: all .2s;
}

.ce-progress-step.active .ce-progress-dot {
  border-color: var(--ce-gold);
  background: var(--ce-gold);
  color: var(--ce-white);
}

.ce-progress-step.done .ce-progress-dot {
  border-color: var(--ce-gold);
  background: var(--ce-gold);
  color: var(--ce-white);
}

/* ----------------------------------------------------------------
   STEP CONTENT
   ---------------------------------------------------------------- */
.ce-step-content {
  display: none;
}

.ce-step-content.active {
  display: block;
}

.ce-step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ce-dark);
  margin: 0 0 24px;
  text-align: center;
}

/* ----------------------------------------------------------------
   STEP 1 – CABINET TABLES
   ---------------------------------------------------------------- */
.ce-width-section {
  margin-bottom: 0;
}

/* Plain section title – no dark background */
.ce-width-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ce-dark);
  margin: 0 0 10px;
  padding: 0;
  text-transform: none;
  text-align: center;
}

.ce-cabinet-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ce-white);
}

.ce-cabinet-table thead th {
  background: transparent;
  padding: 6px 8px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ce-muted);
  border-bottom: 1px solid var(--ce-gold);
}

/* Select column – center */
.ce-cabinet-table thead th:nth-child(2),
.ce-cabinet-table tbody td:nth-child(2) {
  text-align: center;
}

/* Price column – right */
.ce-cabinet-table thead th:nth-child(4),
.ce-cabinet-table tbody td:nth-child(4) {
  text-align: right;
}

/* Qty column – center */
.ce-cabinet-table thead th:nth-child(5),
.ce-cabinet-table tbody td:nth-child(5) {
  text-align: center;
  width: 64px;
}

/* Golden dividers between rows */
.ce-cabinet-table tbody tr {
  border-bottom: 1px solid rgba(181, 147, 90, .35);
  cursor: pointer;
}

.ce-cabinet-table tbody tr:last-child {
  border-bottom: none;
}

.ce-cabinet-table tbody tr:hover {
  background: #FFFAF4;
}

.ce-cabinet-table tbody tr.selected {
  background: #FDF6ED;
}

.ce-cabinet-table tbody td {
  padding: 7px 8px;
  font-size: 13px;
  vertical-align: middle;
}

/* Cabinet icon cell */
.ce-cabinet-table tbody td.ce-td-icon {
  padding: 4px 6px;
  width: 48px;
}

.ce-cab-icon {
  display: block;
  cursor: pointer;
}

.ce-cab-icon:hover {
  opacity: .75;
}

/* Type cell with icon */
.ce-td-type {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ce-cabinet-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--ce-gold);
  flex-shrink: 0;
}

.ce-qty-input {
  width: 58px;
  padding: 5px 6px;
  border: 1.5px solid #C0C0C0;
  border-radius: var(--ce-radius);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: var(--ce-body);
  background: #ffffff;
}

.ce-qty-input:not(:disabled) {
  border-color: var(--ce-gold);
  box-shadow: 0 0 0 1px rgba(181, 147, 90, .25);
}

.ce-qty-input:focus {
  outline: none;
  border-color: var(--ce-gold);
  box-shadow: 0 0 0 2px rgba(181, 147, 90, .35);
}

.ce-qty-input:disabled {
  opacity: .4;
  cursor: not-allowed;
  background: #f5f5f5;
}

/* ---- Upgrades ---- */
.ce-upgrades-section {
  margin: 16px 0 0;
  padding: 14px;
  background: #FAFAFA;
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius);
}

.ce-upgrades-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ce-dark);
  margin: 0 0 10px;
  text-transform: none;
  letter-spacing: 0;
}

.ce-upgrade-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ce-upgrade-row:last-child {
  margin-bottom: 0;
}

.ce-upgrade-row label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  flex: 1;
}

.ce-upgrade-row-text {
  display: block;
}

.ce-upgrade-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--ce-gold);
  cursor: pointer;
  flex-shrink: 0;
}

.ce-upgrade-price-tag {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ce-gold);
  background: none;
  padding: 0;
  border-radius: 0;
}

.ce-photo-icon {
  background: none;
  border: 1px solid var(--ce-border);
  border-radius: 4px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  font-size: 18px;
  cursor: pointer;
  color: var(--ce-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, color .15s;
}

.ce-photo-icon:hover {
  border-color: var(--ce-gold);
  color: var(--ce-gold);
}

/* ---- Upgrade price note ---- */
.ce-price-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ce-muted);
  font-style: italic;
  display: none;
}

.ce-price-note.visible {
  display: block;
}

/* Sticky footer removed — replaced by .ce-inline-panel */

/* ----------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------- */
.ce-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ce-gold);
  color: var(--ce-white) !important;
  border: none;
  padding: 12px 24px;
  border-radius: var(--ce-radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .03em;
  transition: background .15s, opacity .15s;
  text-decoration: none !important;
  white-space: nowrap;
}

.ce-btn-primary:hover {
  background: #9E7D45;
}

.ce-btn-primary:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.ce-btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ce-gold);
  color: var(--ce-dark) !important;
  border: none;
  padding: 12px 24px;
  border-radius: var(--ce-radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .03em;
  transition: background .15s;
  text-decoration: none !important;
  white-space: nowrap;
}

.ce-btn-dark:hover {
  background: #c9a465;
}

.ce-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--ce-gold) !important;
  border: 2px solid var(--ce-gold);
  padding: 10px 20px;
  border-radius: var(--ce-radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none !important;
  white-space: nowrap;
}

.ce-btn-outline:hover {
  background: var(--ce-gold);
  color: var(--ce-white) !important;
}

.ce-btn-back {
  background: none;
  border: none;
  color: var(--ce-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 8px 4px;
  text-decoration: underline;
}

.ce-btn-back:hover {
  color: var(--ce-body);
}

/* ----------------------------------------------------------------
   STEP 1 – TWO-COLUMN LAYOUT (table + footer)
   ---------------------------------------------------------------- */
.ce-step1-layout {
  padding-bottom: 32px;
}

.ce-step1-header {
  margin-bottom: 24px;
}

.ce-step1-header .ce-step-title {
  margin-bottom: 6px;
}

.ce-step-subtitle {
  font-size: 13px;
  color: var(--ce-muted);
  margin: 4px 0 36px;
  text-align: center;
}

/* ----------------------------------------------------------------
   CAROUSEL + COLUMN LAYOUT
   ---------------------------------------------------------------- */
.ce-carousel-outer {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 24px;
}

.ce-carousel-wrap {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.ce-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform .35s ease;
  align-items: flex-start;
}

.ce-carousel-track>.ce-width-section {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 0;
  border-right: 2px solid var(--ce-gold);
  padding-right: 16px;
}

.ce-carousel-track>.ce-width-section:last-child {
  border-right: none;
}

/* Optional upgrades column: same width as a cabinet section */
.ce-upgrades-col {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 0;
}

/* Carousel arrow button – compact circular nav button */
.ce-carousel-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  align-self: center;
  background: var(--ce-dark);
  color: var(--ce-white);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  margin-left: 10px;
}

.ce-carousel-btn:hover {
  background: var(--ce-gold);
}

.ce-carousel-btn.ce-carousel-prev {
  margin-left: 0;
  margin-right: 10px;
  display: none;
}

/* ----------------------------------------------------------------
   INLINE TOTALS + VISUALIZER PANEL (replaces sticky footer)
   ---------------------------------------------------------------- */
.ce-inline-panel {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  border-top: 2px solid var(--ce-border);
  padding-top: 20px;
  margin-top: 4px;
}

.ce-panel-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
  flex-shrink: 0;
}

/* Width + Price sit side by side */
.ce-panel-stats-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.ce-panel-stat-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ce-panel-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ce-muted);
  line-height: 1.3;
}

.ce-panel-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--ce-dark);
  line-height: 1.1;
}

/* Selected Finish + Countertop side by side */
.ce-panel-selected-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.ce-panel-finish-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ce-panel-finish-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 2px;
}

.ce-panel-finish-img {
  width: 90px;
  height: 56px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, .12);
  background-size: cover;
  background-position: center;
  background-color: var(--ce-border);
}

.ce-panel-finish-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ce-dark);
  margin-top: 4px;
}

.ce-panel-price-note {
  font-size: 11px;
  color: var(--ce-muted);
  font-style: italic;
  margin-top: 4px;
  display: none;
}

.ce-panel-price-note.visible {
  display: block;
}

.ce-panel-visualizer {
  flex: 1;
  min-width: 0;
}

.ce-panel-viz-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ce-muted);
  margin: 0 0 8px;
}

.ce-panel-viz-area {
  min-height: 60px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  flex-wrap: wrap;
  overflow-x: auto;
}

/* Hint text always sits on its own line below the icons */
.ce-panel-viz-area .ce-panel-viz-hint {
  flex-basis: 100%;
  flex-shrink: 0;
}

.ce-panel-viz-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: grab;
  border-radius: 3px;
  padding: 2px;
  transition: opacity .15s, outline .1s;
  user-select: none;
}

.ce-panel-viz-item:active {
  cursor: grabbing;
}

.ce-panel-viz-item.ce-viz-dragging {
  opacity: .3;
}

.ce-panel-viz-item.ce-viz-over {
  outline: 2px dashed var(--ce-gold);
  background: rgba(181, 147, 90, .08);
}

.ce-panel-viz-hint {
  font-size: 10px;
  color: #bbb;
  margin: 4px 0 0;
  white-space: nowrap;
}

.ce-panel-viz-label {
  font-size: 9px;
  color: var(--ce-muted);
}

.ce-panel-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .ce-carousel-track {
    gap: 12px;
  }

  .ce-carousel-track>.ce-width-section,
  .ce-upgrades-col {
    flex: 0 0 85vw;
  }

  .ce-inline-panel {
    flex-direction: column;
  }
}

/* ----------------------------------------------------------------
   STEP 2 – FINISH SELECTION
   ---------------------------------------------------------------- */

/* Two groups side by side */
.ce-finish-groups {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.ce-finish-group {
  flex: 1;
  min-width: 0;
}

.ce-finish-group-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ce-dark);
  margin: 0 0 14px;
  padding: 8px 0;
  border-top: 2px solid var(--ce-gold);
  border-bottom: 2px solid var(--ce-gold);
}

/* Horizontal row of cards */
.ce-finish-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

/* ---- New finish card design ---- */
.ce-finish-card2 {
  flex-shrink: 0;
  width: 120px;
  cursor: pointer;
}

.ce-finish-card2-label {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ce-body);
  margin-bottom: 6px;
  line-height: 1.3;
  min-height: 30px;
}

.ce-finish-card2-check {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--ce-gold);
  cursor: pointer;
}

.ce-finish-img-wrap {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  transition: border-color .2s;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ce-finish-card2:hover .ce-finish-img-wrap {
  border-color: var(--ce-gold);
}

.ce-finish-card2.selected .ce-finish-img-wrap {
  border-color: var(--ce-gold);
  box-shadow: 0 0 0 1px var(--ce-gold);
}

.ce-finish-swatch-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-color: var(--ce-border);
}

.ce-finish-room-img {
  width: 100%;
  height: 60px;
  background-size: cover;
  background-position: center;
  background-color: #ddd;
  border-top: 2px solid rgba(255, 255, 255, .6);
}

/* Expand overlay shown on hover — covers full image wrap */
.ce-finish-expand-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .28);
  opacity: 0;
  transition: opacity .15s;
  cursor: zoom-in;
  border: none;
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.ce-finish-card2:hover .ce-finish-expand-overlay {
  opacity: 1;
}

/* Specialty finishes note — full width, centered, between gold lines */
.ce-specialty-note {
  font-size: 13px;
  color: var(--ce-muted);
  text-align: center;
  margin: 20px 0;
  padding: 10px 0;
  border-top: 2px solid var(--ce-gold);
  border-bottom: 2px solid var(--ce-gold);
}

.ce-specialty-note a {
  color: var(--ce-gold);
  text-decoration: none;
  font-weight: 600;
}

.ce-specialty-note a:hover {
  text-decoration: underline;
}

/* Back link in step 2 */
.ce-step2-back {
  margin-top: 14px;
}

/* (Finish panel styles moved to .ce-panel-finish-block section above) */

@media (max-width: 768px) {
  .ce-finish-groups {
    flex-direction: column;
  }
}

/* ----------------------------------------------------------------
   SIDEBAR (Steps 2, 3)
   ---------------------------------------------------------------- */
.ce-sidebar {
  background: var(--ce-white);
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius);
  padding: 20px;
  position: sticky;
  top: 20px;
}

.ce-sidebar-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ce-muted);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ce-border);
}

.ce-sidebar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #F0F0F0;
  font-size: 13px;
}

.ce-sidebar-row:last-child {
  border-bottom: none;
}

.ce-sidebar-row-label {
  color: var(--ce-muted);
  flex-shrink: 0;
}

.ce-sidebar-row-value {
  font-weight: 700;
  text-align: right;
}

.ce-sidebar-total {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 2px solid var(--ce-border);
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
}

.ce-sidebar-visualizer {
  margin-top: 16px;
}

.ce-sidebar-visualizer svg {
  width: 100%;
  height: 40px;
  border-radius: 3px;
  overflow: hidden;
}

/* ----------------------------------------------------------------
   STEP 3 – COUNTERTOP SELECTION
   ---------------------------------------------------------------- */

/* Three columns side by side */
.ce-ct3-cols {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.ce-ct3-col {
  flex: 1;
  min-width: 0;
}

/* Section header — gold lines like Step 2 groups */
.ce-ct3-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid var(--ce-gold);
  border-bottom: 2px solid var(--ce-gold);
  padding: 7px 0;
  margin-bottom: 14px;
  gap: 6px;
}

.ce-ct3-title-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.ce-ct3-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ce-dark);
  white-space: nowrap;
}

.ce-ct3-price {
  font-size: 11px;
  color: var(--ce-muted);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Tooltip */
.ce-tooltip-btn {
  background: none;
  border: 1px solid var(--ce-border);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  cursor: pointer;
  color: var(--ce-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.ce-tooltip-btn:hover {
  border-color: var(--ce-gold);
  color: var(--ce-gold);
}

.ce-tooltip-text {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  background: var(--ce-dark);
  color: var(--ce-white);
  font-size: 11px;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 4px;
  z-index: 50;
  text-align: left;
  pointer-events: none;
  white-space: normal;
}

.ce-tooltip-btn:hover .ce-tooltip-text,
.ce-tooltip-btn:focus .ce-tooltip-text {
  display: block;
}

/* 2-column swatch grid */
.ce-ct3-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ce-ct3-opt {
  cursor: pointer;
  position: relative;
}

.ce-ct3-opt input[type="radio"] {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 2;
  width: 14px;
  height: 14px;
  accent-color: var(--ce-gold);
  cursor: pointer;
}

.ce-ct3-swatch {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  border: 2px solid transparent;
  background-size: cover;
  background-position: center;
  background-color: var(--ce-border);
  position: relative;
  overflow: hidden;
  transition: border-color .2s;
}

.ce-ct3-opt:hover .ce-ct3-swatch {
  border-color: var(--ce-gold);
}

.ce-ct3-opt.selected .ce-ct3-swatch {
  border-color: var(--ce-gold);
  box-shadow: 0 0 0 1px var(--ce-gold);
}

/* Horizontal gold separator spanning both columns */
.ce-ct3-separator {
  grid-column: 1 / -1;
  border-top: 2px solid var(--ce-gold);
  margin: 6px 0;
}

/* "No Countertop Needed" cell — left gold divider */
.ce-ct3-no-ct-cell {
  cursor: pointer;
  position: relative;
  border-left: 2px solid var(--ce-gold);
  padding-left: 8px;
}

.ce-ct3-no-ct-cell input[type="radio"] {
  position: absolute;
  top: 5px;
  left: 13px;
  z-index: 2;
  width: 14px;
  height: 14px;
  accent-color: var(--ce-gold);
  cursor: pointer;
}

.ce-ct3-no-ct-cell:hover .ce-ct3-no-ct-swatch {
  border: 1px solid var(--ce-gold);
}

.ce-ct3-no-ct-cell.selected .ce-ct3-no-ct-swatch {
  border: 2px solid var(--ce-gold);
  box-shadow: 0 0 0 2px rgba(197, 160, 83, .25);
}

.ce-ct3-no-ct-swatch {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  background-color: #F0F0F0 !important;
  background-image: none !important;
  border-radius: var(--ce-radius);
  width: 100%;
}

.ce-ct3-no-ct-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--ce-muted);
  text-align: center;
  line-height: 1.4;
  padding: 0 4px;
}

.ce-ct3-opt-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--ce-body);
  margin-top: 4px;
  line-height: 1.3;
}

.ce-ct-premium-tag {
  font-size: 10px;
  color: var(--ce-gold);
  font-weight: 700;
  background: #FDF3E4;
  padding: 1px 5px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 2px;
}


/* LF input row */
.ce-lf-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding: 14px 16px;
  background: #F7F7F7;
  border-radius: var(--ce-radius);
}

.ce-lf-row label {
  font-size: 14px;
  font-weight: 600;
}

.ce-lf-input {
  width: 80px;
  padding: 7px 10px;
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius);
  font-size: 15px;
  text-align: center;
}

.ce-lf-input:focus {
  outline: none;
  border-color: var(--ce-gold);
}

@media (max-width: 768px) {
  .ce-ct3-cols {
    flex-direction: column;
  }
}

/* Old CT swatch/option/LF styles replaced by ce-ct3-* classes above */

/* ----------------------------------------------------------------
   STEP 4 – ESTIMATE SUMMARY
   ---------------------------------------------------------------- */
.ce-summary-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--ce-dark);
  margin: 0 0 8px;
}

.ce-summary-subtitle {
  font-size: 14px;
  color: var(--ce-muted);
  margin: 0 0 28px;
}

.ce-summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  background: var(--ce-white);
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius);
  overflow: hidden;
}

.ce-summary-table thead th {
  background: var(--ce-dark);
  color: var(--ce-white);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ce-summary-table thead th:nth-child(2),
.ce-summary-table thead th:nth-child(3),
.ce-summary-table thead th:nth-child(4) {
  text-align: right;
}

.ce-summary-table tbody tr {
  border-bottom: 1px solid var(--ce-border);
}

.ce-summary-table tbody tr:last-child {
  border-bottom: none;
}

.ce-summary-table tbody td {
  padding: 11px 16px;
  font-size: 14px;
  vertical-align: middle;
}

.ce-summary-table tbody td:nth-child(2),
.ce-summary-table tbody td:nth-child(3),
.ce-summary-table tbody td:nth-child(4) {
  text-align: right;
}

.ce-summary-table .ce-row-included td:nth-child(2),
.ce-summary-table .ce-row-included td:nth-child(3),
.ce-summary-table .ce-row-included td:nth-child(4) {
  color: var(--ce-success);
  font-weight: 600;
}

.ce-summary-table tfoot tr.ce-subtotal-row td {
  background: #F7F7F7;
  font-weight: 700;
  border-top: 2px solid var(--ce-border);
}

.ce-summary-table tfoot tr.ce-tax-row td {
  color: var(--ce-muted);
  font-size: 13px;
}

.ce-summary-table tfoot tr.ce-total-row td {
  background: var(--ce-dark);
  color: var(--ce-white);
  font-size: 16px;
  font-weight: 800;
}

.ce-summary-table tfoot td {
  padding: 12px 16px;
}

.ce-summary-table tfoot td:last-child {
  text-align: right;
}

.ce-summary-table tfoot td:nth-child(2),
.ce-summary-table tfoot td:nth-child(3) {
  text-align: right;
}

/* ----------------------------------------------------------------
   LEAD CAPTURE FORM
   ---------------------------------------------------------------- */
.ce-lead-form-wrap {
  background: var(--ce-white);
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius);
  padding: 28px 32px;
  max-width: 720px;
}

.ce-lead-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ce-dark);
  margin: 0 0 6px;
}

.ce-lead-subtitle {
  font-size: 13px;
  color: var(--ce-muted);
  margin: 0 0 24px;
}

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

.ce-form-row.full {
  grid-template-columns: 1fr;
}

.ce-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ce-field label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ce-muted);
}

.ce-field label span.req {
  color: var(--ce-error);
}

.ce-field input[type="text"],
.ce-field input[type="email"],
.ce-field input[type="tel"],
.ce-field input[type="date"],
.ce-field textarea,
.ce-field select {
  padding: 10px 12px;
  border: 1px solid var(--ce-border);
  border-radius: var(--ce-radius);
  font-size: 14px;
  color: var(--ce-body);
  font-family: inherit;
  background: var(--ce-white);
  transition: border-color .15s;
}

.ce-field input:focus,
.ce-field textarea:focus,
.ce-field select:focus {
  outline: none;
  border-color: var(--ce-gold);
}

.ce-field textarea {
  resize: vertical;
  min-height: 90px;
}

.ce-check-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.ce-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}

.ce-check-item input {
  accent-color: var(--ce-gold);
  width: 16px;
  height: 16px;
}

.ce-form-submit {
  margin-top: 24px;
}

.ce-form-submit .ce-btn-primary {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 15px;
}

.ce-privacy-note {
  font-size: 11px;
  color: var(--ce-muted);
  margin-top: 12px;
  text-align: center;
}

/* GF form embed */
.ce-gf-form-container {
  margin-top: 24px;
}

.ce-gf-form-container .gform_wrapper {
  margin: 0;
}

/* ----------------------------------------------------------------
   MODALS
   ---------------------------------------------------------------- */
.ce-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.ce-modal-overlay.open {
  display: flex;
}

.ce-modal-box {
  background: var(--ce-white);
  border-radius: 6px;
  max-width: 600px;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .3);
  position: relative;
  animation: ce-modal-in .2s ease;
}

@keyframes ce-modal-in {
  from {
    transform: translateY(12px);
    opacity: 0;
  }

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

.ce-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ce-muted);
  line-height: 1;
  z-index: 2;
}

.ce-modal-close:hover {
  color: var(--ce-body);
}

.ce-modal-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px 6px 0 0;
}

.ce-modal-body {
  padding: 20px 24px;
}

.ce-modal-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--ce-dark);
  margin: 0 0 4px;
}

.ce-modal-mfr {
  font-size: 13px;
  color: var(--ce-muted);
  margin: 0;
}

/* ----------------------------------------------------------------
   STATION ESTIMATOR (Kitchenette / Print Station)
   ---------------------------------------------------------------- */
.ce-station-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Left column: gallery + accordion */
.ce-station-left {
  width: 420px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.ce-station-gallery {
  width: 100%;
}

.ce-gallery-main {
  width: 100%;
  aspect-ratio: 4/3;
  background: #E8E8E8;
  border-radius: var(--ce-radius);
  overflow: hidden;
  position: relative;
  margin-bottom: 10px;
}

.ce-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ce-gallery-main-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 13px;
}

.ce-gallery-thumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.ce-thumb-nav {
  background: none;
  border: 1px solid var(--ce-border);
  border-radius: 3px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ce-muted);
  flex-shrink: 0;
}

.ce-thumb-nav:hover {
  border-color: var(--ce-gold);
  color: var(--ce-gold);
}

.ce-thumb-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex: 1;
}

.ce-thumb {
  width: 64px;
  height: 64px;
  border-radius: 3px;
  border: 2px solid var(--ce-border);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s;
  background: #E8E8E8;
}

.ce-thumb.active {
  border-color: var(--ce-gold);
}

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

/* ---- Station config panel ---- */
.ce-station-config {
  flex: 1;
  min-width: 0;
}

.ce-station-config-header {
  margin-bottom: 4px;
}

.ce-station-product-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--ce-dark);
  margin: 0 0 4px;
}

.ce-station-brand {
  font-size: 12px;
  color: var(--ce-muted);
  margin: 0 0 6px;
  font-style: italic;
}

.ce-station-starting-price-header {
  font-size: 22px;
  font-weight: 700;
  color: var(--ce-dark);
  margin: 0 0 14px;
  display: block;
}

.ce-station-starting-price-header .ce-price-amount {
  color: var(--ce-gold);
}

/* "Configure your kitchenette/print station..." bold between two gold rules */
.ce-station-desc-divider {
  border-top: 1.5px solid var(--ce-gold);
  border-bottom: 1.5px solid var(--ce-gold);
  padding: 8px 0;
  margin: 0 0 4px;
}

.ce-station-desc {
  font-size: 13px;
  font-weight: 700;
  color: var(--ce-dark);
  display: block;
  text-align: left;
}

/* First config section has no top border (immediately follows the header divider) */
.ce-config-section--no-top { border-top: none; padding-top: 16px; }

/* Legacy price element (kept for print station) */
.ce-station-starting-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--ce-gold);
  margin: 0 0 12px;
}

/* Config section sub-label */
.ce-config-section-sub {
  font-size: 12px;
  color: var(--ce-muted);
  margin: -6px 0 10px;
}

/* Price row above CTA */
.ce-station-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.ce-station-price-label {
  font-size: 13px;
  color: var(--ce-muted);
}

.ce-station-price-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--ce-gold);
}

.ce-station-cta-btn {
  padding: 16px 32px;
  font-size: 17px;
  width: 100%;
  justify-content: center;
}

.ce-config-section {
  margin-bottom: 0;
}

.ce-config-section--bordered {
  margin-top: 20px;
}

.ce-config-section-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: capitalize;
  letter-spacing: .01em;
  color: var(--ce-dark);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Finish swatches in config */
.ce-config-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ce-config-swatch-card {
  border: 2px solid var(--ce-border);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  width: 80px;
}

.ce-config-swatch-card:hover {
  border-color: var(--ce-gold);
}

.ce-config-swatch-card.selected {
  border-color: var(--ce-gold);
  box-shadow: 0 0 0 2px var(--ce-gold);
}

.ce-config-swatch-color {
  height: 50px;
  position: relative;
}

.ce-config-swatch-expand-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  transition: opacity .15s;
  cursor: pointer;
  border: none;
  font-size: 14px;
  color: #fff;
}

.ce-config-swatch-card:hover .ce-config-swatch-expand-btn {
  opacity: 1;
}

.ce-config-swatch-name {
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  padding: 4px 3px;
  line-height: 1.2;
  background: #fff;
  color: var(--ce-body);
}

/* Backsplash / upgrade radio options */
.ce-radio-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--ce-border);
  border-radius: var(--ce-radius);
  cursor: pointer;
  margin-bottom: 8px;
  transition: border-color .15s;
}

.ce-radio-option:hover {
  border-color: var(--ce-gold);
}

.ce-radio-option.selected {
  border-color: var(--ce-gold);
  background: #FDF6ED;
}

.ce-radio-option input[type="radio"] {
  accent-color: var(--ce-gold);
  margin-top: 2px;
}

.ce-radio-option-label {
  font-size: 14px;
  font-weight: 600;
}

.ce-radio-option-desc {
  font-size: 12px;
  color: var(--ce-muted);
  margin-top: 2px;
}

.ce-radio-option-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--ce-gold);
  margin-left: auto;
  white-space: nowrap;
}

.ce-station-cta {
  margin-top: 8px;
}

.ce-station-cta .ce-btn-primary {
  padding: 14px 32px;
  font-size: 15px;
}

.ce-station-includes-note {
  font-size: 12px;
  color: var(--ce-muted);
  margin: 0 0 10px;
}

/* Countertop sub-section (print station: laminate / solid surface) */
.ce-ct-subsection {
  margin-bottom: 18px;
}

.ce-ct-subsection:last-child {
  margin-bottom: 0;
}

.ce-ct-subsection-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.ce-ct-subsection-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ce-muted);
}

.ce-ct-price-tag {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ce-ct-price-tag--upgrade {
  color: var(--ce-gold);
}

.ce-ct-price-tag--included {
  color: #27AE60;
}

/* Tooltip button */
.ce-tooltip-btn {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--ce-muted);
  background: none;
  font-size: 10px;
  font-style: italic;
  font-weight: 700;
  color: var(--ce-muted);
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ce-tooltip-text {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  background: #333;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  padding: 8px 10px;
  border-radius: 4px;
  line-height: 1.5;
  z-index: 10;
  white-space: normal;
}

.ce-tooltip-btn:hover .ce-tooltip-text,
.ce-tooltip-btn:focus .ce-tooltip-text {
  display: block;
}

/* ---- Accordion (Description/Specs/Warranty/Instructions) ---- */
.ce-accordion {
  margin-top: 24px;
  border-top: 2px solid var(--ce-border);
}

.ce-accordion-item {
  border-bottom: 1px solid var(--ce-border);
}

.ce-accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 0;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--ce-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ce-accordion-trigger::after {
  content: '+';
  font-size: 22px;
  color: var(--ce-gold);
}

.ce-accordion-item.open .ce-accordion-trigger::after {
  content: '−';
}

.ce-accordion-content {
  display: none;
  padding: 0 0 20px;
  font-size: 14px;
  color: var(--ce-muted);
  line-height: 1.7;
}

.ce-accordion-item.open .ce-accordion-content {
  display: block;
}

/* ---- Station summary trigger ---- */
.ce-station-summary-section {
  margin-top: 48px;
}

/* ----------------------------------------------------------------
   THANK YOU PAGE
   ---------------------------------------------------------------- */
.ce-thankyou {
  max-width: 680px;
  margin: 0 auto;
}

.ce-thankyou h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--ce-dark);
  margin-bottom: 12px;
}

.ce-thankyou h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ce-dark);
  margin: 28px 0 12px;
}

.ce-thankyou ol {
  padding-left: 20px;
}

.ce-thankyou ol li {
  margin-bottom: 8px;
  font-size: 14px;
}

.ce-ty-custom {
  background: #FDF6ED;
  border: 1px solid #E8CFA0;
  border-radius: var(--ce-radius);
  padding: 20px 24px;
  margin-top: 32px;
}

.ce-ty-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.ce-ty-contact {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--ce-border);
  font-size: 13px;
  color: var(--ce-muted);
}

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 900px) {

  .ce-step2-layout,
  .ce-step3-layout {
    flex-direction: column;
  }

  .ce-step2-sidebar,
  .ce-step3-sidebar {
    width: 100%;
    position: static;
  }

  .ce-station-layout {
    flex-direction: column;
  }

  .ce-station-left {
    width: 100%;
  }

  .ce-station-gallery {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .ce-progress-label {
    display: none;
  }

  .ce-progress-dot {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .ce-sticky-footer {
    flex-wrap: wrap;
    gap: 10px;
  }

  .ce-footer-visualizer {
    width: 100%;
    order: -1;
  }

  .ce-footer-actions {
    width: 100%;
  }

  .ce-footer-actions .ce-btn-primary {
    width: 100%;
    justify-content: center;
  }

  .ce-finish-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ce-form-row {
    grid-template-columns: 1fr;
  }

  .ce-lead-form-wrap {
    padding: 20px 16px;
  }

  .ce-summary-table thead th:nth-child(2),
  .ce-summary-table tbody td:nth-child(2) {
    display: none;
  }

  .ce-cabinet-table thead th:nth-child(3),
  .ce-cabinet-table tbody td:nth-child(3) {
    display: none;
  }
}

@media (max-width: 480px) {
  .ce-config-swatches {
    gap: 8px;
  }

  .ce-config-swatch-card {
    width: 70px;
  }

  .ce-config-swatch-color {
    height: 40px;
  }
}