/* Contact form modal, honeypot, loading — preserves Dreamtime layout */

.dreamtime-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.form_group--recaptcha {
	margin-bottom: 10px;
}

.contact_btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 160px;
}

.contact_btn.is-loading {
	opacity: 0.85;
	cursor: wait;
}

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

.contact_btn.is-loading .contact_btn__spinner {
	display: inline-block;
}

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

/* Modal */
.dreamtime-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

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

.dreamtime-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(2px);
	animation: dreamtime-fade-in 0.25s ease;
}

.dreamtime-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	padding: 36px 32px 28px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
	text-align: center;
	animation: dreamtime-slide-up 0.3s ease;
}

.dreamtime-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	color: #999;
	cursor: pointer;
	transition: color 0.2s;
}

.dreamtime-modal__close:hover {
	color: #222;
}

.dreamtime-modal__icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
}

.dreamtime-modal--success .dreamtime-modal__icon {
	background: #edf7ed;
	color: #2e7d32;
}

.dreamtime-modal--success .dreamtime-modal__icon::before {
	content: "\2713";
}

.dreamtime-modal--error .dreamtime-modal__icon {
	background: #fdecea;
	color: #c62828;
}

.dreamtime-modal--error .dreamtime-modal__icon::before {
	content: "!";
}

.dreamtime-modal__title {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 600;
	color: #222;
}

.dreamtime-modal__message {
	margin: 0 0 24px;
	font-size: 15px;
	line-height: 1.6;
	color: #555;
}

.dreamtime-modal__btn {
	min-width: 140px;
}

@keyframes dreamtime-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes dreamtime-slide-up {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media only screen and (max-width: 600px) {
	.dreamtime-modal__dialog {
		padding: 28px 22px 22px;
		border-radius: 12px;
	}

	.dreamtime-modal__title {
		font-size: 20px;
	}
}

/* Form spacing — uses spacing-system tokens when loaded */
@media (max-width: 991px) {
	.dreamtime-contact-form .form_group {
		margin-bottom: var(--dt-stack-gap, 18px);
	}

	.dreamtime-contact-form .form_row {
		gap: var(--dt-stack-gap, 18px);
	}

	.contact_btn {
		min-height: var(--dt-btn-min-h, 48px);
		padding-left: 28px;
		padding-right: 28px;
	}
}

@media (max-width: 576px) {
	.dreamtime-contact-form .form_group {
		margin-bottom: var(--dt-stack-gap, 14px);
	}

	.form_group--recaptcha {
		margin-bottom: var(--dt-stack-gap, 14px);
	}
}
