/* Homepage sections and compact glass contact page. */
#choose-care { padding-block-end: clamp(24px, 5vw, 64px); }
#car-explorer { margin-block-start: 0; }
#services { padding-block-start: 30px; }
#services .filter-service-grid { isolation: isolate; }
.care-panel { min-height: 290px; }
@keyframes care-in {
  from { opacity: .65; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.detailed-inspection .car-canvas {
  background: radial-gradient(ellipse at 50% 34%, #f0f8ff 0%, #bfd1e8 60%, #879ebc 100%);
}
.detailed-inspection .model-poster { filter: none; opacity: 1; object-fit: cover; }
.detailed-inspection .picked-part { margin-top: 12px; }
.detailed-inspection .system-buttons { margin-bottom: 18px; }
.part-library { border-top: 1px solid #bdcde2; padding-top: 16px; margin-top: 18px; }
.part-library p { font-size: .875rem; font-weight: 700; margin-bottom: 8px; }
.part-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.part-buttons button {
  min-height: 40px; padding: 7px 12px; border-radius: 8px;
  background: #f7faff; color: #152640; border: 1px solid #b7cae4; cursor: pointer;
}
.part-buttons button[aria-pressed="true"] { background: #194bd4; color: #fff; border-color: #194bd4; }
.high-contrast .part-buttons button { background: #121c28; color: white; border-color: white; }
.high-contrast .part-buttons button[aria-pressed="true"] { background: white; color: black; }

.contact-page {
  background: radial-gradient(ellipse at 95% 5%, #81adff78, transparent 53%),
              radial-gradient(ellipse at 5% 72%, #8cc7ff68, transparent 53%),
              linear-gradient(150deg, #edf5ff, #fbfdff 62%, #dceaff);
  padding-bottom: clamp(44px, 8vw, 100px);
}
.contact-page .page-heading {
  background: none; color: #101e34; padding: clamp(22px, 5vw, 56px) 0 20px;
  border: 0; min-height: 0;
}
.contact-page .page-heading h1 {
  font-size: clamp(2rem, 4.5vw, 3.65rem); line-height: 1.11; color: inherit;
}
.contact-page .contact {
  display: grid; gap: 20px; align-items: start; padding-block: 0;
}
.contact-page .contact-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; padding: 0; }
.contact-page .contact-message,
.contact-page .contact-grid > section {
  margin: 0; padding: clamp(18px, 3vw, 34px); color: #142542;
  border: 1px solid #fff; border-radius: 19px; background: #ffffffac;
  box-shadow: 0 12px 40px #284c831c, 0 1px 0 #ffffffdb inset;
  backdrop-filter: blur(15px);
  animation: care-in 400ms ease both;
}
.contact-page .contact-message h2,
.contact-page .contact-grid h2 { margin-bottom: 9px; }
.contact-page .contact-grid a { color: #163ea1; }
.contact-page .contact-form input,
.contact-page .contact-form textarea { background: #ffffffba; border-color: #a9bfde; }
.contact-page .contact-form :is(input, textarea):focus-visible { outline: 2px solid #234ed5; outline-offset: 1px; }
.high-contrast .contact-page, .high-contrast .contact-page :is(.contact-message, .contact-grid > section, .page-heading) {
  background: #101522; color: #fff;
}
.high-contrast .contact-page a { color: #cfe1ff; }
.high-contrast .contact-page .button { background: #2444a1; color: white; }
@media (min-width: 780px) {
  .contact-page .contact { grid-template-columns: minmax(0, 1.55fr) minmax(250px, .85fr); gap: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-page .contact-message, .contact-page .contact-grid > section { animation: none; }
}
.reduce-motion :is(.contact-page .contact-message, .contact-page .contact-grid > section) {
  animation: none;
}

.part-motion {
  margin-top: 12px; min-height: 40px; padding: 8px 13px; border-radius: 8px;
  border: 1px solid #a6bbdc; background: white; color: #183b8a; font-weight: 700;
}
/* Keep the model in view while selecting parts on wide screens. */
.detailed-inspection .inspection-selection {
  position: absolute; z-index: 2; inset-block-start: 12px; inset-inline-start: 12px;
  max-width: calc(100% - 24px); padding: 6px 10px; border: 1px solid #b5c7e3;
  border-radius: 6px; background: #f5f9fff0; color: #183c9a;
  font-size: .8125rem; font-weight: 750; pointer-events: none;
}
.part-buttons button { text-wrap: balance; }
.detailed-inspection .car-canvas { scroll-margin-top: 112px; }
@media (min-width: 1000px) {
  .detailed-inspection .viewer { position: sticky; top: 112px; }
  .detailed-inspection .car-canvas { height: clamp(305px, 54vh, 500px); }
}
@media (max-width: 999px) {
  .detailed-inspection .explorer-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .detailed-inspection .car-canvas { height: clamp(280px, 55vw, 430px); }
  .detailed-inspection .system-buttons { margin-bottom: 14px; }
}
html:not(.high-contrast) .contact-page .page-heading { background: transparent; }
.detailed-inspection .picked-part { margin: 0 0 12px; padding: 12px 16px; }
.detailed-inspection .picked-part h4 { margin-bottom: 4px; }

.inspection-pointer {
  position: absolute; z-index: 2; pointer-events: none;
  width: 16px; height: 16px; transform: translate(-50%, -50%);
  border: 2px solid white; border-radius: 50%; background: #0953ec;
  box-shadow: 0 0 0 4px #1756d899, 0 2px 7px #101c33a6;
}
.engine-categories {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px;
}
.engine-categories button {
  min-height: 44px; padding: 6px 11px; color: #23427d;
  border: 1px solid #a5b9d8; border-radius: 30px; background: #f2f7ff; font-weight: 650;
}
.engine-categories button[aria-pressed="true"] {
  color: #fff; background: #1a48b9; border-color: #1a48b9;
}
.part-motion + .part-motion { margin-inline-start: 8px; }
.part-motion[aria-pressed="true"] { background: #e4efff; border-color: #4b70ba; }
.high-contrast .engine-categories button { background: #121c28; color: white; border-color: white; }
.high-contrast .engine-categories button[aria-pressed="true"] { background: white; color: black; }
