/* Le Delicia – custom cake design form (end of cake category pages). */
.ldl-cc {
	--ldl-ink: #3a312e;
	--ldl-muted: #7a716d;
	--ldl-line: #d9d3cf;
	--ldl-cream: #faf8f6;
	--ldl-accent: #00aaa3;
	--ldl-error: #a8362f;
	margin: 24px 0 64px;
	color: var(--ldl-ink);
	opacity: 0; transform: translateY(24px);
	transition: opacity .6s ease, transform .6s ease;
}
.ldl-cc.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ldl-cc { transition: none; opacity: 1; transform: none; } }
.ldl-cc [hidden] { display: none !important; }

.ldl-cc__inner {
	display: grid; grid-template-columns: 5fr 7fr; gap: 56px;
	padding: 56px; background: var(--ldl-cream); border: 1px solid var(--ldl-line);
}

/* Intro */
.ldl-cc__eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ldl-accent); }
.ldl-cc__title { margin: 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; text-transform: uppercase; letter-spacing: .01em; font-weight: 400; }
.ldl-cc__lead { margin: 18px 0 0; font-size: 15px; line-height: 1.6; color: var(--ldl-muted); }
.ldl-cc__steps { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: ldl-step; }
.ldl-cc__steps li {
	position: relative; padding: 0 0 20px 48px; counter-increment: ldl-step;
	font-size: 14px; line-height: 1.45;
}
.ldl-cc__steps li::before {
	content: counter(ldl-step);
	position: absolute; left: 0; top: -2px;
	display: grid; place-items: center; width: 32px; height: 32px;
	border: 1px solid var(--ldl-ink); border-radius: 50%;
	font-size: 13px; font-weight: 600;
}
.ldl-cc__steps li:not(:last-child)::after {
	content: ""; position: absolute; left: 16px; top: 34px; bottom: 2px; width: 1px; background: var(--ldl-line);
}
.ldl-cc__steps strong { display: block; font-weight: 600; letter-spacing: .02em; }
.ldl-cc__steps span { color: var(--ldl-muted); }

/* Form */
.ldl-cc__form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; }
.ldl-cc__field { display: flex; flex-direction: column; gap: 7px; margin: 0; min-width: 0; position: relative; }
.ldl-cc__field--full { grid-column: 1 / -1; }
.ldl-cc__field > span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ldl-cc__field > span em { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ldl-muted); }
.ldl-cc__field input[type=text], .ldl-cc__field input[type=tel], .ldl-cc__field textarea {
	width: 100%; padding: 12px 14px;
	background: #fff; color: var(--ldl-ink);
	border: 1px solid #3c3330; border-radius: 0;
	font: inherit; font-size: 15px; text-transform: none; letter-spacing: normal;
}
.ldl-cc__field input { height: 48px; }
.ldl-cc__field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.ldl-cc__field input:focus, .ldl-cc__field textarea:focus { outline: 2px solid var(--ldl-accent); outline-offset: 0; }
.ldl-cc__field [aria-invalid="true"] { border-color: var(--ldl-error); }
.ldl-cc__count { align-self: flex-end; font-size: 12px; color: var(--ldl-muted); }

/* Upload */
.ldl-cc__drop {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
	margin: 0; padding: 26px 16px; text-align: center; cursor: pointer;
	background: #fff; border: 1px dashed #a39b97;
	transition: border-color .15s, background-color .15s;
}
.ldl-cc__drop:hover, .ldl-cc__drop.is-drag { border-color: var(--ldl-ink); background: #fffdfb; }
.ldl-cc__drop:focus-within { outline: 2px solid var(--ldl-accent); outline-offset: 2px; }
.ldl-cc__drop.is-full { display: none; }
.ldl-cc__drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ldl-cc__drop-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ldl-cream); }
.ldl-cc__drop-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ldl-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ldl-cc__drop-text { font-size: 14px; }
.ldl-cc__drop-text strong { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ldl-cc__drop small { font-size: 12px; color: var(--ldl-muted); }

.ldl-cc__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ldl-cc__thumbs:empty { display: none; }
.ldl-cc__thumbs li { position: relative; width: 88px; height: 88px; border: 1px solid var(--ldl-line); background: #fff; }
.ldl-cc__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ldl-cc__remove {
	position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; padding: 0;
	display: grid; place-items: center; border: 0; border-radius: 50%;
	background: var(--ldl-ink); color: #fff; font-size: 16px; line-height: 1; cursor: pointer;
}

.ldl-cc__error { margin: 0; font-size: 14px; color: var(--ldl-error); }
.ldl-cc__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ldl-cc__submit { height: 52px; padding: 0 40px; border: 0; cursor: pointer; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.ldl-cc__submit[disabled] { opacity: .7; cursor: progress; }
.ldl-cc__actions small { font-size: 13px; color: var(--ldl-muted); }
.ldl-cc__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Success */
.ldl-cc__done { align-self: start; padding: 4px 0; outline: none; animation: ldl-cc-in .4s ease-out; }
@keyframes ldl-cc-in { from { opacity: 0; transform: translateY(8px); } }
.ldl-cc__done-head { display: flex; gap: 16px; align-items: flex-start; }
.ldl-cc__done-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ldl-accent); }
.ldl-cc__done-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ldl-cc__done-head .ldl-cc__eyebrow { margin-bottom: 4px; }
.ldl-cc__done h3 { margin: 0; font-size: 26px; font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }
.ldl-cc__done-head p:last-child { margin: 6px 0 0; font-size: 15px; color: var(--ldl-muted); }
.ldl-cc__ref {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	margin: 24px 0 0; padding: 16px 18px; background: #fff; border: 1px solid var(--ldl-ink);
}
.ldl-cc__ref span { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ldl-muted); }
.ldl-cc__ref strong { font-size: 22px; letter-spacing: .06em; }
.ldl-cc__summary { margin: 0; border-bottom: 1px solid var(--ldl-line); }
.ldl-cc__summary > div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ldl-line); font-size: 14px; }
.ldl-cc__summary > div:first-child { border-top: 0; }
.ldl-cc__summary dt { font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ldl-muted); padding-top: 1px; }
.ldl-cc__summary dd { margin: 0; overflow-wrap: anywhere; }
.ldl-cc__done-thumbs { display: flex; gap: 8px; margin-top: 14px; }
.ldl-cc__done-thumbs img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--ldl-line); }
.ldl-cc__next { margin-top: 22px; }
.ldl-cc__next-title { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ldl-cc__next ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.6; color: var(--ldl-ink); }
.ldl-cc__next li { padding-left: 4px; margin-bottom: 6px; }
.ldl-cc__done-note { margin: 16px 0 0; font-size: 13px; color: var(--ldl-muted); }
.ldl-cc__again {
	margin-top: 20px; padding: 12px 22px; cursor: pointer;
	background: transparent; color: var(--ldl-ink); border: 1px solid var(--ldl-ink); border-radius: 0;
	font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .02em;
}
.ldl-cc__again:hover { background: var(--ldl-ink); color: #fff; }

@media (max-width: 991px) {
	.ldl-cc__inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 32px; }
}
@media (max-width: 575px) {
	.ldl-cc { margin-bottom: 40px; }
	.ldl-cc__inner { padding: 28px 18px; }
	.ldl-cc__form { grid-template-columns: 1fr; }
	.ldl-cc__steps { margin-top: 24px; }
	.ldl-cc__submit { width: 100%; }
	.ldl-cc__actions small { text-align: center; width: 100%; }
}
