/* Andreea Design Forms */
.adf {
	--adf-red: #E7181F;
	--adf-teal: #19A39D;
	--adf-cream: #FCF8F0;
	--adf-ink: #1a1a1a;
	--adf-muted: #6b6b6b;
	box-sizing: border-box;
	max-width: 860px;
	margin: 0 auto 32px;
	padding: clamp(22px, 5vw, 48px);
	background: var(--adf-cream);
	border-radius: 22px;
	color: var(--adf-ink);
	font-size: 16px;
	line-height: 1.55;
	position: relative;
}
.adf.alignwide[style] { max-width: 860px; width: 100%; margin-left: auto; margin-right: auto; }
.adf.adf-inline.alignwide[style] { max-width: 1100px; }
.adf *, .adf *::before, .adf *::after { box-sizing: border-box; }
.adf .adf-title { margin: 0 0 10px; color: var(--adf-red); font-size: clamp(28px, 4.4vw, 42px); line-height: 1.1; font-weight: 800; }
.adf .adf-lead { margin: 0 0 24px; font-size: 17px; max-width: 640px; }

/* fields */
.adf .adf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.adf .adf-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.adf .adf-span-2 { grid-column: 1 / -1; }
.adf .adf-field { display: block; margin: 0 0 16px; }
.adf .adf-field > span { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 700; }
.adf .adf-field input, .adf .adf-field select, .adf .adf-field textarea {
	display: block; width: 100%; min-height: 50px; margin: 0;
	padding: 12px 15px;
	border: 2px solid rgba(0,0,0,.11); border-radius: 12px;
	background: #fff; color: var(--adf-ink);
	font: inherit; font-size: 16px; line-height: 1.4;
	box-shadow: none;
	transition: border-color .15s ease;
}
.adf .adf-field textarea { min-height: 110px; resize: vertical; }
.adf .adf-field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
.adf .adf-field input:focus, .adf .adf-field select:focus, .adf .adf-field textarea:focus { outline: none; border-color: var(--adf-teal); }
.adf .is-invalid, .adf .adf-field .is-invalid { border-color: var(--adf-red) !important; }
.adf .adf-check { display: flex; gap: 11px; align-items: flex-start; margin: 4px 0 12px; font-size: 14px; color: var(--adf-muted); cursor: pointer; line-height: 1.45; }
.adf .adf-check input { flex: 0 0 auto; width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--adf-red); }
.adf .adf-check.is-invalid { color: var(--adf-red); }
.adf .adf-check a { color: var(--adf-teal); }
.adf .adf-error { min-height: 1.3em; margin: 6px 0 10px; color: var(--adf-red); font-weight: 700; font-size: 14px; }
.adf .adf-hp, .adf .adf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.adf .adf-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 13px 30px;
	border: 2px solid var(--adf-red); border-radius: 999px;
	background: var(--adf-red); color: #fff;
	font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
	cursor: pointer; white-space: nowrap;
	box-shadow: 0 6px 18px rgba(231,24,31,.22);
	transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.adf .adf-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(231,24,31,.28); color: #fff; }
.adf .adf-btn:disabled { opacity: .6; cursor: progress; transform: none; }
.adf .adf-btn-ghost { background: transparent; color: var(--adf-ink); border-color: rgba(0,0,0,.18); box-shadow: none; }
.adf .adf-btn-ghost:hover { color: var(--adf-ink); border-color: var(--adf-ink); box-shadow: none; }
.adf .adf-btn:focus-visible, .adf input:focus-visible, .adf .adf-service:focus-within { outline: 3px solid var(--adf-teal); outline-offset: 2px; }

/* success */
.adf .adf-success { text-align: center; padding: 26px 10px 10px; outline: none; animation: adf-in .4s ease both; }
.adf .adf-success-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--adf-teal); color: #fff; font-size: 32px; line-height: 64px; font-weight: 700; }
.adf .adf-success p { font-size: 18px; margin: 0 auto; max-width: 520px; }
@keyframes adf-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* subscribe */
.adf-subscribe.adf-card { text-align: center; border: 2px solid rgba(25,163,157,.25); }
.adf-subscribe.adf-card .adf-lead { margin-left: auto; margin-right: auto; }
.adf-subscribe .adf-sub-row { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 10px; margin-bottom: 10px; }
.adf-subscribe .adf-sub-row .adf-field { margin: 0; }
.adf-subscribe .adf-check { text-align: left; max-width: 620px; margin-left: auto; margin-right: auto; }
.adf-subscribe.adf-card .adf-error { text-align: center; }
.adf-subscribe.adf-inline { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: center; padding: 26px 30px; max-width: 1100px; }
.adf-subscribe.adf-inline .adf-title { font-size: 26px; }
.adf-subscribe.adf-inline .adf-lead { margin: 0; font-size: 15px; }
.adf-subscribe.adf-inline .adf-sub-row { grid-template-columns: 1fr 1.3fr auto; }
.adf-subscribe.adf-inline .adf-check { margin-left: 0; }

/* order stepper */
.adf .adf-stepper { display: flex; gap: 8px; list-style: none; margin: 0 0 26px; padding: 0; counter-reset: s; }
.adf .adf-stepper li { flex: 1; display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.04); color: var(--adf-muted); font-size: 14px; font-weight: 700; }
.adf .adf-stepper li span { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--adf-muted); font-size: 13px; }
.adf .adf-stepper li.is-active { background: var(--adf-red); color: #fff; }
.adf .adf-stepper li.is-active span { color: var(--adf-red); }
.adf .adf-stepper li.is-done { background: rgba(25,163,157,.14); color: #0f6f6b; }
.adf .adf-stepper li.is-done span { background: var(--adf-teal); color: #fff; }
.adf .adf-step { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.adf .adf-step.is-active { display: block; animation: adf-in .35s ease both; }
.adf .adf-step legend { padding: 0; margin: 0 0 16px; font-size: 22px; font-weight: 800; line-height: 1.25; }
.adf .adf-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.adf .adf-nav [data-next], .adf .adf-nav [data-send] { margin-left: auto; }
.adf [hidden] { display: none !important; }

.adf .adf-services { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-radius: 14px; }
.adf .adf-services.is-invalid { outline: 2px solid var(--adf-red); outline-offset: 6px; }
.adf .adf-service { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: #fff; border: 2px solid transparent; border-radius: 14px; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.06); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.adf .adf-service:hover { border-color: rgba(25,163,157,.5); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.07); }
.adf .adf-service input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.adf .adf-service-box { flex: 0 0 24px; width: 24px; height: 24px; margin-top: 1px; border: 2px solid rgba(0,0,0,.22); border-radius: 7px; position: relative; background: #fff; }
.adf .adf-service.is-checked { border-color: var(--adf-red); background: #fff6f6; }
.adf .adf-service.is-checked .adf-service-box { background: var(--adf-red); border-color: var(--adf-red); }
.adf .adf-service.is-checked .adf-service-box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.adf .adf-service-text strong { display: block; font-size: 16px; line-height: 1.3; }
.adf .adf-service-text small { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--adf-muted); }

@media (prefers-reduced-motion: reduce) { .adf .adf-step.is-active, .adf .adf-success { animation: none; } }

/* tablet */
@media (max-width: 820px) {
	.adf-subscribe.adf-inline { grid-template-columns: 1fr; gap: 14px; }
	.adf .adf-row-3 { grid-template-columns: 1fr 1fr; }
}
/* mobile */
@media (max-width: 600px) {
	.adf { padding: 24px 18px; border-radius: 16px; }
	.adf .adf-row, .adf .adf-row-3, .adf .adf-services { grid-template-columns: 1fr; }
	.adf-subscribe .adf-sub-row, .adf-subscribe.adf-inline .adf-sub-row { grid-template-columns: 1fr; }
	.adf .adf-btn { width: 100%; }
	.adf .adf-nav { flex-direction: column-reverse; }
	.adf .adf-nav [data-next], .adf .adf-nav [data-send] { margin-left: 0; }
	.adf .adf-stepper li { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: 11.5px; text-align: center; }
	.adf .adf-step legend { font-size: 19px; }
}
.adf-subscribe .adf-error { min-height: 0; margin: 4px 0 0; }
