/* Light appointment cards within the existing NONL 1.5.1 theme. */
body .booking-card,
body .hero .booking-card,
body .contact-page .booking-card {
  background: #fffdf6 !important;
  color: #102a34 !important;
  border-color: #d6ddcf !important;
  color-scheme: light;
}
body .booking-card h2 { color: #102a34 !important; }
body .booking-card > p,
body .booking-card .form-grid label,
body .booking-card .privacy-check,
body .booking-card .form-note,
body .booking-card .nonl-urgent-note,
body .booking-card .nonl-photo-help { color: #526672 !important; }
body .booking-card .form-grid input,
body .booking-card .form-grid select,
body .booking-card .form-grid textarea {
  background: #fffefd !important;
  border-color: #bdccbb !important;
  color: #102a34 !important;
  caret-color: #102a34;
  color-scheme: light !important;
}
body .booking-card input::placeholder,
body .booking-card textarea::placeholder { color: #6a7b72 !important; opacity: 1; }
body .booking-card select option { color: #102a34; background: #fffefd; }
body .booking-card input[type=date]::-webkit-calendar-picker-indicator { filter: none; opacity: .7; }
body .booking-card .privacy-check input { accent-color: #629c24; color-scheme: light; }
body .booking-card .privacy-check a { color: #526672; }
body .booking-card .privacy-check a:hover { color: #326422; }
body .booking-card .form-note .icon { color: #3d6b3c !important; }
body .booking-card .form-result { color: #102a34; }
body .booking-card .form-result.error,
body .booking-card .nonl-photo-status.error { color: #a12e2e !important; }
body .booking-card .form-result.success { color: #326422 !important; }
body .booking-card :is(input,select,textarea,button,a):focus-visible { outline-color: #43762d; }
body .booking-card .nonl-photo-field { grid-column: 1 / -1; min-width: 0; }
body .booking-card .nonl-photo-help { display: block; font-size: 12px; font-weight: 400; line-height: 1.5; }
body .booking-card .form-grid label > .nonl-photo-picker {
  display: block; position: relative; width: fit-content; min-height: 44px; padding: 11px 16px;
  font-size: 13px; border: 1px solid #bdccbb; background: #eef1e7; color: #102a34; border-radius: 6px;
}
body .booking-card .nonl-photo-picker:focus-within { outline: 3px solid #43762d; outline-offset: 3px; }
body .booking-card input.nonl-photo-input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; padding: 0; margin: 0; cursor: pointer; }
body .booking-card .nonl-photo-preview { display: flex; align-items: center; gap: 12px; margin-top: 8px; min-width: 0; }
body .booking-card .nonl-photo-preview[hidden] { display: none; }
body .booking-card .nonl-photo-preview img { width: 72px; height: 72px; object-fit: cover; border: 1px solid #bdccbb; border-radius: 6px; }
body .booking-card button.nonl-photo-remove { color: #526672; background: transparent; font-size: 13px; padding: 8px; text-decoration: underline; }
body .booking-card .nonl-photo-status { color: #526672; font-size: 12px; line-height: 1.5; margin: 4px 0 0; overflow-wrap: anywhere; }
body .booking-card .nonl-photo-status:empty { display: none; }

/* Marked from the actual rendered blue surface, including the optional decorator. */
body.nonl-appointment-refinements .nonl-blue-button {
  --ppb-ink: #fff !important;
  color: #fff !important;
}
body.nonl-appointment-refinements .nonl-blue-button :is(span,b,strong,small) { color: #fff !important; }

/* White and silver surfaces always have black labels, including child labels. */
body.nonl-appointment-refinements .nonl-light-button {
  --ppb-ink: #000 !important;
  color: #000 !important;
}
body.nonl-appointment-refinements .nonl-light-button :is(span,b,strong,small) { color: #000 !important; }

/* Use the prices page's existing ppv1 card rules and global color settings. */
body .nonl-home-prices .nonl-home-prices-heading {
  display: block; margin-bottom: 32px;
}
body .nonl-home-prices .nonl-home-prices-heading h2 { max-width: 580px; }
body .nonl-home-prices .nonl-home-prices-bottom { margin-top: 32px; text-align: center; }
body .nonl-home-prices .nonl-home-prices-bottom p {
  color: var(--v1-muted); max-width: 1000px; margin-inline: auto;
  font-size: 16px; line-height: 1.7;
}
body .nonl-home-prices .nonl-home-prices-bottom a.button {
  margin-top: 24px; min-height: 48px; padding-inline: 32px;
}
body .nonl-home-prices .price-note { margin-top: 28px; }
body .nonl-home-prices .nonl-price-underline {
  text-decoration-line: underline; text-decoration-color: var(--lime, #b9f438);
  text-decoration-thickness: 3px; text-underline-offset: .15em;
  text-decoration-skip-ink: none;
}

@media (max-width: 700px) {
  body.nonl-appointment-refinements :is(main,.site-footer,.footer-cta) :is(a.button,button.button,a.ppv1-button,a.text-button,a.text-link,a.ppv1-textlink,a.wp-block-button__link,a.wp-element-button) {
    margin-inline: auto !important;
    align-self: center;
    justify-self: center;
    text-align: center;
  }
  body.nonl-appointment-refinements main :is(a.button,button.button,a.ppv1-button,a.text-button,a.text-link,a.ppv1-textlink,a.wp-block-button__link,a.wp-element-button):not([hidden]) {
    display: flex !important;
    width: fit-content;
    max-width: 100%;
    min-height: 48px;
    justify-content: center;
    align-items: center;
  }
  body.nonl-appointment-refinements :is(.button-row,.ppv1-actions,.about-bottom,.ppv1-emergency-actions,.region-places) { justify-content: center; align-items: center; }
  body.nonl-appointment-refinements :is(main,.site-footer) :is(.button-row,.ppv1-actions) > :is(.button,.ppv1-button) { margin-inline: 0 !important; }

  /* Content actions get a consistent gap without adding margins to icons,
     form controls, navigation, or the legal links in the footer. */
  body.nonl-appointment-refinements main :is(h1,h2,h3,p:not(.sr-only,.screen-reader-text),ul,ol,.intro):has(+ :is(a.button,a.ppv1-button,a.text-link,a.ppv1-textlink,.button-row,.ppv1-actions,.wp-block-buttons)) {
    margin-bottom: 0 !important;
  }
  body.nonl-appointment-refinements main :is(h1,h2,h3,p:not(.sr-only,.screen-reader-text),ul,ol,.intro) + :is(a.button,a.ppv1-button,a.text-link,a.ppv1-textlink,.button-row,.ppv1-actions,.wp-block-buttons) {
    margin-top: 24px !important;
  }
  body.nonl-appointment-refinements main :is(a.button,a.ppv1-button,a.text-link,a.ppv1-textlink,.button-row,.ppv1-actions,.wp-block-buttons):not([hidden]) + :is(p,h2,h3,ul,ol) {
    margin-top: 24px !important;
  }
  body.nonl-appointment-refinements .benefits-layout { gap: 32px; }
  body.nonl-appointment-refinements .benefits-layout:has(.benefits-intro > a.button) .mobile-benefit-button { display: none; }
  body.nonl-appointment-refinements .blog-slider { margin-top: 28px; }
  body.nonl-appointment-refinements main .section-heading:has(> a.button) {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  body.nonl-appointment-refinements main .section-heading > a.button { margin-block: 0 !important; }
  body.nonl-appointment-refinements main .price-card > :is(a.button,a.ppv1-button),
  body.nonl-appointment-refinements main .sidebar-cta > a.button {
    width: 100% !important;
    min-width: 0;
    min-height: 48px;
  }
  body.nonl-appointment-refinements main [data-v1-city-link] { margin-top: 24px !important; }
  body.nonl-appointment-refinements main :is(.timeline,.price-row) + a.text-link { margin-top: 24px !important; }
  body.nonl-appointment-refinements main :is(.faq-section .split-section,.rich-faq-grid) { gap: 24px; }
  body.nonl-appointment-refinements main .rich-faq-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  body.nonl-appointment-refinements main .rich-faq-grid > div + div { margin-top: 0; }
  body.nonl-appointment-refinements main a.button + .image-note { margin-top: 20px; }
  body.nonl-appointment-refinements main a.nonl-faq-cta {
    display: flex !important;
    grid-column: 1 / -1;
    margin-block: 0 !important;
  }

  /* Keep the footer pair together. Auto margins used for single mobile
     actions must not distribute the two buttons across the full row. */
  body.nonl-appointment-refinements .footer-cta .button-row {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    margin: 4px 0 0;
  }
  body.nonl-appointment-refinements .footer-cta .button-row > a.button {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    margin: 0 !important;
  }
  body.nonl-appointment-refinements .ppv1-closing-actions { gap: 12px; align-items: center; }
  body.nonl-appointment-refinements .ppv1-closing-actions > :is(a.ppv1-button,a.ppv1-textlink) { margin-block: 0 !important; }

  body.nonl-appointment-refinements .booking-form > button.button { width: 100%; }
  body.nonl-appointment-refinements .booking-card .nonl-photo-picker { margin-inline: auto; align-self: center; }
  body.nonl-appointment-refinements .booking-card .nonl-photo-preview { justify-content: center; }
  body.nonl-appointment-refinements .about-collage a.video-link {
    left: 50%; right: auto; transform: translateX(-50%);
    width: max-content; max-width: calc(100% - 34px);
  }
}
