.mcb-form {
  max-width: 640px;
  border: 1px solid #e5e7eb;
  padding: 16px;
  border-radius: 10px;
  margin: 0 auto;
}

/* Flatpickr: inline calendar always visible (see https://flatpickr.js.org/ ) */
/* After Flatpickr inits, hide text field; native date fallback has no .flatpickr-input */
.mcb-form .mcb-inline-calendar input.mcb-flatpickr.flatpickr-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mcb-form .mcb-inline-calendar {
  position: relative;
}

.mcb-form .mcb-inline-calendar .flatpickr-calendar {
  position: relative;
  top: 0;
  left: 0;
  /* width: 100%; */
  /* max-width: 100%; */
  margin-top: 0;
  box-shadow: none;
  z-index: 1;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

/* Flatpickr selected day color */
.mcb-form .flatpickr-day.selected,
.mcb-form .flatpickr-day.startRange,
.mcb-form .flatpickr-day.endRange,
.mcb-form .flatpickr-day.selected:hover,
.mcb-form .flatpickr-day.startRange:hover,
.mcb-form .flatpickr-day.endRange:hover,
.mcb-form .flatpickr-day.selected:focus,
.mcb-form .flatpickr-day.startRange:focus,
.mcb-form .flatpickr-day.endRange:focus {
  background: #b6e925;
  border-color: #b6e925;
  color: #000000;
}

.mcb-row {
  margin: 12px 0;
}

.mcb-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .mcb-column {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 10px;
  }

  /* Each .mcb-row should align like a column item */
  .mcb-column > .mcb-row {
    margin: 0;
  }
}

.mcb-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

input[type="date"],
select,
input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6b7280 50%),
    linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1em + 2px),
    calc(100% - 13px) calc(1em + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.mcb-time-select {
  display: none;
}

.mcb-time-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mcb-time-btn {
  border: 1px solid #666;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.mcb-time-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

.mcb-time-btn.is-selected {
  border-color: #b6e925;
  background: #b6e925;
  color: #000000;
}

.mcb-time-btn.is-placeholder {
  cursor: default;
  border-style: dashed;
  color: #6b7280;
}

.mcb-row input[type="checkbox"] {
  width: auto;
}

.mcb-help {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.mcb-check {
  display: block;
  margin: 6px 0;
}

.mcb-gear-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mcb-gear-option {
  display: block;
}

.mcb-gear-option input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mcb-gear-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid #fff;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  opacity: 0.6;
  background: #fff;
  width: 100px;
  height: 100px;
}

.mcb-gear-icon {
  width: 100%;
  object-fit: contain;
  flex: 0 0 auto;
}

.mcb-gear-option input[type="checkbox"]:checked + .mcb-gear-card {
  opacity: 1;
  border: 2px solid #b6e925;
}

.mcb-gear-text {
  font-weight: 600;
}

.mcb-button {
  background: #b6e925;
  color: #000000;
  border: 0;
  border-radius: 4px;
  padding: 16px 18px;
  cursor: pointer;
  width: 100%;
}

.mcb-button--secondary {
  background: #fff;
  color: #000000;
}

.mcb-button--secondary:hover {
  background: #f9fafb;
}

.mcb-wizard {
  display: block;
}

.mcb-wizard__progress {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 12px;
  justify-content: space-between;
}

.mcb-wizard__step-label {
  display: block;
  text-align: center;
  font-size: 16px;
}

.mcb-wizard__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
}

.mcb-wizard__step-label-text {
  display: block;
  text-align: center;
  font-size: 0.8rem;
}

.mcb-wizard__step-label--active {
  color: #b6e925;
  font-weight: 600;
}

.mcb-wizard__step-label--active .mcb-wizard__step-num {
  background: #b6e925;
  color: #000000;
}

.mcb-step[hidden] {
  display: none !important;
}

.mcb-step__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: #b6e925;
}

.mcb-step__actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.mcb-step__actions--split {
  justify-content: space-between;
}

/* Split actions: Back = 30%, Next = 70% */
.mcb-step__actions--split > .mcb-button {
  width: auto;
}

.mcb-step__actions--split > .mcb-button--secondary {
  flex: 0 0 30%;
}

.mcb-step__actions--split > .mcb-button:not(.mcb-button--secondary) {
  flex: 1 1 70%;
}

.mcb-fieldset--plain {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.mcb-fieldset--plain .mcb-label {
  padding: 0;
}

.mcb-coupon-controls {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
}

.mcb-coupon-controls input[type="text"] {
  flex: 1;
  min-width: 0;
}

.mcb-coupon-apply {
  flex-shrink: 0;
  width: auto;
}

.mcb-notice {
  margin-top: 10px;
  background: #e83131;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
}

.mcb-success {
  max-width: 560px;
  border: 1px solid #000000;
  background: #000000;
  padding: 16px;
  border-radius: 10px;
  margin: 0 auto;
}

.mcb-bank {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #bbf7d0;
}

.mcb-notice--warn {
  background: #fffbeb;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  padding: 10px 12px;
  color: #92400e;
}

.mcb-services {
  border: 0;
  margin: 0 0 12px 0;
  padding: 0;
}

.mcb-service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* @media (min-width: 480px) {
  .mcb-service-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
} */

.mcb-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 2px solid #666;
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  overflow: hidden;
}

.mcb-service-card input[type="radio"] {
  display: none;
  position: absolute;
  right: 10px;
  top: 10px;
  margin: 0;
  z-index: 2;
}

.mcb-service-card--selected,
.mcb-service-card:hover {
  border-color: #b6e925;
}

.mcb-service-card__image {
  display: block;
  aspect-ratio: 16/10;
  background: #f3f4f6;
  overflow: hidden;
}

.mcb-service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mcb-service-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 40px 12px 12px;
}

.mcb-service-card__title {
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.2;
}

.mcb-service-card__desc {
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.4;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mcb-service-card__meta {
  font-size: 1rem;
  color: #b6e925;
  margin-top: 4px;
  font-weight: 900;
}

.mcb-step-after-service[hidden] {
  display: none;
}

.mcb-step-after-service {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 480px) {
  .mcb-step-after-service {
    grid-template-columns: auto auto;
  }
}

.mcb-final-pricing[hidden] {
  display: none;
}

.mcb-final-pricing .mcb-price-box {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 14px;
  background: #f9fafb;
}

.mcb-price-line {
  font-size: 0.95rem;
  color: #374151;
  margin: 0 0 6px 0;
}

.mcb-price-total {
  margin: 8px 0 0 0;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
  font-size: 1.25rem;
  color: #000000;
  font-weight: 600;
}

