/* Core Coatings: pricing.css. Pricing page only, loaded after site.css + inner.css.
   One price form (trade-pricing). On a laptop the whole form and its button sit in one screen:
   heading, products and "Rather talk?" on the left, contact details and the button on the right.
   On phones it is one column: heading, products, details, then "Rather talk?". */

.price-main { padding: var(--s-6) 0 var(--s-8); }
.price-main .page-title { margin-bottom: var(--s-2); }
.price-main__sub { font-size: 18px; color: var(--muted); margin: 0; max-width: 46ch; }
.price-main .price-for { margin: var(--s-4) 0 0; }

.price-main__grid { display: grid; gap: var(--s-6); }
.price-form[hidden] { display: none !important; }

/* Step labels: "1. What do you want priced?" / "2. Where do we send it?" */
.price-form .pp legend, .price-form__step { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.price-form__step { margin: 0; }

/* Products: compact tiles, "Not sure yet" is the last tile */
.price-form .pp__item { min-height: 60px; }
.price-form .pp__browse { border-style: dashed; }
.price-form .pp__browse:has(input:checked) { border-style: solid; }

/* Contact details: the panel the eye lands on */
.price-form__contact {
  display: grid; gap: var(--s-4); align-content: start;
  padding: var(--s-5); border: 1.5px solid var(--blue-4); border-radius: var(--radius); background: var(--paper);
}
.price-form__contact .form__row { gap: var(--s-3); }
/* Phone is required and is how the price comes back, so it leads and reads a little larger. */
.field--phone .field__label { font-size: 16px; }
.field--phone .input { font-size: 18px; font-weight: 600; letter-spacing: .01em; min-height: 52px; }
.price-form__contact .photo-field__btn { min-height: 44px; padding: 0 var(--s-4); font-size: 15px; }
.photo-field__opt { font-weight: 400; }
.photo-field:has(.photo-field__preview:not([hidden])) .photo-field__opt { display: none; }
.price-form__contact .check span { font-size: 14px; }
.price-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Success: sits where the details panel was */
.price-main__grid > .form-sent { align-self: start; }

/* Rather talk? */
.price-talk {
  padding: var(--s-5); background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.price-talk h2.price-talk__title { margin: 0 0 var(--s-2); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.price-talk p { margin: 0 0 var(--s-4); font-size: 15px; line-height: 1.5; color: var(--muted); }
.price-talk__tel { font-weight: 700; color: var(--ink); white-space: nowrap; }
.price-talk__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.price-talk__actions .btn { min-height: 44px; padding: 0 var(--s-4); font-size: 15px; }
.price-talk__actions .btn .icon { width: 18px; height: 18px; }
.price-talk .price-talk__switch { margin: 0; }
.price-talk__switch a { font-weight: 600; }

@media (min-width: 1024px) {
  .price-main { padding-top: var(--s-5); }
  .price-main__grid {
    grid-template-columns: minmax(0, 1fr) 420px;
    grid-template-areas: "head contact" "products contact" "talk contact";
    grid-template-rows: auto auto 1fr;
    gap: var(--s-4) var(--s-7); align-items: start;
  }
  .price-form { display: contents; }
  .price-main__head { grid-area: head; }
  .price-form .pp { grid-area: products; }
  .price-form__contact { grid-area: contact; }
  .price-main__grid > .form-sent { grid-area: contact; }
  .price-talk { grid-area: talk; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--s-5); align-items: center; padding: var(--s-4) var(--s-5); }
  .price-talk__title, .price-talk > p:not(.price-talk__switch) { grid-column: 1; }
  .price-talk > p:not(.price-talk__switch) { margin-bottom: 0; }
  .price-talk__actions { grid-column: 2; grid-row: 1 / span 2; margin: 0; flex-direction: column; }
  .price-talk .price-talk__switch { grid-column: 1 / -1; margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }
  .price-main .page-title { font-size: 40px; }
  .price-form .pp__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .price-form .pp legend { margin-bottom: var(--s-2); }
  /* On a laptop the photo hint is extra reading; the camera note matters on a phone */
  .price-form__contact .photo-field .field__hint { display: none; }
}
@media (max-width: 1023px) {
  .price-main__grid { max-width: 640px; }
  .price-form .pp__browse { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .price-main { padding-top: var(--s-5); }
  .price-main__sub { font-size: 17px; }
  .price-form__contact { padding: var(--s-4); }
  .price-form__contact .form__row { grid-template-columns: 1fr; gap: var(--s-4); }
  .price-talk__actions .btn { flex: 1 1 0; justify-content: center; }
  .photo-field__opt { display: none; }
}
/* Send failed: keep the message compact so the button stays in the same screen */
.price-form[data-state="failed"] .form__status { padding: var(--s-2) var(--s-3); font-size: 14px; }
