/*
 * Anemis theme additions. Nothing here overrides a design rule: it only adds
 * states the static design did not need (real quote submission).
 */
.form-result.is-error { background:#fbeee8; color:#8a2c0b; }
.modal-submit[aria-busy="true"] { opacity:.7; cursor:progress; }

/* Inner-page hero entrance: the home hero's hero-fade-up keyframes (styles.css),
   only when motion.js enabled motion (never with prefers-reduced-motion). */
.motion-enabled .inner-hero > .kicker { animation:hero-fade-up 1.05s .05s both cubic-bezier(.22,1,.36,1); }
.motion-enabled .inner-hero > h1 { animation:hero-fade-up 1.25s .14s both cubic-bezier(.22,1,.36,1); }
.motion-enabled .inner-hero > p { animation:hero-fade-up 1.25s .25s both cubic-bezier(.22,1,.36,1); }
.motion-enabled .inner-hero > .hero-actions { animation:hero-fade-up 1.25s .35s both cubic-bezier(.22,1,.36,1); }
.motion-enabled .inner-hero > .inner-hero-bottom { animation:hero-fade-up 1.3s .45s both cubic-bezier(.22,1,.36,1); }

/* Home search: each date is connected to its time (date | time, each with its own title). */
.search-dt { display:flex; align-items:stretch; min-width:0; }
.search-dt__part { display:flex; flex-direction:column; min-width:0; }
.search-dt__date { flex:0 1 auto; padding-right:16px; }
.search-dt__time { position:relative; flex:none; padding-left:16px; }
/* Short, light divider beside the values only: date and time read as one field. */
.search-dt__time::before { content:''; position:absolute; left:0; bottom:1px; width:1px; height:20px; background:#dcded9; }
.search-dt__part label { font-weight:800; letter-spacing:.1px; font-size:13px; margin-bottom:8px; white-space:nowrap; }
.search-dt__time label { color:#8b8d88; font-weight:700; }
.search-dt__value { display:flex; align-items:center; gap:7px; min-width:0; min-height:22px; }
.search-dt__value svg { width:15px; height:15px; flex:none; color:#161716; }
.search-field .search-dt__date input { min-width:0; width:100%; max-width:118px; cursor:pointer; }
.search-field .search-dt__time select { width:auto; }
.search-field .search-dt__time .anemis-select { min-width:62px; }
.search-field.search-field--dt { justify-content:center; }
@media(min-width:921px) {
  .search-form.search-form--time { grid-template-columns:1fr 1fr 1.3fr 1.3fr auto; }
}
/* Narrower desktops: drop the icons so date and time never clip. */
@media(min-width:921px) and (max-width:1240px) {
  .search-dt__value svg { display:none; }
  .search-dt__date { padding-right:12px; }
  .search-dt__time { padding-left:12px; }
}
/* Tablets/phones: each date + time pair gets its own full-width tile. */
@media(max-width:920px) {
  .search-form.search-form--time { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .search-form--time .search-field--dt { grid-column:1/-1; }
  .search-field .search-dt__date input { max-width:none; }
  .search-dt__date { flex:1 1 0; }
}

/* ---- Styled dropdowns (assets/js/select-ui.js; desktop pointers only) ---- */
.anemis-select { position:relative; display:block; min-width:0; }
.anemis-select--time { display:inline-block; }
.anemis-select__native { position:absolute!important; width:1px!important; height:1px!important; opacity:0; pointer-events:none; overflow:hidden; }
.anemis-select__button { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; min-height:22px; margin:0; padding:0; border:0; background:transparent; color:#5b5d59; font:inherit; font-size:14px; line-height:1.3; text-align:left; cursor:pointer; }
.anemis-select__value { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.anemis-select__chev { width:14px; height:14px; flex:none; color:#161716; transition:transform .2s ease; }
.anemis-select.is-open .anemis-select__chev { transform:rotate(180deg); }
.anemis-select__button:focus-visible { outline:2px solid #161716; outline-offset:4px; border-radius:6px; }
.anemis-select__list { position:absolute; z-index:60; top:calc(100% + 14px); left:-14px; min-width:max(calc(100% + 28px), 230px); max-height:360px; overflow-x:hidden; overflow-y:auto; margin:0; padding:6px; list-style:none; background:#fff; border:1px solid #e6e8e4; border-radius:16px; box-shadow:0 24px 60px rgba(20,20,19,.16); outline:none; }
.anemis-select__list.is-right { left:auto; right:-14px; }
.anemis-select__list[hidden] { display:none!important; }
.anemis-select__list [role=option] { position:relative; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 34px 10px 12px; border-radius:10px; color:#161716; font-size:14px; line-height:1.3; white-space:nowrap; cursor:pointer; }
.anemis-select__list [role=option].is-active { background:#f6f7f4; }
.anemis-select__list [role=option].is-selected { font-weight:800; }
.anemis-select__list [role=option].is-selected::after { content:''; position:absolute; right:12px; top:50%; width:10px; height:6px; margin-top:-5px; border:solid #FF551A; border-width:0 0 2px 2px; transform:rotate(-45deg); }
/* Times: a compact grid of chips. */
.anemis-select--time .anemis-select__list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; width:252px; min-width:0; max-height:420px; left:auto; right:-10px; padding:8px; }
.anemis-select--time .anemis-select__list [role=option] { justify-content:center; padding:9px 4px; font-size:13px; font-variant-numeric:tabular-nums; }
.anemis-select--time .anemis-select__list [role=option].is-selected { background:#161716; color:#fff; }
.anemis-select--time .anemis-select__list [role=option].is-selected::after { content:none; }

/* Home search fields: soft highlight on the active field instead of a black focus box. */
.search-field .search-dt__date input:focus { outline:none; }
@media(min-width:921px) {
  /* Hover/focus tint drawn inset, so the straight field dividers stay straight. */
  .search-form--time .search-field { position:relative; isolation:isolate; }
  .search-form--time .search-field::before { content:''; position:absolute; z-index:-1; inset:2px 7px; border-radius:11px; background:transparent; transition:background-color .2s ease; }
  .search-form--time .search-field:hover::before { background:#fafaf8; }
  .search-form--time .search-field:focus-within::before { background:#f6f7f4; }
}
@media(max-width:920px) {
  .search-form--time .search-field:focus-within { background:#eef0ec; }
}

/* Reviews: external widget (shortcode / Elfsight code) in place of the cards. */
.reviews-embed { min-height:120px; }
.reviews-embed > * { max-width:100%; }

/* ---- Phones: burger menu right of "Find your car" ---------------------- */
.menu-toggle__close { display:none; }
@media(max-width:700px) {
  .site-header.shell { position:relative; z-index:40; }
  .site-header .nav-right { gap:8px; }
  .site-header .menu-toggle { display:inline-grid!important; place-items:center; width:42px; height:42px; padding:0; border:1px solid #dcddda; border-radius:50%; background:#fff; color:#161716; flex:none; }
  .site-header .menu-toggle svg { width:20px; height:20px; }
  .site-header .menu-toggle[aria-expanded="true"] { background:#161716; border-color:#161716; color:#fff; }
  .site-header .menu-toggle[aria-expanded="true"] svg:first-child { display:none; }
  .site-header .menu-toggle[aria-expanded="true"] .menu-toggle__close { display:block; }
  .site-header .nav-links { display:none; }
  .site-header .nav-links.open {
    display:flex; flex-direction:column; align-items:stretch; gap:2px;
    position:absolute; top:calc(100% - 6px); left:13px; right:13px; z-index:50;
    margin:0; padding:10px; overflow:visible; max-width:none;
    background:#fff; border:1px solid #e6e8e4; border-radius:18px; box-shadow:0 20px 54px rgba(20,20,19,.16);
  }
  .site-header .nav-links.open a { padding:13px 14px; font-size:15px; border-radius:11px; color:#161716; }
  .site-header .nav-links.open a::after { display:none; }
  .site-header .nav-links.open a[aria-current="page"] { background:#f6f7f4; font-weight:800; }
}

/* ---- Phones: hero badges left-aligned with the text; booking form 16px below the hero ---- */
@media(max-width:600px) {
  .hero-proof { align-self:flex-start; align-items:flex-start; margin:25px 0 18px 24px; }
  .top-rated-badge { justify-content:flex-start; }
  .search-panel { margin-top:16px; }
}

/* ---- Phones: fleet arrows centred on the card height, light instead of near-black ---- */
@media(max-width:600px) {
  .fleet-arrow { top:50%; transform:translateY(-50%); width:38px; height:38px; background:rgba(255,255,255,.92); color:#161716; border:1px solid rgba(22,23,22,.08); box-shadow:0 8px 20px rgba(20,20,19,.16); }
  .fleet-arrow:hover:not(:disabled) { background:#fff; }
  .fleet-arrow svg { width:20px; height:20px; }
}

/* Home search button: pill shape like the site's other buttons. */
.search-form--time .search-btn { border-radius:12px; }

/* No divider between the last field (Return date | Time) and the search button. */
.search-form--time > .search-field:last-of-type { border-right:0; }
