/* Book Your Sewa — form & modal (visit-modal language) */

.suyeswp-sewa-modal.gaumantak-event-modal,
.suyeswp-sewa-panel {
	--gm-bg: #faf7f2;
	--gm-bg-alt: #fff4e7;
	--gm-surface: #ffffff;
	--gm-primary: #7b1e1e;
	--gm-primary-dark: #5a1515;
	--gm-text: #2d2d2d;
	--gm-text-muted: #6b6560;
	--gm-border: #e8ddd0;
	--gm-radius: 12px;
}

.suyeswp-sewa-modal .gaumantak-btn,
.suyeswp-sewa-panel .gaumantak-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.7rem 1.25rem;
	border-radius: 8px;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	border: 1.5px solid transparent;
	cursor: pointer;
	appearance: none;
	font-family: inherit;
}

.suyeswp-sewa-modal .gaumantak-btn--primary,
.suyeswp-sewa-panel .gaumantak-btn--primary {
	background: var(--gm-primary);
	border-color: var(--gm-primary);
	color: #fff;
}

.suyeswp-sewa-modal .gaumantak-btn--primary:hover,
.suyeswp-sewa-panel .gaumantak-btn--primary:hover {
	background: var(--gm-primary-dark);
	border-color: var(--gm-primary-dark);
}

.suyeswp-sewa-modal .gaumantak-btn--primary:disabled,
.suyeswp-sewa-panel .gaumantak-btn--primary:disabled {
	opacity: 0.7;
	cursor: wait;
}

/* Inline panel */
.suyeswp-sewa-panel {
	background: var(--gm-surface);
	border: 1px solid var(--gm-border);
	border-radius: var(--gm-radius);
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(58, 42, 34, 0.08);
	max-width: 720px;
}

.suyeswp-sewa-panel__header {
	padding: 1.35rem 1.35rem 1rem;
	border-bottom: 1px solid var(--gm-border);
	background: linear-gradient(180deg, #fff8ef 0%, var(--gm-surface) 100%);
}

.suyeswp-sewa-panel__title,
.suyeswp-sewa-modal__title {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0 0 0.45rem;
	font-size: clamp(1.3rem, 3vw, 1.65rem);
	color: var(--gm-primary);
	line-height: 1.25;
}

.suyeswp-sewa-panel__title-icon,
.suyeswp-sewa-modal__title-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--gm-bg-alt);
	color: var(--gm-primary);
	flex-shrink: 0;
}

.suyeswp-sewa-panel__desc,
.suyeswp-sewa-modal__desc {
	margin: 0;
	color: var(--gm-text-muted);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.suyeswp-sewa-panel__body {
	padding: 1.15rem 1.35rem 1.5rem;
}

/* Modal */
.suyeswp-sewa-modal.gaumantak-event-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

.suyeswp-sewa-modal.gaumantak-event-modal[hidden] {
	display: none !important;
}

.suyeswp-sewa-modal .gaumantak-event-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(42, 35, 24, 0.55);
}

.suyeswp-sewa-modal .gaumantak-event-modal__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(680px, 100%);
	max-height: min(94vh, 900px);
	overflow: hidden;
	background: var(--gm-surface);
	border-radius: var(--gm-radius);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
}

.suyeswp-sewa-modal__top {
	position: relative;
	flex: 0 0 auto;
	padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 4vw, 2rem) 1rem;
	border-bottom: 1px solid var(--gm-border);
	background: linear-gradient(180deg, #fff8ef 0%, var(--gm-surface) 100%);
}

.suyeswp-sewa-modal__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 1.15rem clamp(1.25rem, 4vw, 2rem) clamp(1.25rem, 4vw, 2rem);
	scrollbar-gutter: stable;
}

.suyeswp-sewa-modal .gaumantak-event-modal__close {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	z-index: 2;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--gm-bg);
	color: var(--gm-text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	line-height: 1;
}

.suyeswp-sewa-modal .gaumantak-event-modal__close:hover {
	background: var(--gm-bg-alt);
	color: var(--gm-primary);
}

.suyeswp-sewa-modal .gaumantak-event-modal__close-icon {
	font-size: 1.5rem;
	line-height: 1;
}

.suyeswp-sewa-modal__header {
	padding-right: 2.25rem;
}

body.gaumantak-modal-open {
	overflow: hidden;
}

/* Form */
.suyeswp-sewa-form {
	position: relative;
	max-width: 100%;
	min-width: 0;
	overflow-x: clip;
	box-sizing: border-box;
}

.suyeswp-sewa-form__honeypot {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.suyeswp-sewa-form__sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.suyeswp-sewa-form__section {
	position: relative;
	margin: 0 0 1.35rem;
	padding: 0;
	border: 0;
	min-width: 0;
	max-width: 100%;
}

.suyeswp-sewa-form__section > legend:not(.suyeswp-sewa-form__sr) {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0 0 0.85rem;
	padding: 0 0 0.45rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gm-primary);
	border-bottom: 1px solid var(--gm-border);
}

.suyeswp-sewa-form__fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.9rem 1rem;
}

.suyeswp-sewa-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.suyeswp-sewa-form__field--full {
	grid-column: 1 / -1;
}

.suyeswp-sewa-form__field label,
.suyeswp-sewa-form__label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--gm-text);
}

.suyeswp-sewa-form__static {
	margin: 0;
	font-size: 0.9375rem;
	padding: 0.7rem 0.875rem;
	border: 1.5px solid var(--gm-border);
	border-radius: 8px;
	background: var(--gm-bg-alt);
	color: var(--gm-text);
	line-height: 1.4;
}

.suyeswp-sewa-form__opt {
	font-weight: 500;
	color: var(--gm-text-muted);
}

.suyeswp-sewa-form__field input,
.suyeswp-sewa-form__field select,
.suyeswp-sewa-form__field textarea {
	font-size: 0.9375rem;
	padding: 0.7rem 0.875rem;
	border: 1.5px solid var(--gm-border);
	border-radius: 8px;
	background: var(--gm-bg);
	color: var(--gm-text);
	font-family: inherit;
	width: 100%;
	box-sizing: border-box;
}

.suyeswp-sewa-form__field input:focus,
.suyeswp-sewa-form__field select:focus,
.suyeswp-sewa-form__field textarea:focus {
	outline: none;
	border-color: var(--gm-primary);
	box-shadow: 0 0 0 3px rgba(123, 30, 30, 0.12);
}

.suyeswp-sewa-form__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.suyeswp-sewa-form__choice {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.55rem 0.9rem;
	border: 1.5px solid var(--gm-border);
	border-radius: 8px;
	background: var(--gm-bg);
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 600;
}

.suyeswp-sewa-form__choice:has(input:checked) {
	border-color: var(--gm-primary);
	background: var(--gm-bg-alt);
	color: var(--gm-primary);
}

.suyeswp-sewa-pay-tabs {
	display: flex;
	gap: 0.4rem;
	margin: 0.35rem 0 0.5rem;
	padding: 0.3rem;
	background: var(--gm-bg);
	border-radius: 10px;
	border: 1px solid var(--gm-border);
}

.suyeswp-sewa-pay-tabs__btn {
	flex: 1;
	padding: 0.55rem 0.75rem;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--gm-text-muted);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
}

.suyeswp-sewa-pay-tabs__btn.is-active {
	background: var(--gm-surface);
	color: var(--gm-primary);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.suyeswp-sewa-form__hint {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--gm-text-muted);
	line-height: 1.45;
}

.suyeswp-sewa-form__section--consent {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.suyeswp-sewa-form__check {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--gm-text);
	cursor: pointer;
}

.suyeswp-sewa-form__check input {
	margin-top: 0.2rem;
	flex-shrink: 0;
}

.suyeswp-sewa-form__message {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	font-size: 0.875rem;
}

.suyeswp-sewa-form__message.is-success {
	background: #e8f5e9;
	color: #1b5e20;
}

.suyeswp-sewa-form__message.is-error {
	background: #fdecea;
	color: #8a1f11;
}

.suyeswp-sewa-form__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1.15rem;
	border-top: 1px solid var(--gm-border);
}

.suyeswp-sewa-form__disclaimer {
	margin: 0;
	flex: 1 1 220px;
	font-size: 0.8125rem;
	color: var(--gm-text-muted);
	line-height: 1.5;
}

/* Offline */
.suyeswp-sewa-offline {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.suyeswp-sewa-offline__qr {
	text-align: center;
}

.suyeswp-sewa-offline__qr img {
	max-width: 180px;
	height: auto;
	border-radius: 8px;
	border: 1px solid var(--gm-border);
}

.suyeswp-sewa-offline__upi {
	font-weight: 600;
	color: var(--gm-primary);
}

.suyeswp-sewa-offline__bank {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid var(--gm-border);
	border-radius: 8px;
	overflow: hidden;
}

.suyeswp-sewa-offline__bank:empty {
	display: none;
}

.suyeswp-sewa-offline__bank li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.7rem 1rem;
	border-bottom: 1px solid var(--gm-border);
	font-size: 0.875rem;
}

.suyeswp-sewa-offline__bank li:last-child {
	border-bottom: 0;
}

.suyeswp-sewa-offline__bank .k {
	color: var(--gm-text-muted);
	font-weight: 600;
}

.suyeswp-sewa-offline__bank .v {
	font-weight: 600;
	text-align: right;
}

.suyeswp-sewa-offline__note {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--gm-text-muted);
	line-height: 1.5;
}

/* Shortcode button */
.suyeswp-sewa-btn.btn,
button.suyeswp-sewa-btn,
a.suyeswp-sewa-btn {
	--sw-primary: #7b1e1e;
	--sw-primary-dark: #5a1515;
	--sw-bg-alt: #fffaf6;
	--sw-btn-gradient: linear-gradient(135deg, #9a2a2a 0%, #7b1e1e 55%, #5a1515 100%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.5rem 1rem;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
	border-radius: 999px;
	border: 2px solid var(--sw-primary);
	background: var(--sw-bg-alt);
	color: var(--sw-primary);
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(123, 30, 30, 0.06);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

button.suyeswp-sewa-btn:hover,
button.suyeswp-sewa-btn:focus,
a.suyeswp-sewa-btn:hover,
a.suyeswp-sewa-btn:focus {
	background: var(--sw-btn-gradient);
	border-color: var(--sw-primary-dark);
	color: #fff;
	box-shadow: 0 6px 16px rgba(90, 21, 21, 0.22);
	transform: translateY(-1px);
}

.suyeswp-sewa-btn .btn__icon {
	flex-shrink: 0;
}

.suyeswp-sewa-form__prasad-extra {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.9rem 1rem;
	grid-column: 1 / -1;
}

.suyeswp-sewa-form__prasad-extra[hidden] {
	display: none !important;
}

.suyeswp-sewa-success {
	text-align: center;
	padding: 1.5rem 0.5rem 0.5rem;
}

.suyeswp-sewa-success__icon {
	color: var(--gm-primary);
	margin: 0 auto 1rem;
}

.suyeswp-sewa-success__eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #c89b3c;
}

.suyeswp-sewa-success__title {
	margin: 0 0 0.75rem;
	font-size: 1.35rem;
	color: var(--gm-primary);
}

.suyeswp-sewa-success__msg {
	margin: 0 0 1.25rem;
	color: var(--gm-text-muted);
	line-height: 1.5;
}

.suyeswp-sewa-success__meta {
	list-style: none;
	margin: 0 auto 1.5rem;
	padding: 0;
	max-width: 420px;
	text-align: left;
	border: 1px solid var(--gm-border);
	border-radius: 8px;
	overflow: hidden;
}

.suyeswp-sewa-success__meta li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.7rem 1rem;
	border-bottom: 1px solid var(--gm-border);
	font-size: 0.875rem;
}

.suyeswp-sewa-success__meta li:last-child {
	border-bottom: 0;
}

.suyeswp-sewa-success__meta .k {
	color: var(--gm-text-muted);
	font-weight: 600;
}

.suyeswp-sewa-success__meta .v {
	font-weight: 600;
	text-align: right;
	word-break: break-all;
}

@media (max-width: 640px) {
	.suyeswp-sewa-form__prasad-extra {
		grid-template-columns: 1fr;
	}

	.suyeswp-sewa-modal.gaumantak-event-modal {
		padding: 0;
		align-items: stretch;
	}

	.suyeswp-sewa-modal .gaumantak-event-modal__dialog {
		width: 100%;
		max-width: none;
		max-height: none;
		height: 100%;
		border-radius: 0;
	}

	.suyeswp-sewa-form__fields {
		grid-template-columns: 1fr;
	}

	.suyeswp-sewa-form__footer {
		flex-direction: column;
		align-items: stretch;
	}
}
