/* Contact page: gold, black and white, like the rest of DeeGeet Market Place. */

.dgm-cpage { --cf-gold: var(--dgm-gold, #CFA23A); --cf-ink: var(--dgm-ink, #1C1B19); padding-bottom: 3rem; }

/* Hero */
.dgm-contact__hero {
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--cf-ink); color: #fff;
	padding: .25rem 0 clamp(5.5rem, 12vw, 8rem);
}
.dgm-contact__hero::before, .dgm-contact__hero::after {
	content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .45;
	background: radial-gradient(circle, rgba(207, 162, 58, .9), rgba(207, 162, 58, 0) 70%);
}
.dgm-contact__hero::before { width: 520px; height: 520px; right: -140px; top: -220px; animation: dgm-cf-drift 14s ease-in-out infinite alternate; }
.dgm-contact__hero::after { width: 380px; height: 380px; left: -160px; bottom: -220px; opacity: .25; animation: dgm-cf-drift 18s ease-in-out infinite alternate-reverse; }
@keyframes dgm-cf-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-60px, 40px, 0) scale(1.12); } }

.dgm-contact__hero .dgm-crumbs, .dgm-contact__hero .dgm-crumbs a, .dgm-contact__hero .dgm-crumbs li { color: rgba(255, 255, 255, .72); }
.dgm-contact__hero .dgm-crumbs a:hover { color: #fff; }
.dgm-contact__eyebrow {
	display: inline-flex; align-items: center; gap: .45rem; margin: 1.25rem 0 .6rem;
	padding: .35rem .8rem; border: 1px solid rgba(207, 162, 58, .55); border-radius: 999px;
	color: var(--cf-gold); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.dgm-contact__title { margin: 0 0 .75rem; color: #fff; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.12; max-width: 22ch; }
.dgm-contact__lead { margin: 0; max-width: 58ch; color: rgba(255, 255, 255, .8); font-size: clamp(1rem, 1.6vw, 1.12rem); }

/* Details and form */
.dgm-contact__main {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 1.5rem; align-items: start;
	margin-top: clamp(-5rem, -9vw, -3.5rem);
}
.dgm-contact__side { display: grid; gap: .85rem; }
.dgm-contact__card {
	display: flex; gap: .9rem; align-items: flex-start; padding: 1.05rem 1.1rem;
	background: #fff; border: 1px solid var(--dgm-line); border-radius: 14px; box-shadow: var(--shadow-soft);
	color: inherit; text-decoration: none;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.dgm-contact__card:hover, .dgm-contact__card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(207, 162, 58, .6); }
.dgm-contact__card > span:last-child { display: grid; gap: .1rem; min-width: 0; }
.dgm-contact__card strong { font-size: .98rem; }
.dgm-contact__card > span:last-child > span { color: var(--dgm-primary, #7F611B); font-weight: 600; overflow-wrap: anywhere; }
.dgm-contact__card small { color: var(--dgm-muted); font-size: .84rem; line-height: 1.4; }
.dgm-contact__ico {
	flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
	background: var(--dgm-panel, #F3EAD3); color: var(--dgm-primary-dark, #6B521A);
	transition: background .25s ease, color .25s ease, transform .25s ease;
}
.dgm-contact__card:hover .dgm-contact__ico { background: var(--cf-ink); color: var(--cf-gold); transform: rotate(-6deg); }
.dgm-contact__company { margin: .25rem .25rem 0; color: var(--dgm-muted); font-size: .8rem; }

.dgm-contact__formwrap {
	position: relative; background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(28, 27, 25, .14);
	padding: clamp(1.25rem, 3.5vw, 2.25rem); overflow: hidden;
}
.dgm-contact__formwrap::before {
	content: ""; position: absolute; inset: 0 0 auto; height: 4px;
	background: linear-gradient(90deg, var(--cf-ink), var(--cf-gold), #F1D68B, var(--cf-gold), var(--cf-ink));
	background-size: 200% 100%; animation: dgm-cf-bar 6s linear infinite;
}
@keyframes dgm-cf-bar { to { background-position: -200% 0; } }

.dgm-cf__title { margin: 0 0 .25rem; font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.dgm-cf__intro { margin: 0 0 1.25rem; color: var(--dgm-muted); font-size: .88rem; }
.dgm-cf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.dgm-cf__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dgm-cf__alert { margin: 0 0 1rem; padding: .75rem 1rem; border-radius: 10px; background: #FDECEC; color: #8A1C1C; font-size: .9rem; }

/* Floating-label fields */
.dgm-fl { position: relative; margin-bottom: 1.15rem; }
.dgm-fl input, .dgm-fl select, .dgm-fl textarea {
	display: block; width: 100%; padding: 1.45rem .95rem .55rem; min-height: 58px;
	font: inherit; font-size: 1rem; color: var(--cf-ink);
	background: #FBFAF7; border: 1.5px solid var(--dgm-line); border-radius: 12px; outline: none;
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
	-webkit-appearance: none; appearance: none;
}
.dgm-fl textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.dgm-fl--select select { padding-right: 2.6rem; cursor: pointer; }
.dgm-fl--select::after {
	content: ""; position: absolute; right: 1.05rem; top: 26px; width: 8px; height: 8px; pointer-events: none;
	border-right: 2px solid var(--dgm-muted); border-bottom: 2px solid var(--dgm-muted); transform: rotate(45deg);
	transition: transform .2s ease;
}
.dgm-fl--select:focus-within::after { transform: rotate(225deg) translate(-3px, -3px); border-color: var(--dgm-primary); }
.dgm-fl label {
	position: absolute; left: 1rem; top: 1.05rem; color: var(--dgm-muted); font-size: 1rem; pointer-events: none;
	transform-origin: left top; transition: transform .2s ease, color .2s ease;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 2.5rem);
}
.dgm-fl input:focus, .dgm-fl select:focus, .dgm-fl textarea:focus {
	background: #fff; border-color: var(--cf-gold); box-shadow: 0 0 0 4px rgba(207, 162, 58, .18);
}
.dgm-fl input:focus + label, .dgm-fl input:not(:placeholder-shown) + label,
.dgm-fl textarea:focus + label, .dgm-fl textarea:not(:placeholder-shown) + label,
.dgm-fl--select select:focus + label, .dgm-fl--select.has-value label {
	transform: translateY(-.62rem) scale(.78); color: var(--dgm-primary, #7F611B); font-weight: 600;
}
.dgm-fl.is-good input, .dgm-fl.is-good select, .dgm-fl.is-good textarea { border-color: #9DBE8C; }
.dgm-fl.is-bad input, .dgm-fl.is-bad select, .dgm-fl.is-bad textarea { border-color: #C0392B; background: #FFF8F7; }
.dgm-fl.is-bad label { color: #A3271C; }
.dgm-fl__err { display: block; min-height: 0; color: #A3271C; font-size: .82rem; margin-top: .3rem; }
.dgm-fl__err:empty { display: none; }
.dgm-fl__count { position: absolute; right: .9rem; bottom: .55rem; font-size: .75rem; color: var(--dgm-muted); pointer-events: none; }
.dgm-fl__count.is-low { color: #A3271C; }
.dgm-fl--area .dgm-fl__err { margin-bottom: .2rem; }
.dgm-cf__order.is-opening { animation: dgm-cf-open .35s ease both; }
@keyframes dgm-cf-open { from { opacity: 0; transform: translateY(-8px); } }

.dgm-cf__privacy { margin: .1rem 0 1.25rem; color: var(--dgm-muted); font-size: .84rem; }
.dgm-cf__privacy a { color: var(--dgm-primary); }

.dgm-cf__send {
	position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
	min-width: 220px; padding-inline: 1.6rem; font-weight: 700;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.dgm-cf__send::after {
	content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg);
}
.dgm-cf__send:hover::after { animation: dgm-cf-shine .9s ease; }
@keyframes dgm-cf-shine { to { left: 130%; } }
.dgm-cf__send:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(127, 97, 27, .3); }
.dgm-cf__send:hover .dgm-cf__plane { transform: translate(3px, -3px) rotate(-8deg); }
.dgm-cf__plane { transition: transform .25s ease; }
.dgm-cf__spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(28, 27, 25, .25); border-top-color: var(--cf-ink); animation: dgm-cf-spin .7s linear infinite; }
.dgm-cf__send.is-busy { cursor: progress; transform: none; }
.dgm-cf__send.is-busy .dgm-cf__plane { display: none; }
.dgm-cf__send.is-busy .dgm-cf__spin { display: inline-block; }
@keyframes dgm-cf-spin { to { transform: rotate(360deg); } }

.dgm-cf.is-shake { animation: dgm-cf-shake .42s ease; }
@keyframes dgm-cf-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.dgm-cf.is-leaving { opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .25s ease, transform .25s ease; }

/* Sent */
.dgm-cf__done { text-align: center; padding: clamp(1.5rem, 5vw, 3rem) .5rem; outline: none; }
.dgm-cf__done h2 { margin: 1rem 0 .4rem; font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.dgm-cf__done p { margin: 0 auto .5rem; max-width: 46ch; color: var(--dgm-muted); }
.dgm-cf__ref strong { color: var(--cf-ink); letter-spacing: .04em; }
.dgm-cf__done .dgm-btn { margin-top: 1rem; }
.dgm-cf__tick { width: 84px; height: 84px; }
.dgm-cf__tick circle { fill: var(--dgm-panel, #F3EAD3); stroke: var(--cf-gold); stroke-width: 2.5; stroke-dasharray: 152; stroke-dashoffset: 152; }
.dgm-cf__tick path { fill: none; stroke: var(--cf-ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.dgm-cf__done:not([hidden]) .dgm-cf__tick circle { animation: dgm-cf-draw .6s ease forwards; }
.dgm-cf__done:not([hidden]) .dgm-cf__tick path { animation: dgm-cf-draw .4s .5s ease forwards; }
.dgm-cf__done.is-shown > *:not(svg) { animation: dgm-cf-up .45s .35s ease both; }
@keyframes dgm-cf-draw { to { stroke-dashoffset: 0; } }
@keyframes dgm-cf-up { from { opacity: 0; transform: translateY(10px); } }

/* Tips */
.dgm-contact__tips { max-width: none; margin-top: 1.75rem; }
.dgm-contact__tips h2:first-child { margin-top: 0; }
.dgm-contact__tips ul { margin-bottom: 0; }

/* Products and categories */
.dgm-contact__sec { margin-top: 2.25rem; }
.dgm-contact__sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.dgm-contact__sechead h2 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.4rem); }
.dgm-contact__sechead a { display: inline-flex; align-items: center; gap: .25rem; color: var(--dgm-primary); font-weight: 600; white-space: nowrap; text-decoration: none; }
.dgm-contact__sechead a:hover { text-decoration: underline; }
.dgm-contact__chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.dgm-contact__chips a {
	display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; min-height: 44px;
	background: #fff; border: 1px solid var(--dgm-line); border-radius: 999px; color: var(--cf-ink); font-weight: 600; text-decoration: none;
	transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.dgm-contact__chips a:hover, .dgm-contact__chips a:focus-visible { background: var(--cf-ink); border-color: var(--cf-ink); color: #fff; transform: translateY(-2px); }
.dgm-contact__chips a:hover .dgm-icon { color: var(--cf-gold); }
.dgm-contact__chips .dgm-icon { color: var(--dgm-primary); transition: color .2s ease; }
.dgm-contact__grid { grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); }

/* Entrance: only once the script is running, so the page never stays hidden without it. */
.dgm-cpage.is-ready .dgm-rise:not(.is-in) { opacity: 0; transform: translateY(18px); }
.dgm-cpage.is-ready .dgm-rise { transition: opacity .6s ease var(--d, 0ms), transform .6s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }

/* Tablet */
@media (max-width: 960px) {
	.dgm-contact__main { grid-template-columns: 1fr; }
	.dgm-contact__formwrap { order: -1; }
	.dgm-contact__side { grid-template-columns: 1fr 1fr; }
	.dgm-contact__company { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 600px) {
	.dgm-contact__hero { padding-bottom: 4.75rem; }
	.dgm-contact__main { margin-top: -3.25rem; gap: 1rem; }
	.dgm-contact__side { grid-template-columns: 1fr; }
	.dgm-cf__row { grid-template-columns: 1fr; }
	.dgm-cf__send { width: 100%; }
	.dgm-contact__formwrap { border-radius: 14px; }
	.dgm-contact__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
	.dgm-contact__grid > :nth-child(n+7) { display: none; } /* Six products per row set on phones. */
	.dgm-contact__chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; margin-inline: -16px; padding-inline: 16px; scroll-snap-type: x proximity; scrollbar-width: none; }
	.dgm-contact__chips::-webkit-scrollbar { display: none; }
	.dgm-contact__chips li { flex: 0 0 auto; scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
	.dgm-cpage *, .dgm-cpage *::before, .dgm-cpage *::after, .dgm-contact__hero::before, .dgm-contact__hero::after { animation: none !important; transition: none !important; }
	.dgm-cpage.is-ready .dgm-rise:not(.is-in) { opacity: 1; transform: none; }
	.dgm-cf__tick circle, .dgm-cf__tick path { stroke-dashoffset: 0; }
}
