/**
 * Seemi Wellness Booking - Frontend Stylesheet
 * 100% Pixel-Matched Responsive Stylesheet (Desktop, Laptop, Tablet, Mobile)
 */

:root {
	--swb-primary-sage: #607361;
	--swb-dark-sage: #4D5E4E;
	--swb-light-sage: #A8B79F;
	--swb-page-bg: #EEF2E8;
	--swb-warm-beige: #F7F3EA;
	--swb-terracotta: #B66A4D;
	--swb-dark-text: #2F4335;
	--swb-body-text: #4F5F4E;
	--swb-muted-text: #6B7F6C;
	--swb-container-bg: linear-gradient(180deg, #37483D 0%, #202A24 100%);
	--swb-white: #FFFFFF;
	--swb-border: #E8EFE5;
	--swb-border-subtle: #F0F4EF;
	--swb-input-border: #D6E4F0;
	--swb-radius-lg: 20px;
	--swb-radius-card: 14px;
	--swb-radius-sm: 6px;
	--swb-radius-pill: 24px;
	--swb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Allow comfortable width in WordPress Block / Standard Themes */
.entry-content:has(.swb-theme-wrapper),
.wp-block-post-content:has(.swb-theme-wrapper),
.elementor-widget-container:has(.swb-theme-wrapper) {
	max-width: 1100px;
	width: 100%;
}

/* Base Container */
.swb-theme-wrapper {
	font-family: var(--swb-font);
	color: var(--swb-dark-text);
	background: var(--swb-container-bg);
	border-radius: var(--swb-radius-lg);
	padding: 36px 28px;
	margin: 28px auto;
	width: 100%;
	max-width: 1000px;
	box-shadow: 0 16px 36px -8px rgba(25, 38, 30, 0.4);
	box-sizing: border-box;
	overflow: hidden;
}

.swb-theme-wrapper * {
	box-sizing: border-box;
}

/* TOP HEADER */
.swb-top-header {
	text-align: center;
	margin-bottom: 24px;
}

.swb-main-title {
	color: var(--swb-white);
	font-size: 24px;
	font-weight: 600;
	margin: 0;
	letter-spacing: -0.2px;
	line-height: 1.25;
}

/* ==================================================
   DESKTOP & LAPTOP & TABLET (>= 720px)
   ================================================== */
.swb-grid-2col-main,
.swb-grid-2col-step2 {
	display: grid;
	grid-template-columns: 270px 1fr;
	gap: 18px;
	align-items: stretch;
	width: 100%;
}

/* CARDS COMMON */
.swb-card {
	background: var(--swb-white);
	border-radius: var(--swb-radius-card);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	padding: 24px 20px;
	display: flex;
	flex-direction: column;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}

/* LEFT CARD: Service Details & Step 2 Summary */
.swb-card-service,
.swb-step2-summary-card {
	background: var(--swb-white);
}

.swb-service-header {
	margin-bottom: 16px;
}

.swb-consultant-label {
	font-size: 13.5px;
	font-weight: 500;
	color: var(--swb-muted-text);
	display: block;
	margin-bottom: 4px;
}

.swb-service-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--swb-dark-text);
	margin: 0;
	line-height: 1.3;
}

/* SPECS LIST */
.swb-specs-list {
	display: flex;
	flex-direction: column;
	margin-bottom: 16px;
}

.swb-spec-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid var(--swb-border-subtle);
}

.swb-spec-item:last-child {
	border-bottom: none;
}

.swb-step2-date-row {
	align-items: flex-start;
}

.swb-step2-datetime-wrap {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.swb-spec-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

.swb-spec-val {
	font-size: 14px;
	font-weight: 500;
	color: var(--swb-body-text);
}

.swb-dynamic-date {
	color: var(--swb-body-text);
	font-weight: 500;
}

/* Timezone Row */
.swb-tz-picker-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 14px;
	font-size: 13px;
	color: var(--swb-muted-text);
}

.swb-tz-label {
	font-size: 13px;
	font-weight: 500;
	color: var(--swb-muted-text);
	white-space: nowrap;
}

.swb-select-wrapper {
	flex: 1;
	min-width: 0;
}

.swb-tz-select {
	width: 100%;
	padding: 6px 10px;
	border: 1px solid #DFE5DC;
	border-radius: var(--swb-radius-sm);
	font-size: 12.5px;
	color: var(--swb-dark-text);
	background: var(--swb-white);
	cursor: pointer;
	text-overflow: ellipsis;
}

.swb-tz-select:focus {
	outline: none;
	border-color: var(--swb-primary-sage);
}

/* ==================================================
   RIGHT CARD: Combined Calendar + Time Slots
   ================================================== */
.swb-card-booking-panel {
	background: var(--swb-white);
	padding: 24px 24px;
}

.swb-booking-panel-grid {
	display: grid;
	grid-template-columns: 1.15fr 1px 1fr;
	gap: 20px;
	align-items: stretch;
	height: 100%;
	min-height: 350px;
}

/* Calendar Section */
.swb-panel-calendar {
	display: flex;
	flex-direction: column;
}

.swb-cal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--swb-border-subtle);
}

.swb-cal-title {
	font-size: 15.5px;
	font-weight: 600;
	color: var(--swb-dark-text);
	margin: 0;
}

.swb-cal-nav {
	display: flex;
	gap: 6px;
}

.swb-cal-btn {
	border: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.swb-cal-btn.swb-prev-month {
	background: #9AAAB2;
	color: var(--swb-white);
}

.swb-cal-btn.swb-next-month {
	background: #19324D;
	color: var(--swb-white);
}

.swb-cal-btn:hover {
	opacity: 0.85;
	transform: scale(1.05);
}

.swb-weekdays-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	font-size: 11px;
	font-weight: 600;
	color: #5B6E60;
	margin-bottom: 10px;
}

.swb-days-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.swb-loading-spinner {
	grid-column: span 7;
	text-align: center;
	padding: 30px 0;
	color: #7D8E7C;
	font-size: 13px;
}

.swb-day-cell {
	aspect-ratio: 1;
	border-radius: 6px;
	border: none;
	background: transparent;
	font-size: 12.5px;
	font-weight: 500;
	color: #718270;
	cursor: not-allowed;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	transition: all 0.15s ease;
	min-height: 28px;
}

.swb-day-cell.is-available {
	color: var(--swb-dark-text);
	font-weight: 600;
	cursor: pointer;
}

.swb-day-cell.is-available:hover {
	background: #EEF2E8;
	color: var(--swb-dark-text);
}

.swb-day-cell.is-selected {
	background: var(--swb-primary-sage) !important;
	color: var(--swb-white) !important;
	border-radius: 6px;
	font-weight: 700;
}

.swb-day-cell.is-today::after {
	content: '';
	display: block;
	width: 4px;
	height: 4px;
	background: #2563EB;
	border-radius: 50%;
	position: absolute;
	bottom: 2px;
}

/* Vertical Divider */
.swb-panel-divider {
	background: var(--swb-border-subtle);
	width: 1px;
	height: 100%;
}

/* Time Slots Section */
.swb-panel-slots {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.swb-slots-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 30px 10px;
	text-align: center;
}

.swb-empty-icon-box {
	margin-bottom: 12px;
}

.swb-grid-icon-9 {
	display: grid;
	grid-template-columns: repeat(3, 10px);
	grid-template-rows: repeat(3, 10px);
	gap: 3px;
}

.swb-grid-icon-9 span {
	background: #EDF2EB;
	border-radius: 2px;
}

.swb-grid-icon-9 span.is-center-dot {
	background: var(--swb-primary-sage);
	color: var(--swb-white);
	font-size: 7px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.swb-empty-text {
	font-size: 12.5px;
	color: var(--swb-muted-text);
	margin: 0;
	line-height: 1.4;
	max-width: 140px;
	text-align: center;
}

/* Selected Slots View */
.swb-slots-date-heading-wrapper {
	margin-bottom: 14px;
	text-align: center;
}

.swb-slot-selected-heading-day {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--swb-dark-text);
	margin: 0 0 2px 0;
}

.swb-slot-selected-heading-year {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--swb-dark-text);
	margin: 0;
}

.swb-slots-grid {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 280px;
	overflow-y: auto;
	padding-right: 4px;
}

.swb-slot-btn {
	width: 100%;
	padding: 11px 12px;
	background: var(--swb-primary-sage);
	color: var(--swb-white);
	font-size: 13px;
	font-weight: 700;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	text-align: center;
	transition: background 0.15s ease;
}

.swb-slot-btn:hover {
	background: var(--swb-dark-sage);
}

.swb-slot-btn.is-selected {
	background: var(--swb-dark-sage);
}

/* ==================================================
   STEP 2: CUSTOMER INFORMATION FORM
   ================================================== */
.swb-step2-form-card {
	padding: 24px 26px;
}

.swb-field {
	margin-bottom: 16px;
}

.swb-field label {
	display: flex;
	align-items: center;
	font-size: 13px;
	font-weight: 600;
	color: var(--swb-dark-text);
	margin-bottom: 6px;
}

.swb-req-star {
	color: #DC2626;
	margin-right: 3px;
}

.swb-help-tooltip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1px solid #94A3B8;
	color: #64748B;
	font-size: 10px;
	margin-left: 6px;
	cursor: help;
}

.swb-input, .swb-textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--swb-input-border);
	border-radius: var(--swb-radius-sm);
	font-size: 13.5px;
	color: var(--swb-dark-text);
	background: var(--swb-white);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.swb-input::placeholder, .swb-textarea::placeholder {
	color: #94A3B8;
}

.swb-input:focus, .swb-textarea:focus {
	outline: none;
	border-color: #3B82F6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.swb-form-error {
	background: #FDF2F2;
	color: #9B1C1C;
	border: 1px solid #F8B4B4;
	padding: 10px 14px;
	border-radius: var(--swb-radius-sm);
	font-size: 12.5px;
	margin-bottom: 16px;
}

.swb-form-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--swb-border-subtle);
	gap: 12px;
}

/* BUTTONS */
.swb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 22px;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
}

.swb-btn-primary {
	background: var(--swb-primary-sage);
	color: var(--swb-white);
	border-radius: var(--swb-radius-pill);
	padding: 11px 22px;
}

.swb-btn-primary:hover {
	background: var(--swb-dark-sage);
}

.swb-btn-back {
	background: var(--swb-white);
	color: var(--swb-dark-text);
	border: 1px solid #CBD5E1;
	border-radius: 6px;
	font-weight: 600;
	padding: 9px 16px;
}

.swb-btn-back:hover {
	background: #F8FAFC;
}

/* ==================================================
   STEP 3: REVIEW BOOKING
   ================================================== */
.swb-step3-card {
	max-width: 540px;
	margin: 0 auto;
	padding: 26px;
}

.swb-review-header {
	text-align: center;
	margin-bottom: 20px;
}

.swb-review-title {
	font-size: 19px;
	font-weight: 700;
	color: var(--swb-dark-text);
	margin: 0 0 4px 0;
}

.swb-review-desc {
	font-size: 12.5px;
	color: #6C7D6B;
	margin: 0;
}

.swb-hold-details-box {
	background: var(--swb-page-bg);
	border: 1px solid #DEE7DA;
	border-radius: 10px;
	padding: 18px;
	margin-bottom: 18px;
}

.swb-hold-detail-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 7px 0;
	border-bottom: 1px solid rgba(102, 122, 99, 0.12);
	font-size: 12.5px;
}

.swb-hold-detail-row:last-child {
	border-bottom: none;
}

.swb-hd-price-row {
	padding-top: 10px;
	font-size: 14px;
}

.swb-hd-price {
	color: var(--swb-primary-sage);
	font-size: 15.5px;
}

.swb-checkout-notice {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #FDF3EF;
	border: 1px solid #F6D6CA;
	color: #8C472E;
	padding: 11px 13px;
	border-radius: var(--swb-radius-sm);
	font-size: 12px;
	margin-bottom: 18px;
}

.swb-checkout-notice svg {
	flex-shrink: 0;
	color: var(--swb-terracotta);
}

.swb-step3-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

/* ==================================================
   MOBILE RESPONSIVE (< 720px & SCREENSHOTS 1-4)
   ================================================== */
@media (max-width: 719px) {
	.swb-theme-wrapper {
		padding: 20px 12px !important;
		border-radius: 16px !important;
		margin: 12px auto !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.swb-main-title {
		font-size: 19px !important;
		margin-bottom: 16px !important;
	}

	.swb-card {
		padding: 18px 14px !important;
		border-radius: 14px !important;
		width: 100% !important;
	}

	.swb-grid-2col-main,
	.swb-grid-2col-step2 {
		display: flex !important;
		flex-direction: column !important;
		gap: 14px !important;
		width: 100% !important;
	}

	.swb-card-booking-panel {
		padding: 18px 14px !important;
		min-height: auto !important;
	}

	.swb-booking-panel-grid {
		display: flex !important;
		flex-direction: column !important;
		gap: 0 !important;
		min-height: auto !important;
	}

	.swb-panel-divider {
		display: none !important;
	}

	.swb-slots-empty {
		display: none !important; /* Hide empty placeholder on mobile */
	}

	.swb-days-grid {
		gap: 3px !important;
	}

	.swb-day-cell {
		min-height: 34px !important;
		font-size: 12.5px !important;
	}

	.swb-slots-active-view {
		margin-top: 16px;
		padding-top: 14px;
		border-top: 1px solid var(--swb-border-subtle);
	}

	.swb-slots-date-heading-wrapper {
		margin-bottom: 12px !important;
		text-align: center !important;
	}

	.swb-slot-selected-heading-day,
	.swb-slot-selected-heading-year {
		display: inline !important;
		font-size: 13.5px !important;
		color: #2F4335 !important;
	}

	.swb-slots-grid {
		gap: 8px !important;
		max-height: none !important;
	}

	.swb-slot-btn {
		padding: 12px 14px !important;
		font-size: 13.5px !important;
		border-radius: 6px !important;
	}

	.swb-step2-form-card {
		padding: 20px 14px !important;
	}

	.swb-form-actions {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 12px !important;
	}

	.swb-btn-back {
		align-self: flex-start !important;
		padding: 8px 14px !important;
		font-size: 13px !important;
	}

	.swb-btn-primary {
		width: 100% !important;
		border-radius: var(--swb-radius-pill) !important;
		padding: 12px 20px !important;
		font-size: 14px !important;
	}
}

/* Small Smartphone (< 380px) */
@media (max-width: 379px) {
	.swb-theme-wrapper {
		padding: 16px 8px !important;
	}

	.swb-card {
		padding: 14px 10px !important;
	}

	.swb-main-title {
		font-size: 17px !important;
	}

	.swb-day-cell {
		min-height: 28px !important;
		font-size: 11.5px !important;
	}
}
