/* UI pieces re-created from the source site: enquiry modal, mega-menus, fleet search, car detail drawer, form states.
   Palette = Showroom Miami theme (see showroom-theme.css). */
.mx-layer { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.mx-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.mx-layer.in .mx-backdrop { opacity: 1; }

.mx-modal { position: relative; width: 100%; max-width: 28rem; max-height: calc(100dvh - 2rem); overflow: auto;
  border-radius: 1rem; background: #1c1c1f; color: #f5f2eb; border: 1px solid rgba(245,242,235,.14);
  box-shadow: 0 0 10px rgba(201,168,106,.30), 0 0 20px rgba(201,168,106,.12), 0 40px 120px -30px rgba(0,0,0,.85);
  transform: scale(.95); opacity: 0; transition: transform .2s, opacity .2s; }
.mx-layer.in .mx-modal { transform: none; opacity: 1; }
.mx-head { padding: 1.5rem 1.5rem 1rem; border-bottom: 1px solid rgba(245,242,235,.14); position: relative; }
.mx-eyebrow { font: 700 .7rem/1 Orbitron, monospace; letter-spacing: .2em; text-transform: uppercase; color: #e6cc8e; margin: 0 0 .6rem; }
.mx-title { font: 700 1.5rem/1.15 Orbitron, monospace; margin: 0; }
.mx-sub { margin: .5rem 0 0; color: #b9b3a6; }
.mx-x { position: absolute; top: 1rem; right: 1rem; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid rgba(245,242,235,.14);
  background: transparent; color: #f5f2eb; cursor: pointer; display: grid; place-items: center; }
.mx-x:hover { border-color: #c9a86a; color: #e6cc8e; }
.mx-body { padding: 1.5rem; }
.mx-field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.mx-field label, .mx-label { font: 600 .72rem/1 Orbitron, monospace; letter-spacing: .12em; text-transform: uppercase; color: #b9b3a6; }
.mx-field input, .mx-field textarea, .mx-field select { background: transparent; border: 0; border-bottom: 1px solid rgba(245,242,235,.14);
  padding: .55rem 0; color: #f5f2eb; font: 500 1.05rem Rajdhani, sans-serif; outline: none; color-scheme: dark; }
.mx-field input:focus, .mx-field textarea:focus, .mx-field select:focus { border-color: #c9a86a; }
.mx-alert { margin: 0 0 1rem; padding: .6rem .8rem; border-radius: .5rem; background: rgba(201,168,106,.10); border: 1px solid rgba(201,168,106,.40); color: #e6cc8e; }
.mx-btn { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; padding: .85rem 1rem; border: 0; border-radius: .5rem;
  background-image: linear-gradient(to right, #c9a86a, #e6cc8e); color:#161618; font: 700 .95rem Rajdhani, sans-serif; letter-spacing: .04em;
  cursor: pointer; text-decoration: none; transition: transform .3s, box-shadow .3s; }
.mx-btn:hover { background-image: linear-gradient(to right, #e6cc8e, #c9a86a); transform: scale(1.03); box-shadow: 0 10px 15px -3px rgba(201,168,106,.25); }
.mx-btn.alt { background: transparent; border: 1px solid rgba(245,242,235,.14); color: #f5f2eb; }
.mx-btn.wa { background: #c9a86a; color: #161618; }
.mx-note { text-align: center; color: #b9b3a6; font-size: .85rem; margin: 1rem 0 0; }
.mx-stack { display: flex; flex-direction: column; gap: .75rem; }
.mx-ok { text-align: center; }
.mx-ok .tick { width: 3.4rem; height: 3.4rem; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; background: #c9a86a22; color: #c9a86a; }

/* mega menus (Cars Types / Cars Brands) */
.mx-mega { position: fixed; left: 50%; z-index: 70; max-width: 95vw; padding: 1.25rem; border-radius: 1rem; background: #080808e6; backdrop-filter: blur(18px);
  border: 1px solid rgba(201,168,106,.40); box-shadow: 0 24px 60px -20px rgba(0,0,0,.7); opacity: 0; transform: translate(-50%, 8px); pointer-events: none;
  transition: opacity .28s cubic-bezier(.22,1,.36,1), transform .28s cubic-bezier(.22,1,.36,1); }
.mx-mega.in { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.mx-mega.types { width: 760px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.mx-mega.brands { width: 920px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.mx-mega a { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1rem .5rem; border-radius: .75rem; text-decoration: none;
  color: #f5f2eb; border: 1px solid transparent; transition: border-color .2s, background .2s; }
.mx-mega a:hover { border-color: #c9a86a; background: rgba(201,168,106,.10); }
.mx-mega img { height: 44px; width: auto; max-width: 90px; object-fit: contain; }
.mx-mega .tname { font: 700 .8rem Orbitron, monospace; letter-spacing: .08em; text-align: center; }
.mx-mega .tcount { color: #b9b3a6; font-size: .85rem; }

/* fleet search overlay */
.mx-search { position: fixed; inset: 0; z-index: 85; background: #080808f5; backdrop-filter: blur(14px); overflow: auto; opacity: 0; transition: opacity .25s; }
.mx-search.in { opacity: 1; }
.mx-search .bar { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; }
.mx-search input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid #c9a86a; color: #f5f2eb; font: 700 1.8rem Orbitron, monospace; padding: .8rem 0; outline: none; }
.mx-search .wrap { max-width: 56rem; margin: 0 auto; padding: 1rem 1.5rem 3rem; }
.mx-results { display: grid; gap: .6rem; margin-top: 1.5rem; }
.mx-results a { display: flex; align-items: center; gap: 1rem; padding: .6rem; border-radius: .75rem; border: 1px solid rgba(245,242,235,.14); color: #f5f2eb; text-decoration: none; }
.mx-results a:hover { border-color: #c9a86a; box-shadow: 0 0 10px rgba(201,168,106,.30); }
.mx-results img { width: 96px; height: 64px; object-fit: cover; border-radius: .5rem; }
.mx-results .rn { font: 700 1rem Orbitron, monospace; }
.mx-results .rs { color: #b9b3a6; }

/* car detail drawer */
.mx-drawer { position: relative; width: 100%; max-width: 44rem; max-height: calc(100dvh - 2rem); overflow: auto; border-radius: 1rem; background: #1c1c1f;
  border: 1px solid rgba(245,242,235,.14); box-shadow: 0 0 10px rgba(201,168,106,.30), 0 0 20px rgba(201,168,106,.12); transform: translateY(14px); opacity: 0; transition: transform .25s, opacity .25s; color: #f5f2eb; }
.mx-layer.in .mx-drawer { transform: none; opacity: 1; }
.mx-drawer img.hero { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; border-radius: 1rem 1rem 0 0; }
.mx-drawer ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; color: #b9b3a6; }
.mx-drawer li::before { content: "\25C6"; color: #c9a86a; margin-right: .5rem; font-size: .7rem; }

/* highlight when a card is reached from search / menu */
article.mx-flash { animation: mxflash 1.6s ease-out; }
@keyframes mxflash { 0%,60% { box-shadow: 0 0 0 2px #c9a86a, 0 0 30px #c9a86a99; } 100% { box-shadow: none; } }

/* contact form */
.mx-cc { position: relative; }
.mx-cc-list { position: absolute; z-index: 30; top: 100%; left: 0; width: 14rem; max-height: 14rem; overflow: auto; margin: .3rem 0 0; padding: .3rem; list-style: none;
  background: #1c1c1f; border: 1px solid rgba(245,242,235,.14); border-radius: .6rem; box-shadow: 0 20px 40px -10px #000; }
.mx-cc-list li { padding: .45rem .6rem; border-radius: .4rem; cursor: pointer; color: #f5f2eb; }
.mx-cc-list li:hover { background: rgba(201,168,106,.10); }
.mx-form-msg { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: .5rem; }
.mx-form-msg.err { background: rgba(201,168,106,.10); border: 1px solid rgba(201,168,106,.40); color: #e6cc8e; }
.mx-form-msg.ok { background: #c9a86a1a; border: 1px solid #c9a86a66; color: #e6cc8e; }

@media (max-width: 900px) { .mx-mega { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .mx-modal, .mx-drawer, .mx-mega, .mx-backdrop, .mx-search { transition: none; } article.mx-flash { animation: none; } }
