/* ==========================================================================
   Photo enquiry — the no-phone-call route in.
   Built thumb-first: this is used one-handed, standing in the room, often on
   a bad signal. Everything is big, and there are four fields, two optional.
   ========================================================================== */

.ph { max-width: 620px; }

.ph__error {
  background: #FDECE8; border: 1px solid var(--alarm); color: var(--alarm);
  border-radius: var(--r); padding: .85rem 1rem; margin: 1.2rem 0 0;
  font-size: var(--step--1);
}

.ph__form { margin-top: 1.8rem; }

/* the drop zone is the page's centre of gravity */
.ph__drop {
  position: relative; border: 2px dashed var(--rule); border-radius: var(--r-lg);
  background: var(--paper); transition: border-color .18s ease, background .18s ease;
}
.ph__drop:hover, .ph__drop:focus-within { border-color: var(--mark); background: var(--mark-wash); }
.ph__drop.has-files { border-style: solid; border-color: var(--sorted); background: var(--sorted-wash); }
.ph__drop input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.ph__drop label {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: 2.2rem 1.5rem; text-align: center; pointer-events: none;
}
.ph__drop-icon { color: var(--mark); }
.ph__drop strong { font-size: var(--step-1); color: var(--ink); font-weight: 650; }
.ph__drop-hint { font-size: var(--step--1); color: var(--quiet); max-width: 32ch; }

.ph__thumbs {
  list-style: none; padding: 0; margin: .9rem 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: .5rem;
}
.ph__thumbs[hidden] { display: none; }
.ph__thumbs li { position: relative; }
.ph__thumbs img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--rule);
}
.ph__thumbs span {
  display: block; font-family: var(--mono); font-size: .68rem;
  color: var(--quiet); margin-top: .2rem;
}
.ph__over {
  grid-column: 1 / -1; font-size: var(--step--1); color: var(--mark-ink);
}

.ph__fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: 1.4rem 0;
}
.ph__field { display: flex; flex-direction: column; gap: .3rem; }
.ph__field--wide { grid-column: 1 / -1; }
.ph__field > span {
  font-size: var(--step--1); font-weight: 600; color: var(--ink);
  display: flex; align-items: baseline; gap: .4rem;
}
.ph__field em {
  font-style: normal; font-family: var(--mono); font-size: .68rem;
  color: var(--mark-ink); text-transform: uppercase; letter-spacing: .08em;
}
.ph__field input {
  font-family: var(--text); font-size: 16px;   /* 16px stops iOS zooming on focus */
  padding: .8rem .9rem; border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--paper); color: var(--ink);
}
.ph__field input:focus-visible { border-color: var(--mark); }
.ph__field small { font-size: .78rem; color: var(--quiet); }

.ph__legal { font-size: .78rem; color: var(--quiet); margin: .8rem 0 0; text-align: center; }

.ph__alt {
  margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid var(--rule);
  text-align: center;
}
.ph__alt p { font-size: var(--step--1); color: var(--quiet); margin-bottom: .8rem; }
.ph__alt-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.4rem; }

.ph__receipt {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
  border-radius: var(--r-lg); overflow: hidden; margin: 1.6rem 0;
}
.ph__receipt > div { background: var(--paper); padding: .9rem 1rem; }
.ph__receipt span { display: block; font-size: .72rem; color: var(--quiet);
  text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono); }
.ph__receipt strong { font-size: var(--step-1); color: var(--ink); }

@media (max-width: 560px) {
  .ph__fields { grid-template-columns: 1fr; }
  .ph__receipt { grid-template-columns: 1fr; }
}

/* ==========================================================================
   The "roughly what's there" picker.

   Deliberately shows no prices. The photo page competes with giving up and
   phoning a competitor, so it asks one question — what have you got — and
   answers with a figure on the next screen. Putting the rate card here would
   turn a 20-second form into a shopping trip, and hand the whole catalogue to
   anyone scraping the page.
   ========================================================================== */

.ph__pick { margin: 2rem 0 1.6rem; }
.ph__pick-title {
  font-size: var(--step-1); margin: 0 0 .4rem;
  padding-bottom: .5rem; border-bottom: 2px solid var(--ink);
}
.ph__pick-hint { font-size: var(--step--1); color: var(--quiet); margin: 0 0 1rem; }

.ph__pick-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .5rem;
}

.pick {
  display: flex; align-items: center; gap: .7rem;
  border: 1px solid var(--rule); border-radius: var(--r);
  padding: .55rem .7rem; background: var(--paper);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pick.is-on { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--mark); }

.pick__icon {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  color: var(--ink);
}
.pick__icon svg { width: 100%; height: 100%; }
.pick.is-on .pick__icon { color: var(--mark-ink); }

.pick__name {
  flex: 1; min-width: 0; font-size: var(--step--1); font-weight: 550;
  color: var(--ink); line-height: 1.25;
}

.pick__step { display: flex; align-items: center; gap: .2rem; flex: none; }
.pick__step button {
  width: 30px; height: 30px; flex: none;
  border-radius: 7px; border: 1px solid var(--rule); background: var(--sheet);
  font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.pick__step button:hover:not(:disabled) {
  background: var(--mark); border-color: var(--mark); color: #fff;
}
.pick__step button:disabled { opacity: .3; cursor: default; }
.pick__step input {
  width: 34px; text-align: center; padding: .3rem 0;
  font-family: var(--mono); font-weight: 600; font-size: var(--step-0);
  color: var(--ink); background: transparent; border: 0;
  -moz-appearance: textfield;
}
.pick__step input::-webkit-outer-spin-button,
.pick__step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.ph__pick-extras { display: grid; gap: .45rem; margin-top: .9rem; }
.ph__check {
  display: flex; align-items: center; gap: .7rem; cursor: pointer;
  border: 1px solid var(--rule); border-radius: var(--r);
  padding: .7rem .85rem; background: var(--paper);
  font-size: var(--step--1); color: var(--ink-2);
}
.ph__check:has(input:checked) {
  border-color: var(--ink); box-shadow: inset 3px 0 0 var(--mark);
}
.ph__check input { width: 18px; height: 18px; accent-color: var(--mark); flex: none; }

/* ---------------------------------------------- the price, delivered --- */

.ph__price {
  display: grid; grid-template-columns: 2fr 1fr; gap: 1px;
  background: var(--ink); border: 1.5px solid var(--ink);
  border-radius: var(--r-lg); overflow: hidden; margin: 1.8rem 0 1.2rem;
}
.ph__price > div { background: var(--paper); padding: 1.2rem 1.3rem; }
.ph__price-label {
  display: block; font-family: var(--mono); font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--quiet);
  margin-bottom: .35rem;
}
.ph__price-fig {
  display: block; font-family: var(--mono); font-weight: 600;
  font-size: clamp(2.4rem, 8vw, 3.2rem); line-height: 1;
  letter-spacing: -.04em; color: var(--ink);
}
.ph__price-vol strong {
  display: block; font-family: var(--mono); font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 2.1rem); line-height: 1; color: var(--mark-ink);
}
.ph__price-sub {
  display: block; font-size: var(--step--1); color: var(--graphite); margin-top: .45rem;
}

.ph__promises {
  list-style: none; margin: 1.2rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem;
}
.ph__promises li {
  position: relative; padding-left: 1.2rem;
  font-size: .82rem; color: var(--quiet);
}
.ph__promises li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--sorted);
}

@media (max-width: 560px) {
  .ph__pick-grid { grid-template-columns: 1fr; }
  .ph__price { grid-template-columns: 1fr; }
}
