/* Enquiry form */
.ehc-form {
	background: #fff;
	color: #1E1C19;
	border-radius: 18px;
	padding: clamp(1.25rem, 4vw, 2.25rem);
	box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.45);
}
.ehc-form fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.ehc-form legend { font-family: var(--wp--preset--font-family--display, Georgia, serif); font-size: 1.75rem; line-height: 1.15; margin-bottom: 1rem; padding: 0; }
.ehc-count { display: block; font-family: var(--wp--preset--font-family--body, sans-serif); font-size: 0.75rem; letter-spacing: 0.14em; color: #B08A5B; margin-bottom: 0.4rem; font-weight: 600; }
.ehc-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.6rem; }
.ehc-option { position: relative; cursor: pointer; }
.ehc-option input { position: absolute; opacity: 0; }
.ehc-option span {
	display: block; padding: 0.9rem 1rem; border: 1.5px solid #E3D7C5; border-radius: 12px;
	font-size: 0.95rem; font-weight: 500; transition: border-color 0.2s, background 0.2s;
}
.ehc-option:hover span { border-color: #B08A5B; }
.ehc-option input:checked + span { border-color: #2F4A3F; background: #2F4A3F; color: #fff; }
.ehc-option input:focus-visible + span { outline: 2px solid #2F4A3F; outline-offset: 2px; }
.ehc-field { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.9rem; }
.ehc-field input, .ehc-field textarea {
	display: block; width: 100%; box-sizing: border-box; margin-top: 0.35rem; padding: 0.85rem 1rem;
	border: 1.5px solid #E3D7C5; border-radius: 12px; font: inherit; font-weight: 400; background: #FAF7F2;
}
.ehc-field input:focus, .ehc-field textarea:focus { outline: none; border-color: #2F4A3F; background: #fff; }
.ehc-btn, .ehc-form a.ehc-btn {
	display: inline-block; background: #2F4A3F; color: #fff !important; border: 0; border-radius: 999px;
	padding: 1rem 1.8rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.ehc-btn:hover { background: #22372F; }
.ehc-back { background: none; border: 0; color: #6B645A; cursor: pointer; font: inherit; font-size: 0.9rem; margin-top: 1rem; padding: 0.4rem 0; }
.ehc-small { font-size: 0.8rem; color: #6B645A; margin: 0.75rem 0 0; }
.ehc-error { background: #FCEAEA; color: #8A1F1F; padding: 0.75rem 1rem; border-radius: 10px; }
.ehc-hp { position: absolute; left: -9999px; }
.ehc-progress { height: 4px; background: #F1EBE1; border-radius: 4px; margin-bottom: 1.5rem; overflow: hidden; }
.ehc-progress span { display: block; height: 100%; width: 0; background: #B08A5B; transition: width 0.4s ease; }
.ehc-done h3 { margin-top: 0; }

/* With JS: one step at a time. Without JS: everything shows and still submits. */
.ehc-form.is-stepped .ehc-step { display: none; }
.ehc-form.is-stepped .ehc-step.is-active { display: block; animation: ehc-in 0.35s ease; }
.ehc-form:not(.is-stepped) .ehc-back, .ehc-form:not(.is-stepped) .ehc-progress { display: none; }
@keyframes ehc-in { from { opacity: 0; transform: translateX(12px); } }

/* Material studio */
.ehc-studio svg { width: 100%; height: auto; display: block; border-radius: 14px; background: var(--wall); }
.ehc-studio svg * { transition: fill 0.7s ease, stroke 0.7s ease; }
.ehc-studio .s-wall { fill: var(--wall); }
.ehc-studio .s-shade { filter: brightness(0.92); }
.ehc-studio .s-ceil { fill: var(--wall); filter: brightness(1.04); }
.ehc-studio .s-floor { fill: var(--floor); }
.ehc-studio .s-lines { stroke: rgb(0 0 0 / 0.08); stroke-width: 2; fill: none; }
.ehc-studio .s-cab { fill: var(--cab); stroke: rgb(0 0 0 / 0.08); }
.ehc-studio .s-top { fill: var(--top); }
.ehc-studio .s-acc { fill: var(--acc); }
.ehc-studio .s-soft { opacity: 0.35; }
.ehc-studio .s-glass { fill: #DCE7EA; }
.ehc-studio .s-handle { stroke: var(--acc); stroke-width: 4; stroke-linecap: round; }
.ehc-studio .s-cord { stroke: rgb(0 0 0 / 0.4); stroke-width: 1.5; }
.ehc-studio .s-leaf { fill: #6E8B5E; }
.ehc-moods { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.ehc-moods button {
	display: inline-flex; align-items: center; gap: 0.5rem; background: transparent; color: inherit;
	border: 1px solid rgb(255 255 255 / 0.25); border-radius: 999px; padding: 0.5rem 0.95rem 0.5rem 0.5rem;
	font: inherit; font-size: 0.85rem; cursor: pointer;
}
.ehc-moods button[aria-pressed="true"] { background: #FAF7F2; color: #1E1C19; border-color: #FAF7F2; }
.ehc-sw { width: 22px; height: 22px; border-radius: 50%; display: inline-block; }
.ehc-note { font-size: 0.85rem; opacity: 0.75; margin-top: 0.75rem; min-height: 1.4em; }

/* Project filters */
.ehc-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.ehc-filters a { border: 1px solid #E3D7C5; border-radius: 999px; padding: 0.5rem 1rem; text-decoration: none; color: inherit; font-size: 0.9rem; }
.ehc-filters a[aria-current] { background: #1E1C19; color: #fff; border-color: #1E1C19; }

/* Mobile quick-contact bar */
.ehc-bar { display: none; }
@media (max-width: 781px) {
	.ehc-bar {
		display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99;
		background: #FAF7F2; border-top: 1px solid #E3D7C5; padding: 0.5rem; gap: 0.5rem;
		padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
	}
	.ehc-bar a { text-align: center; padding: 0.75rem 0.5rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.9rem; color: #1E1C19; border: 1px solid #E3D7C5; }
	.ehc-bar a.is-primary { background: #2F4A3F; color: #fff; border-color: #2F4A3F; }
}
