/* rescued.art/rent (2026-10-08). Steps on the left; on wide screens a sticky side card holds the price, your
   favourites and the send form. Dressed in sign.css's colours (the First Friday sign). */
.page-head--rent { position: relative; }
.page-head--rent p:not(.kicker) { color: var(--ink); font-size: 1.2rem; }
.sticker--rent { color: var(--c-teal); font-size: clamp(1.3rem, 2.6vw, 2.1rem); transform: rotate(12deg); right: 8%; top: 38%; text-align: center; }
@media (max-width: 860px) { .sticker--rent { display: none; } }

.rent { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem) 5rem; }
.rent__main { min-width: 0; }

/* each step is a card pinned to the board */
.step { background: var(--c-cream); border: 3px solid var(--c-green); border-radius: var(--wobble);
  box-shadow: 5px 6px 0 rgba(59, 26, 51, 0.2); padding: 1.4rem clamp(1rem, 2.4vw, 1.8rem) 1.5rem; margin: 0 0 1.6rem; }
.rent__main .step:nth-child(5n+2) { border-color: var(--c-orange); }
.rent__main .step:nth-child(5n+3) { border-color: var(--c-teal); }
.rent__main .step:nth-child(5n+4) { border-color: var(--c-pink); }
.rent__main .step:nth-child(5n)   { border-color: var(--c-navy); }
.step h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); display: flex; align-items: center; gap: 0.8rem; margin: 0; }
.step__no { font-family: var(--chunky); font-size: 1.05rem; color: #fff; background: var(--c-navy); text-shadow: none;
  width: 2.4rem; height: 2.4rem; border-radius: 50%; display: inline-grid; place-items: center; flex: none; transform: rotate(-6deg); }
.opt { font-family: var(--body); font-size: 1rem; color: var(--ink-faint); text-shadow: none; }
.hint { color: var(--ink-dim); font-size: 1.05rem; margin: 0.6rem 0 0.4rem; max-width: 62ch; }

.choices { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1rem; }
.choice { background: #fff; color: var(--ink); border: 2px solid var(--line); border-radius: var(--wobble);
  padding: 0.7rem 1.3rem; cursor: pointer; font: inherit; display: flex; flex-direction: column; align-items: flex-start;
  gap: 0.1rem; min-width: 5.5rem; transition: transform .12s, border-color .12s, background .12s; }
.choice:hover:not(:disabled) { border-color: var(--c-purple); transform: rotate(-1deg); }
.choice[aria-pressed="true"] { border-color: var(--c-purple); background: var(--c-lilac); box-shadow: 3px 3px 0 var(--c-purple); }
.choice:disabled { opacity: 0.4; cursor: not-allowed; }
.choice__main { font-family: var(--display); font-size: 1.45rem; color: var(--c-purple); }
.choice__sub { font-family: var(--body); font-size: 0.95rem; color: var(--ink-dim); }
.choices--cards .choice { min-width: 11rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.7rem 0 0; }
.chips__label { font-family: var(--display); font-size: 1rem; color: var(--c-teal); min-width: 4.6rem; align-self: center; }
.chip { background: #fff; color: var(--ink); border: 2px solid var(--line); border-radius: 999px;
  padding: 0.25rem 0.9rem; font-family: var(--body); font-size: 1.05rem; cursor: pointer; }
.chip:hover { border-color: var(--c-teal); }
.chip[aria-pressed="true"] { border-color: var(--c-teal); background: var(--c-teal); color: #fff; }

/* favourites: snapshots to tap */
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.1rem; margin-top: 1rem; }
.pick { background: #fff; border: 0; border-radius: 2px; padding: 7px 7px 0.6rem; cursor: pointer; color: var(--ink); text-align: left;
  display: flex; flex-direction: column; gap: 0.2rem; position: relative; box-shadow: 3px 4px 0 rgba(59, 26, 51, 0.2);
  transition: transform .12s; font: inherit; }
.pick:nth-child(3n+1) { transform: rotate(-1deg); } .pick:nth-child(3n+2) { transform: rotate(0.8deg); }
.pick:hover { transform: rotate(0) translateY(-2px); }
.pick img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--bg-2); display: block; }
.pick__title { font-size: 1rem; padding: 0.3rem 0.2rem 0; line-height: 1.2; }
.pick__meta { font-size: 0.85rem; color: var(--ink-faint); padding: 0 0.2rem; }
.pick[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--c-purple), 5px 6px 0 rgba(59, 26, 51, 0.25); }
.pick[aria-pressed="true"]::after { content: "★"; position: absolute; top: -0.7rem; right: -0.6rem; width: 2.1rem; height: 2.1rem;
  border-radius: 50%; background: var(--c-purple); color: #fff; display: grid; place-items: center; font-size: 1.1rem;
  box-shadow: 0 0 0 3px #fff; transform: rotate(12deg); }
.pick:disabled { opacity: 0.45; cursor: not-allowed; }
.more { display: block; margin: 1.4rem auto 0; background: #fff; color: var(--c-navy); border: 2px solid var(--c-navy);
  border-radius: var(--wobble); padding: 0.6rem 1.6rem; font-family: var(--display); font-size: 1.15rem; cursor: pointer; }
.more:hover { background: var(--c-navy); color: #fff; }
.more[hidden] { display: none; }   /* .more sets display, which would beat the hidden attribute */

/* the side card: price, favourites, details, send */
.rent__side { display: flex; flex-direction: column; gap: 1.2rem; }
.price { display: flex; flex-direction: column; gap: 0.1rem; background: var(--c-purple); color: #fff;
  border-radius: var(--wobble); padding: 1rem 1.3rem 1.1rem; box-shadow: 5px 6px 0 rgba(59, 26, 51, 0.25); transform: rotate(-0.8deg); }
.price__label { font-family: var(--body); font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-lilac); }
.price__amount { font-family: var(--chunky); font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1.05; color: #fff; }
.price__note { color: #f6e7f1; font-size: 1rem; line-height: 1.3; }

.chosen { margin-top: 0.7rem; padding-top: 0.6rem; border-top: 2px dashed rgba(255, 255, 255, 0.35); }
.chosen__head { margin: 0; font-size: 1.05rem; color: var(--c-lilac); }
.chosen__head strong { font-family: var(--chunky); font-weight: 400; color: #fff; }
.chosen__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.45rem; margin-top: 0.5rem; }
.chosen__list:empty { display: none; }
.chosen__item { position: relative; padding: 0; border: 0; background: #fff; box-shadow: 2px 2px 0 rgba(59, 26, 51, 0.2); cursor: pointer; }
.chosen__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.chosen__item::after { content: "×"; position: absolute; top: -0.45rem; right: -0.45rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--c-red); color: #fff; font-size: 0.9rem; line-height: 1.15rem; text-align: center; opacity: 0; transition: opacity .12s; }
.chosen__item:hover::after, .chosen__item:focus-visible::after { opacity: 1; }

.step--details { border-color: var(--c-purple); margin: 0; padding-top: 1.1rem; padding-bottom: 1.2rem; }
.step--details .hint { font-size: 0.95rem; margin: 0.6rem 0 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 0.7rem; margin-top: 0.7rem; }
.fields label { display: flex; flex-direction: column; gap: 0.1rem; font-family: var(--body); font-size: 1rem; color: var(--ink-dim); grid-column: 1 / -1; }
.fields label:nth-child(3) { grid-column: auto; }
.fields input, .fields textarea { background: #fff; color: var(--ink); border: 2px solid var(--line); border-radius: 8px;
  padding: 0.45rem 0.7rem; font: 400 1.1rem var(--body); width: 100%; box-sizing: border-box; }
.fields input:focus, .fields textarea:focus { outline: none; border-color: var(--c-purple); }
.fields .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.send { margin-top: 0.7rem; width: 100%; background: var(--c-orange); color: #fff; border: 0; border-radius: var(--wobble);
  padding: 0.85rem 1.6rem; font-family: var(--chunky); font-size: 1.25rem; letter-spacing: 0.03em; cursor: pointer;
  box-shadow: 4px 5px 0 var(--c-brick); transform: rotate(-1deg); }
.send:hover:not(:disabled) { transform: rotate(0) translateY(-2px); }
.send:disabled { background: #e7b79f; box-shadow: none; cursor: not-allowed; }
.status { color: var(--ink); margin: 0.5rem 0 0; font-size: 1.1rem; }
.status:empty { display: none; }
.rent--sent .rent__main, .rent--sent .chosen, .rent--sent .fields, .rent--sent .send, .rent--sent .step--details .hint { display: none; }
.rent--sent .status { font-family: var(--display); font-size: 1.5rem; color: var(--c-purple); }

/* phones: a little bar at the bottom keeps the price and count in view */
.rent__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 0.8rem;
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom)); background: var(--c-purple); color: #fff;
  box-shadow: 0 -3px 0 rgba(59, 26, 51, 0.25); }
.rent__bar-price { font-family: var(--chunky); font-size: 1.3rem; }
.rent__bar-count { flex: 1; color: var(--c-lilac); font-size: 1.05rem; }
.rent__bar-go { color: #fff; background: var(--c-orange); border-radius: 999px; padding: 0.35rem 1rem; font-family: var(--display); }
.rent__bar[hidden], .rent--sent ~ .rent__bar { display: none; }
body:has(.rent__bar:not([hidden])) footer { padding-bottom: 5.5rem; }

@media (min-width: 1000px) {
  .rent { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); gap: clamp(1.6rem, 3vw, 2.8rem); align-items: start; }
  .rent__side { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; padding: 0.8rem 0.6rem 0.8rem 0.4rem;
    scrollbar-width: thin; }
  .rent--sent { grid-template-columns: minmax(0, 560px); }
  .rent__bar { display: none; }
  body:has(.rent__bar) footer { padding-bottom: 3.5rem; }
}

@media (max-width: 640px) {
  .choice { min-width: 4.5rem; padding: 0.6rem 1rem; }
  .choices--cards .choice { min-width: 100%; }
  .picks { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
  .step { border-radius: 14px; }
}
