/* Nightingale Events — plan by budget. Builds on quote-flow.css (palette, buttons, booked screen). */
.pl-page__alt { font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.pl-page__alt span { font-weight: 600; color: var(--wine); }
.pl-page__alt:hover span { text-decoration: underline; text-underline-offset: 4px; }
.pl-noscript { padding: 140px 24px; text-align: center; }

.pl { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 120px clamp(20px, 4vw, 44px) 80px; }
.pl__intro { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.pl__intro .qf__q--big { max-width: 16ch; }
.pl__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.pl__controls { display: grid; gap: 16px; }

.pl__card { position: relative; padding: 26px clamp(20px, 2.4vw, 30px) 28px; background: #ffffff8c; border: 1px solid #3f3c2824; border-radius: 22px; }
.pl__step { position: absolute; top: 24px; right: 26px; margin: 0; font: italic 400 20px var(--serif); color: #ab6a6a99; }
.pl__label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.pl__h2 { margin: 0; font: 400 clamp(26px, 2.6vw, 32px)/1.1 var(--serif); }
.pl__help { margin: 8px 0 0; font-size: 15px; color: var(--ink-soft); }

/* sliders */
.pl__value { display: block; margin: 6px 0 14px; font: 400 clamp(38px, 4.4vw, 54px)/1 var(--serif); color: var(--wine); letter-spacing: -.01em; }
.pl__range { --fill: 50%; width: 100%; height: 28px; margin: 0; background: none; appearance: none; -webkit-appearance: none; cursor: pointer; touch-action: pan-y; }
.pl__range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--wine), var(--mustard)) 0 / var(--fill) 100% no-repeat, #3f3c2817; }
.pl__range::-moz-range-track { height: 6px; border-radius: 99px; background: #3f3c2817; }
.pl__range::-moz-range-progress { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--wine), var(--mustard)); }
.pl__range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #fff; border: 2px solid var(--wine); box-shadow: 0 8px 20px -8px #ab6a6acc; transition: transform .2s var(--ease); }
.pl__range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--wine); box-shadow: 0 8px 20px -8px #ab6a6acc; }
.pl__range:active::-webkit-slider-thumb { transform: scale(1.15); }
.pl__range:focus-visible { outline: none; }
.pl__range:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--wine); outline-offset: 3px; }
.pl__ticks { display: flex; justify-content: space-between; margin-top: 6px; font-size: 13px; color: var(--ink-soft); }

/* florals */
.pl__florals { margin-top: 26px; }
.pl__seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 10px; padding: 4px; background: #3f3c280d; border-radius: 14px; }
.pl__seg button { padding: 11px 8px; font: 600 15px var(--sans); color: var(--ink-soft); background: none; border: 0; border-radius: 10px; cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.pl__seg button[aria-checked=true] { color: var(--ink); background: #fff; box-shadow: 0 6px 16px -10px #3f3c2880; }
.pl__seg button:focus-visible { outline: 3px solid var(--wine); outline-offset: 1px; }

/* priorities */
.pl__prios { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.pl__prio {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 6px;
  background: #fff;
  border: 1px solid #3f3c2821;
  border-radius: 14px;
  transition: opacity .25s, box-shadow .25s, background .25s;
}
.pl__prios.is-sorting .pl__prio:not(.is-dragging) { transition: opacity .25s; }
.pl__prio.is-dragging { z-index: 2; box-shadow: 0 0 0 2px var(--wine), 0 20px 40px -16px #3f3c2899; cursor: grabbing; }
.pl__prio.is-off { background: #ffffff66; }
.pl__prio.is-off .pl__priotext, .pl__prio.is-off .pl__rank { opacity: .45; }
.pl__handle {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 44px;
  font-size: 15px;
  letter-spacing: -3px;
  color: #3f3c28a6;
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: grab;
  touch-action: none;
}
.pl__handle:hover { color: var(--wine); background: #ab6a6a12; }
.pl__handle:focus-visible { outline: 3px solid var(--wine); }
.pl__rank { flex: none; display: grid; place-items: center; width: 28px; height: 28px; font: 400 17px var(--serif); color: var(--wine); border: 1px solid #ab6a6a59; border-radius: 50%; }
.pl__priotext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pl__priotext b { font-weight: 600; }
.pl__priotext small { font-size: 13.5px; color: var(--ink-soft); }
.pl__switch { flex: none; position: relative; width: 44px; height: 26px; padding: 0; background: #3f3c2826; border: 0; border-radius: 99px; cursor: pointer; transition: background .25s; }
.pl__switch span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px #3f3c2840; transition: transform .25s var(--ease); }
.pl__switch[aria-checked=true] { background: var(--wine); }
.pl__switch[aria-checked=true] span { transform: translateX(18px); }
.pl__switch:focus-visible { outline: 3px solid var(--wine); outline-offset: 2px; }

/* the package */
.pl__package {
  position: sticky;
  top: 90px;
  padding: clamp(24px, 2.6vw, 34px);
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 30px 70px -40px #3f3c2880, 0 0 0 1px #3f3c2814;
  scroll-margin-top: 90px;
}
.pl__package .qf__eyebrow { margin-bottom: 10px; }
.pl__total { margin: 0 0 16px; font: 400 clamp(40px, 4.6vw, 62px)/1 var(--serif); letter-spacing: -.02em; color: var(--wine); white-space: nowrap; }
.pl__fit { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--khaki); }
.pl__fit .qf__meter { margin: 0; }
.pl__fit.is-over { color: var(--wine); }
.pl__fit.is-over .qf__meter span { background: var(--wine); }
.pl__items { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.pl__item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); animation: pl-in .4s var(--ease) both; }
.pl__thumb { display: block; width: 64px; height: 64px; overflow: hidden; border-radius: 12px; background: var(--linen); }
.pl__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl__item--wide .pl__thumb img { mix-blend-mode: multiply; }
.pl__item.is-out .pl__thumb { opacity: .4; filter: grayscale(1); }
.pl__itemtext { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pl__itemtitle { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.pl__itemtext b { font: 400 21px/1.15 var(--serif); }
.pl__item.is-out .pl__itemtext b { color: var(--ink-soft); font-style: italic; }
.pl__itemtext small { font-size: 13.5px; color: var(--ink-soft); }
.pl__stepper { display: flex; align-items: center; gap: 8px; }
.pl__stepper button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; font: 500 19px/1 var(--sans); color: var(--ink); background: var(--linen); border: 1px solid #3f3c2826; border-radius: 50%; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.pl__stepper button:hover:not(:disabled) { color: #fff; background: var(--wine); border-color: var(--wine); }
.pl__stepper button:disabled { opacity: .3; cursor: default; }
.pl__stepper button:focus-visible { outline: 3px solid var(--wine); outline-offset: 2px; }
.pl__dots { display: flex; gap: 4px; }
.pl__dots i { width: 7px; height: 7px; border-radius: 50%; background: #3f3c2824; transition: background .25s; }
.pl__dots i.on { background: var(--wine); }
.pl__note { margin: 16px 0 0; padding: 14px 16px; font-size: 14.5px; background: #d29e9e1f; border-radius: 12px; }
.pl__reset { display: inline-block; margin-top: 14px; font-size: 13px; }
.pl__cta { margin-top: 24px; }
.pl__cta .button { width: 100%; }
.pl__cta .button[disabled] { cursor: not-allowed; }
.pl__fine { margin: 12px 0 0; font-size: 13px; color: var(--ink-soft); text-align: center; }
@keyframes pl-in { from { opacity: .3; } }

/* contact step and booked screen */
.pl--solo { display: flex; align-items: center; min-height: 100svh; max-width: 760px; }
.pl__solo { width: 100%; }
.pl__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 26px; margin-top: 18px; }
.pl__field .qf__input { margin-top: 2px; font-size: clamp(22px, 2.4vw, 28px); }
.pl__field { margin-top: 14px; }

/* mobile summary bar */
.pl__dock { display: none; }

@media (max-width: 900px) {
  .pl__grid { grid-template-columns: 1fr; }
  .pl__package { position: static; }
  .pl__dock {
    position: fixed;
    inset: auto 12px 12px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 10px 18px;
    color: var(--linen);
    background: var(--coffee);
    border-radius: 18px;
    box-shadow: 0 18px 40px -16px #3f3c28b3;
  }
  .pl__dock[hidden] { display: none; }
  .pl__docklabel { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
  .pl__dockrange { flex: 1; font: 400 22px var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pl__dockbtn { padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--coffee); text-decoration: none; background: var(--linen); border-radius: 12px; }
  .pl { padding-bottom: 110px; }
}
@media (max-width: 640px) {
  .pl-page__alt { font-size: 13px; }
  .pl-page__alt span { display: block; }
  .pl { padding-top: 96px; }
  .pl__fields { grid-template-columns: 1fr; }
  .pl__item { grid-template-columns: 52px minmax(0, 1fr); }
  .pl__thumb { width: 52px; height: 52px; }
  .pl__stepper { grid-column: 2; }
  .pl__total { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .pl__item { animation: none; }
}

/* the header stays readable over the planner as it scrolls */
.pl-page .qf-page__top { background: linear-gradient(var(--linen) 55%, #faf6ee00); }
@media (max-width: 640px) { .pl-page .qf-page__top { background: linear-gradient(var(--linen) 78%, #faf6ee00); } }
