/* ── Accolade Form Embed ── */

.accolade-form-embed {
	box-sizing: border-box;
}

.accolade-form-embed__form {
	position: relative;
}

.accolade-form-embed__placeholder {
	padding: 40px 20px;
	text-align: center;
	background: #f8f8f8;
	border: 2px dashed #ddd;
	border-radius: 6px;
	color: #888;
	font-size: 14px;
}

/* ── Lottie overlay ── */

.accolade-form-embed__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.92);
	border-radius: 6px;
	z-index: 10;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.accolade-form-embed__overlay.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.accolade-form-embed__lottie {
	width: 80px;
	height: 80px;
}

.accolade-form-embed__overlay-text {
	margin-top: 12px;
	font-size: 15px;
	font-weight: 500;
	color: #333;
}

/* ── Success state ── */

.accolade-form-embed__success {
	display: none;
	text-align: center;
	padding: 40px 24px;
}

.accolade-form-embed__success.is-visible {
	display: block;
}

.accolade-form-embed__success-lottie {
	width: 80px;
	height: 80px;
	margin: 0 auto 16px;
}

.accolade-form-embed__success-text {
	font-size: 17px;
	font-weight: 500;
	color: #1e7e34;
	line-height: 1.5;
}

/* ── Messages ── */

.accolade-form-embed__message {
	padding: 16px 20px;
	border-radius: 4px;
	margin-top: 16px;
	font-size: 15px;
	line-height: 1.5;
}

.accolade-form-embed__message--success {
	background: #e6f4ea;
	color: #1e7e34;
	border: 1px solid #c3e6cb;
}

.accolade-form-embed__message--error {
	background: #fdf0f0;
	color: #c0392b;
	border: 1px solid #f5c6cb;
}

/* ── Popup trigger ── */

.accolade-popup__trigger-wrap {
	display: block;
}

.accolade-popup__trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background-color: #1a2457;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, transform 0.1s;
	line-height: 1;
	text-decoration: none;
}

.accolade-popup__trigger:hover {
	background-color: #131b42;
}

.accolade-popup__trigger:active {
	transform: scale(0.98);
}

.accolade-popup__trigger--link {
	background: none;
	padding: 0;
	color: #1a2457;
	font-weight: 500;
	text-decoration: underline;
	border-radius: 0;
}

.accolade-popup__trigger--link:hover {
	background: none;
	color: #131b42;
}

.accolade-popup__trigger-icon {
	font-size: 1em;
}

/* ── Popup modal ── */

.accolade-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	visibility: hidden;
	pointer-events: none;
}

.accolade-popup.is-open {
	visibility: visible;
	pointer-events: auto;
}

.accolade-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.accolade-popup.is-open .accolade-popup__overlay {
	opacity: 1;
}

.accolade-popup__content {
	position: relative;
	width: 520px;
	max-width: 95vw;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 8px;
	padding: 32px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	z-index: 1;
}

/* Animations */

.accolade-popup__content {
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.accolade-popup[data-animation="fade"] .accolade-popup__content {
	transform: none;
}

.accolade-popup[data-animation="fade-up"] .accolade-popup__content {
	transform: translateY(30px);
}

.accolade-popup[data-animation="scale"] .accolade-popup__content {
	transform: scale(0.9);
}

.accolade-popup.is-open .accolade-popup__content {
	opacity: 1;
	transform: translateY(0) scale(1);
}

/* Close button */

.accolade-popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	font-size: 24px;
	color: #666;
	cursor: pointer;
	border-radius: 50%;
	transition: background 0.2s, color 0.2s;
	line-height: 1;
	z-index: 2;
}

.accolade-popup__close:hover {
	background: #f0f0f0;
	color: #333;
}

/* Form inside popup */

.accolade-popup .accolade-form-embed {
	max-width: none;
}

/* ── Mobile ── */

@media (max-width: 767px) {
	.accolade-popup__content {
		width: 100%;
		max-width: 100%;
		max-height: 100%;
		height: 100%;
		border-radius: 0;
		padding: 24px 20px;
	}

	.accolade-popup__close {
		top: 8px;
		right: 8px;
	}
}

/* Body scroll lock */

body.accolade-popup-open {
	overflow: hidden;
}
