/* Adi Design – Start a Project form
   Inherits the theme's font; colour comes from --adp-accent. */

.adp {
	--adp-accent: #3B3FD9;
	--adp-ink: #1c1d21;
	--adp-muted: #62666f;
	--adp-line: #d6d9e0;
	--adp-field: #ffffff;
	--adp-danger: #c0262d;
	--adp-soft: #eeeffc;
	--adp-radius: 10px;

	max-width: 760px;
	margin: 0 auto;
	color: var(--adp-ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	scroll-margin-top: 120px; /* clears Divi's fixed header */
	text-align: left;
}
@supports (background: color-mix(in srgb, red 10%, white)) {
	.adp { --adp-soft: color-mix(in srgb, var(--adp-accent) 9%, #ffffff); }
}
.adp *, .adp *::before, .adp *::after { box-sizing: border-box; }
.adp [hidden] { display: none !important; }

/* ---------- Progress ---------- */
.adp-head { margin-bottom: 36px; }
.adp-counter {
	margin: 0 0 12px;
	padding: 0;
	font-size: 14px;
	color: var(--adp-muted);
}
.adp-progress {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.adp-progress li {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: var(--adp-muted);
}
.adp-progress li::before {
	content: "";
	display: block;
	height: 4px;
	border-radius: 4px;
	background: var(--adp-line);
	transition: background-color .25s ease;
}
.adp-progress li.is-done::before,
.adp-progress li.is-current::before { background: var(--adp-accent); }
.adp-progress li.is-current { color: var(--adp-ink); font-weight: 600; }
.adp-progress__num { display: none; }

/* ---------- Steps ---------- */
.adp-form { margin: 0; }
.adp-step__heading {
	margin: 0 0 6px;
	padding: 0;
	font-size: clamp(24px, 3.2vw, 32px);
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--adp-ink);
	outline: none;
}
.adp-step__intro {
	margin: 0 0 28px;
	padding: 0;
	color: var(--adp-muted);
}
.adp-step__heading + .adp-fields,
.adp-step__heading + .adp-review { margin-top: 24px; }

.adp-fields { display: grid; gap: 28px; }
.adp-step[data-step="contact"] .adp-fields { grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.adp-step[data-step="contact"] .adp-field[data-name="location"] { grid-column: 1 / -1; }

/* ---------- Fields ---------- */
.adp-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.adp-label {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--adp-ink);
}
fieldset.adp-field > legend.adp-label { float: left; width: 100%; }
fieldset.adp-field > legend.adp-label + * { clear: both; }
.adp-optional { font-weight: 400; color: var(--adp-muted); }
.adp-hint { display: block; margin: -4px 0 12px; font-size: 13px; color: var(--adp-muted); clear: both; }
.adp-help { margin: 10px 0 0; padding: 0; font-size: 13px; color: var(--adp-muted); }

.adp input[type="text"],
.adp input[type="email"],
.adp input[type="tel"],
.adp textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 12px 14px;
	min-height: 50px;
	font: inherit;
	font-size: 16px; /* stops iOS zoom */
	color: var(--adp-ink);
	background: var(--adp-field);
	border: 1.5px solid var(--adp-line);
	border-radius: var(--adp-radius);
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.adp textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.adp input::placeholder, .adp textarea::placeholder { color: #9a9ea8; opacity: 1; }
.adp input[type="text"]:hover, .adp input[type="email"]:hover,
.adp input[type="tel"]:hover, .adp textarea:hover { border-color: #aeb3bd; }
.adp input[type="text"]:focus, .adp input[type="email"]:focus,
.adp input[type="tel"]:focus, .adp textarea:focus {
	outline: none;
	border-color: var(--adp-accent);
	box-shadow: 0 0 0 3px var(--adp-soft);
}

/* ---------- Chips (checkbox / radio) ---------- */
.adp-chips { display: flex; flex-wrap: wrap; gap: 10px; clear: both; }
.adp-chip { position: relative; margin: 0; padding: 0; cursor: pointer; }
.adp-chip input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}
.adp-chip span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 18px;
	font-size: 15px;
	line-height: 1.2;
	color: var(--adp-ink);
	background: var(--adp-field);
	border: 1.5px solid var(--adp-line);
	border-radius: 999px;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
	user-select: none;
}
.adp-chip:hover span { border-color: var(--adp-ink); }
.adp-chip input[type="checkbox"] + span::before {
	content: "";
	width: 0;
	height: 10px;
	margin-right: -8px;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) translateY(-2px);
	opacity: 0;
	transition: width .15s ease, margin .15s ease, opacity .15s ease;
}
.adp-chip input:checked + span {
	color: #fff;
	background: var(--adp-accent);
	border-color: var(--adp-accent);
}
.adp-chip input[type="checkbox"]:checked + span::before { width: 5px; margin-right: 2px; opacity: 1; }
.adp-chip input:focus-visible + span { outline: 3px solid var(--adp-accent); outline-offset: 2px; }

/* ---------- Errors ---------- */
.adp-error { margin: 8px 0 0; padding: 0; font-size: 14px; color: var(--adp-danger); }
.adp-error:empty { display: none; }
.adp-field.has-error input[type="text"],
.adp-field.has-error input[type="email"],
.adp-field.has-error input[type="tel"],
.adp-field.has-error textarea,
.adp-field.has-error .adp-chip span { border-color: var(--adp-danger); }
.adp-form-error {
	margin: 24px 0 0;
	padding: 12px 16px;
	font-size: 15px;
	color: var(--adp-danger);
	background: #fcefef;
	border-radius: var(--adp-radius);
}

/* ---------- Captcha ---------- */
.adp-field--captcha input { max-width: 120px; }
.adp-q-a, .adp-q-b { font-variant-numeric: tabular-nums; }

/* ---------- Review ---------- */
.adp-review {
	margin: 0 0 32px;
	border: 1.5px solid var(--adp-line);
	border-radius: var(--adp-radius);
}
.adp-review__group { padding: 18px 20px; }
.adp-review__group + .adp-review__group { border-top: 1px solid var(--adp-line); }
.adp-review__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.adp-review__head h4 { margin: 0; padding: 0; font-size: 15px; font-weight: 700; color: var(--adp-ink); }
.adp-review dl { margin: 0; padding: 0; }
.adp-review__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 6px 0; font-size: 14px; }
.adp-review dt { margin: 0; color: var(--adp-muted); font-weight: 400; }
.adp-review dd { margin: 0; color: var(--adp-ink); white-space: pre-line; overflow-wrap: anywhere; }
.adp-review__empty { margin: 0; font-size: 14px; color: var(--adp-muted); }
.adp-link {
	padding: 4px 2px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--adp-accent);
	background: none;
	border: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.adp-link:focus-visible { outline: 2px solid var(--adp-accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.adp-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--adp-line);
}
.adp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 12px 28px;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	border-radius: 999px;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
}
.adp-btn--primary { margin-left: auto; color: #fff; background: var(--adp-accent); }
.adp-btn--primary:hover { opacity: .9; }
.adp-btn--ghost { color: var(--adp-ink); background: transparent; border-color: var(--adp-line); }
.adp-btn--ghost:hover { border-color: var(--adp-ink); }
.adp-btn:focus-visible { outline: 3px solid var(--adp-accent); outline-offset: 3px; }
.adp-btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Honeypot ---------- */
.adp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Done ---------- */
.adp-done { padding: 48px 0 24px; outline: none; }
.adp-done__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 20px;
	color: #fff;
	background: var(--adp-accent);
	border-radius: 50%;
	animation: adp-pop .45s cubic-bezier(.2, .9, .3, 1.3) both;
}
.adp-done__heading { margin: 0 0 8px; padding: 0; font-size: clamp(24px, 3.2vw, 32px); line-height: 1.2; font-weight: 700; color: var(--adp-ink); }
.adp-done__text { margin: 0; padding: 0; max-width: 56ch; color: var(--adp-muted); }
@keyframes adp-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
	.adp-head { margin-bottom: 28px; }
	.adp-progress__label { display: none; }
	.adp-step[data-step="contact"] .adp-fields { grid-template-columns: 1fr; }
	.adp-review__row { grid-template-columns: 1fr; gap: 2px; }
	.adp-nav { flex-wrap: wrap-reverse; }
	.adp-btn--primary { flex: 1 1 100%; }
	.adp-btn--ghost { flex: 1 1 100%; }
	.adp-chip span { padding: 10px 14px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.adp *, .adp *::before { transition: none !important; animation: none !important; }
}
