/* Moved from inline <style> in includes/milltek.vehicle.selector.cfm.

   2026-08-11: the bar was rgb(151,151,151) - a flat mid grey that belongs to
   no brand and, now that the selector sits directly under the carbon hero on
   brand.cfm, read as a scrap of unstyled page wedged between two designed
   ones. Milltek is black, white and a single red accent (the Search button
   below was already #E12828), so the bar is now black with the same vignette
   as the hero and the accent left where it was.

   Also used by milltek.results.cfm, which is the same brand in the same
   context, so the change is wanted in both places. */

  /* Container.

     FULL-BLEED BAND, constrained content. Vertical padding only: the left and
     right gutters come from the .oct-page inside it, which is what the
     brand.cfm hero uses, so the two line up. Adding horizontal padding here as
     well would push this content in past the hero's and the misalignment
     is obvious once they are stacked. No border-radius - it butts against the
     hero and reads as one surface. */
  .milltek-selector {
    padding: 1.5rem 0;
    background-color: #111;
    background-image:
      radial-gradient(circle at center, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .6) 100%),
      repeating-linear-gradient(135deg, #1a1a1a 0px, #1a1a1a 2px, #111 2px, #111 8px);
    box-sizing: border-box;
    font-size: 100%;
    /* .fixedwidth centres its text; the fields and their labels read left. */
    text-align: left;
  }

  /* The bar had no heading at all: four unlabelled dropdowns under a logo,
     with nothing saying what choosing a car would do. */
  .milltek-selector-title {
    display: block;
    width: auto;
    margin: 0 0 1rem;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-align: left;
  }

  .milltek-selector-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
  }

  .milltek-field {
    display: flex;
    flex-direction: column;
    flex: 1 1 180px;
    min-width: 150px;
  }

  .milltek-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .milltek-field select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    font-size: 1rem;
    line-height: 1.4;
    background: #ffffff;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
      linear-gradient(45deg, transparent 50%, #64748b 50%),
      linear-gradient(135deg, #64748b 50%, transparent 50%);
    background-position:
      calc(100% - 18px) 50%,
      calc(100% - 12px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
  }

  .milltek-field select:disabled {
    background-color: #e5e7eb;
    border-color: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
  }

  .milltek-field select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
  }

  .milltek-field--button {
    flex: 0 0 auto;
    min-width: 120px;
  }

  .milltek-field--button button {
    width: 100%;
    padding: 0.65rem 1.25rem;
    border-radius: 4px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    background: #E12828;
    color: #ffffff;
    transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, background 0.1s ease-out;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.25);
  }

  .milltek-field--button button:disabled {
    background: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
  }

  .milltek-field--button button:not(:disabled):hover {
    background: #E12828;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.32);
  }

  .milltek-field--button button:not(:disabled):active {
    transform: translateY(0);
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.25);
  }

  /* Light on the dark bar now - #4b5563 grey on black was close to invisible. */
  .milltek-status {
    margin-top: 0.75rem;
    font-size: 1rem;
    color: #d7dbe0;
    display: none;
  }

  .milltek-status--error {
    color: #ff8f8f;
  }

  /* Mobile: stack nicely */
  @media (max-width: 768px) {
    .milltek-selector {
      padding: 1rem 0;
    }

    .milltek-field {
      flex: 1 1 100%;
    }

    .milltek-field--button {
      margin-top: 0.5rem;
    }
  }
