:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --gray-100: #f8fafc;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-900: #111827;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont;
}

body {
  background: var(--gray-100);
}

/* Layout */
.cpbs-container {
  max-width: 1100px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  padding: 16px;
}

@media (max-width: 900px) {
  .cpbs-container {
    grid-template-columns: 1fr;
  }
}

/* Card */
.cpbs-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

/* Headings */
.cpbs-card h3 {
  margin-bottom: 16px;
  color: var(--gray-900);
  font-size: 1.25rem;
}

/* Inputs */
.cpbs-field {
  margin-bottom: 16px;
}

.cpbs-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.cpbs-field input,
.cpbs-field select,
.cpbs-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  font-size: 15px;
}

.cpbs-field input:focus,
.cpbs-field select:focus,
.cpbs-field textarea:focus {
  border-color: var(--primary);
  outline: none;
}

/* Options grid */
.cpbs-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 16px;
}

.cpbs-option {
  border: 1px solid var(--gray-300);
  padding: 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s ease;
}

.cpbs-option:hover {
  border-color: var(--primary);
}

.cpbs-option input {
  margin-right: 8px;
}

/* Buttons */
.cpbs-btn {
  background: var(--primary);
  color: #fff;
  padding: 14px 24px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.cpbs-btn:hover {
  background: var(--primary-dark);
}

/* Step indicator */
.cpbs-steps {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.cpbs-step {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  background: var(--gray-300);
  text-align: center;
  font-weight: 600;
  color: var(--gray-600);
}

.cpbs-step.active {
  background: var(--primary);
  color: #fff;
}

/* Order Summary */
.cpbs-summary {
  position: sticky;
  top: 20px;
}

.cpbs-summary ul {
  list-style: none;
  padding: 0;
}

.cpbs-summary li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cpbs-total {
  border-top: 1px solid var(--gray-300);
  margin-top: 12px;
  padding-top: 12px;
  font-size: 1.2rem;
  font-weight: 700;
}
/* STEP 1 layout */
.cpbs-container-single {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.cpbs-step1-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

@media(max-width:900px){
  .cpbs-step1-grid {
    grid-template-columns: 1fr;
  }
}

.cpbs-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
}

.cpbs-box h4 {
  margin-bottom: 12px;
  font-size: 16px;
  color: #1f2937;
}

.cpbs-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cpbs-btn-wide {
  margin-top: 24px;
  width: 100%;
  background: #fbbf24;
  color: #111827;
  font-weight: 700;
  padding: 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

.cpbs-btn-wide:hover {
  background: #f59e0b;
}
/* SPACE LIST */
.cpbs-space-row {
  display: grid;
  grid-template-columns: 180px 1fr 120px 120px;
  gap: 20px;
  background: #f1f5f9;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  align-items: center;
}

.cpbs-space-image img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.cpbs-space-info h4 {
  margin: 0 0 6px;
  font-size: 18px;
}

.cpbs-space-meta {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: #475569;
}

.cpbs-space-price {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  text-align: right;
}

/* ADD-ONS */
.cpbs-addon-row {
  display: grid;
  grid-template-columns: 1fr 140px 120px;
  gap: 20px;
  background: #f1f5f9;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  align-items: center;
}

.cpbs-qty {
  display: flex;
  align-items: center;
}

.cpbs-qty button {
  width: 36px;
  height: 36px;
  border: none;
  background: #fde68a;
  font-size: 18px;
  cursor: pointer;
}

.cpbs-qty input {
  width: 50px;
  text-align: center;
  border: none;
  background: #fff;
}

.cpbs-addon-select {
  display: inline-block;
  background: #fbbf24;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.cpbs-addon-select input {
  display: none;
}

.cpbs-addon-select input:checked + span {
  color: #fff;
}
/* STEP 2 – Space Cards */
.cpbs-space-card {
  display: grid;
  grid-template-columns: 220px 1fr 160px;
  gap: 20px;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  align-items: center;
}

@media (max-width: 900px) {
  .cpbs-space-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.cpbs-space-image img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
}

.cpbs-space-content h4 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #0f172a;
}

.cpbs-space-content p {
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

.cpbs-space-action {
  text-align: right;
}

@media (max-width: 900px) {
  .cpbs-space-action {
    text-align: center;
  }
}
/* Thumbnail image */
.cpbs-space-image img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

/* Progress Bar */
.cpbs-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.cpbs-progress-step {
  flex: 1;
  text-align: center;
  position: relative;
  color: #94a3b8;
}

.cpbs-progress-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e5e7eb;
  font-weight: 700;
  margin-bottom: 6px;
}

.cpbs-progress-step.active span {
  background: #2563eb;
  color: #fff;
}

.cpbs-progress-step small {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.cpbs-progress-step::after {
  content: '';
  position: absolute;
  top: 18px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: #e5e7eb;
  z-index: -1;
}

.cpbs-progress-step:last-child::after {
  display: none;
}

.cpbs-progress-step.active::after {
  background: #2563eb;
}
.cpbs-wrapper {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 16px;
}

/* Step 1 layout */
.cpbs-container-single {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 16px;
}

.cpbs-step1-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}

@media (max-width: 900px){
  .cpbs-step1-grid {
    grid-template-columns: 1fr;
  }
}

.cpbs-box {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #e5e7eb;
}

.cpbs-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* General layout from step 2 */
.cpbs-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

@media (max-width: 900px){
  .cpbs-container {
    grid-template-columns: 1fr;
  }
}

.cpbs-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(15,23,42,0.05);
}

/* Progress bar */
.cpbs-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.cpbs-progress-step {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border-radius: 999px;
  background: #e5e7eb;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}

.cpbs-progress-step.active {
  background: #2563eb;
  color: #fff;
}

/* Space cards */
.cpbs-space-card {
  display: grid;
  grid-template-columns: 40px 100px 1fr 140px 120px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: #f1f5f9;
  cursor: pointer;
}

.cpbs-space-card input[type="radio"] {
  transform: scale(1.2);
}

.cpbs-space-card img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.cpbs-space-content h4 {
  margin: 0 0 4px;
  font-size: 16px;
}

.cpbs-space-content p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.cpbs-space-price {
  font-size: 13px;
  text-align: right;
}

.cpbs-space-price div:first-child {
  font-weight: 700;
  font-size: 16px;
  color: #111827;
}

/* Add-ons */
.cpbs-addon-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  background: #f9fafb;
  margin-bottom: 10px;
}

.cpbs-addon-info label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cpbs-addon-price {
  font-size: 14px;
  font-weight: 600;
}

.cpbs-qty {
  display: flex;
  align-items: center;
}

.cpbs-qty button {
  width: 32px;
  height: 32px;
  border: none;
  background: #e5e7eb;
  font-size: 18px;
  cursor: pointer;
  border-radius: 6px;
}

.cpbs-qty input {
  width: 50px;
  text-align: center;
  border: 1px solid #d1d5db;
  margin: 0 6px;
}

/* Buttons */
.cpbs-btn-wide {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
}

.cpbs-btn {
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.cpbs-btn-outline {
  background: #fff;
  border: 1px solid #2563eb;
  color: #2563eb;
}

/* Summary */
.cpbs-summary .cpbs-total {
  font-size: 20px;
  font-weight: 700;
  margin-top: 4px;
}
/* Selected space card */
.cpbs-space-card.selected {
  border: 2px solid #2563eb;
  background: #eff6ff;
}

/* Actions row (prev/next buttons) */
.cpbs-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.cpbs-actions .cpbs-btn,
.cpbs-actions .cpbs-btn-outline {
  flex: 1;
  text-align: center;
  text-decoration: none;
}

/* Step 1 input styling tuning */

.cpbs-step1 input[type="text"],
.cpbs-step1 select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

.cpbs-step1 input[type="text"]:focus,
.cpbs-step1 select:focus {
  border-color: #2563eb;
  outline: none;
}

/* Flatpickr alt input looks like our normal inputs */
.flatpickr-input[readonly].cpbs-date,
.flatpickr-input[readonly].cpbs-time {
  cursor: pointer;
}
