/* WorkspaceOS booking form — matches the Deshpande Startups booking page design.
   Elementor's own field styles are very specific, so card overrides use !important.
   Change the colours here in one place via the custom properties. */
:root {
	--wsos-card: #eeebe0;
	--wsos-ink: #1e1e1e;
	--wsos-muted: #5c574b;
	--wsos-field: #2b2b2b;
	--wsos-field-text: #ffffff;
	--wsos-placeholder: #9a9a9a;
	--wsos-green: #08873f;
	--wsos-red: #c0392b;
	--wsos-line: #3a3a3a;
	--wsos-heading: #8c8c8c;
}

/* ---- Section divider: add an Elementor HTML field with
        <div class="wsos-section">01. Your details</div> ---- */
.wsos-section {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	margin: 28px 0 6px;
	color: var(--wsos-heading);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	line-height: 1.2;
}
.wsos-section::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--wsos-line);
}
.elementor-field-type-html:first-child .wsos-section {
	margin-top: 0;
}

/* ---- Pass card ---- */
.wsos-slot {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 16px;
	padding: 22px 22px 14px;
	border-radius: 18px;
	background: var(--wsos-card);
	color: var(--wsos-ink);
}
.wsos-slot[hidden],
.wsos-add[hidden],
.wsos-summary[hidden] {
	display: none !important;
}
.wsos-slot .elementor-field-label,
.wsos-slot label {
	color: var(--wsos-ink) !important;
	font-weight: 500 !important;
}

/* Dark fields inside the cream card. */
.wsos-slot input.elementor-field,
.wsos-slot select.elementor-field,
.wsos-slot .elementor-field-textual,
.wsos-slot .elementor-select-wrapper select {
	background-color: var(--wsos-field) !important;
	color: var(--wsos-field-text) !important;
	border: 0 !important;
	border-radius: 4px !important;
	box-shadow: none !important;
	color-scheme: dark; /* white calendar icon */
	opacity: 1 !important;
}
.wsos-slot .elementor-field::placeholder {
	color: var(--wsos-placeholder) !important;
	opacity: 1;
}
/* One arrow only: drop the theme's background-image arrow, keep Elementor's caret. */
.wsos-slot select.elementor-field,
.wsos-slot .elementor-select-wrapper select {
	background-image: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	padding-right: 36px !important;
}
/* Desk count arrows always visible (Chrome only shows them on hover by default). */
.wsos-slot input[type="number"]::-webkit-inner-spin-button,
.wsos-slot input[type="number"]::-webkit-outer-spin-button {
	opacity: 1 !important;
	cursor: pointer;
}
.wsos-slot .elementor-select-wrapper select option {
	background: #ffffff;
	color: #111111;
}
.wsos-slot .elementor-select-wrapper::before,
.wsos-slot .select-caret-down-wrapper,
.wsos-slot .select-caret-down-wrapper i,
.wsos-slot .select-caret-down-wrapper svg {
	color: var(--wsos-field-text) !important;
	fill: var(--wsos-field-text) !important;
}
.wsos-slot input[readonly] {
	cursor: default;
}
.wsos-slot input[readonly]::-webkit-calendar-picker-indicator {
	display: none;
}
.wsos-slot input.elementor-field:focus,
.wsos-slot select.elementor-field:focus {
	outline: 2px solid var(--wsos-green) !important;
	outline-offset: 1px;
}

/* Footer row: "89 desks available for these dates" … "× Remove" */
.wsos-slot-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 28px;
	padding: 0 calc(var(--column-gap, 10px) / 2);
	box-sizing: border-box;
}
.wsos-msg {
	font-size: 12px;
	font-weight: 600;
	color: var(--wsos-muted);
}
.wsos-msg.wsos-bad {
	color: #9a2b00;
}
.wsos-remove {
	min-height: 32px;
	margin-left: auto;
	padding: 0 4px;
	border: 0 !important;
	background: transparent !important;
	color: var(--wsos-red) !important;
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	box-shadow: none !important;
}
.wsos-remove::before {
	content: "\00d7\00a0";
}
.wsos-remove:hover,
.wsos-remove:focus-visible {
	text-decoration: underline;
}

/* ---- + Add Another Pass ---- */
.wsos-add {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	width: 100%;
	margin: 0 0 8px;
}
.wsos-add-btn {
	min-height: 36px;
	padding: 0 18px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--wsos-green) !important;
	color: #ffffff !important;
	font: inherit;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 36px !important;
	cursor: pointer;
}
.wsos-add-btn:hover,
.wsos-add-btn:focus-visible {
	background: #06652f !important;
}
.wsos-add-hint {
	font-size: 12px;
	color: var(--wsos-heading);
}

/* ---- Order summary above the Pay button ---- */
.wsos-summary {
	width: 100%;
	box-sizing: border-box;
	margin: 6px 0 14px;
	padding: 12px calc(var(--column-gap, 10px) / 2) 0;
	border-top: 1px solid var(--wsos-line);
	font-size: 14px;
}
.wsos-summary-title {
	margin-bottom: 6px;
	color: var(--wsos-heading);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.wsos-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 4px 0;
}
.wsos-summary-what span {
	color: var(--wsos-heading);
}
.wsos-summary-amt {
	white-space: nowrap;
}
.wsos-summary-total {
	margin-top: 6px;
	padding-top: 10px;
	border-top: 1px dashed var(--wsos-line);
	font-size: 16px;
}
.wsos-summary-total strong {
	font-size: 18px;
}
.wsos-upload-note {
	margin-top: 6px;
	font-size: 12px;
	color: var(--wsos-heading);
}
.wsos-book-notice {
	margin: 0 0 18px;
	padding: 12px 16px;
	border-radius: 10px;
	background: #2a2414;
	color: #f3e2b3;
	font-size: 14px;
}

@media (max-width: 767px) {
	.wsos-slot {
		padding: 18px 12px 10px;
	}
	/* Stack pass fields on phones so long pass names are readable. */
	.wsos-slot > .elementor-field-group {
		width: 100% !important;
		max-width: 100% !important;
		flex-basis: 100% !important;
	}
}

/* ---- Submitting: "Creating your booking…" ---- */
form.wsos-busy button[type="submit"] {
	cursor: progress !important;
	opacity: 0.85;
}
form.wsos-busy button[type="submit"]::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 10px;
	vertical-align: -2px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: wsos-spin 0.8s linear infinite;
}
@keyframes wsos-spin {
	to {
		transform: rotate(360deg);
	}
}
@media (prefers-reduced-motion: reduce) {
	form.wsos-busy button[type="submit"]::before {
		animation-duration: 2.4s;
	}
}

/* =====================================================================
   Payment step (order-pay) and Workspace Pass (order-received).
   Scoped to body.wsos-order-page, so other WooCommerce orders are untouched.
   ===================================================================== */
body.wsos-order-page .woocommerce {
	max-width: 760px;
	margin: 0 auto;
	padding-top: calc(var(--wsos-header-h, 0px) + 40px); /* clear a fixed/sticky site header */
	padding-bottom: 32px;
}
body.wsos-order-page .entry-title,
body.wsos-order-page .woocommerce-order-overview + p:empty {
	display: none;
}
/* Razorpay step: one compact strip + the buttons, all above the fold. */
body.wsos-order-pay ul.order_details,
body.wsos-order-pay .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin: 0 0 18px !important;
	padding: 0 !important;
	list-style: none;
	font-size: 13px;
}
body.wsos-order-pay ul.order_details li {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	float: none !important;
	text-transform: none;
	opacity: 0.85;
}
body.wsos-order-pay ul.order_details li strong {
	display: block;
	font-size: 16px;
	opacity: 1;
}
body.wsos-order-pay #btn-razorpay,
body.wsos-order-pay #btn-razorpay-cancel {
	min-height: 46px;
	margin: 6px 8px 0 0;
}
/* "Cancel" is replaced by our "Change booking" link (which also frees the desks). */
body.wsos-order-pay #btn-razorpay-cancel {
	display: none !important;
}
.wsos-pay-alert {
	margin: 0 0 16px;
	padding: 14px 18px;
	border-radius: 12px;
	background: #fbe7e4;
	color: #6e1a12;
}
.wsos-pay-help {
	margin: 14px 0 0;
	font-size: 14px;
	opacity: 0.85;
}
.wsos-pay-actions {
	margin: 12px 0 0 !important;
}
.wsos-change {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border: 1px solid currentColor;
	border-radius: 999px;
	color: inherit !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	opacity: 0.85;
}
.wsos-change:hover,
.wsos-change:focus-visible {
	opacity: 1;
	background: rgba(255, 255, 255, 0.08);
}

/* Full-screen "confirming" state after Razorpay reports success. */
.wsos-confirming {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 24px;
	background: rgba(0, 0, 0, 0.88);
	color: #ffffff;
	text-align: center;
}
.wsos-confirming strong {
	font-size: 20px;
}
.wsos-confirming p {
	max-width: 420px;
	margin: 0;
	opacity: 0.85;
}
.wsos-confirming::before {
	content: "";
	width: 38px;
	height: 38px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: wsos-spin 0.8s linear infinite;
}

/* ---- Thank-you page: hide WooCommerce's overview, show the pass ---- */
body.wsos-order-received .woocommerce-order-overview,
body.wsos-order-received .woocommerce-thankyou-order-received,
body.wsos-order-received .woocommerce-order-details,
body.wsos-order-received .woocommerce-customer-details {
	display: none !important;
}
.wsos-pass-wrap {
	max-width: 560px;
	margin: 0 auto;
}
.wsos-pass {
	--pass-bg: #eeebe0;
	--pass-ink: #1e1e1e;
	--pass-muted: #5c574b;
	overflow: hidden;
	border-radius: 20px;
	background: var(--pass-bg);
	color: var(--pass-ink);
	font-size: 15px;
	line-height: 1.45;
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}
.wsos-pass-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 18px 24px;
	background: #111111;
	color: #ffffff;
}
.wsos-pass-brand {
	display: flex;
	flex-direction: column;
}
.wsos-pass-org {
	font-weight: 700;
	font-size: 16px;
}
.wsos-pass-kind {
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.7;
}
.wsos-pass-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #08873f;
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
}
.wsos-pass-holder {
	display: flex;
	flex-direction: column;
	padding: 22px 24px 6px;
}
.wsos-pass-label,
.wsos-pass-meta dt {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pass-muted);
}
.wsos-pass-name {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
}
.wsos-pass-company {
	color: var(--pass-muted);
}
.wsos-pass-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 20px;
	margin: 0;
	padding: 16px 24px 20px;
}
.wsos-pass .wsos-pass-meta dt,
.wsos-pass .wsos-pass-meta dd {
	margin: 0 !important;
	padding: 0 !important;
}
.wsos-pass .wsos-pass-meta dd {
	margin-top: 2px !important;
	font-weight: 600;
}
.wsos-pass-ref {
	font-size: 13px;
	overflow-wrap: anywhere;
}
.wsos-pass-cut {
	position: relative;
	height: 0;
	margin: 0 18px;
	border-top: 2px dashed rgba(0, 0, 0, 0.18);
}
.wsos-pass-cut::before,
.wsos-pass-cut::after {
	content: "";
	position: absolute;
	top: -13px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--wsos-page-bg, #000000); /* page background behind the pass */
}
.wsos-pass-cut::before {
	left: -32px;
}
.wsos-pass-cut::after {
	right: -32px;
}
.wsos-pass .wsos-pass-lines {
	margin: 0 !important;
	padding: 8px 24px !important;
	list-style: none !important;
}
.wsos-pass .wsos-pass-lines li {
	margin: 0 !important;
	list-style: none !important;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 16px;
	padding: 12px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.wsos-pass-lines li:last-child {
	border-bottom: 0;
}
.wsos-pass-pass {
	font-weight: 700;
}
.wsos-pass-dates {
	grid-column: 1;
	color: var(--pass-muted);
}
.wsos-pass-desks {
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: center;
	font-weight: 600;
}
.wsos-pass-foot {
	padding: 14px 24px 20px;
	font-size: 13px;
	color: var(--pass-muted);
	background: rgba(0, 0, 0, 0.04);
}
.wsos-pass-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin: 18px 0 0;
	font-size: 13px;
	opacity: 0.9;
}
.wsos-pass-print {
	min-height: 46px;
	padding: 0 24px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #08873f !important;
	color: #ffffff !important;
	font: inherit;
	font-weight: 600 !important;
	cursor: pointer;
}
.wsos-pass-note {
	max-width: 560px;
	margin: 0 auto;
	padding: 20px 24px;
	border-radius: 14px;
	background: #eeebe0;
	color: #1e1e1e;
}
.wsos-pass-note p {
	margin: 6px 0 0;
}
@media (max-width: 480px) {
	.wsos-pass-meta {
		grid-template-columns: 1fr 1fr;
	}
	.wsos-pass-name {
		font-size: 22px;
	}
}

/* ---- Pass page: thank-you line + quiet entrance ---- */
.wsos-pass-hello {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin: 0 0 22px;
}
.wsos-pass-tick {
	flex: 0 0 auto;
	margin-top: 2px;
}
.wsos-pass-title {
	margin: 0 0 6px !important;
	font-size: 24px !important;
	line-height: 1.25 !important;
}
.wsos-pass-sub {
	margin: 0 !important;
	font-size: 15px;
	line-height: 1.55;
	opacity: 0.85;
}
.wsos-pass-tick circle {
	stroke-dasharray: 139;
	stroke-dashoffset: 139;
	animation: wsos-draw 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards;
}
.wsos-pass-tick path {
	stroke-dasharray: 34;
	stroke-dashoffset: 34;
	animation: wsos-draw 0.35s cubic-bezier(0.65, 0, 0.35, 1) 0.75s forwards;
}
.wsos-pass-hello > div,
.wsos-pass,
.wsos-pass-actions {
	animation: wsos-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wsos-pass-hello > div {
	animation-delay: 0.15s;
}
.wsos-pass {
	animation-delay: 0.35s;
}
.wsos-pass-actions {
	animation-delay: 0.55s;
}
@keyframes wsos-draw {
	to {
		stroke-dashoffset: 0;
	}
}
@keyframes wsos-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	.wsos-pass-tick circle,
	.wsos-pass-tick path {
		animation: none;
		stroke-dashoffset: 0;
	}
	.wsos-pass-hello > div,
	.wsos-pass,
	.wsos-pass-actions {
		animation: none;
	}
}
.wsos-pass-back {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	padding: 0 22px;
	border: 1px solid currentColor;
	border-radius: 999px;
	color: inherit !important;
	font-weight: 600;
	text-decoration: none !important;
}
.wsos-pass-back:hover,
.wsos-pass-back:focus-visible {
	background: rgba(255, 255, 255, 0.08);
}
.wsos-pass-tip {
	margin: 10px 0 0 !important;
	font-size: 12px;
	opacity: 0.7;
}

/* ---- Printing / Save as PDF: the script copies the pass to the top of the page
        and prints only that copy, so phones don't cut it off under the header. ---- */
#wsos-print-root {
	display: none;
}
@media print {
	@page {
		margin: 12mm;
	}
	html,
	body {
		background: #ffffff !important;
		margin: 0 !important;
		padding: 0 !important;
	}
	body.wsos-printing > *:not(#wsos-print-root) {
		display: none !important;
	}
	body.wsos-printing #wsos-print-root {
		display: block !important;
		width: 100%;
		max-width: 520px;
		margin: 0 auto;
	}
	#wsos-print-root .wsos-pass {
		animation: none !important;
		break-inside: avoid;
	}
	#wsos-print-root .wsos-pass-cut::before,
	#wsos-print-root .wsos-pass-cut::after {
		background: #ffffff;
	}
}

/* Celebration canvas (pass page). */
.wsos-confetti {
	position: fixed;
	inset: 0;
	z-index: 100001;
	pointer-events: none;
}
.wsos-pass-tick {
	transform-origin: center;
	animation: wsos-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both;
}
@keyframes wsos-pop {
	from {
		transform: scale(0.6);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}
@media (prefers-reduced-motion: reduce) {
	.wsos-pass-tick {
		animation: none;
	}
}

/* Full-screen wait while the booking is created and payment opens. */
.wsos-wait {
	animation: wsos-fade-in 0.2s ease both;
}
@keyframes wsos-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
