/* Brochure gate pop-up (src/partials/brochure-gate.html, assets/js/brochure-gate.js) */
.mb-gate-lock, .mb-gate-lock body { overflow: hidden; }
.mb-gate { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 20px; }
.mb-gate[hidden] { display: none; }
.mb-gate__backdrop { position: absolute; inset: 0; background: rgba(20, 12, 6, .62); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s ease; }
.mb-gate__panel { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain;
  padding: 34px 34px 28px; border-radius: 20px; background: #fff; border-top: 6px solid #EC7225; box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  font-family: "DM Sans", sans-serif; color: #2b1a10; opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .25s ease, transform .3s ease; }
.mb-gate.is-open .mb-gate__backdrop { opacity: 1; }
.mb-gate.is-open .mb-gate__panel { opacity: 1; transform: none; }

.mb-gate__x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
  background: #FAF6F2; color: #8D441F; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.mb-gate__x:hover, .mb-gate__x:focus-visible { background: #8D441F; color: #fff; outline: none; }
.mb-gate__x svg { width: 18px; height: 18px; }

.mb-gate__head { display: flex; align-items: center; gap: 12px; margin: 0 44px 16px 0; }
.mb-gate__file { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: #fbe7d6; color: #8D441F; }
.mb-gate__file svg { width: 24px; height: 24px; }
.mb-gate__eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #8D441F; }
.mb-gate__h { margin: 0 0 8px; font: 700 28px/1.2 "Outfit", sans-serif; color: #080A0B; }
.mb-gate__d { margin: 0 0 22px; font-size: 15.5px; line-height: 1.6; color: #5e5e5e; }

.mb-gate__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.mb-gate__field { margin: 0 0 14px; }
.mb-gate__field label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #2b1a10; }
.mb-gate .mb-gate__field input { display: block; width: 100%; height: 52px !important; margin: 0; padding: 0 18px; border: 1.5px solid #ecdfd3; border-radius: 12px; background: #fff;
  font: 400 16px/normal "DM Sans", sans-serif; color: #2b1a10; outline: none; box-shadow: none; transition: border-color .2s ease, box-shadow .2s ease; }
.mb-gate .mb-gate__field input:focus { border-color: #EC7225; box-shadow: 0 0 0 4px rgba(236, 114, 37, .15); }
.mb-gate .mb-gate__field input[aria-invalid="true"] { border-color: #c0392b; }
.mb-gate__err { margin: 0; min-height: 0; font-size: 14px; line-height: 1.5; color: #b03a1a; }
.mb-gate__err:not(:empty) { margin: 2px 0 12px; }

.mb-gate__btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin: 6px 0 0; padding: 16px 24px; border: 0; border-radius: 50px;
  background: #8D441F; color: #fff; font: 600 15px/1 "DM Sans", sans-serif; letter-spacing: .4px; text-transform: uppercase; cursor: pointer; transition: background-color .25s ease; }
.mb-gate__btn:hover, .mb-gate__btn:focus-visible { background: #a3511f; outline: none; }
.mb-gate__btn[disabled] { opacity: .75; cursor: progress; }
.mb-gate__btn svg { width: 18px; height: 18px; }
.mb-gate__note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: #7a7a7a; }
.mb-gate__note a { color: #8D441F; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 575px) {
  .mb-gate { padding: 12px; align-items: end; }
  .mb-gate__panel { padding: 28px 22px 22px; border-radius: 18px; max-height: calc(100vh - 24px); }
  .mb-gate__h { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .mb-gate__backdrop, .mb-gate__panel { transition: none; } }
