/* Build Your System, Tesla package, Add-On Planner, reserve modal.
   Tokens come from each site's style.css. Do not invent colors. */
.ams-flow { padding: 48px 0 96px; }
@media (min-width: 761px) { .ams-flow { padding: 80px 0; } }

.ams-flow h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.75rem, 5vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 12px;
}
.ams-flow .lead { color: var(--muted); max-width: 46rem; margin: 0 0 28px; }

.ams-progress {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 28px;
}
.ams-progress button {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.ams-progress button.is-on {
  color: var(--text);
  border-color: var(--accent);
}
.ams-progress button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.ams-panel { display: none; }
.ams-panel.is-on { display: block; }

.ams-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 761px) {
  .ams-tiles { grid-template-columns: repeat(3, 1fr); }
  .ams-tiles--4 { grid-template-columns: repeat(4, 1fr); }
}

.ams-tile {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 16px;
  color: var(--text);
  cursor: pointer;
  min-height: 108px;
}
.ams-tile small { display: block; color: var(--muted); margin-top: 8px; font-size: .9rem; }
.ams-tile[aria-pressed="true"] {
  border-color: var(--accent);
  outline: 1px solid var(--accent);
}
.ams-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ams-tile--call small { color: var(--muted); }

.ams-zones {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 761px) {
  .ams-zones { grid-template-columns: repeat(2, 1fr); }
}

.ams-zone {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 16px;
}
.ams-zone.is-chosen {
  border-style: solid;
  border-color: #F5F5F5;
  outline: 1px solid rgba(255,255,255,.35);
}
.ams-zone.is-factory {
  border-style: solid;
  border-color: var(--muted);
}
.ams-zone.is-prewired {
  border-style: dashed;
  border-color: #C5CAD0;
}
.ams-zone h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 10px;
}
.ams-zone .ams-opts { display: flex; flex-direction: column; gap: 6px; }
.ams-zone label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--text);
  cursor: pointer;
}
.ams-zone label span { color: var(--muted); font-size: .85rem; display: block; }

.ams-recap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}
.ams-recap ul { margin: 0 0 18px; padding-left: 1.1rem; color: var(--text); }
.ams-recap li { margin: 0 0 8px; }
.ams-note {
  color: var(--muted);
  font-size: .95rem;
  margin: 0 0 18px;
}

.ams-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.ams-sil {
  width: 100%;
  height: 56px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: linear-gradient(180deg, #1a1a1a, #0e0e0e);
  position: relative;
}
.ams-sil::after {
  content: "";
  position: absolute;
  inset: 18px 22% 14px;
  border: 1px solid rgba(197,202,208,.35);
  border-radius: 2px 10px 2px 2px;
}

.ams-modal[hidden] { display: none; }
.ams-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0,0,0,.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}
@media (min-width: 761px) {
  .ams-modal { align-items: center; }
}
.ams-modal__card {
  width: min(520px, 100%);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 20px 24px;
  max-height: 90svh;
  overflow: auto;
}
.ams-modal__card h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin: 0 0 8px;
}
.ams-modal .hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}
.ams-modal .field { margin: 0 0 12px; }
.ams-modal label { display: block; font-size: .85rem; font-weight: 600; margin: 0 0 4px; }
.ams-modal input, .ams-modal textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}
.ams-modal textarea { min-height: 72px; }
.ams-modal .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ams-planner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 901px) {
  .ams-planner-grid { grid-template-columns: 1.1fr .9fr; }
}
.ams-check {
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  margin: 0 0 8px;
}
.ams-warn {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: .95rem;
}
.shop-hero--simulator {
  min-height: auto;
  align-items: stretch;
}
.shop-hero--simulator .shop-hero__copy { max-width: 40rem; padding-top: 48px; }
.shop-hero--simulator [data-shade-preview] { padding-bottom: 72px; }
.ams-flow input[type="text"],
.ams-flow textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}
.ams-flow .field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin: 0 0 4px;
}
