/* Theme. To restyle, set any --fx-* variable on :root (every feature on the site)
   or on .fx-quote (this feature only). The values here are the defaults. */
.fx-quote {
  --_accent: var(--fx-accent, #d4af37);
  --_accent-hover: var(--fx-accent-hover, #e2c158);
  --_accent-text: var(--fx-accent-text, #000);
  --_text: var(--fx-text, #f5f5f5);
  --_muted: var(--fx-muted, #b8b8b8);
  --_panel: var(--fx-panel, #181818);
  --_field: var(--fx-field, #080808);
  --_border: var(--fx-border, rgba(255,255,255,.35));
  --_demo: var(--fx-demo, #9ad1ff);
  --_font-display: var(--fx-font-display, inherit);
  --_font-body: var(--fx-font-body, inherit);
  --_space: var(--fx-space, 16px);
  --_space-sm: calc(var(--_space) * .5);
  --_space-lg: calc(var(--_space) * 1.5);
  --_radius: var(--fx-radius, 6px);
  --_radius-sm: calc(var(--_radius) * .6);
  font-family: var(--_font-body);
}
/* Quote builder */
.fx-quote { padding: var(--_space); background: var(--_panel); color: var(--_text); border-radius: var(--_radius); scroll-margin-top: var(--fx-header-offset, 76px); }
.fx-quote-title { margin: 0 0 .35em; font-family: var(--_font-display); font-size: clamp(2.1rem, 8vw, 3.2rem); font-weight: var(--fx-heading-weight, 800); line-height: .92; text-transform: var(--fx-heading-case, uppercase); }
.fx-quote-form { margin-bottom: 14px; }
.fx-quote legend, .fx-quote-field label, .fx-quote-label { display: block; margin: 0 0 4px; padding: 0; font-size: .86rem; font-weight: 600; }
.fx-quote-tiles { min-width: 0; margin: 0 0 var(--_space); padding: 0; border: 0; }
.fx-quote-tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--_space-sm); }
.fx-quote-tile { position: relative; display: block; min-width: 0; }
.fx-quote-tile input, .fx-quote-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fx-quote-tile span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 52px;
  padding: 6px;
  border: 1px solid var(--_border);
  border-radius: var(--_radius-sm);
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.fx-quote-tile svg { width: 44px; height: 26px; margin-bottom: 4px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fx-quote-tile input:hover + span { border-color: var(--_text); }
.fx-quote-tile input:checked + span, .fx-quote-seg input:checked + span { background: var(--_accent); border-color: var(--_accent); color: var(--_accent-text); }
.fx-quote-tile input:focus-visible + span, .fx-quote-seg input:focus-visible + span { outline: 3px solid var(--_accent); outline-offset: 2px; }
.fx-quote-field { min-width: 0; margin-bottom: 10px; }
.fx-quote-field select, .fx-quote-field textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px;
  background: var(--_field);
  color: var(--_text);
  border: 1px solid var(--_border);
  border-radius: var(--_radius-sm);
  font: inherit;
}
.fx-quote-seg { display: flex; flex-wrap: wrap; gap: var(--_space-sm); min-width: 0; margin: 0 0 10px; padding: 0; border: 0; }
.fx-quote-seg legend { float: left; width: 100%; }
.fx-quote-seg label { position: relative; flex: 1 1 0; min-width: 0; }
.fx-quote-seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--_border); border-radius: var(--_radius-sm); font-weight: 600; }
.fx-quote-preview { margin: 0 0 var(--_space-sm); padding: 10px 12px; background: var(--_field); border-radius: var(--_radius-sm); font-size: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.fx-quote-hint { margin: 0 0 6px; color: var(--_muted); font-size: .88rem; }
.fx-quote-hint:empty { display: none; }
.fx-quote-call { margin: 0; color: var(--_muted); font-size: .9rem; }
.fx-quote-confirm { margin: 10px 0 0; }
.fx-quote-actions { display: flex; flex-wrap: wrap; gap: var(--_space-sm); margin-top: var(--_space); }
.fx-quote .fx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 40%;
  min-height: 48px;
  padding: 0 var(--_space-sm);
  border-radius: var(--_radius-sm);
  font-family: var(--_font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  text-transform: var(--fx-heading-case, uppercase);
  text-align: center;
  cursor: pointer;
}
.fx-quote .fx-btn-primary { background: var(--_accent); color: var(--_accent-text); }
.fx-quote .fx-btn-primary:hover { background: var(--_accent-hover); }
.fx-quote .fx-btn-outline { background: transparent; color: var(--_text); border: 1px solid var(--_border); }
.fx-quote .fx-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.fx-quote :focus-visible { outline: 3px solid var(--_accent); outline-offset: 2px; }
.fx-quote .fx-ph { padding: .1em .35em; background: #ff2d95; color: #000; border-radius: var(--_radius-sm); font-size: .82rem; font-weight: 600; }

@media (min-width: 900px) {
  .fx-quote { padding: var(--_space-lg); }
  .fx-quote-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--_space); }
  .fx-quote-form > * { grid-column: 1 / -1; }
  .fx-quote-form > .fx-quote-half { grid-column: auto; }
  .fx-quote-tile-grid { grid-template-columns: repeat(5, 1fr); }
}
.fx-quote .fx-demo {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border: 1px dashed var(--_demo);
  border-radius: var(--_radius-sm);
  color: var(--_demo);
  font-family: var(--_font-body);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}
