/* All Glass Garage Doors — Dealer Application
   Matches the branded application page: Quicksand, navy #3B467E, deep navy #12315D, sky #9ECFF7. */

.agg-da-page {
	--agg-navy: #3b467e;
	--agg-deep: #12315d;
	--agg-sky: #9ecff7;
	--agg-soft: #eef5fd;
	--agg-ink: #22304a;
	--agg-muted: #5b6b8c;
	--agg-border: #d7e3f4;
	--agg-error: #c0392b;

	font-family: 'Quicksand', Helvetica, Arial, sans-serif;
	color: var(--agg-ink);
	background: linear-gradient(160deg, #12315d 0%, #3b467e 55%, #2a3a6b 100%);
	padding: 56px 24px;
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
}

.agg-da-page *,
.agg-da-page *::before,
.agg-da-page *::after {
	box-sizing: border-box;
}

.agg-da-shell {
	max-width: 760px;
	margin: 0 auto;
}

/* ---------- Hero above the card ---------- */

.agg-da-hero {
	text-align: center;
	margin-bottom: 26px;
}

.agg-da-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--agg-sky);
	margin: 0;
}

.agg-da-eyebrow-sm {
	letter-spacing: 0.22em;
}

.agg-da-hero-title {
	font-family: inherit;
	color: #ffffff;
	font-size: 38px;
	font-weight: 700;
	line-height: 1.15;
	margin: 10px 0 8px;
}

.agg-da-hero-sub {
	color: var(--agg-sky);
	font-size: 16px;
	margin: 0 auto;
	max-width: 520px;
}

.agg-da-foot {
	text-align: center;
	color: var(--agg-sky);
	font-size: 13px;
	margin: 20px 0 0;
}

/* ---------- Card ---------- */

.agg-da-card {
	background: #ffffff;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 30px 70px rgba(9, 25, 51, 0.35);
}

.agg-da-card-head {
	background: linear-gradient(135deg, var(--agg-deep) 0%, var(--agg-navy) 100%);
	padding: 28px 36px;
}

.agg-da-card-title {
	font-family: inherit;
	color: #ffffff;
	font-size: 24px;
	font-weight: 700;
	margin: 6px 0 4px;
}

.agg-da-card-sub {
	color: var(--agg-sky);
	font-size: 14.5px;
	margin: 0;
}

.agg-da-form {
	padding: 30px 36px 36px;
}

/* ---------- Step headings ---------- */

.agg-da-step {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	margin: 20px 0 12px;
	text-align: left;
}

.agg-da-step-num {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: var(--agg-navy);
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: start;
	line-height: 1;
	text-align: center;
}

.agg-da-step-text {
	display: block;
	min-width: 0;
	text-align: left;
}

.agg-da-step-title {
	display: block;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--agg-navy);
	line-height: 1.35;
	text-align: left;
}

.agg-da-step-note {
	display: block;
	font-size: 12.5px;
	color: var(--agg-muted);
	line-height: 1.4;
	text-align: left;
}

.agg-da-section {
	margin: 22px 0 8px;
}

.agg-da-required-note {
	font-size: 12.5px;
	color: var(--agg-muted);
	margin: 0 0 14px;
}

.agg-da-req {
	color: var(--agg-error);
	font-weight: 700;
}

/* ---------- Rows: always two columns ---------- */

.agg-da-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 14px;
}

.agg-da-row .agg-da-field {
	min-width: 0;
}

.agg-da-row .agg-da-step,
.agg-da-row .agg-da-section,
.agg-da-row .agg-da-terms-wrap,
.agg-da-row .agg-da-field-checkbox {
	grid-column: 1 / -1;
}

/* ---------- Labels & inputs ---------- */

.agg-da-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--agg-navy);
	margin-bottom: 6px;
}

.agg-da-field input[type='text'],
.agg-da-field input[type='email'],
.agg-da-field input[type='tel'],
.agg-da-field input[type='date'],
.agg-da-field select {
	width: 100%;
	height: 48px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	color: var(--agg-ink);
	background: var(--agg-soft);
	border: 1.5px solid var(--agg-border);
	border-radius: 12px;
	padding: 12px 14px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	appearance: none;
	-webkit-appearance: none;
}

.agg-da-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233b467e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
}

.agg-da-field input:focus,
.agg-da-field select:focus {
	border-color: var(--agg-sky);
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(158, 207, 247, 0.4);
}

.agg-da-field input::placeholder {
	color: #93a3c2;
}

/* ---------- Errors ---------- */

.agg-da-has-error input,
.agg-da-has-error select {
	border-color: var(--agg-error);
	background: #fdf3f2;
}

.agg-da-error {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--agg-error);
	margin-top: 6px;
}

.agg-da-error-summary {
	background: #fdf3f2;
	border: 1.5px solid #f2c6c0;
	border-left: 5px solid var(--agg-error);
	border-radius: 12px;
	padding: 13px 16px;
	margin-bottom: 18px;
}

.agg-da-error-summary p {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--agg-error);
}

/* ---------- Terms box ---------- */

.agg-da-terms-wrap {
	margin: 2px 0 14px;
}

.agg-da-terms-box {
	height: 224px;
	overflow-y: auto;
	background: var(--agg-soft);
	border: 1.5px solid var(--agg-border);
	border-radius: 16px;
	padding: 16px 18px;
	font-size: 13px;
	line-height: 1.65;
	color: var(--agg-muted);
	scrollbar-width: thin;
	scrollbar-color: var(--agg-navy) var(--agg-soft);
}

.agg-da-terms-box::-webkit-scrollbar {
	width: 8px;
}

.agg-da-terms-box::-webkit-scrollbar-track {
	background: var(--agg-soft);
	border-radius: 8px;
}

.agg-da-terms-box::-webkit-scrollbar-thumb {
	background: var(--agg-navy);
	border-radius: 8px;
}

.agg-da-terms-box h3,
.agg-da-terms-box h4 {
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--agg-navy);
	margin: 14px 0 4px;
}

.agg-da-terms-box h3:first-child,
.agg-da-terms-box h4:first-child {
	margin-top: 0;
}

.agg-da-terms-box p {
	margin: 0 0 10px;
}

.agg-da-terms-list {
	list-style: none;
	counter-reset: agg-terms;
	margin: 0;
	padding: 0;
}

.agg-da-terms-list li {
	counter-increment: agg-terms;
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	align-items: start;
	column-gap: 6px;
	margin: 0 0 10px;
	padding: 0;
	text-align: left;
}

.agg-da-terms-list li::before {
	content: counter(agg-terms) ".";
	display: block;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	color: var(--agg-navy);
	text-align: right;
}

/* ---------- Checkboxes ---------- */

.agg-da-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--agg-ink);
}

.agg-da-check input[type='checkbox'] {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	border: 2px solid var(--agg-navy);
	border-radius: 6px;
	background: #ffffff;
	cursor: pointer;
	position: relative;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.agg-da-check input[type='checkbox']:checked {
	background: var(--agg-navy);
	border-color: var(--agg-navy);
}

.agg-da-check input[type='checkbox']:checked::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 1px;
	width: 6px;
	height: 11px;
	border: solid #ffffff;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
}

.agg-da-check input[type='checkbox']:focus-visible {
	box-shadow: 0 0 0 4px rgba(158, 207, 247, 0.45);
	outline: none;
}

.agg-da-field-checkbox {
	margin-bottom: 4px;
}

.agg-da-field-highlight .agg-da-check {
	background: var(--agg-soft);
	border: 1.5px solid var(--agg-border);
	border-radius: 16px;
	padding: 14px 16px;
	color: var(--agg-navy);
}

/* ---------- Submit ---------- */

.agg-da-submit {
	margin-top: 22px;
}

.agg-da-button {
	font-family: inherit;
	width: 100%;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: #ffffff;
	background: var(--agg-navy);
	border: none;
	border-radius: 16px;
	padding: 17px 28px;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease;
}

.agg-da-button:hover {
	transform: translateY(-2px);
	background: var(--agg-deep);
}

.agg-da-button:active {
	transform: translateY(0);
}

.agg-da-button[disabled] {
	opacity: 0.65;
	cursor: wait;
	transform: none;
}

/* ---------- Honeypot ---------- */

.agg-da-hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
	height: 0;
	overflow: hidden;
}

/* ---------- Success ---------- */

.agg-da-success {
	padding: 56px 36px;
	text-align: center;
}

.agg-da-success-mark {
	width: 56px;
	height: 56px;
	margin: 0 auto 18px;
	border-radius: 999px;
	background: var(--agg-navy);
	color: #ffffff;
	font-size: 26px;
	line-height: 56px;
}

.agg-da-success-title {
	font-family: inherit;
	font-size: 22px;
	font-weight: 700;
	color: var(--agg-navy);
	margin: 0 0 12px;
}

.agg-da-success p {
	font-size: 14.5px;
	color: var(--agg-muted);
	max-width: 460px;
	margin: 0 auto;
}

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
	.agg-da-page {
		padding: 32px 12px;
	}

	.agg-da-hero-title {
		font-size: 26px;
	}

	.agg-da-hero-sub {
		font-size: 14px;
	}

	.agg-da-card {
		border-radius: 20px;
	}

	.agg-da-card-head {
		padding: 22px 20px;
	}

	.agg-da-card-title {
		font-size: 20px;
	}

	.agg-da-form {
		padding: 24px 16px 28px;
	}

	.agg-da-row {
		gap: 12px;
		margin-bottom: 12px;
	}

	.agg-da-label {
		min-height: 32px;
		line-height: 16px;
		text-align: left;
	}

	.agg-da-step {
		grid-template-columns: 30px minmax(0, 1fr);
		align-items: start;
	}

	.agg-da-step-num {
		width: 30px;
		height: 30px;
		font-size: 13px;
	}

	.agg-da-step-title,
	.agg-da-step-note {
		text-align: left;
	}

	.agg-da-field-mobile-stack {
		grid-column: 1 / -1;
	}

	.agg-da-terms-box {
		height: 200px;
		padding: 14px;
	}

	.agg-da-terms-list li {
		grid-template-columns: 26px minmax(0, 1fr);
		column-gap: 6px;
	}
}
