:root {
  --cebk-gold: #d7a72f;
  --cebk-gold-dark: #9a6c0f;
  --cebk-border: #e8dcc0;
  --cebk-foreground: #2e230f;
  --cebk-muted: #78674a;
  --cebk-card: #ffffff;
  --cebk-bg: #fffaf0;
}

.cebk-flow {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 18px 90px;
  border-radius: 20px;
  border: 1px solid var(--cebk-border);
  background: linear-gradient(180deg, #fffdf6 0%, #fffaf0 100%);
  box-shadow: 0 20px 50px rgba(53, 35, 6, 0.08);
}

.cebk-heading {
  text-align: center;
  margin-bottom: 16px;
}

.cebk-error {
  border: 1px solid #e4b2b2;
  background: #fff3f3;
  color: #7a1f1f;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
}

.cebk-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  font-weight: 600;
  color: var(--cebk-gold);
  margin: 0;
}

.cebk-heading h2 {
  margin: 10px 0 0;
  color: var(--cebk-foreground);
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  line-height: 1.2;
}

.cebk-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 26px;
  flex-wrap: nowrap;
}

.cebk-step-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 92px;
  gap: 6px;
}

.cebk-step-connector {
  width: 44px;
  height: 2px;
  background: #d9ceb8;
  margin-bottom: 22px;
}

.cebk-step-connector.is-active {
  background: var(--cebk-gold);
}

.cebk-step {
  border: 1px solid var(--cebk-border);
  background: #f4ead6;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0;
  color: var(--cebk-muted);
  position: relative;
}

.cebk-step.is-active {
  border-color: var(--cebk-gold);
  background: linear-gradient(135deg, #f3cb6f 0%, #d7a72f 100%);
  color: #1f1405;
  font-weight: 600;
}

.cebk-step::before {
  content: attr(data-step-indicator);
  font-size: 13px;
  font-weight: 700;
}

.cebk-step-label {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: var(--cebk-muted);
}

.cebk-step-wrap.is-active .cebk-step-label {
  color: var(--cebk-gold-dark);
}

.cebk-plan-heading {
  margin: 12px 0 8px;
  text-align: center;
  color: var(--cebk-foreground);
  font-size: 0.95rem;
  font-weight: 700;
}

.cebk-panel {
  border: 0;
  background: transparent;
  padding: 8px 0;
}

.cebk-panel[hidden] {
  display: none !important;
}

.cebk-panel h3 {
  margin: 0 0 16px;
  color: var(--cebk-foreground);
  font-size: 1.08rem;
  text-align: center;
}

.cebk-details-panel {
  display: grid;
  gap: 14px;
}

.cebk-grid {
  display: grid;
  gap: 12px;
}

.cebk-grid-services {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cebk-grid-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cebk-grid-modes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cebk-grid-plans {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cebk-grid-modes,
.cebk-grid-plans,
.cebk-grid-fields,
.cebk-dynamic-fields {
  margin-top: 12px;
}

.cebk-card {
  border: 1px solid var(--cebk-border);
  border-radius: 14px;
  padding: 16px;
  background: var(--cebk-card);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cebk-card:hover {
  border-color: #e0b755;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(84, 58, 10, 0.08);
}

.cebk-card.is-active {
  border-color: var(--cebk-gold);
  background: #fff2d7;
  box-shadow: 0 0 0 1px rgba(215, 167, 47, 0.25);
}

.cebk-card-icon {
  width: 24px;
  height: 24px;
  color: var(--cebk-gold);
  margin-bottom: 8px;
}

.cebk-card-icon svg {
  width: 100%;
  height: 100%;
}

.cebk-card-title {
  font-weight: 600;
  color: var(--cebk-foreground);
  font-size: 0.93rem;
}

.cebk-card-meta {
  margin-top: 4px;
  color: var(--cebk-muted);
  font-size: 12px;
}

.cebk-card-meta-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cebk-card-clock {
  width: 12px;
  height: 12px;
}

.cebk-card-clock svg {
  width: 100%;
  height: 100%;
}

.cebk-slot-block {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e6d2a0;
  border-radius: 14px;
  background: linear-gradient(90deg, #fff4de 0%, #fff9ee 100%);
}

.cebk-calendar-shell {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  border: 1px solid #e6d8ba;
  border-radius: 14px;
  overflow: hidden;
  background: #fffef9;
}

.cebk-calendar-pane {
  border-right: 1px solid #efdfbf;
  padding: 14px;
}

.cebk-slots-pane {
  padding: 14px;
}

.cebk-calendar-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #78674a;
}

.cebk-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #4f3d17;
}

.cebk-calendar-nav strong {
  font-size: 14px;
}

.cebk-calendar-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #dcc79b;
  background: #fff;
  color: #6c531f;
  cursor: pointer;
  font-weight: 700;
}

.cebk-calendar-btn:hover {
  border-color: #caa152;
  background: #fff3d5;
}

.cebk-calendar-weekdays,
.cebk-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.cebk-calendar-weekdays {
  margin-bottom: 8px;
}

.cebk-calendar-weekdays span {
  text-align: center;
  font-size: 11px;
  color: #8a7651;
  font-weight: 600;
}

.cebk-day {
  border: 1px solid #e5d4ad;
  background: #fff;
  border-radius: 8px;
  min-height: 32px;
  color: #4e3b13;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.cebk-day:hover {
  border-color: #c69c49;
  background: #fff3d6;
}

.cebk-day.is-active {
  border-color: #b98720;
  background: linear-gradient(135deg, #f2cb70 0%, #d7a72f 100%);
  color: #201404;
}

.cebk-day.is-disabled,
.cebk-day:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f7f3eb;
}

.cebk-day-empty {
  border: 0;
  background: transparent;
}

.cebk-calendar-note {
  margin: 10px 0 0;
  font-size: 11px;
  color: #8a7651;
  text-align: center;
}

.cebk-slot-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.cebk-slot-group {
  display: grid;
  gap: 8px;
}

.cebk-slot-group-title {
  margin: 0;
  font-size: 11px;
  color: #7b6946;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.cebk-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cebk-slot {
  border: 1px solid #e0c98e;
  border-radius: 10px;
  background: #fff;
  color: #5e4717;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
  text-align: center;
  font-weight: 600;
}

.cebk-slot.is-active {
  border-color: #b8871a;
  background: #fff0c5;
  font-weight: 600;
}

.cebk-slot-clock {
  display: inline-flex;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  vertical-align: middle;
}

.cebk-slot-clock svg {
  width: 100%;
  height: 100%;
}

.cebk-slot-selected {
  border: 1px solid #ddc182;
  border-radius: 10px;
  background: #fff3d8;
  color: #644c18;
  padding: 8px 10px;
  font-size: 12px;
}

.cebk-summary {
  border: 1px solid #e5d4ab;
  border-radius: 12px;
  background: #fff4d8;
  padding: 14px;
  margin-bottom: 2px;
  color: #4a3710;
  font-size: 0.92rem;
}

.cebk-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
}

.cebk-summary-row:last-child {
  margin-bottom: 0;
}

.cebk-summary-row span:first-child {
  color: #756646;
}

.cebk-summary-row strong.is-price {
  color: var(--cebk-gold-dark);
}

.cebk-nav {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.cebk-nav-right {
  justify-content: flex-end;
}

.cebk-nav-sticky {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  border: 1px solid var(--cebk-border);
  background: rgba(255, 250, 240, 0.96);
  border-radius: 12px;
  padding: 10px;
  backdrop-filter: blur(8px);
}

.cebk-btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.cebk-btn-primary {
  background: linear-gradient(135deg, #e5ba54 0%, #d5a431 100%);
  color: #1f1405;
  box-shadow: 0 10px 24px rgba(156, 110, 18, 0.22);
}

.cebk-btn-outline {
  border: 1px solid #d5af57;
  color: var(--cebk-gold-dark);
  background: #fff5dc;
}

.cebk-full-width {
  grid-column: 1 / -1;
}

.cebk-flow input,
.cebk-flow select,
.cebk-flow textarea {
  width: 100%;
  border: 1px solid #dbc9a3;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--cebk-foreground);
  font-size: 0.93rem;
}

.cebk-flow input::placeholder,
.cebk-flow textarea::placeholder {
  color: #9a8560;
}

.cebk-flow label {
  display: block;
  margin-bottom: 6px;
  color: #5d4e30;
  font-size: 13px;
  font-weight: 500;
}

.cebk-birth-date-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cebk-birth-time-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cebk-birth-date-grid select,
.cebk-birth-time-grid select {
  min-height: 44px;
}

.cebk-field-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: #8b7855;
}

.cebk-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: #5d4e30;
}

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

.cebk-field-block {
  margin-top: 10px;
}

@media (max-width: 860px) {
  .cebk-flow {
    padding: 16px 14px 94px;
  }

  .cebk-grid-services,
  .cebk-grid-modes,
  .cebk-grid-plans,
  .cebk-grid-fields {
    grid-template-columns: 1fr;
  }

  .cebk-progress {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .cebk-step-wrap {
    min-width: 84px;
  }

  .cebk-step-connector {
    width: 24px;
  }

  .cebk-step-label {
    font-size: 10px;
  }

  .cebk-calendar-shell {
    grid-template-columns: 1fr;
  }

  .cebk-calendar-pane {
    border-right: 0;
    border-bottom: 1px solid #efdfbf;
  }

  .cebk-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cebk-birth-date-grid {
    grid-template-columns: 1fr;
  }

  .cebk-birth-time-grid {
    grid-template-columns: 1fr;
  }

  .cebk-nav {
    flex-direction: column;
  }

  .cebk-btn {
    width: 100%;
  }
}
