@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700&display=swap');

/* Design tokens borrowed from city-dentist-booking */
.cbw-page {
  --cbw-primary: hsl(190 100% 42%);
  --cbw-primary-strong: hsl(190 100% 35%);
  --cbw-primary-soft: hsl(190 100% 97%);
  --cbw-bg: hsl(40 20% 97%);
  --cbw-surface: #fff;
  --cbw-foreground: hsl(0 0% 20%);
  --cbw-muted: hsl(0 0% 45%);
  --cbw-muted-strong: hsl(0 0% 35%);
  --cbw-border: hsl(40 15% 88%);
  --cbw-border-strong: hsl(40 12% 80%);
  --cbw-note: #F6F5F4;
  --cbw-gradient: linear-gradient(135deg, hsl(40 25% 98%), hsl(40 20% 96%));
  --cbw-shadow: 0 4px 20px -2px hsl(0 0% 20% / 0.08);
  --cbw-shadow-strong: 0 14px 40px -16px hsl(190 100% 25% / 0.25);
  --cbw-radius: 16px;
  font-family: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--cbw-foreground);
  min-height: 100vh;
  padding: 48px 16px 72px;
/*   background: var(--cbw-gradient); */
  line-height: 1.6;
}

.cbw-page * {
  box-sizing: border-box;
}

.cbw-page .is-hidden {
  display: none !important;
}

.cbw-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.cbw-hero {
  text-align: center;
  margin-bottom: 30px;
}

.cbw-hero h1 {
  margin: 0 0 10px;
  font-size: 3rem;
	font-weight: 700;
  line-height: 1;
  letter-spacing: -.025em;
}

.cbw-hero p {
  margin: 0;
  color: var(--cbw-muted);
  font-size: 1.125rem;
    line-height: 1.75rem;
}

/* Progress */
.cbw-steps {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 28px;
  max-width: 620px;
}
.cbw-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  color: var(--cbw-muted);
  font-weight: 700;
  text-align: center;
  min-width: 0;
}
.cbw-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cbw-note);
  color: var(--cbw-muted-strong);
  display: grid;
  place-items: center;
  border: 2px solid var(--cbw-border);
  box-shadow: 0 10px 20px hsl(0 0% 0% / 0.04);
}
.cbw-step-label {
  font-size: 13px;
  color: var(--cbw-muted);
}

.cbw-step.is-active .cbw-dot {
  background: var(--cbw-primary);
  color: #fff;
  border-color: var(--cbw-primary);
  box-shadow: 0 0 0 6px hsl(190 100% 42% / 0.15);
}
.cbw-step.is-active .cbw-dot,
.cbw-step.is-done .cbw-dot {
  background: var(--cbw-primary);
  color: #fff;
  border-color: var(--cbw-primary);
}

.cbw-step.is-active .cbw-step-label,
.cbw-step.is-done .cbw-step-label {
  color: var(--cbw-foreground);
}
.cbw-line {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: var(--cbw-border);
}

.cbw-line.is-done {
  background: var(--cbw-primary);
  box-shadow: 0 0 0 1px hsl(190 100% 42% / 0.12);
}

/* Card */
.cbw-card {
/*   border: 1px solid var(--cbw-border); */
  background: var(--cbw-surface);
  border-radius: calc(var(--cbw-radius) + 2px);
  box-shadow: var(--cbw-shadow);
/*   overflow: hidden; */
}
.cbw-panel {
  padding: 28px 22px;
  opacity: 1;
  transition: opacity 180ms ease;
}

@media (min-width: 900px) {
  .cbw-panel {
    padding: 32px 36px;
  }
}

.cbw-panel.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Optional: prevents height jump if you already use display:none somewhere */
.cbw-panel.is-hidden {
  visibility: hidden;
}
.cbw-panel:not(.is-hidden) {
  visibility: visible;
}

.cbw-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.cbw-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: hsl(190 100% 42% / .1);
  color: var(--cbw-primary);
  display: grid;
  place-items: center;
  font-size: 22px;
/*   box-shadow: inset 0 0 0 6px hsl(190 100% 97%); */
}

.cbw-panel-head h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
}

.cbw-panel-head p {
  margin: 0;
  color: var(--cbw-muted);
  font-size: .875rem;
  line-height: 1.25rem;
}

/* Labels + select */
.cbw-label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--cbw-foreground);
}

.cbw-req {
  color: #ef4444;
}

.cbw-select {
  position: relative;
  margin-bottom: 16px;
}
.cbw-select-control {
  width: 100%;
  border-radius: 12px;
  border: 2px solid var(--cbw-border);
  background: #F9F8F6;
  padding: 14px 16px;
  font-size: 16px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  color: var(--cbw-foreground);
}

.cbw-select-control:focus-visible {
  outline: none;
}

/* .cbw-select-control:hover,
.cbw-select.is-open .cbw-select-control {
  border-color: var(--cbw-primary);
  box-shadow: 0 0 0 4px hsl(190 100% 42% / 0.12);
  background: #fff;
} */

.cbw-full-width {
	width: 100%;
}

.cbw-btn-width-20 {
	width: 20%;
}

.cbw-btn-width-80 {
	width: 80%;
}

@media (max-width: 768px) {
	.cbw-btn-width-20,
	.cbw-btn-width-80 {
		width: 50%;
	}
}

.cbw-caret {
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--cbw-muted);
  border-bottom: 2px solid var(--cbw-muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.cbw-select.is-open .cbw-caret {
  transform: rotate(225deg);
  border-color: var(--cbw-primary);
}
.cbw-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--cbw-border);
  border-radius: 12px;
  box-shadow: var(--cbw-shadow);
  padding: 6px;
  display: none;
  z-index: 10;
  max-height: 280px;
  overflow: auto;
}

.cbw-select.is-open .cbw-select-menu {
  display: block;
}

.cbw-option {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  color: var(--cbw-foreground);
  transition: background 0.12s ease, box-shadow 0.12s ease;
  text-align: left;
}

.cbw-option:hover {
  background: hsl(190 100% 97%);
}

.cbw-option.is-selected {
  background: hsl(190 100% 95%);
  box-shadow: inset 0 0 0 2px hsl(190 100% 90%);
}

.cbw-option-check {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--cbw-primary);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.cbw-option.is-selected .cbw-option-check {
  opacity: 1;
}

.cbw-option-label {
  flex: 1;
}

/* Layout helpers */
.cbw-grid {
  display: grid;
  gap: 12px;
}

.cbw-grid-1 {
  grid-template-columns: 1fr;
}

.cbw-grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .cbw-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Choices */
.cbw-choice {
  border: 2px solid var(--cbw-border);
  border-radius: 14px;
  padding: 24px;
  background: #fff;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.12s ease, background 0.12s ease;
  position: relative;
}

.cbw-choice:hover {
  border-color: var(--cbw-primary);
  box-shadow: var(--cbw-shadow);
  transform: translateY(-1px);
}

.cbw-choice.is-selected {
  border-color: var(--cbw-primary);
  background: var(--cbw-primary-soft);
  box-shadow: var(--cbw-shadow-strong);
}

.cbw-choice-emoji {
  font-size: 36px;
}

.cbw-choice-main {
  flex: 1;
}

.cbw-choice-title {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--cbw-foreground);
  font-size: 16px;
}

.cbw-choice-desc {
  margin: 0;
  color: var(--cbw-muted);
  font-size: 14px;
}

.cbw-choice-check {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--cbw-primary);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.cbw-choice.is-selected .cbw-choice-check {
  opacity: 1;
}

.cbw-choice-positive {
  border-color: hsl(152 65% 85%);
  background: hsl(152 65% 97%);
}

.cbw-choice-neutral {
  background: hsl(40 25% 98%);
}
/* 
.cbw-choice-patient {
  min-height: 120px;
} */

.cbw-service {
  padding: 16px;
}

.cbw-services {
  margin-top: 6px;
}

.cbw-patient-choices {
  margin-bottom: 6px;
}

.cbw-times .cbw-choice {
  align-items: center;
}

.cbw-times .cbw-choice-title {
  margin: 0;
}

/* Actions + buttons */
.cbw-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: nowrap;
}

.cbw-actions .cbw-btn {
  flex: 1;
}

.cbw-actions-split {
  justify-content: space-between;
}

.cbw-actions-split .cbw-btn {
  flex: initial;
}

.cbw-validation-hint {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid hsl(0 70% 86%);
  background: hsl(0 100% 97%);
  color: hsl(0 55% 34%);
  font-size: 13px;
  line-height: 1.45;
}

.cbw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 12px;
  font-weight: 700;
  height: 48px;
  padding: 0 16px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.cbw-btn-primary {
  background: var(--cbw-primary);
  color: #fff;
  border-color: var(--cbw-primary);
  box-shadow: var(--cbw-shadow-strong);
}

.cbw-btn-primary:hover {
  background: var(--cbw-primary-strong);
  border-color: var(--cbw-primary-strong);
  transform: translateY(-1px);
}

.cbw-btn-secondary {
  background: #F9F8F6;
  color: var(--cbw-foreground);
  border-color: var(--cbw-border);
}

.cbw-btn-secondary:hover {
	background: var(--cbw-primary);
/*   border-color: var(--cbw-primary); */
  color: #FFF !important;
}

.cbw-btn:disabled,
.cbw-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* City cards + notes */
.cbw-separator {
  height: 1px;
  background: var(--cbw-border);
  margin: 18px 0;
}

.cbw-note {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  margin-top: 18px;
}

.cbw-note-neutral {
  background: var(--cbw-note);
  color: var(--cbw-muted-strong);
/*   border: 1px solid var(--cbw-border); */
}

.cbw-note-icon {
  font-size: 18px;
  color: var(--cbw-primary);
}

.cbw-note p {
  margin: 0;
}

.cbw-city-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--cbw-border);
  background: hsl(190 100% 97%);
  box-shadow: inset 0 0 0 1px hsl(190 100% 90% / 0.5);
  margin: 16px 0 12px;
}

.cbw-city-card-inline {
  margin-bottom: 24px;
}

.cbw-city-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
/*   background: var(--cbw-primary); */
  color: var(--cbw-primary);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.cbw-city-card-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--cbw-foreground);
}

.cbw-city-card-line {
  color: var(--cbw-muted);
  font-size: 14px;
}

[data-selected-city].is-hidden {
  display: none;
}

/* Form fields */
.cbw-form {
  background: var(--cbw-surface);
	border-radius: calc(var(--cbw-radius) + 2px);
}

.cbw-field {
  margin-bottom: 16px;
	margin-top: 16px;
}

.cbw-field label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--cbw-foreground);
}

.cbw-field input,
.cbw-field textarea {
  width: 100%;
  border: 2px solid var(--cbw-border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--cbw-foreground);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  background: #fff;
}

.cbw-field input:focus,
.cbw-field textarea:focus {
  border-color: var(--cbw-primary);
  box-shadow: 0 0 0 4px hsl(190 100% 42% / 0.12);
  outline: none;
}

.cbw-field textarea {
  resize: vertical;
  min-height: 120px;
}

.cbw-field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (max-width: 768px) {
	.cbw-field-row {
		gap: 0;
	}
}
#cbw_first_name,
#cbw_last_name {
	margin-bottom: 0;
}

@media (min-width: 720px) {
  .cbw-field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cbw-help {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--cbw-muted);
}

.cbw-file-input {
  position: relative;
  border: 2px dashed var(--cbw-border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.cbw-file-input input[type="file"] {
  width: 100%;
}

.cbw-file-name {
  margin-top: 6px;
  font-size: 13px;
  color: var(--cbw-muted-strong);
	display: flex;
	gap: 4px;
}

.cbw-terms {
  margin: 16px 0;
}

.cbw-terms-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}

.cbw-terms-check input {
  position: absolute;
  opacity: 0;
}

.cbw-terms-mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--cbw-border);
  background: #fff;
  display: inline-block;
  position: relative;
  margin-top: 2px;
	flex-shrink: 0;
}

.cbw-terms-check input:checked + .cbw-terms-mark {
  border-color: var(--cbw-primary);
  background: var(--cbw-primary);
  box-shadow: 0 4px 12px hsl(190 100% 35% / 0.3);
}

.cbw-terms-check input:checked + .cbw-terms-mark::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 8px;
  height: 12px;
  border: 3px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.cbw-terms-text {
  color: var(--cbw-muted-strong);
  line-height: 1.5;
}

.cbw-terms-text a {
	color: var(--cbw-primary);
	font: inherit;
}

/* Success */
.cbw-success {
  text-align: center;
  padding: 16px;
  background: var(--cbw-primary-soft);
  border: 1px solid var(--cbw-border);
  border-radius: 16px;
  box-shadow: var(--cbw-shadow);
  margin-bottom: 18px;
}

.cbw-success h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.cbw-success p {
  margin: 0;
  color: var(--cbw-muted);
}

.cbw-summary {
  padding: 38px 28px 42px;
  text-align: center;
}

.cbw-summary h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.cbw-summary-lead {
  margin: 0 0 22px;
  color: var(--cbw-muted);
}

.cbw-summary-icon {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cbw-primary-soft);
  color: var(--cbw-primary);
  margin: 0 auto 18px;
/*   box-shadow: 0 10px 24px hsl(190 100% 35% / 0.12); */
}

.cbw-summary-card {
  margin: 0 auto 18px;
  background: hsl(40 18% 95%);
  border-radius: 18px;
  padding: 18px 22px;
  border: 1px solid var(--cbw-border);
  max-width: 540px;
  display: grid;
  gap: 12px;
  text-align: left;
}

.cbw-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 15px;
}

.cbw-summary-label {
  color: var(--cbw-muted-strong);
  font-weight: 600;
}

.cbw-summary-value {
  color: var(--cbw-foreground);
  font-weight: 700;
}

.cbw-summary-note {
  margin: 12px 0 4px;
  color: var(--cbw-muted-strong);
  font-size: 14px;
}

.cbw-summary-sub {
  margin: 0 0 18px;
  color: var(--cbw-muted);
  font-size: 14px;
}

.cbw-summary-actions {
  display: flex;
  justify-content: center;
}

.cbw-summary-btn {
  min-width: 240px;
  height: 52px;
}

/* Utility */
.cbw-muted {
  color: var(--cbw-muted);
  font-size: 13px;
}

.cbw-log {
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--cbw-border);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--cbw-shadow);
}

.cbw-log h2 {
  margin-top: 0;
}

.cbw-log-sub {
  color: var(--cbw-muted);
  margin: 0 0 12px;
}

.cbw-log-table-wrap {
  overflow-x: auto;
}

.cbw-log-table {
  width: 100%;
  border-collapse: collapse;
}

.cbw-log-table th,
.cbw-log-table td {
  border: 1px solid var(--cbw-border);
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
}

.cbw-log-table th {
  background: hsl(40 25% 96%);
  font-weight: 700;
}

.cbw-pre {
  white-space: pre-line;
}
.cbw-log-pagination {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.cbw-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--cbw-border);
  color: var(--cbw-foreground);
  text-decoration: none;
  font-weight: 600;
}

.cbw-page-link.is-active {
  background: var(--cbw-primary);
  color: #fff;
  border-color: var(--cbw-primary);
  box-shadow: var(--cbw-shadow-strong);
}

.cbw-log-denied {
  padding: 14px;
  border-radius: 12px;
  background: #fff6f6;
  border: 1px solid #f2c2c2;
  color: #8a1f1f;
}

.cbw-file-drop {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;

  width: 100%;
  min-height: 48px;

  border: 2px solid #e6e0d8;
  border-radius: 14px;
  background: #fff;

  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cbw-file-drop:hover {
  border-color: #cfc6ba;
  background: #faf8f6;
}

.cbw-file-icon {
  font-size: 22px;
  line-height: 1;
}

.cbw-file-text {
  font-size: 16px;
  font-weight: 600;
}

.cbw-file-name {
  margin-top: 8px;
  font-size: 14px;
  color: #555;
  word-break: break-all;
	display: flex;
	gap: 8px;
	align-items: center;
}

.cbw-help {
  margin-top: 6px;
  font-size: 13px;
  color: #777;
}

.cbw-panel[data-panel^="3"] .cbw-field input,
.cbw-panel[data-panel^="3"] .cbw-field textarea {
	background-color: #F9F8F6;
}
.cbw-panel[data-panel^="3"] .cbw-field input::placeholder,
.cbw-panel[data-panel^="3"] .cbw-field textarea::placeholder {
	color: #737373;
}

.cbw-file-ok-icon {
	height: 32px;
    color: white;
    background-color: green;
    border-radius: 16px;
    padding: 4px;
}

@media (max-width: 768px) {
	.cbw-summary-row {
		flex-direction: column;
	}
	
}
