/* Working forms on Dan's home (inc/dan-forms.php, dan/dan-forms.js). Dan's own look comes from dan.css; this only adds
   what his preview did not have: checkbox groups, the stop chain, status lines, the apply note. */

/* Dan's .ats-question sets display:flex, which beats the browser's [hidden] rule. */
#ba10 .ats-single-itinerary [hidden],#ba10 .dan-forms-hp{display:none!important}

/* Extra widths on Dan's itinerary grid (12 columns wide, 6 under 850px, 2 under 620px, 1 under 360px). */
#ba10 .ats-itinerary-page .ats-question.it-w6{grid-column:span 6}
#ba10 .ats-itinerary-page .ats-question.it-w8{grid-column:span 8}
#ba10 .ats-itinerary-page .ats-question.it-w9{grid-column:span 9}
#ba10 .ats-itinerary-page .ats-question.it-w12{grid-column:1/-1}
@container(max-width:850px){#ba10 .ats-itinerary-page .ats-question:is(.it-w6,.it-w8,.it-w9){grid-column:span 6}}
@container(max-width:620px){#ba10 .ats-itinerary-page .ats-question:is(.it-w6,.it-w8,.it-w9){grid-column:span 2}}
@container(max-width:360px){#ba10 .ats-itinerary-page .ats-question:is(.it-w6,.it-w8,.it-w9){grid-column:auto}}
/* A label that wraps to two lines must not lift its input above the others in the row. */
#ba10 .ats-itinerary-page .ats-question>:is(input,select){margin-top:auto}

/* Checkbox and radio groups inside a question tile. */
#ba10 .dan-forms-choice{margin:0;min-inline-size:0}
#ba10 .dan-forms-choice>legend{float:left;width:100%;padding:0;margin:0 0 6px}
#ba10 .dan-forms-options{clear:both;display:flex;flex-wrap:wrap;gap:6px}
#ba10 .dan-forms-options label{display:flex;align-items:center;gap:6px;min-height:34px;padding:5px 9px;background:#f8faff;border:1px solid #cbd6e5;border-radius:5px;font:400 12px/1.3 'DM Sans',Arial,sans-serif;color:#142746;cursor:pointer}
#ba10 .ats-question .dan-forms-options input{flex:none;width:16px;min-width:0;height:16px;min-height:0;margin:0;padding:0;accent-color:#142d57}
#ba10 .dan-forms-options label:has(input:focus-visible){outline:2px solid #507dbb;outline-offset:1px}
#ba10 .dan-forms-type input[name=tripTypeOther]{margin-top:6px}
@media(pointer:coarse){#ba10 .dan-forms-options label{min-height:44px}}

/* Itinerary vehicle types: small chips in one row where they fit (they wrap when the tile is narrower), several can be on (the checkbox is inside the chip, visually hidden).
   Dan's input colours; a chosen chip takes his dark blue. */
#ba10 .dan-forms-chips{flex-wrap:wrap;gap:6px}
#ba10 .dan-forms-chips label.dan-forms-chip{position:relative;min-height:28px;padding:4px 11px;border-radius:999px;white-space:nowrap;font-size:12px;line-height:1.2}
#ba10 .ats-question .dan-forms-chips .dan-forms-chip input{position:absolute;opacity:0;width:1px;height:1px;min-height:0;padding:0;pointer-events:none}
#ba10 .dan-forms-chips .dan-forms-chip:has(input:checked){background:#142d57;border-color:#142d57;color:#fff}
#ba10 .dan-forms-chips .dan-forms-chip:has(input:checked) span::before{content:'✓ '}
#ba10 .dan-forms-chips .dan-forms-chip:has(input:checked) span{text-shadow:none}
/* On a phone (2 columns) the final-stop question and the notes get a full row instead of an odd half next to another field. */
@container(max-width:620px){#ba10 .ats-itinerary-page .ats-question.dan-forms-wide-sm{grid-column:1/-1}}
@media(pointer:coarse){#ba10 .dan-forms-chips label.dan-forms-chip{min-height:40px}}

/* Status lines under a form (itinerary, contact) and under the quote planner. */
#ba10 .dan-forms-status{margin:12px 0 0;padding:10px 14px;border-radius:7px;border-left:4px solid #1f7a4d;background:#eef8f2;color:#123d28;font:400 13px/1.5 'DM Sans',Arial,sans-serif}
#ba10 .dan-forms-status.is-error{border-left-color:#bb1734;background:#fdf0f2;color:#5c0d1c}
#ba10 .dan-forms-status a{color:inherit;font-weight:600}
#ba10 .r2-planner .dan-forms-status{border-left-color:#bb1734;background:#f2f6fc;color:#17365d;text-align:left}
#ba10 .ats-primary[aria-busy=true]{opacity:.7;cursor:progress}


/* Careers. */
#ba10 .ats-careers-cta a.ats-apply{text-decoration:none}
/* The note sits on the photo: dark text on a light backing so it reads, and the Indeed link never splits (own line on phones). */
#ba10 .dan-forms-apply-note{display:inline-block;margin-top:10px;padding:6px 12px;border-radius:7px;background:rgb(245 247 252 / 92%);
  font:400 13px/1.5 'DM Sans',Arial,sans-serif;color:#142746;text-shadow:none}
#ba10 .dan-forms-apply-note a{color:#ae1736;font-weight:600;margin-left:4px;white-space:nowrap}
@media(max-width:600px){#ba10 .dan-forms-apply-note a{display:block;margin-left:0}}

/* The itinerary form shows Google's reCAPTCHA notice in text, which Google allows in place of the floating badge. */
.grecaptcha-badge{visibility:hidden}

/* Form inputs of the Build-your-trip planner and the contact form (not the itinerary, which keeps Dan's compact 34px
   inputs in his DM Sans; owner 2026-11-26): the live booking page's input type (busamerican.com/book-charter-bus/,
   computed style read 2026-11-26): "Open Sans" stack, 14px/1.4, 46px tall, placeholder rgb(100,100,100) at 14px.
   16px under 680px so iOS does not zoom. Labels, borders, radius and colours stay Dan's. */
#ba10[data-theme] .sg-journey .r2-planner .r2-field :is(input,select),
#ba10[data-theme] .ats-contact-field :is(input,textarea){font:400 14px/1.4 "Open Sans",-apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:normal}
#ba10[data-theme] .sg-journey .r2-planner .r2-field :is(input,select),
#ba10[data-theme] .ats-contact-field input{min-height:46px;padding-block:10px}
#ba10[data-theme] .sg-journey .r2-planner .r2-field input::placeholder,
#ba10[data-theme] .ats-contact-field :is(input,textarea)::placeholder{color:rgb(100 100 100);font-size:14px;opacity:1}
@media(max-width:680px){
 #ba10[data-theme] .sg-journey .r2-planner .r2-field :is(input,select),
 #ba10[data-theme] .ats-contact-field :is(input,textarea),
 #ba10[data-theme] .sg-journey .r2-planner .r2-field input::placeholder,
 #ba10[data-theme] .ats-contact-field :is(input,textarea)::placeholder{font-size:16px}
}

/* Vehicle Type: Dan's input look (same border, radius, font) with our chevron in place of the native arrow; a long name
   ends in "..." instead of being cut. */
#ba10[data-theme] .sg-journey .r2-planner .r2-field select{appearance:none;-webkit-appearance:none;padding-right:36px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23142746' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:12px 8px}

/* Build your trip panel. Dan's offset frame behind the card (.sg-planner:before) read as a second white border. */
#ba10 .sg-journey .sg-planner::before{content:none}
#ba10 .sg-journey .r2-field{gap:6px}

/* Google Places suggestions (appended to <body>, outside #ba10): above Dan's layers, in the input font. */
.pac-container{z-index:10050;font-family:"Open Sans",-apple-system,BlinkMacSystemFont,sans-serif}

/* "* Required fields... reCAPTCHA" under the itinerary sat on the photo; give it its own readable backing. */
#ba10[data-theme] .ats-itinerary-page .ats-itinerary-bottom>span{padding:8px 12px;border:1px solid rgb(204 215 228);border-radius:7px;
  background:rgb(245 247 252 / 94%);color:#142746;font-size:12px;line-height:1.5;text-shadow:none}
#ba10[data-theme] .ats-itinerary-page .ats-itinerary-bottom>span a{color:inherit}
/* At phone width half a row is too narrow for "VIP Executive Coach" at 16px: passengers and vehicle get a row each. */
@media(max-width:480px){#ba10 .sg-journey .r2-planner .r2-field:has(> [name=passengers],> select){grid-column:1/-1}}

/* Home stage: the picker card gets the planner's border and shadow so the two cards' edges match.
   Dan's orbit ellipse behind the bus keeps his size, place and tilt (dan.css .sg-journey .r2-orbit-decoration). His file
   defines the turn (r2-orbit, 24s linear) but only under [data-playing=true], which nothing in dan.js sets; here it runs
   with his keyframes and speed (owner 2026-11-26; reduced motion still stops it through Dan's own rule). The ring is wider
   than the card, so the card clips it (overflow:clip): no thin line past the card edge at any angle. The tiles touch the
   card edge, so their focus ring is drawn inside the tile to stay visible under the clip. */
#ba10 .sg-journey .r2-orbit-decoration{animation:r2-orbit 24s linear infinite}
#ba10[data-theme] .sg-journey .r2-fleet{border:1px solid rgb(204 215 228);box-shadow:0 14px 38px #14284612,0 2px 6px #14284605;overflow:clip}
#ba10 .sg-journey .r2-fleet :focus-visible{outline-offset:-3px}

/* Online Payments: a twin of Dan's thank-you card, from his own classes in dan.css (.ats-payments-poster and its logo,
   message and invitation). Here only what a <form> needs: his figcaption layout on our caption div, and his first-line
   style (.ats-payments-poster-message > span) on our <h2>, which Dan's page-heading rules would otherwise restyle. */
#ba10 .ats-payments-layout{align-items:stretch;grid-auto-rows:1fr}
#ba10 .dan-forms-pay-card .dan-forms-pay-caption{display:grid;gap:clamp(13px,1.5cqw,20px);width:100%}
#ba10[data-theme] .ats-payments-page .dan-forms-pay-card .ats-payments-poster-message>h2{display:block;margin:0 0 .4em;padding:0;
  font:inherit;font-size:clamp(22px,2.65cqw,36px);line-height:1.22;letter-spacing:inherit;color:inherit;text-shadow:none;
  background:none;-webkit-text-fill-color:currentColor}
#ba10 .dan-forms-pay-card>.ats-primary{min-height:50px;padding:14px 28px;font-size:14px;gap:18px;text-decoration:none}

/* Itinerary dropdowns (inc/dan-forms.php ats_dan_forms_ctl(), dan-forms.js "Itinerary dropdowns"). Closed: a read-only
   input that takes Dan's itinerary input rules unchanged (height, border, radius, font, colours, padding); only the native
   arrow or date/time icon becomes ours. Open: one panel below the field at its width, in Dan's tokens (white, his line
   colour, his navy/red, his field font). Owner 2026-11-28: only the dropdowns change, the rest stays Dan's. */
#ba10 .ats-itinerary-page .ats-question>.dan-ctl{position:relative;margin-top:auto;min-width:0}
#ba10[data-theme] .ats-itinerary-page .ats-question input.dan-ctl-trigger{padding-right:30px;cursor:pointer;text-overflow:ellipsis;
  background-repeat:no-repeat;background-position:right 9px center;background-size:12px 12px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.2l4 4 4-4' fill='none' stroke='%23142846' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
#ba10[data-theme] .ats-itinerary-page .ats-question .dan-ctl[data-kind=date] input.dan-ctl-trigger{background-size:13px 13px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23142846' stroke-width='1.3' stroke-linecap='round'%3E%3Crect x='1.5' y='2.5' width='11' height='10' rx='1.5'/%3E%3Cpath d='M1.5 5.5h11M4.5 1v2.5M9.5 1v2.5'/%3E%3C/svg%3E")}
#ba10[data-theme] .ats-itinerary-page .ats-question .dan-ctl[data-kind=time] input.dan-ctl-trigger{background-size:13px 13px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23142846' stroke-width='1.3' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5.5'/%3E%3Cpath d='M7 4v3.2l2.1 1.3'/%3E%3C/svg%3E")}
/* The empty "Select" / "mm/dd/yyyy" reads like the native control's text, not like a grey hint. */
#ba10[data-theme] .ats-itinerary-page .ats-question input.dan-ctl-trigger::placeholder{color:inherit}
#ba10[data-theme] .ats-itinerary-page .ats-question input.dan-ctl-trigger[aria-invalid=true]{border-color:var(--light-accent,#ae1736)}
/* The open tile sits above its neighbours so the panel is never covered. */
#ba10 .ats-itinerary-page .ats-question:has(.dan-ctl.is-open){position:relative;z-index:30}
#ba10 .dan-ctl-pop{position:absolute;z-index:40;top:calc(100% + 4px);left:0;right:0;box-sizing:border-box;padding:4px;
  background:#fff;border:1px solid var(--light-line,#ccd7e4);border-radius:9px;box-shadow:0 12px 28px #14284624,0 2px 6px #1428460d;
  font:400 12px/1.35 'DM Sans',Arial,sans-serif;color:var(--light-ink,#142846);text-align:left;text-shadow:none}
#ba10 .dan-ctl-pop[hidden]{display:none!important}
#ba10 .dan-ctl-list{list-style:none;margin:0;padding:0;max-height:236px;overflow-y:auto;overscroll-behavior:contain}
#ba10 .dan-ctl-option{display:flex;align-items:center;gap:8px;min-height:32px;padding:6px 8px;border-radius:5px;cursor:pointer;font-variant-numeric:tabular-nums}
#ba10 .dan-ctl-option:hover,#ba10 .dan-ctl-option.is-active{background:var(--light-tint,#eaf0f7)}
#ba10 .dan-ctl-option[aria-selected=true]{font-weight:600;color:#142d57}
#ba10 .dan-ctl-option[aria-selected=true]::after{content:'';margin-left:auto;width:12px;height:12px;flex:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3l2.6 2.6L10 3.4' fill='none' stroke='%23ae1736' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat}
/* Date: Dan-blue month grid at the field's width (never narrower than a usable grid). */
#ba10 .dan-ctl-pop.dan-dp{min-width:252px;padding:8px}
#ba10 .dan-dp-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:4px}
#ba10 .dan-dp-title{font-weight:600;font-size:13px}
#ba10 .dan-dp-nav{display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid var(--light-line,#ccd7e4);border-radius:5px;background:#fff;color:var(--light-ink,#142846);cursor:pointer}
#ba10 .dan-dp-nav:hover:not(:disabled){background:var(--light-tint,#eaf0f7)}
#ba10 .dan-dp-nav:disabled{opacity:.35;cursor:default}
#ba10 .dan-dp-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
#ba10 .dan-dp-dow{padding:4px 0;text-align:center;font-size:11px;font-weight:600;color:var(--light-muted,#465a73)}
#ba10 .dan-dp-day{height:32px;padding:0;border:0;border-radius:5px;background:transparent;color:var(--light-ink,#142846);font:500 12px/1 'DM Sans',Arial,sans-serif;cursor:pointer}
#ba10 .dan-dp-day:hover:not(:disabled){background:var(--light-tint,#eaf0f7)}
#ba10 .dan-dp-day:disabled{visibility:hidden}
#ba10 .dan-dp-day.is-today{box-shadow:inset 0 0 0 1px var(--light-control-line,#71849b)}
#ba10 .dan-dp-day[aria-selected=true]{background:#142d57;color:#fff;font-weight:700}
#ba10 .dan-dp-day:focus-visible,#ba10 .dan-dp-nav:focus-visible,#ba10 .dan-dp-link:focus-visible{outline:2px solid var(--light-focus,#195ea0);outline-offset:1px}
#ba10 .dan-dp-foot{display:flex;justify-content:space-between;margin-top:4px;padding-top:4px;border-top:1px solid var(--light-line,#ccd7e4)}
#ba10 .dan-dp-link{padding:5px 4px;border:0;background:none;color:var(--light-focus,#195ea0);font:600 12px 'DM Sans',Arial,sans-serif;cursor:pointer}
#ba10 .dan-ctl-error{margin:4px 0 0;font-size:12px;line-height:1.35;color:var(--light-accent,#ae1736)}
@media(max-width:680px){#ba10 .dan-ctl-pop,#ba10 .dan-dp-day{font-size:16px}#ba10 .dan-ctl-option,#ba10 .dan-dp-day{min-height:40px;height:auto}#ba10 .dan-dp-day{height:40px}}

/* Google's address suggestions on the itinerary (dan-forms.js tags its own .pac-container dan-it-pac; it is appended to
   <body>, outside #ba10, so the tokens are written out). Google places it under the field at the field's width. */
.pac-container.dan-it-pac{margin-top:4px;padding:4px 4px 0;border:1px solid #ccd7e4;border-radius:9px;box-shadow:0 12px 28px #14284624,0 2px 6px #1428460d;
  background:#fff;font:400 12px/1.35 'DM Sans',Arial,sans-serif;color:#142846}
.pac-container.dan-it-pac .pac-item{padding:5px 8px;border:0;border-radius:5px;font-size:12px;line-height:22px;color:#465a73;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.pac-container.dan-it-pac .pac-item:hover,.pac-container.dan-it-pac .pac-item-selected{background:#eaf0f7}
.pac-container.dan-it-pac .pac-item-query{font-size:12px;color:#142846;padding-right:4px}
.pac-container.dan-it-pac .pac-matched{font-weight:700}
.pac-container.dan-it-pac .pac-icon{margin:0 6px 0 0;vertical-align:-3px}
.pac-container.dan-it-pac::after{margin:2px -4px 0;border-top:1px solid #ccd7e4;background-position:right 8px center;height:22px}
@media(max-width:680px){.pac-container.dan-it-pac .pac-item,.pac-container.dan-it-pac .pac-item-query{font-size:16px}.pac-container.dan-it-pac .pac-item{line-height:30px}}
#ba10 .dan-ctl-pop.is-end{left:auto;right:0}

/* ---------- Every itinerary list in the live Google-list style (owner 2026-11-28), same tokens as the hero card
   (dan/dan-hero-booking.css) and the booking page's .pac-container / .pac-item: white, radius 8px, soft shadow, rows about
   42px, light-blue hover, "Open Sans" stack 13px. The chosen row is navy with a small red check. */
#ba10 .dan-ctl-pop{padding:6px;border:1px solid rgba(15,25,60,.08);border-radius:8px;box-shadow:0 16px 48px rgba(15,25,60,.22);font:400 13px/1.4 "Open Sans",-apple-system,BlinkMacSystemFont,sans-serif;color:#0f193c}
#ba10 .dan-ctl-option{min-height:42px;box-sizing:border-box;padding:10px 12px;border-radius:6px;color:#0f193c;transition:background .15s ease}
#ba10 .dan-ctl-option:hover,#ba10 .dan-ctl-option.is-active{background:#dbeafe}
#ba10 .dan-ctl-option[aria-selected=true]{font-weight:600;color:#0f193c}
#ba10 .dan-ctl-option[aria-selected=true]::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3l2.6 2.6L10 3.4' fill='none' stroke='%23b8151d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
#ba10 .dan-ctl-list{max-height:252px}
/* Calendar: bold navy month centred between round arrows, small muted caps weekdays, round day cells; today a thin red
   ring, the chosen day solid navy. Hidden unavailable days and no blank weeks stay as before. */
#ba10 .dan-ctl-pop.dan-dp{min-width:272px;padding:10px}
#ba10 .dan-dp-title{flex:1;text-align:center;font:700 14px/1.2 "Open Sans",-apple-system,BlinkMacSystemFont,sans-serif;color:#0f193c}
#ba10 .dan-dp-nav{width:32px;height:32px;border-radius:50%;border-color:#e2e8f0;color:#0f193c}
#ba10 .dan-dp-nav:hover:not(:disabled){background:#dbeafe;border-color:#dbeafe}
#ba10 .dan-dp-grid{gap:2px 0;justify-items:center}
#ba10 .dan-dp-dow{font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:#64748b}
#ba10 .dan-dp-day{width:36px;height:36px;border-radius:50%;font:500 13px/1 "Open Sans",-apple-system,BlinkMacSystemFont,sans-serif;color:#0f193c}
#ba10 .dan-dp-day:hover:not(:disabled){background:#dbeafe}
#ba10 .dan-dp-day.is-today{box-shadow:inset 0 0 0 1.5px #b8151d}
#ba10 .dan-dp-day[aria-selected=true]{background:#0f193c;color:#fff;box-shadow:none}
#ba10 .dan-dp-foot{border-top-color:#eef2f7;justify-content:flex-end}
#ba10 .dan-dp-link{color:#0f193c;text-decoration:underline;text-underline-offset:3px}
@media(max-width:680px){#ba10 .dan-ctl-pop,#ba10 .dan-dp-day{font-size:15px}#ba10 .dan-ctl-option{min-height:44px}#ba10 .dan-dp-day{height:40px;width:40px}}
/* Google's own list on the itinerary addresses, in the booking page's values (red pin, 42px rows, light-blue hover). */
.pac-container.dan-it-pac{margin-top:6px;padding:6px 6px 0;border:1px solid rgba(15,25,60,.08);border-radius:8px;box-shadow:0 16px 48px rgba(15,25,60,.22);
  font:400 13px/1.4 "Open Sans",-apple-system,BlinkMacSystemFont,sans-serif}
.pac-container.dan-it-pac .pac-item{display:flex;align-items:center;min-height:42px;box-sizing:border-box;padding:10px 12px;border-radius:6px;font-size:13px;line-height:1.4;color:#64748b}
.pac-container.dan-it-pac .pac-item:hover,.pac-container.dan-it-pac .pac-item-selected{background:#dbeafe}
.pac-container.dan-it-pac .pac-item-query{font-size:14px;font-weight:700;color:#0f193c;padding-right:6px}
.pac-container.dan-it-pac .pac-matched{font-weight:700;color:#b8151d}
.pac-container.dan-it-pac .pac-icon{flex:0 0 16px;width:16px;height:20px;margin:0 10px 0 0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8 2 5 5 5 9c0 5 7 13 7 13s7-8 7-13c0-4-3-7-7-7zm0 9.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5z' fill='%23b8151d'/%3E%3C/svg%3E") center/contain no-repeat}
.pac-container.dan-it-pac .pac-item > span:not(.pac-icon){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* The place name keeps its room (up to 80%); the rest of the address takes what is left and is cut first. */
.pac-container.dan-it-pac .pac-item > .pac-item-query{flex:0 1 auto;max-width:80%}
.pac-container.dan-it-pac .pac-item > span:last-child:not(.pac-item-query){flex:1 1 0}
.pac-container.dan-it-pac::after{margin:4px -6px 0;border-top:1px solid #eef2f7}
@media(max-width:680px){.pac-container.dan-it-pac .pac-item,.pac-container.dan-it-pac .pac-item-query{font-size:15px}}
/* Itinerary fields: no blue box on focus (owner 2026-11-28); a thin navy border, which also shows the keyboard focus. */
#ba10[data-theme] .ats-itinerary-page .ats-question :is(input,select,textarea):is(:focus,:focus-visible),#ba10[data-theme] .ats-itinerary-page .ats-question .dan-ctl.is-open input.dan-ctl-trigger{outline:none;box-shadow:none;border-color:#0f193c}

/* Browser autofill paints fields light blue: keep the itinerary fields white with the normal text colour (owner 2026-11-28). */
#ba10 #ats-itinerary-form :is(input,textarea):is(:-webkit-autofill,:autofill),
#ba10 #ats-itinerary-form :is(input,textarea):is(:-webkit-autofill,:autofill):focus{
  -webkit-box-shadow:0 0 0 1000px #fff inset;box-shadow:0 0 0 1000px #fff inset;-webkit-text-fill-color:#142846;caret-color:#142846;transition:background-color 99999s}

/* Address rows like the live list (owner 2026-11-28): pin | place name | the rest of the address from about half the row,
   one line each; on a phone the address goes under the name. Overrides the flex layout above. */
.pac-container.dan-it-pac .pac-item{display:grid;grid-template-columns:16px minmax(0,1fr) minmax(0,1fr);column-gap:10px;align-items:center}
.pac-container.dan-it-pac .pac-item > .pac-item-query{max-width:none}
.pac-container.dan-it-pac .pac-icon{margin:0}
@media(max-width:680px){
  .pac-container.dan-it-pac .pac-item{grid-template-columns:16px minmax(0,1fr);row-gap:1px}
  .pac-container.dan-it-pac .pac-icon{grid-row:1/3}
  .pac-container.dan-it-pac .pac-item > span:last-child:not(.pac-item-query){grid-column:2}
}
/* Empty date and time fields: a muted "Select date" / "Select time" like the live booking page (owner 2026-11-28). */
#ba10[data-theme] .ats-itinerary-page .ats-question .dan-ctl:is([data-kind=date],[data-kind=time]) input.dan-ctl-trigger::placeholder{color:rgb(100 100 100)}

/* ---------- Itinerary date and time like the live booking page (owner 2026-11-28) ---------- */
#ba10[data-theme] .ats-itinerary-page .ats-question .dan-ctl:is([data-kind=date],[data-kind=time]) input.dan-ctl-trigger{padding-left:32px;padding-right:8px;background-position:left 10px center}
#ba10 .dan-dp-head{margin-bottom:8px}
#ba10 .dan-dp-nav{width:24px;height:24px;border-radius:4px;border:0;background:#0f193c;color:#fff}
#ba10 .dan-dp-nav:hover:not(:disabled){background:#1e2c5a;border:0}
#ba10 .dan-dp-nav:disabled{opacity:.25}
#ba10 .dan-dp-title{display:flex;gap:8px;justify-content:center}
#ba10 .dan-dp-title select{appearance:none;-webkit-appearance:none;border:0;background:transparent no-repeat right 0 center/8px 5px;padding:2px 12px 2px 2px;
  font:700 13.5px/1.2 "Open Sans",-apple-system,BlinkMacSystemFont,sans-serif;color:#0f193c;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M0 0h8L4 5z' fill='%2364748b'/%3E%3C/svg%3E")}
#ba10 .dan-dp-grid{gap:3px;justify-items:stretch}
#ba10 .dan-dp-dow{font-size:10.5px;font-weight:700;letter-spacing:.04em}
#ba10 .dan-dp-day{width:auto;height:32px;border-radius:6px;background:#f4f6f9}
#ba10 .dan-dp-day:hover:not(:disabled){background:#dbeafe}
#ba10 .dan-dp-day.is-today{box-shadow:none;background:#e2e8f0;font-weight:700}
#ba10 .dan-dp-day[aria-selected=true]{background:#0f193c;color:#fff;font-weight:700;border-radius:6px}
#ba10 .dan-ctl-pop.dan-tp{right:auto;width:150px;display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px}
#ba10 .dan-tp .dan-ctl-list{width:100%;max-height:204px;border:1px solid #e2e8f0;border-radius:6px;scrollbar-width:none}
#ba10 .dan-tp .dan-ctl-list::-webkit-scrollbar{display:none}
#ba10 .dan-tp .dan-ctl-option{min-height:34px;padding:7px 8px;border-radius:0;justify-content:center}
#ba10 .dan-tp .dan-ctl-option + .dan-ctl-option{border-top:1px solid #eef2f7}
#ba10 .dan-tp .dan-ctl-option[aria-selected=true]{background:#0f193c;color:#fff;font-weight:700}
#ba10 .dan-tp .dan-ctl-option[aria-selected=true]::after{content:none}
#ba10 .dan-tp-scroll{flex:0 0 auto;width:30px;height:22px;border:0;border-radius:4px;background:#0f193c;color:#fff;display:grid;place-items:center;cursor:pointer;padding:0}
@media(max-width:680px){#ba10 .dan-dp-day{height:38px;width:auto}#ba10 .dan-tp .dan-ctl-option{min-height:40px}}

/* ---------- Owner change #19 (2026-11-28): the itinerary's controls match the hero card. Fields, order, labels and
   layout stay Dan's; only the text inside the fields, placeholders, the time list height and the panel motion change. ---------- */
/* Typed values and placeholders in the hero card's input type: Inter (loaded with the hero card; the system font when the
   hero is off), 14px (16px on a phone so iOS does not zoom), placeholder grey rgb(100,100,100). */
#ba10[data-theme] .ats-itinerary-page .ats-question :is(input,textarea){font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;font-size:14px;letter-spacing:normal}
#ba10[data-theme] .ats-itinerary-page .ats-question :is(input,textarea)::placeholder{color:rgb(100 100 100);font-size:14px;opacity:1}
#ba10[data-theme] .ats-itinerary-page .ats-question input.dan-ctl-trigger::placeholder{color:rgb(100 100 100)}
@media(max-width:680px){#ba10[data-theme] .ats-itinerary-page .ats-question :is(input,textarea),#ba10[data-theme] .ats-itinerary-page .ats-question :is(input,textarea)::placeholder{font-size:16px}}
/* The time list shows five rows, like the hero's. */
#ba10 .dan-tp .dan-ctl-list{max-height:170px}
/* Panels open with the hero's fade and scale; Google's address list too. None with prefers-reduced-motion. */
@keyframes dan-pop-in{from{opacity:0;transform:scale(.98)}to{opacity:1;transform:none}}
#ba10 .dan-ctl-pop:not([hidden]),.pac-container.dan-it-pac{animation:dan-pop-in .15s ease-out both;transform-origin:top center}
@media (prefers-reduced-motion:reduce){#ba10 .dan-ctl-pop:not([hidden]),.pac-container.dan-it-pac{animation:none}}
/* Calendar head selects: Dan's .ats-question select rule (full width, boxed) must not reach them. */
#ba10 .ats-itinerary-page .ats-question .dan-dp-title select{width:auto;min-width:0;min-height:0;height:auto;border:0;border-radius:0;padding:2px 14px 2px 2px;
  background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M0 0h8L4 5z' fill='%2364748b'/%3E%3C/svg%3E") no-repeat right 0 center/8px 5px;
  font:700 13.5px/1.2 "Open Sans",-apple-system,BlinkMacSystemFont,sans-serif;color:#0f193c}
#ba10 .dan-dp-day.is-out{background:#fafbfc;color:#b3bfcd}

/* Visual review 1 (2026-11-28): the itinerary lists in the hero's list font, choices on one line (the panel grows to fit,
   never narrower than the field); no spin arrows on number fields. Values and casing stay the live JotForm's. */
#ba10 .dan-ctl-pop:not(.dan-dp):not(.dan-tp){right:auto;min-width:100%;width:max-content;max-width:calc(100vw - 32px)}
#ba10 .dan-ctl-option{white-space:nowrap;font-family:"Open Sans",-apple-system,BlinkMacSystemFont,sans-serif}
#ba10 .ats-itinerary-page input[type=number]{-moz-appearance:textfield;appearance:textfield}
#ba10 .ats-itinerary-page input[type=number]::-webkit-inner-spin-button,#ba10 .ats-itinerary-page input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#ba10 .dan-ctl-pop.is-end:not(.dan-dp):not(.dan-tp){left:auto;right:0}

/* ---------- Owner change #23 (2026-11-28): the itinerary's choice lists like the hero card's lists. Inter 14px 500 navy,
   40px rows, a small tinted icon circle per choice, hover light blue, the chosen row a light navy tint with a red check;
   the closed field shows the same label and icon. The posted values do not change (dan-forms.js CHOICE). ---------- */
#ba10 .dan-ctl-pop:not(.dan-dp):not(.dan-tp) .dan-ctl-option{min-height:40px;padding:6px 10px;gap:10px;font:500 14px/1.3 'Inter',-apple-system,BlinkMacSystemFont,sans-serif;color:#0f193c}
#ba10 .dan-ctl-pop:not(.dan-dp):not(.dan-tp) .dan-ctl-option[aria-selected=true]{background:#eef2f9;font-weight:600}
#ba10 .dan-ctl-pop:not(.dan-dp):not(.dan-tp) .dan-ctl-option[aria-selected=true]:hover,#ba10 .dan-ctl-pop:not(.dan-dp):not(.dan-tp) .dan-ctl-option.is-active{background:#dbeafe}
.dan-opt-ico{flex:0 0 26px;width:26px;height:26px;border-radius:50%;background:#e8eef7;position:relative}
.dan-opt-ico::before{content:'';position:absolute;inset:6px;background:#0f193c;-webkit-mask:var(--dan-ico) center/contain no-repeat;mask:var(--dan-ico) center/contain no-repeat}
#ba10 .dan-ctl-option[aria-selected=true] .dan-opt-ico{background:#0f193c}
#ba10 .dan-ctl-option[aria-selected=true] .dan-opt-ico::before{background:#fff}
/* Closed field: the chosen choice's icon at the left, in the same tinted circle (smaller). */
#ba10 .ats-itinerary-page .dan-ctl[data-kind=select][data-icon]:not([data-icon=''])::before{content:'';position:absolute;left:7px;top:50%;width:20px;height:20px;margin-top:-10px;border-radius:50%;background:#e8eef7;pointer-events:none;z-index:1}
#ba10 .ats-itinerary-page .dan-ctl[data-kind=select][data-icon]:not([data-icon=''])::after{content:'';position:absolute;left:12px;top:50%;width:10px;height:10px;margin-top:-5px;background:#0f193c;pointer-events:none;z-index:2;
  -webkit-mask:var(--dan-ico) center/contain no-repeat;mask:var(--dan-ico) center/contain no-repeat}
#ba10[data-theme] .ats-itinerary-page .ats-question .dan-ctl[data-kind=select][data-icon]:not([data-icon='']) input.dan-ctl-trigger{padding-left:33px}
#ba10[data-theme] .ats-itinerary-page .ats-question .dan-ctl[data-kind=select] input.dan-ctl-trigger{font-weight:500}
#ba10 [data-icon=checkc]{--dan-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.3l2.7 2.7L16 9.5'/%3E%3C/svg%3E")}
#ba10 [data-icon=doc]{--dan-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6z'/%3E%3Cpath d='M14 3v4h4M9 12h6M9 16h4'/%3E%3C/svg%3E")}
#ba10 [data-icon=round]{--dan-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h14M15 5l3 3-3 3M20 16H6M9 13l-3 3 3 3'/%3E%3C/svg%3E")}
#ba10 [data-icon=one]{--dan-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M14 7l5 5-5 5'/%3E%3C/svg%3E")}
#ba10 [data-icon=moon]{--dan-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14.5A8 8 0 0 1 9.5 5a8 8 0 1 0 9.5 9.5z'/%3E%3C/svg%3E")}
#ba10 [data-icon=dots]{--dan-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='12' r='1.3'/%3E%3Ccircle cx='12' cy='12' r='1.3'/%3E%3Ccircle cx='18' cy='12' r='1.3'/%3E%3C/svg%3E")}
#ba10 [data-icon=check]{--dan-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")}
#ba10 [data-icon=pluspin]{--dan-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6-5.6-6-10a6 6 0 0 1 12 0c0 4.4-6 10-6 10z'/%3E%3Cpath d='M12 8v5M9.5 10.5h5'/%3E%3C/svg%3E")}

/* ---------- Forms UX pass (2026-11-30, review site audit) ---------- */
/* Trip type "Other": the text box sits beside the dropdown when the tile is wide enough (desktop), so picking Other no
   longer makes the whole row taller and pushes every field below it down. In a narrow tile (phone) it wraps under it. */
#ba10 .ats-itinerary-page .ats-question.dan-forms-type{flex-flow:row wrap;align-content:space-between;column-gap:6px}
#ba10 .ats-itinerary-page .ats-question.dan-forms-type>label{flex:1 0 100%}
#ba10 .ats-itinerary-page .ats-question.dan-forms-type>.dan-ctl{flex:1 1 100%;margin-top:0}
#ba10 .ats-itinerary-page .ats-question.dan-forms-type:has(>input[name=tripTypeOther]:not([hidden]))>.dan-ctl{flex:1 1 118px}
#ba10 .ats-itinerary-page .ats-question.dan-forms-type>input[name=tripTypeOther]{flex:3 1 130px;width:auto;margin-top:0}
@container(max-width:620px){#ba10 .ats-itinerary-page .ats-question.dan-forms-type:has(>input[name=tripTypeOther]:not([hidden]))>.dan-ctl{flex-basis:100%}
  #ba10 .ats-itinerary-page .ats-question.dan-forms-type>input[name=tripTypeOther]{margin-top:6px}}
/* A field the last submit flagged: Dan's red line until it is changed (the dropdowns already had this). */
#ba10[data-theme] .ats-itinerary-page .ats-question :is(input,textarea)[aria-invalid=true],
#ba10[data-theme] .ats-contact-form :is(input,textarea)[aria-invalid=true]{border-color:var(--light-accent,#ae1736)}
#ba10[data-theme] .ats-contact-options label:has(input[aria-invalid=true]){border-color:var(--light-accent,#ae1736)}
/* Phone width: every itinerary field, vehicle chip and contact method choice is at least 44px tall to tap. */
@media(max-width:680px){
  #ba10[data-theme] .ats-itinerary-page .ats-question input:not([type=checkbox]){min-height:44px}
  #ba10 .dan-forms-chips label.dan-forms-chip{min-height:44px}
  #ba10 .ats-contact-options label{min-height:44px}
}

/* Contact form, matched to the itinerary form (UX pass 2026-11-30): placeholders are in page-home-dan.php (our markup, posted
   to CF7 form 105 by dan-forms.js, so no form-105 DB edit). Focus = thin navy border like the itinerary fields; the
   chosen contact method is tinted; every tap target is 44px up to 900px (tablets too). */
#ba10[data-theme] .ats-contact-form .ats-contact-field :is(input,textarea):is(:focus,:focus-visible){outline:none;box-shadow:none;border-color:#0f193c}
#ba10[data-theme] .ats-contact-form .ats-contact-field :is(input,textarea)[aria-invalid=true]:focus{border-color:var(--light-accent,#ae1736)}
#ba10 .ats-contact-options label:has(input:checked){border-color:#0f193c;background:#eef3fa}
#ba10 .ats-contact-options label:has(input:focus-visible){outline:2px solid #507dbb;outline-offset:1px}
#ba10 .ats-contact-options input{accent-color:#0f193c}
@media(max-width:900px){#ba10 .ats-contact-options label{min-height:44px}#ba10[data-theme] .ats-contact-field input{min-height:46px}}
