/* =============================================================================
   Kame Massage – Custom Booking Widget
   ============================================================================= */

/* Container */
.kame-booking-widget {
	max-width: 860px;
	margin: 0 auto;
	font-family: inherit;
	color: #0c0b05;
}

/* =============================================================================
   Step indicator
   ============================================================================= */

.kbw-steps {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	margin-bottom: 40px;
	gap: 0;
}

.kbw-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.kbw-step-dot {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 2px solid #ddd;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	font-size: 14px;
	font-weight: 700;
	color: #bbb;
	position: relative;
	transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.kbw-step--active .kbw-step-dot,
.kbw-step--done  .kbw-step-dot {
	border-color: #B8915C;
	background: #B8915C;
	color: #fff;
}

/* Checkmark on done steps */
.kbw-step--done .kbw-step-dot > span {
	display: none;
}
.kbw-step--done .kbw-step-dot::after {
	content: '';
	display: block;
	width: 11px;
	height: 7px;
	border-left: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(-45deg) translateY(-2px);
}

.kbw-step-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #bbb;
	white-space: nowrap;
	transition: color 0.25s;
}
.kbw-step--active .kbw-step-label,
.kbw-step--done  .kbw-step-label {
	color: #0c0b05;
}

.kbw-step-line {
	flex: 1 1 24px;
	max-width: 60px;
	height: 2px;
	background: #ddd;
	margin-top: 18px; /* vertically centres with 38px dot */
	margin-bottom: 26px;
	transition: background 0.25s;
}

.kbw-step-line {
  display: none;
}

.kbw-steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  z-index: 1;
}

.kbw-steps::before {
  content: "";
  position: absolute;
  top: 19px; /* This should be half the height of your .kbw-step-dot (38px / 2) */
  left: 5%;  /* Adjust based on the center of the first dot */
  right: 5%; /* Adjust based on the center of the last dot */
  height: 2px;
  background-color: #ddd;
  z-index: -1;
}

.kbw-step-dot {
  background-color: white; /* Match your page background or step color */
  position: relative;
  z-index: 2;
}

/* =============================================================================
   Panels
   ============================================================================= */

.kbw-panel {
	animation: kbwFadeUp 0.3s ease both;
}
.kbw-panel[hidden] { display: none; }

@keyframes kbwFadeUp {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

.kbw-panel-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #0c0b05;
	margin: 0 0 24px;
	text-align: center;
}

/* Loading / error states */
.kbw-spinner {
	text-align: center;
	padding: 48px 20px;
	color: #999;
	font-style: italic;
}
.kbw-error-block {
	text-align: center;
	padding: 20px;
	color: #c0392b;
	background: #fdf2f2;
	border: 1px solid #f5c6cb;
	border-radius: 10px;
}

/* =============================================================================
   Panel 1 – Services
   ============================================================================= */

.kbw-services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 16px;
}

.kbw-service-card {
	background: #fff;
	border: 2px solid #e6dfd3;
	border-radius: 14px;
	text-align: left;
	cursor: pointer;
	font-family: inherit;
	width: 100%;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.kbw-service-card:hover,
.kbw-service-card:focus-visible {
	border-color: #B8915C;
	box-shadow: 0 6px 20px rgba(252, 171, 16, 0.22);
	transform: translateY(-3px);
	outline: none;
}

.kbw-service-name {
	font-size: 15px;
	font-weight: 700;
	color: #0c0b05;
	margin-bottom: 8px;
	line-height: 1.35;
}

.kbw-icon {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
	vertical-align: middle;
}

.kbw-service-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 6px;
}

.kbw-service-duration,
.kbw-service-price {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 700;
	color: var(--kame-text-on-light);
	background: var(--kame-cream);
	border-radius: 20px;
	padding: 3px 10px;
}

.kbw-service-desc {
	font-size: 13px;
	color: var(--kame-text-muted-light);
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* =============================================================================
   Panel 2 – Calendar
   ============================================================================= */

.kbw-calendar {
	max-width: 360px;
	margin: 0 auto;
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.09);
}

.kbw-cal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background: #0c0b05;
}

.kbw-cal-month-label {
	font-size: 15px;
	font-weight: 700;
	color: #B8915C;
}

.kbw-cal-prev,
.kbw-cal-next {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.7);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 0 6px;
	transition: color 0.2s;
}
.kbw-cal-prev:hover,
.kbw-cal-next:hover {
	color: #B8915C;
}

.kbw-cal-days-header {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	background: #f7f2ea;
	padding: 8px 14px 6px;
}
.kbw-cal-day-name {
	text-align: center;
	font-size: 10px;
	font-weight: 700;
	color: #aaa;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.kbw-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 3px;
	padding: 12px 14px 16px;
	min-height: 200px;
}

.kbw-cal-empty {
	/* occupies grid cell, no content */
}

.kbw-cal-day {
	aspect-ratio: 1;
	border: none;
	border-radius: 8px;
	font-size: 13px;
	font-family: inherit;
	background: none;
	color: #ccc;
	cursor: default;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, color 0.15s, transform 0.15s;
}
.kbw-cal-day--available {
	color: #0c0b05;
	font-weight: 700;
	background: rgba(252, 171, 16, 0.13);
	cursor: pointer;
}
.kbw-cal-day--available:hover,
.kbw-cal-day--available:focus-visible {
	background: #B8915C;
	color: #fff;
	transform: scale(1.12);
	outline: none;
}
.kbw-cal-day--past {
	color: #e0e0e0;
}
.kbw-cal-day--today {
	font-weight: 700;
}

/* =============================================================================
   Panel 3 – Time slots
   ============================================================================= */

.kbw-time-panel-title {
	/* optionally shows the selected date underneath */
}
.kbw-time-selected-date {
	text-align: center;
	font-size: 13px;
	color: #888;
	margin-top: -18px;
	margin-bottom: 22px;
}

.kbw-times-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	max-width: 460px;
	margin: 0 auto;
}

.kbw-time-btn {
	padding: 11px 22px;
	border: 2px solid #e6dfd3;
	border-radius: 10px;
	background: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	color: #0c0b05;
	cursor: pointer;
	min-width: 84px;
	transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
}
.kbw-time-btn:hover,
.kbw-time-btn:focus-visible {
	border-color: #B8915C;
	background: #B8915C;
	color: #fff;
	transform: translateY(-2px);
	outline: none;
}

/* =============================================================================
   Panel 4 – Client details
   ============================================================================= */

.kbw-details-layout {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 36px;
	align-items: start;
}
@media (max-width: 680px) {
	.kbw-details-layout {
		grid-template-columns: 1fr;
	}
}

.kbw-field {
	margin-bottom: 20px;
}

.kbw-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: #444;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	margin-bottom: 7px;
}

.kbw-req { color: #B8915C; }

.kbw-input {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid #e6dfd3;
	border-radius: 10px;
	font-family: inherit;
	font-size: 15px;
	color: #0c0b05;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.kbw-input:focus {
	outline: none;
	border-color: #B8915C;
	box-shadow: 0 0 0 3px rgba(252, 171, 16, 0.18);
}

.kbw-form-error {
	background: #fdf2f2;
	border: 1px solid #f5c6cb;
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 14px;
	color: #c0392b;
	margin-bottom: 16px;
}

.kbw-submit-btn {
	width: 100%;
	padding: 15px;
	border: none;
	border-radius: 10px;
	background: #0c0b05;
	color: #B8915C;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.kbw-submit-btn:hover:not(:disabled) {
	background: #B8915C;
	color: #0c0b05;
}
.kbw-submit-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.kbw-req-note {
	font-size: 12px;
	color: #aaa;
	margin-top: 10px;
	text-align: center;
}

/* Summary card */
.kbw-summary-card {
	background: #0c0b05;
	border-radius: 16px;
	padding: 24px 22px;
	color: #fff;
	position: sticky;
	top: 24px;
}
.kbw-summary-title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: #B8915C;
	margin: 0 0 20px;
}
.kbw-summary-list { margin: 0; }
.kbw-summary-row {
	margin-bottom: 16px;
}
.kbw-summary-row:last-child { margin-bottom: 0; }
.kbw-summary-row dt {
	font-size: 10px;
	color: rgba(255, 255, 255, 0.4);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 3px;
}
.kbw-summary-row dd {
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	margin: 0;
	line-height: 1.35;
}

/* =============================================================================
   Panel 5 – Success
   ============================================================================= */

.kbw-success {
	text-align: center;
	padding: 60px 20px;
}
.kbw-success-icon {
	width: 76px;
	height: 76px;
	margin: 0 auto 24px;
	background: rgba(252, 171, 16, 0.14);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #B8915C;
}
.kbw-success-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #0c0b05;
	margin-bottom: 12px;
}
.kbw-success-msg {
	font-size: 15px;
	color: #777;
	margin-bottom: 20px;
}
.kbw-booking-code-wrap {
	display: inline-block;
	background: #fff8ec;
	border: 2px solid #B8915C;
	border-radius: 10px;
	padding: 10px 24px;
	margin-bottom: 28px;
}
.kbw-booking-code-label {
	font-size: 12px;
	color: #888;
	margin: 0 0 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.kbw-booking-code {
	font-size: 22px;
	font-weight: 700;
	color: #0c0b05;
	letter-spacing: 2px;
	font-family: monospace;
}
.kbw-restart-btn {
	padding: 14px 34px;
	border: none;
	border-radius: 10px;
	background: #0c0b05;
	color: #B8915C;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.kbw-restart-btn:hover {
	background: #B8915C;
	color: #0c0b05;
}

/* =============================================================================
   Back navigation
   ============================================================================= */

.kbw-nav {
	margin-top: 28px;
}
.kbw-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: #1A1714;
	cursor: pointer;
	padding: 0;
	transition: color 0.2s;
}
.kbw-back-btn:hover { color: #0c0b05; }

/* =============================================================================
   Service card image
   ============================================================================= */

.kbw-service-card {
	padding: 0;        /* padding moved to .kbw-service-body */
	overflow: hidden;  /* clips image to card's border-radius */
}
.kbw-service-img-wrap {
	width: 100%;
	height: 150px;
	overflow: hidden;
	border-radius: 14px 14px 0 0;
	margin-top: -30px;
}
.kbw-service-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}
.kbw-service-card:hover .kbw-service-img,
.kbw-service-card:focus-visible .kbw-service-img {
	transform: scale(1.05);
}
.kbw-service-body {
	padding: 18px 18px 20px;
	text-align: left;
}

/* =============================================================================
   Panel 2 – Therapist / unit selection
   ============================================================================= */

.kbw-units-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
	max-width: 560px;
	margin: 0 auto;
}

.kbw-unit-card {
	background: #fff;
	border: 2px solid #e6dfd3;
	border-radius: 14px;
	padding: 28px 16px 22px;
	text-align: center;
	cursor: pointer;
	font-family: inherit;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.kbw-unit-card:hover,
.kbw-unit-card:focus-visible {
	border-color: #B8915C;
	box-shadow: 0 6px 20px rgba(252, 171, 16, 0.22);
	transform: translateY(-3px);
	outline: none;
}

.kbw-unit-avatar {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto 14px;
	background: #f0ebe0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 3px solid #f0ebe0;
	transition: border-color 0.2s;
}
.kbw-unit-card:hover .kbw-unit-avatar,
.kbw-unit-card:focus-visible .kbw-unit-avatar {
	border-color: #B8915C;
}
.kbw-unit-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.kbw-unit-initials {
	font-size: 26px;
	font-weight: 700;
	color: #B8915C;
	line-height: 1;
}
.kbw-unit-name {
	font-size: 15px;
	font-weight: 700;
	color: #0c0b05;
	margin-bottom: 6px;
}
.kbw-unit-desc {
	font-size: 12px;
	color: #888;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* =============================================================================
   Phone row – country code + number
   ============================================================================= */

.kbw-phone-row {
	display: flex;
	gap: 8px;
}
/* Custom dial picker */
.kbw-dial-picker {
	position: relative;
	flex: 0 0 auto;
}
.kbw-dial-trigger {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 100%;
	padding: 0 10px;
	border: 2px solid #e6dfd3;
	border-radius: 10px;
	background: #fff;
	font-family: inherit;
	font-size: 13px;
	color: #0c0b05;
	cursor: pointer;
	white-space: nowrap;
	transition: border-color 0.2s;
	min-width: 86px;
}
.kbw-dial-trigger:focus,
.kbw-dial-trigger[aria-expanded="true"] {
	outline: none;
	border-color: #B8915C;
	box-shadow: 0 0 0 3px rgba(252, 171, 16, 0.18);
}
.kbw-dial-flag {
	width: 20px;
	height: 15px;
	object-fit: cover;
	border-radius: 2px;
	flex-shrink: 0;
}
.kbw-dial-code {
	font-weight: 600;
}
.kbw-dial-arrow {
	margin-left: 2px;
	font-size: 10px;
	color: #aaa;
	transition: transform 0.2s;
}
.kbw-dial-trigger[aria-expanded="true"] .kbw-dial-arrow {
	transform: rotate(180deg);
}
.kbw-dial-dropdown {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 9999;
	width: 260px;
	background: #fff;
	border: 2px solid #e6dfd3;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	display: none;
	flex-direction: column;
	overflow: hidden;
}
.kbw-dial-dropdown.kbw-open {
	display: flex;
}
.kbw-dial-search-wrap {
	padding: 10px;
	border-bottom: 1px solid #f0ebe3;
}
.kbw-dial-search {
	width: 100%;
	padding: 8px 10px;
	border: 1.5px solid #e6dfd3;
	border-radius: 8px;
	font-family: inherit;
	font-size: 13px;
	color: #0c0b05;
	background: #fafafa;
	box-sizing: border-box;
}
.kbw-dial-search:focus {
	outline: none;
	border-color: #B8915C;
}
.kbw-dial-list {
	max-height: 220px;
	overflow-y: auto;
	padding: 6px 0;
}
.kbw-dial-option {
	display: flex !important;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	cursor: pointer;
	font-size: 13px;
	color: #0c0b05;
	transition: background 0.15s;
	line-height: 1.2;
}
.kbw-dial-option:hover,
.kbw-dial-option:focus,
.kbw-dial-option[aria-selected="true"] {
	background: #fff8ec;
	outline: none;
}
.kbw-dial-option[aria-selected="true"] {
	font-weight: 600;
}
.kbw-dial-name {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.kbw-dial-num {
	color: #888;
	font-size: 12px;
	flex-shrink: 0;
}
.kbw-phone-row .kbw-input {
	flex: 1;
	min-width: 0;
}

.kbw-pricing-popup {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: #1a1a1a;
	border: 2px solid #8b7355;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	padding: 10px;
	display: none;
	animation: fadeIn 0.3s ease-in-out;
	color: #999;
}

.pricing-popup-content {
	padding: auto;
}

.kbw-popup-close {
	position: absolute;
	top: 8px;
	right: 8px;
	background: none;
	border: none;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 520px) {
	.kbw-step-label { font-size: 8px; letter-spacing: 0; }
	.kbw-step-dot   { width: 28px; height: 28px; font-size: 11px; }
	.kbw-step-line  { margin-top: 13px; margin-bottom: 21px; flex: 1 1 10px; max-width: 24px; }
	.kbw-services-grid { grid-template-columns: 1fr; }
	.kbw-units-grid    { grid-template-columns: repeat(2, 1fr); }
	.kbw-cal-grid      { padding: 8px; gap: 2px; }
	.kbw-panel-title   { font-size: 1.1rem; }
	.kbw-dial-trigger  { min-width: 76px; font-size: 12px; }
}
