/* ==========================================================================
   DeshipOS — Demo Access form widget (modern split-panel)
   One rounded card, two panels: a green accent panel (heading + benefit
   checklist + live badge) beside a clean white form with inline field icons.
   Stacks to a single column on mobile. Flat & on-brand (same green palette /
   tokens as the rest of the site). Depends on assets/css/base.css.
   ========================================================================== */

.deshipos-demo {
	--dda-accent:   var(--dew-brand, #16A34A);
	--dda-accent-2: var(--dew-brand-strong, #15803D);
	--dda-soft:     var(--dew-brand-soft, rgba(22, 163, 74, .12));
	--dda-ink:      var(--dew-ink, #0F172A);
	--dda-text:     var(--dew-text, #1E293B);
	--dda-muted:    var(--dew-muted, #475569);
	--dda-faint:    var(--dew-faint, #94A3B8);
	--dda-border:   var(--dew-divider, #E2E8F0);
	--dda-bg:       var(--dew-bg, #FFFFFF);

	box-sizing: border-box;
	width: 100%;
	padding: 56px 20px;
	color: var(--dda-text);
}
.deshipos-demo *,
.deshipos-demo *::before,
.deshipos-demo *::after { box-sizing: border-box; }

.deshipos-demo__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* The split card */
.deshipos-demo__card {
	width: 100%;
	max-width: 940px;
	min-width: 0;                        /* allow the flex child to shrink on mobile */
	display: grid;
	grid-template-columns: 1fr;          /* mobile: stacked */
	background: var(--dda-bg);
	border: 1px solid var(--dda-border);
	border-radius: 22px;
	box-shadow: var(--dew-shadow-lg);
	overflow: hidden;
}
/* Grid tracks must be allowed to shrink below their content's min-content,
   otherwise inputs/text force the panel wider than a narrow viewport. */
.deshipos-demo__aside,
.deshipos-demo__formwrap { min-width: 0; }

/* ==========================================================================
   Accent panel
   ========================================================================== */
.deshipos-demo__aside {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
	padding: 32px;
	color: #fff;
	background: linear-gradient(155deg, var(--dda-accent) 0%, var(--dda-accent-2) 100%);
	overflow: hidden;
}
/* Soft highlight for depth (flat, no glass) */
.deshipos-demo__aside::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(120% 75% at 100% 0%, rgba(255, 255, 255, .16), transparent 58%);
	pointer-events: none;
}
.deshipos-demo__aside-body { position: relative; }

.deshipos-demo__eyebrow {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(255, 255, 255, .18);
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 16px;
}
.deshipos-demo__heading {
	margin: 0 0 10px;
	font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: var(--dew-tracking-tight);
	color: #fff;
}
.deshipos-demo__sub {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, .9);
}

/* Benefit checklist */
.deshipos-demo__highlights {
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.deshipos-demo__highlight {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: .9375rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, .96);
}
.deshipos-demo__check {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .18);
	color: #fff;
}
.deshipos-demo__check svg { width: 13px; height: 13px; display: block; }

/* Live badge */
.deshipos-demo__live {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	align-self: flex-start;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 999px;
}
.deshipos-demo__live-dot {
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 0 0 0 rgba(255, 255, 255, .7);
	animation: deshipos-demo-pulse 1.8s var(--dew-ease-out) infinite;
}
@keyframes deshipos-demo-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); }
	70%  { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* ==========================================================================
   Form panel
   ========================================================================== */
.deshipos-demo__formwrap { padding: 32px; }
.deshipos-demo__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.deshipos-demo__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.deshipos-demo__label {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--dda-text);
}
.deshipos-demo__req { color: var(--dda-accent-2); }

/* Input + leading icon */
.deshipos-demo__control { position: relative; }
.deshipos-demo__field-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	color: var(--dda-faint);
	pointer-events: none;
	transition: color var(--dew-dur-base) var(--dew-ease-out);
}
.deshipos-demo__field-icon svg { width: 18px; height: 18px; display: block; }
.deshipos-demo__control input {
	width: 100%;
	font: inherit;
	font-size: 15px;
	color: var(--dda-ink);
	background: var(--dda-bg);
	border: 1px solid var(--dda-border);
	border-radius: 12px;
	padding: 13px 14px 13px 42px;
	outline: none;
	transition: border-color var(--dew-dur-base) var(--dew-ease-out),
	            box-shadow var(--dew-dur-base) var(--dew-ease-out);
	-webkit-appearance: none;
	appearance: none;
}
.deshipos-demo__control input::placeholder { color: var(--dda-faint); }
.deshipos-demo__control input:focus {
	border-color: var(--dda-accent);
	box-shadow: 0 0 0 3px var(--dda-soft);
}
.deshipos-demo__control input:focus ~ .deshipos-demo__field-icon,
.deshipos-demo__field:focus-within .deshipos-demo__field-icon { color: var(--dda-accent); }

.deshipos-demo__field.has-error .deshipos-demo__control input {
	border-color: #EF4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, .14);
}
.deshipos-demo__field.has-error .deshipos-demo__field-icon { color: #EF4444; }
.deshipos-demo__error {
	font-size: 12.5px;
	color: #DC2626;
}

/* Honeypot — kept in layout but invisible/unreachable */
.deshipos-demo__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

/* Submit */
.deshipos-demo__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 4px;
	padding: 14px 26px;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	background: var(--dda-accent);
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	box-shadow: var(--dew-shadow-brand-sm);
	transition: background var(--dew-dur-fast) var(--dew-ease-out),
	            transform var(--dew-dur-fast) var(--dew-ease-out),
	            box-shadow var(--dew-dur-base) var(--dew-ease-out);
}
.deshipos-demo__submit:hover {
	background: var(--dda-accent-2);
	transform: translateY(-1px);
	box-shadow: var(--dew-shadow-brand-md);
}
.deshipos-demo__submit svg { transition: transform var(--dew-dur-base) var(--dew-ease-out); }
.deshipos-demo__submit:hover svg { transform: translateX(3px); }
.deshipos-demo__submit:disabled { opacity: .65; cursor: progress; transform: none; }

.deshipos-demo__note {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--dda-faint);
	text-align: center;
}

/* Status message */
.deshipos-demo__status {
	margin: 0;
	padding: 12px 16px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--dda-accent-2);
	background: var(--dda-soft);
	border-radius: 10px;
	text-align: center;
}
.deshipos-demo__status.is-error { color: #B91C1C; background: rgba(239, 68, 68, .1); }

/* Scroll reveal */
.deshipos-demo.js-reveal [data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .6s var(--dew-ease-out), transform .6s var(--dew-ease-out);
	will-change: opacity, transform;
}
.deshipos-demo.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 768px) {
	.deshipos-demo { padding: 72px 32px; }
	/* Two panels side by side: accent a touch narrower than the form */
	.deshipos-demo__card { grid-template-columns: 0.92fr 1.08fr; }
	.deshipos-demo__aside    { padding: 40px; }
	.deshipos-demo__formwrap { padding: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.deshipos-demo *,
	.deshipos-demo *::before,
	.deshipos-demo *::after { transition-duration: .01ms !important; animation: none !important; }
	.deshipos-demo.js-reveal [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
	.deshipos-demo__submit:hover { transform: none !important; }
}
