/* Callback widget only: independent of page layouts and existing form styles. */
:is(#sanauto-callback-dialog, #sanauto-callback-form) {
  box-sizing: border-box;
  width: min(530px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1.5px solid #8fa66d;
  border-radius: 12px;
  background: #fff;
  color: #243d30;
  box-shadow: none;
  font: 16px/1.45 "Segoe UI", Arial, sans-serif;
}
#sanauto-callback-dialog[open] { display: flex; flex-direction: column; }
#sanauto-callback-dialog::backdrop { background: rgba(23, 43, 31, .58); }
:is(#sanauto-callback-dialog, #sanauto-callback-form) *, #sanauto-callback-entry * { box-sizing: border-box; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) [hidden] { display: none; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-header { position: relative; flex: 0 0 auto; padding: 24px 64px 0 24px; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-header h2 { margin: 0; color: #243d30; font-size: 25px; font-weight: 750; line-height: 1.2; letter-spacing: -.02em; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-header p { margin: 9px 0 0; color: #59675c; font-size: 15px; line-height: 1.45; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; min-height: 40px; margin: 0; padding: 0; border: 1px solid #b5c79d; border-radius: 7px; background: #eef3e5; color: #284737; box-shadow: none; font: 28px/1 Arial, sans-serif; cursor: pointer; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-close:hover { background: #e1ebd0; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 24px 24px; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-form { width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-fields { min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-field { margin: 0 0 15px; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-field label { display: block; margin: 0 0 6px; color: #243d30; font-size: 15px; font-weight: 650; line-height: 1.4; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-field label > span { color: #59675c; font-size: 13px; font-weight: 400; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-field input { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 46px; margin: 0; padding: 10px 12px; border: 1.5px solid #b5c79d; border-radius: 7px; background: #fff; color: #243d30; box-shadow: none; font: 16px/1.35 "Segoe UI", Arial, sans-serif; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-field input::placeholder { color: #687365; opacity: 1; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-field input[type="date"] { -webkit-appearance: none; appearance: none; min-inline-size: 0; text-align: left; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-field input[type="date"]::-webkit-date-and-time-value { min-height: 1.35em; text-align: left; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-field input[type="date"]::-webkit-calendar-picker-indicator { flex-shrink: 0; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-field input[aria-invalid="true"],
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-consent input[aria-invalid="true"] { border-color: #9c3426; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-hint { margin: 5px 0 0; color: #59675c; font-size: 13px; line-height: 1.4; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-error { margin: 5px 0 0; color: #9c3426; font-size: 13px; line-height: 1.4; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-trip-options { min-width: 0; margin: 0 0 15px; padding: 0; border: 0; background: transparent; box-shadow: none; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-trip-options legend { margin: 0; padding: 0 0 7px; color: #243d30; font-size: 15px; font-weight: 650; line-height: 1.4; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-trip-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-trip-choice { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 48px; margin: 0; padding: 10px; border: 1.5px solid #b5c79d; border-radius: 7px; background: #f7f9f3; color: #243d30; font-size: 14px; font-weight: 500; line-height: 1.3; cursor: pointer; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-trip-choice:has(input:checked) { border-color: #4d6d38; background: #e1ebd0; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-trip-choice input { flex: 0 0 18px; width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; accent-color: #4d6d38; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-trip-choice span { min-width: 0; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-consent-field { margin-top: 17px; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-consent { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: #405345; font-size: 14px; font-weight: 400; line-height: 1.45; cursor: pointer; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-consent input { flex: 0 0 20px; width: 20px; height: 20px; min-width: 20px; min-height: 20px; margin: 2px 0 0; padding: 0; accent-color: #4d6d38; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-consent span { min-width: 0; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-privacy { margin: 10px 0 16px; color: #59675c; font-size: 13px; line-height: 1.45; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-status { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #b5c79d; border-radius: 7px; background: #eef3e5; color: #405345; font-size: 14px; line-height: 1.45; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-status[data-state="error"] { border-color: #b87a70; background: #fff8f5; color: #8c3025; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-submit,
#sanauto-callback-entry .callback-entry-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin: 0; padding: 12px 20px; border: 1.5px solid #4d6d38; border-radius: 7px; background: #4d6d38; color: #fff; box-shadow: none; font: 650 16px/1.35 "Segoe UI", Arial, sans-serif; text-align: center; cursor: pointer; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-submit { width: 100%; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-submit:hover,
#sanauto-callback-entry .callback-entry-button:hover { border-color: #365526; background: #365526; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-submit:disabled { opacity: .75; cursor: wait; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-fields:disabled { opacity: .8; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-fallback { display: block; width: fit-content; max-width: 100%; margin: 13px auto 0; color: #4d6d38; font-size: 14px; line-height: 1.5; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) :is(input, button, a):focus-visible,
#sanauto-callback-entry button:focus-visible { outline: 2px solid #4d6d38; outline-offset: 3px; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-success h3 { margin: 0 0 12px; color: #284737; font-size: 24px; line-height: 1.25; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-success-message { margin: 0 0 12px; color: #405345; font-size: 16px; line-height: 1.5; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-success-hours { margin: 0 0 22px; color: #59675c; font-size: 14px; line-height: 1.45; }
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-visually-hidden,
:is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; border: 0; white-space: nowrap; }

#sanauto-callback-entry { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 24px 0 0; padding: 20px 24px; border: 1.5px solid #b5c79d; border-radius: 12px; background: #eef3e5; color: #243d30; box-shadow: none; }
#sanauto-callback-entry h2 { margin: 0 0 7px; color: #243d30; font-size: 24px; font-weight: 750; line-height: 1.25; }
#sanauto-callback-entry p { margin: 0; color: #405345; font-size: 16px; line-height: 1.45; }
#sanauto-callback-entry .callback-entry-button { flex-shrink: 0; }

@media (max-width: 700px) {
  :is(#sanauto-callback-dialog, #sanauto-callback-form) { width: calc(100vw - 20px); max-width: calc(100vw - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 10px; }
  :is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-header { padding: 20px 59px 0 18px; }
  :is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-header h2 { font-size: 22px; }
  :is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-header p { font-size: 14px; }
  :is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-close { top: 11px; right: 11px; }
  :is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-content { padding: 17px 18px 20px; }
  :is(#sanauto-callback-dialog, #sanauto-callback-form) .callback-field { margin-bottom: 13px; }
  #sanauto-callback-entry { align-items: stretch; flex-direction: column; gap: 15px; margin-top: 18px; padding: 18px; }
  #sanauto-callback-entry h2 { font-size: 22px; }
  #sanauto-callback-entry p { font-size: 15px; }
  #sanauto-callback-entry .callback-entry-button { width: 100%; }
}

/* Contacts show the same form in the page, without dialog sizing or scrolling. */
#sanauto-callback-form.callback-inline {
  display: block;
  /* The page's scroll-padding already includes its measured sticky header. */
  scroll-margin-top: 0;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 24px 0 0;
  padding: 0;
  overflow: visible;
  border-color: #b5c79d;
  background: #fff;
}
#sanauto-callback-form .callback-header {
  padding: 18px 22px;
  border-bottom: 1px solid #d2dec2;
  border-radius: 10px 10px 0 0;
  background: #eef3e5;
}
#sanauto-callback-form .callback-header h2 { font-size: 24px; }
#sanauto-callback-form .callback-header p { max-width: 70ch; margin-top: 7px; }
#sanauto-callback-form .callback-content {
  max-height: none;
  padding: 20px 22px 22px;
  overflow: visible;
  overscroll-behavior: auto;
}
#sanauto-callback-form .callback-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px 18px;
  margin: 0 0 16px;
}
#sanauto-callback-form .callback-field,
#sanauto-callback-form .callback-trip-options { min-width: 0; margin: 0; }
#sanauto-callback-form .callback-trip-options legend { padding-bottom: 6px; }
#sanauto-callback-form .callback-trip-choice { min-height: 46px; }
#sanauto-callback-form .callback-consent-field { grid-column: 1 / -1; margin: 2px 0 0; }
#sanauto-callback-form .callback-privacy { grid-column: 1 / -1; margin: 0; }
#sanauto-callback-form .callback-submit { width: auto; min-width: 230px; max-width: 100%; }
#sanauto-callback-form .callback-fallback { display: inline-block; margin: 0 0 0 18px; vertical-align: middle; }

@media (max-width: 700px) {
  #sanauto-callback-form.callback-inline { margin-top: 18px; }
  #sanauto-callback-form .callback-header { padding: 16px; }
  #sanauto-callback-form .callback-header h2 { font-size: 22px; }
  #sanauto-callback-form .callback-content { padding: 16px; }
  #sanauto-callback-form .callback-fields { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  #sanauto-callback-form .callback-submit { width: 100%; min-width: 0; }
  #sanauto-callback-form .callback-fallback { display: block; margin: 12px auto 0; }
}

/* Hidden form/success/error states must win over grid and flex layout rules. */
.callback-inline-wrap { min-width: 0; margin-bottom: 32px; }
.callback-inline-wrap #sanauto-callback-form { margin-top: 0; }
.callback-inline-wrap #sanauto-callback-form h2 { font-size: 26px; line-height: 1.25; }
.callback-inline-wrap #sanauto-callback-form .callback-header p { margin-bottom: 0; }

:is(#sanauto-callback-dialog, #sanauto-callback-form)[hidden],
:is(#sanauto-callback-dialog, #sanauto-callback-form) [hidden][hidden] { display: none; }

/* Phones use the drawer; tablets keep the navigation strip but hide its header CTA. */
.header .nav > .callback-nav-action { display: none; }
@media (min-width: 701px) and (max-width: 900px) {
  .header .nav > .callback-nav-action { display: inline-flex; font-weight: 700; }
}
