/* DGMax Signup — wizard de cadastro (escopado em .dgs, sem dependencia de tema). */

.dgs {
	--dgs-ink: #0F1826;
	--dgs-ink-700: #1A2332;
	--dgs-ink-500: #5B6675;
	--dgs-ink-400: #8E9AAB;
	--dgs-border: #CBD3DE;
	--dgs-border-light: #E4E8EE;
	--dgs-sky: #0ea5e9;
	--dgs-sky-accent: #4FC3F7;
	--dgs-orange: #f97316;
	--dgs-orange-hover: #ea6c0a;
	--dgs-orange-bg: #FFF7ED;
	--dgs-error: #EF4444;
	--dgs-bg: #F7F9FB;

	position: relative;
	background: var(--dgs-bg);
	color: var(--dgs-ink);
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	overflow: hidden;
}
.dgs *,
.dgs *::before,
.dgs *::after { box-sizing: border-box; }

.dgs-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(#cbd3de 1px, transparent 1px),
		linear-gradient(90deg, #cbd3de 1px, transparent 1px);
	background-size: 48px 48px;
	opacity: 0.15;
}

.dgs-shell {
	position: relative;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	padding: 40px 16px 56px;
}

/* progress + dots */
.dgs-progress {
	position: sticky;
	top: 0;
	z-index: 20;
	height: 4px;
	width: 100vw;
	max-width: 100vw;
	margin: 0 0 24px;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background: #F0F2F5;
	border-radius: 0;
	overflow: hidden;
}
.dgs-progress-fill {
	height: 100%;
	background: var(--dgs-orange);
	transition: width .3s ease-out;
}
.dgs-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 18px;
}
.dgs-dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: var(--dgs-border-light);
	transition: background-color .2s;
}
.dgs-dot.is-active { background: var(--dgs-orange); }
.dgs-step-label {
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--dgs-ink-400);
	margin: 0 0 36px;
}

/* steps */
.dgs-step { animation: dgs-step .35s ease both; }
.dgs-step[hidden] { display: none; }
@keyframes dgs-step {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.dgs-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--dgs-sky-accent);
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
	margin-bottom: 12px;
}
.dgs-title {
	font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
	font-weight: 800;
	font-size: clamp(28px, 4vw, 36px);
	line-height: 1.1;
	margin: 0 0 8px;
	color: var(--dgs-ink);
}
.dgs-lead {
	color: var(--dgs-ink-500);
	font-size: 16px;
	line-height: 1.6;
	margin: 0 0 32px;
}
.dgs-lead strong { color: var(--dgs-ink); font-weight: 600; }
.dgs-muted { color: var(--dgs-ink-400); font-weight: 400; }

/* card */
.dgs-card {
	background: #fff;
	border: 1px solid var(--dgs-border-light);
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 1px 2px rgba(15, 24, 38, .05);
	display: flex;
	flex-direction: column;
	gap: 18px;
}
@media (min-width: 640px) { .dgs-card { padding: 32px; } }

/* fields */
.dgs-field { display: block; }
.dgs-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
@media (min-width: 640px) { .dgs-row { grid-template-columns: 1fr 1fr; } }

.dgs-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--dgs-ink-700);
	margin-bottom: 6px;
}
.dgs-input {
	width: 100%;
	background: #fff;
	border: 1px solid var(--dgs-border);
	color: var(--dgs-ink);
	font-size: 14px;
	font-family: inherit;
	padding: 12px 16px;
	border-radius: 8px;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.dgs-input::placeholder { color: var(--dgs-ink-400); }
.dgs-input:focus {
	border-color: transparent;
	box-shadow: 0 0 0 2px var(--dgs-sky);
}
.dgs-select { appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238E9AAB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 40px;
}
.dgs-input.is-invalid {
	border-color: var(--dgs-error);
}
.dgs-input.is-invalid:focus { box-shadow: 0 0 0 2px var(--dgs-error); }

.dgs-field-error {
	font-size: 12px;
	font-weight: 500;
	color: var(--dgs-error);
	margin: 6px 0 0;
}
.dgs-field-error[hidden] { display: none; }

.dgs-warning {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 500;
	color: var(--dgs-error);
	margin: 12px 0 0;
}
.dgs-warning[hidden] { display: none; }

/* choice cards (audience + payment) */
.dgs-choices { display: grid; gap: 12px; }
.dgs-choices--grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .dgs-choices--grid { grid-template-columns: repeat(3, 1fr); } }
.dgs-choices--pay { grid-template-columns: 1fr; }
@media (min-width: 640px) { .dgs-choices--pay { grid-template-columns: repeat(3, 1fr); } }

.dgs-choice {
	position: relative;
	display: flex;
	cursor: pointer;
	border: 1px solid var(--dgs-border);
	border-radius: 12px;
	transition: border-color .15s, background-color .15s, box-shadow .15s;
	user-select: none;
}
.dgs-choice--col {
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 8px;
	padding: 20px 12px;
}
.dgs-choice--row {
	flex-direction: row;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
}
.dgs-choice.is-active {
	border-color: var(--dgs-orange);
	background: var(--dgs-orange-bg);
	box-shadow: inset 0 0 0 1px var(--dgs-orange);
}
.dgs-choice__input {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0);
	white-space: nowrap; border: 0;
}
.dgs-choice__check {
	position: absolute;
	top: 8px; right: 8px;
	color: var(--dgs-orange);
	opacity: 0;
	transform: scale(.6);
	transition: opacity .15s, transform .15s;
}
.dgs-choice.is-active .dgs-choice__check { opacity: 1; transform: scale(1); }
.dgs-choice__ico { color: var(--dgs-sky); display: inline-flex; }
.dgs-choice--col .dgs-choice__ico .dgs-ico { width: 22px; height: 22px; }
.dgs-choice--row .dgs-choice__ico .dgs-ico { width: 20px; height: 20px; }
.dgs-choice__label { font-size: 13px; font-weight: 600; color: var(--dgs-ink-700); }

/* terms */
.dgs-terms { border-radius: 8px; transition: box-shadow .15s; padding: 4px; }
.dgs-terms.is-invalid { box-shadow: 0 0 0 2px var(--dgs-error); }
.dgs-check-line {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	padding-top: 4px;
}
.dgs-checkbox { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--dgs-orange); flex-shrink: 0; }
.dgs-check-line span { font-size: 13px; color: var(--dgs-ink-500); line-height: 1.5; }
.dgs-check-line a { color: var(--dgs-sky); font-weight: 600; text-decoration: none; }
.dgs-check-line a:hover { text-decoration: underline; }

/* actions */
.dgs-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 24px;
}
.dgs-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: 0;
	color: var(--dgs-ink-500);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: color .15s;
	padding: 8px 4px;
}
.dgs-back:hover { color: var(--dgs-ink); }
.dgs-back.is-hidden { visibility: hidden; }
.dgs-next, .dgs-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--dgs-orange);
	border: 0;
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	padding: 12px 24px;
	border-radius: 8px;
	transition: background-color .15s;
	text-decoration: none;
}
.dgs-next:hover, .dgs-btn:hover { background: var(--dgs-orange-hover); }
.dgs-next:disabled { opacity: .6; cursor: default; }

.dgs-formerror {
	color: var(--dgs-error);
	font-size: 13px;
	font-weight: 500;
	text-align: center;
	margin: 14px 0 0;
}
.dgs-formerror[hidden] { display: none; }

/* honeypot */
.dgs-hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* icons */
.dgs-ico { width: 24px; height: 24px; display: inline-block; vertical-align: middle; }
.dgs-ico--xs { width: 14px; height: 14px; }
.dgs-eyebrow .dgs-ico { width: 16px; height: 16px; }
.dgs-choice__check .dgs-ico { width: 16px; height: 16px; }

/* success */
.dgs-success { text-align: center; padding: 40px 0; }
.dgs-success[hidden] { display: none; }
.dgs-success__icon {
	width: 64px; height: 64px;
	border-radius: 999px;
	background: #ECFDF5;
	color: #16A34A;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 24px;
}
.dgs-success__icon .dgs-ico { width: 28px; height: 28px; }
.dgs-success__text { max-width: 440px; margin-left: auto; margin-right: auto; margin-bottom: 32px; }

/* shake */
.dgs-shake { animation: dgs-shake .4s ease; }
@keyframes dgs-shake {
	10%,90% { transform: translateX(-1px); }
	20%,80% { transform: translateX(2px); }
	30%,50%,70% { transform: translateX(-4px); }
	40%,60% { transform: translateX(4px); }
}
