/**
 * Store IO Sistemas — Modal de solicitud de demo
 */

.storeio-demo-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(15, 23, 42, 0.72);
	backdrop-filter: blur(2px);
}

.storeio-demo-overlay[hidden] {
	display: none !important;
}

.storeio-demo-modal {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
	padding: 2rem 1.75rem 1.75rem;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
	animation: storeio-demo-fade-in 0.25s ease;
}

@keyframes storeio-demo-fade-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.storeio-demo-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	border-radius: 999px;
	background: #f1f5f9;
	color: #334155;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.storeio-demo-modal__close:hover,
.storeio-demo-modal__close:focus {
	background: #e2e8f0;
	color: #0f172a;
	outline: none;
}

.storeio-demo-modal__title {
	margin: 0 0 0.5rem;
	color: #0f172a;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
}

.storeio-demo-modal__subtitle {
	margin: 0 0 1.5rem;
	color: #64748b;
	font-size: 0.975rem;
	line-height: 1.5;
}

.storeio-demo-form__field {
	margin-bottom: 1rem;
}

.storeio-demo-form__field label {
	display: block;
	margin-bottom: 0.35rem;
	color: #334155;
	font-size: 0.875rem;
	font-weight: 600;
}

.storeio-demo-form__field label span {
	color: #0d9a9d;
}

.storeio-demo-form__field input,
.storeio-demo-form__field textarea {
	width: 100%;
	padding: 0.75rem 0.875rem;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #fff;
	color: #0f172a;
	font: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.storeio-demo-form__field input:focus,
.storeio-demo-form__field textarea:focus {
	border-color: #0d9a9d;
	box-shadow: 0 0 0 3px rgba(13, 154, 157, 0.15);
	outline: none;
}

.storeio-demo-form__field input.is-invalid,
.storeio-demo-form__field textarea.is-invalid {
	border-color: #dc2626;
}

.storeio-demo-form__error {
	margin: 0 0 1rem;
	color: #dc2626;
	font-size: 0.875rem;
}

.storeio-demo-form__error[hidden] {
	display: none !important;
}

.storeio-demo-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	min-height: 3rem;
	padding: 0.875rem 1.25rem;
	border: 0;
	border-radius: 10px;
	background: #0d9a9d;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.storeio-demo-form__submit:hover:not(:disabled) {
	background: #0b8588;
}

.storeio-demo-form__submit:disabled {
	opacity: 0.75;
	cursor: wait;
}

.storeio-demo-form__spinner {
	width: 1.1rem;
	height: 1.1rem;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: storeio-demo-spin 0.7s linear infinite;
}

.storeio-demo-form__spinner[hidden] {
	display: none !important;
}

@keyframes storeio-demo-spin {
	to {
		transform: rotate(360deg);
	}
}

.storeio-demo-success {
	text-align: center;
	padding: 1rem 0 0.25rem;
}

.storeio-demo-success[hidden] {
	display: none !important;
}

.storeio-demo-success__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	margin-bottom: 1rem;
	border-radius: 50%;
	background: rgba(13, 154, 157, 0.12);
	color: #0d9a9d;
	font-size: 1.75rem;
	font-weight: 700;
}

.storeio-demo-success__message {
	margin: 0 0 1.25rem;
	color: #334155;
	font-size: 1rem;
	line-height: 1.6;
}

.storeio-demo-success__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 8rem;
	padding: 0.75rem 1.25rem;
	border: 0;
	border-radius: 10px;
	background: #0d9a9d;
	color: #fff;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
}

.storeio-demo-success__close:hover,
.storeio-demo-success__close:focus {
	background: #0b8588;
	outline: none;
}

body.storeio-demo-open {
	overflow: hidden;
}

@media (max-width: 480px) {
	.storeio-demo-modal {
		padding: 1.5rem 1.25rem 1.25rem;
		border-radius: 14px;
	}

	.storeio-demo-modal__title {
		font-size: 1.3rem;
		padding-right: 2rem;
	}
}
