/* MarbLayer enquiry + conversion flow. Kept separate from the AI generation CSS. */
:root {
	--mle-charcoal: #1D1D1F;
	--mle-grey: #3E3F43;
	--mle-stone: #D3CAC0;
	--mle-white: #F9F4F2;
	--mle-taupe: #A89D92;
	--mle-soft: #C9BFB4;
}

body.mlv-enquiries-active [data-marblayer-modal] { display: none !important; }
body.mle-modal-open { overflow: hidden !important; }

.mle-modal[hidden] { display: none !important; }
.mle-modal { position: fixed; inset: 0; z-index: 10050; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--mle-charcoal); }
.mle-modal__backdrop { position: absolute; inset: 0; background: rgba(22,24,25,.74); backdrop-filter: blur(5px); }
.mle-modal__panel { position: relative; width: min(900px, calc(100vw - 36px)); max-height: calc(100vh - 40px); overflow: auto; margin: 20px auto; background: #fff; border: 1px solid var(--mle-soft); box-shadow: 0 24px 80px rgba(0,0,0,.28); padding: clamp(24px, 4vw, 46px); }
.mle-modal__close { position: sticky; float: right; top: 0; z-index: 2; width: 42px; height: 42px; border: 1px solid var(--mle-soft); background: #fff; color: var(--mle-charcoal); font-size: 30px; line-height: 1; cursor: pointer; }
.mle-eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--mle-taupe); }
.mle-modal h2 { clear: both; margin: 0 0 12px; font-size: clamp(30px, 4.5vw, 48px); line-height: 1.02; letter-spacing: -.035em; font-weight: 500; }
.mle-intro { max-width: 680px; margin: 0 0 30px; color: var(--mle-grey); font-size: 17px; line-height: 1.6; }
.mle-form h3 { margin: 30px 0 15px; padding-top: 20px; border-top: 1px solid #e6e0da; font-size: 18px; }
.mle-grid { display: grid; gap: 16px 18px; }
.mle-grid--two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.mle-field { display: flex; flex-direction: column; gap: 7px; }
.mle-field label { font-weight: 650; font-size: 14px; }
.mle-field label > span { color: #8d312c; }
.mle-field label small, .mle-field small { color: #706861; font-weight: 400; }
.mle-field input, .mle-field select, .mle-field textarea { width: 100%; min-height: 48px; border: 1px solid var(--mle-soft); border-radius: 2px; background: var(--mle-white); color: var(--mle-charcoal); padding: 11px 13px; font: inherit; }
.mle-field textarea { min-height: 116px; resize: vertical; }
.mle-field input:focus, .mle-field select:focus, .mle-field textarea:focus { outline: 2px solid var(--mle-charcoal); outline-offset: 1px; border-color: var(--mle-charcoal); }
.mle-upload-field { margin-top: 18px; }
.mle-consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin: 24px 0 10px; align-items: start; }
.mle-consent input { width: 18px; height: 18px; margin-top: 3px; }
.mle-consent label { font-size: 13px; line-height: 1.55; color: var(--mle-grey); }
.mle-consent a { text-decoration: underline; }
.mle-disclaimer, .mle-next-step { color: var(--mle-grey); font-size: 13px; line-height: 1.55; }
.mle-form-error { margin: 18px 0 0; padding: 12px 14px; background: #fff0ef; border: 1px solid #d7aaa6; color: #7e201b; }
.mle-submit { width: 100%; margin-top: 18px; border: 1px solid var(--mle-charcoal); border-radius: 999px; background: var(--mle-charcoal); color: var(--mle-white); min-height: 56px; padding: 14px 24px; font: inherit; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.mle-submit:hover { background: #2a2a2d; }
.mle-submit:disabled { opacity: .65; cursor: wait; }
.mle-submit--secondary { max-width: 240px; border-radius: 3px; }
.mle-visual-context { display: grid; grid-template-columns: 1fr 210px; gap: 22px; align-items: center; margin: 24px 0 28px; padding: 18px; background: var(--mle-white); border: 1px solid var(--mle-soft); }
.mle-visual-context__label { display: block; color: var(--mle-taupe); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.mle-visual-context__copy strong { display: block; font-size: 22px; margin-bottom: 8px; }
.mle-visual-context__copy p { margin: 0; color: var(--mle-grey); line-height: 1.5; }
.mle-visual-context img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.mle-success { padding: 18px 0 8px; }
.mle-success p { line-height: 1.65; color: var(--mle-grey); }
.mle-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Safe navigation fit improvements for the MarbLayer theme. */
@media (min-width: 900px) {
	.mlv-enquiries-active .ml-header__row { gap: clamp(.8rem, 1.6vw, 1.5rem); }
	.mlv-enquiries-active .ml-nav { flex: 1 1 auto; justify-content: center; }
	.mlv-enquiries-active .ml-nav ul { gap: clamp(.8rem, 1.7vw, 1.8rem); flex-wrap: nowrap; align-items: center; }
	.mlv-enquiries-active .ml-nav li, .mlv-enquiries-active .ml-nav a { white-space: nowrap; }
	.mlv-enquiries-active .ml-header__brand, .mlv-enquiries-active .ml-header__cta { flex: 0 0 auto; }
}
@media (min-width: 900px) and (max-width: 1180px) {
	.mlv-enquiries-active .ml-logo img { height: 54px; }
	.mlv-enquiries-active .ml-nav a { font-size: .72rem; letter-spacing: .055em; }
	.mlv-enquiries-active .ml-header__cta.ml-btn--primary { padding: .62rem 1rem; }
}

@media (max-width: 680px) {
	.mle-modal__panel { width: calc(100vw - 20px); max-height: calc(100vh - 20px); margin: 10px auto; padding: 22px 18px 28px; }
	.mle-grid--two { grid-template-columns: 1fr; }
	.mle-visual-context { grid-template-columns: 1fr; }
	.mle-visual-context img { max-height: 260px; }
	.mle-modal h2 { font-size: 34px; }
	.mle-intro { font-size: 16px; }
}

/* Mode visibility must always win over component display declarations. */
.mle-visual-context[hidden],
.mle-visual-context img[hidden],
.mle-disclaimer[hidden],
[data-mle-finish-field][hidden] {
	display: none !important;
}
