/**
 * LAP SWF Bookly — single-page booking form styles.
 * Green, RTL-first design.
 */
.lap-swf-bookly {
	--lap-green: #2e7d46;
	--lap-green-dark: #235c35;
	--lap-green-light: #eaf6ee;
	--lap-border: #d7e6da;
	--lap-text: #1f2d24;
	--lap-error: #c0392b;

	max-width: 640px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--lap-border);
	border-radius: 14px;
	padding: 28px;
	box-shadow: 0 6px 24px rgba(46, 125, 70, 0.08);
	color: var(--lap-text);
	font-family: inherit;
}

body.lap-swf-modal-open {
	overflow: hidden;
}

.lap-swf-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.lap-swf-modal[hidden] {
	display: none;
}

.lap-swf-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(31, 45, 36, 0.55);
}

.lap-swf-modal__box {
	position: relative;
	background: #fff;
	border-radius: 14px;
	padding: 32px 28px 28px;
	max-width: 420px;
	width: 100%;
	text-align: center;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
	animation: lap-swf-modal-in 0.2s ease;
}

.lap-swf-modal.is-error .lap-swf-modal__icon::before {
	content: "!";
	background: var(--lap-error);
}

.lap-swf-modal__close {
	position: absolute;
	top: 10px;
	left: 10px;
	background: none;
	border: none;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	color: #8a9a8f;
	padding: 4px 8px;
}

.lap-swf-modal__icon::before {
	content: "\2713";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--lap-green);
	color: #fff;
	font-size: 1.6rem;
	margin: 0 auto 16px;
}

.lap-swf-modal__title {
	margin: 0 0 10px;
	color: var(--lap-green-dark);
	font-size: 1.15rem;
}

.lap-swf-modal.is-error .lap-swf-modal__title {
	color: var(--lap-error);
}

.lap-swf-modal__text {
	margin: 0 0 20px;
	color: var(--lap-text);
	font-size: 0.95rem;
	line-height: 1.6;
}

.lap-swf-modal__ok {
	background: var(--lap-green);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 10px 28px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
}

.lap-swf-modal.is-error .lap-swf-modal__ok {
	background: var(--lap-error);
}

@keyframes lap-swf-modal-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.lap-swf-modal__box {
		animation: none;
	}
}

.lap-swf-section {
	margin-bottom: 28px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--lap-border);
}

.lap-swf-section:last-of-type {
	border-bottom: none;
}

.lap-swf-section__title {
	color: var(--lap-green-dark);
	font-size: 1.05rem;
	margin: 0 0 16px;
	font-weight: 700;
}

.lap-swf-field {
	margin-bottom: 16px;
}

.lap-swf-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 0.92rem;
}

.lap-swf-field__desc {
	margin: 0 0 6px;
	font-size: 0.82rem;
	color: #5a6b60;
}

.req {
	color: var(--lap-error);
}

.lap-swf-field input[type="text"],
.lap-swf-field input[type="tel"],
.lap-swf-field input[type="email"],
.lap-swf-field input[type="date"],
.lap-swf-field input[type="file"],
.lap-swf-field select,
.lap-swf-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid var(--lap-border);
	border-radius: 8px;
	font-size: 0.95rem;
	background: #fff;
	color: var(--lap-text);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lap-swf-field input:focus,
.lap-swf-field select:focus,
.lap-swf-field textarea:focus {
	outline: none;
	border-color: var(--lap-green);
	box-shadow: 0 0 0 3px rgba(46, 125, 70, 0.15);
}

.lap-swf-checkbox-group,
.lap-swf-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.lap-swf-checkbox,
.lap-swf-radio {
	display: flex;
	align-items: center;
	gap: 6px;
	background: var(--lap-green-light);
	border: 1px solid var(--lap-border);
	border-radius: 8px;
	padding: 6px 10px;
	font-size: 0.88rem;
	cursor: pointer;
}

.lap-swf-slots {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-height: 44px;
	align-items: center;
}

.lap-swf-slots__hint {
	color: #6b7a71;
	font-size: 0.85rem;
}

.lap-swf-slot {
	border: 1px solid var(--lap-green);
	color: var(--lap-green-dark);
	background: #fff;
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 0.88rem;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.lap-swf-slot:hover {
	background: var(--lap-green-light);
}

.lap-swf-slot.is-selected {
	background: var(--lap-green);
	color: #fff;
}

.lap-swf-error {
	display: block;
	color: var(--lap-error);
	font-size: 0.8rem;
	margin-top: 4px;
	min-height: 1em;
}

.lap-swf-message {
	padding: 12px 14px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 0.92rem;
}

.lap-swf-message.is-success {
	background: var(--lap-green-light);
	color: var(--lap-green-dark);
	border: 1px solid var(--lap-green);
}

.lap-swf-message.is-error {
	background: #fdecea;
	color: var(--lap-error);
	border: 1px solid #f3b7b0;
}

.lap-swf-submit {
	width: 100%;
	background: var(--lap-green);
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 14px 20px;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: background 0.15s ease, transform 0.1s ease;
}

.lap-swf-submit:hover {
	background: var(--lap-green-dark);
}

.lap-swf-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.lap-swf-submit__spinner {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	display: none;
	animation: lap-swf-spin 0.7s linear infinite;
}

.lap-swf-submit.is-loading .lap-swf-submit__spinner {
	display: inline-block;
}

@keyframes lap-swf-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.lap-swf-submit__spinner {
		animation: none;
	}
	.lap-swf-field input,
	.lap-swf-field select,
	.lap-swf-field textarea,
	.lap-swf-slot,
	.lap-swf-submit {
		transition: none;
	}
}

@media (max-width: 480px) {
	.lap-swf-bookly {
		padding: 18px;
		border-radius: 10px;
	}
}

/* {service_info}: summary describing the selected service (from Bookly "Info"). */
.lap-swf-service-info {
	margin-top: 10px;
	padding: 14px 16px 14px 16px;
	border: 1px solid var(--lap-border);
	border-inline-start: 4px solid var(--lap-green);
	border-radius: 10px;
	background: var(--lap-green-light);
	color: var(--lap-text);
	font-size: 14px;
	line-height: 1.7;
}
.lap-swf-service-info p { margin: 0 0 8px; }
.lap-swf-service-info p:last-child { margin-bottom: 0; }
.lap-swf-service-info ul,
.lap-swf-service-info ol { margin: 0 8px 8px; padding-inline-start: 20px; }
.lap-swf-service-info a { color: var(--lap-green-dark); text-decoration: underline; }
.lap-swf-service-info strong { color: var(--lap-green-dark); }
.lap-swf-service-info-store { display: none !important; }
