/**
 * 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: transparent;
	border-radius: 20px;
	padding: 10px 0;
	margin: 20px auto;
	width: 100%;
	max-width: 1040px;
	box-sizing: border-box;
}

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

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

.swb-main-title {
	color: #FFFFFF;
	font-size: 26px;
	font-weight: 700;
	margin: 0;
	letter-spacing: -0.3px;
	line-height: 1.3;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ==================================================
   DESKTOP & LAPTOP & TABLET (>= 720px)
   ================================================== */
.swb-grid-2col-main,
.swb-grid-2col-step2 {
	display: grid;
	grid-template-columns: 310px 1fr;
	gap: 0;
	align-items: stretch;
	width: 100%;
	background: #FFFFFF;
	border-radius: 20px;
	box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.12);
	border: 1px solid #E2E8F0;
	overflow: hidden;
	min-height: 500px;
}

/* CARDS COMMON */
.swb-card {
	background: var(--swb-white);
	padding: 30px 24px;
	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: #FAFAF9;
	border-right: 1px solid #EAEFE7;
	border-radius: 0;
	box-shadow: none;
	padding: 34px 28px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.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: 10px;
	margin-top: auto;
	padding-top: 22px;
	width: 100%;
}

.swb-tz-icon {
	color: #64748B;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

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

.swb-tz-select {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #CBD5E1;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	color: #334155;
	background: #FFFFFF;
	cursor: pointer;
	text-overflow: ellipsis;
	transition: all 0.15s ease;
	outline: none;
}

.swb-tz-select:hover {
	border-color: #94A3B8;
}

.swb-tz-select:focus {
	border-color: #2F4335;
	box-shadow: 0 0 0 3px rgba(47, 67, 53, 0.12);
}

/* ==================================================
   RIGHT CARD: Combined Calendar + Time Slots
   ================================================== */
.swb-card-booking-panel {
	background: var(--swb-white);
	border-radius: 0;
	box-shadow: none;
	padding: 34px 32px;
	display: flex;
	flex-direction: column;
}

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

/* 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: 6px;
}

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

.swb-day-cell {
	width: 36px;
	height: 36px;
	margin: 0 auto;
	border-radius: 50%;
	border: none;
	background: transparent;
	font-size: 13.5px;
	font-weight: 500;
	color: #94A3B8;
	cursor: not-allowed;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	transition: all 0.15s ease;
}

.swb-day-cell.is-available {
	color: #0F172A;
	font-weight: 600;
	cursor: pointer;
}

.swb-day-cell.is-available:hover {
	background: #EEF2E8;
	color: #2F4335;
	transform: scale(1.08);
}

.swb-day-cell.is-selected {
	background: #2F4335 !important;
	color: #FFFFFF !important;
	font-weight: 700 !important;
	box-shadow: 0 4px 12px rgba(47, 67, 53, 0.35);
	transform: scale(1.08);
}

.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: #F1F5F9;
	width: 1px;
	height: 100%;
	min-height: 380px;
}

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

.swb-slots-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 280px;
	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: #2F4335;
	color: var(--swb-white);
	font-size: 7px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.swb-empty-text {
	font-size: 13px;
	color: #64748B;
	margin: 0;
	line-height: 1.5;
	max-width: 180px;
	text-align: center;
}

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

.swb-slot-selected-heading-day {
	font-size: 15px;
	font-weight: 700;
	color: #0F172A;
	display: inline;
	margin: 0;
}

.swb-slot-selected-heading-year {
	font-size: 15px;
	font-weight: 700;
	color: #64748B;
	display: inline;
	margin-left: 4px;
}

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

.swb-slot-btn {
	width: 100%;
	padding: 13px 16px;
	background: #FFFFFF;
	color: #2F4335;
	border: 1.5px solid #2F4335;
	font-size: 14px;
	font-weight: 700;
	border-radius: 8px;
	cursor: pointer;
	text-align: center;
	transition: all 0.18s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.swb-slot-btn:hover {
	background: #2F4335;
	color: #FFFFFF;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(47, 67, 53, 0.22);
}

.swb-slot-btn.is-selected {
	background: #2F4335 !important;
	color: #FFFFFF !important;
	border-color: #2F4335 !important;
}

/* ==================================================
   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;
}

/* ==================================================
   CONFIRMATION PANEL & FREE BOOKINGS
   ================================================== */
.swb-confirmation-panel {
	max-width: 540px;
	margin: 0 auto;
}

.swb-conf-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	background: #DCFCE7;
	border-radius: 50%;
	color: #16A34A;
	margin-bottom: 12px;
}

.swb-conf-title {
	font-size: 22px;
	font-weight: 700;
	color: #166534;
	margin: 0 0 6px 0;
}

.swb-conf-subtitle {
	font-size: 13.5px;
	color: #4B5563;
	margin: 0 0 20px 0;
	line-height: 1.5;
}

.swb-conf-details-box {
	background: var(--swb-page-bg, #F9FBF8);
	border: 1px solid #DEE7DA;
	border-radius: 10px;
	padding: 16px 20px;
	margin-bottom: 24px;
	text-align: left;
}

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

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

.swb-conf-label {
	color: #64748B;
	font-weight: 500;
}

.swb-conf-val {
	color: var(--swb-dark-text, #1E293B);
	font-weight: 600;
	text-align: right;
}

.swb-conf-ref {
	color: var(--swb-primary-sage, #526A59);
	font-family: monospace;
	font-size: 14px;
	letter-spacing: 0.5px;
}

.swb-service-selector-wrap select:focus {
	outline: none;
	border-color: var(--swb-primary-sage, #526A59);
	box-shadow: 0 0 0 2px rgba(82, 106, 89, 0.2);
}

/* ==================================================
   TABLET & SMALL LAPTOP (720px - 979px)
   ================================================== */
@media (min-width: 720px) and (max-width: 979px) {
	.swb-theme-wrapper {
		max-width: 100% !important;
		padding: 10px 14px !important;
	}

	.swb-grid-2col-main,
	.swb-grid-2col-step2 {
		grid-template-columns: 260px 1fr !important;
		min-height: auto !important;
	}

	.swb-card-service,
	.swb-step2-summary-card {
		padding: 24px 20px !important;
	}

	.swb-card-booking-panel {
		padding: 24px 20px !important;
	}

	.swb-booking-panel-grid {
		grid-template-columns: 1fr 1px 1fr !important;
		gap: 16px !important;
	}

	.swb-day-cell {
		width: 30px !important;
		height: 30px !important;
		font-size: 12px !important;
	}

	.swb-slot-btn {
		padding: 10px 12px !important;
		font-size: 13px !important;
	}
}

/* ==================================================
   MOBILE RESPONSIVE (< 720px)
   ================================================== */
@media (max-width: 719px) {
	.swb-theme-wrapper {
		padding: 10px 8px !important;
		margin: 10px auto !important;
		width: 100% !important;
	}

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

	.swb-grid-2col-main,
	.swb-grid-2col-step2 {
		display: flex !important;
		flex-direction: column !important;
		border-radius: 16px !important;
		min-height: auto !important;
		box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.2) !important;
	}

	.swb-card-service,
	.swb-step2-summary-card {
		border-right: none !important;
		border-bottom: 1px solid #EAEFE7 !important;
		padding: 24px 20px !important;
	}

	.swb-card-booking-panel {
		padding: 24px 20px !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;
	}

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

	.swb-day-cell {
		width: 36px !important;
		height: 36px !important;
		font-size: 13px !important;
	}

	.swb-slots-active-view {
		margin-top: 18px !important;
		padding-top: 16px !important;
		border-top: 1px solid #F1F5F9 !important;
	}

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

	.swb-slot-selected-heading-day,
	.swb-slot-selected-heading-year {
		display: inline !important;
		font-size: 14.5px !important;
		color: #0F172A !important;
	}

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

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

	.swb-step2-form-card {
		padding: 20px 16px !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: 6px 4px !important;
	}

	.swb-card-service,
	.swb-card-booking-panel {
		padding: 16px 12px !important;
	}

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

	.swb-day-cell {
		width: 30px !important;
		height: 30px !important;
		font-size: 12px !important;
	}
}
