/* Stitching Measurement Form — page-scoped tokens, same values as
   product-page.css/shop-page.css (this theme's convention: each
   page-scoped stylesheet carries its own copy rather than a shared
   central file). */
:root {
  --plm-deep: #1C0A00;
  --plm-maroon: #6B1E1E;
  --plm-gold: #C49A3C;
  --plm-cream: #FAF6F0;
  --plm-warm-white: #FFFDF9;
  --plm-text: #1C0A00;
  --plm-text-muted: #6B5E55;
  --plm-border: rgba(196,154,60,0.2);
  --plm-r: 6px;
  --plm-r-lg: 12px;
  --plm-font-body: 'DM Sans', sans-serif;
  --plm-font-display: 'Cormorant Garamond', Georgia, serif;
}

/* This custom page template has no #primary/#secondary markup (it
   bypasses Astra's normal page.php hierarchy entirely) — Astra's own
   core rule `@media(min-width:922px){.site-content .ast-container{
   display:flex}}` then leaves .pl-stitch-page as .ast-container's ONLY
   flex child with no flex-grow, so it shrinks to content width and
   sits at the flex-start (left) edge instead of centering. Same root
   cause, same fix as the New Arrivals page's identical bug (see
   [[punjabilibas-shop-page-redesign]] memory) — switch .ast-container
   back to block display, scoped to this page's own body class only,
   so the real shop/category archives (which rely on #primary for this
   flex layout) are untouched. */
body.page-template-page-stitching-prices .ast-container {
  display: block !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.pl-stitch-page {
  background: var(--plm-warm-white);
  padding: 32px 0 56px;
  width: 100%;
}
.pl-stitch-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* .pl-tag / .pl-divider are this theme's sitewide eyebrow+divider
   pattern (style.css, used across every homepage section) — reused
   here as-is rather than reinvented, so this page reads as part of
   the same design system. */
.pl-stitch-header {
  text-align: center;
  margin-bottom: 24px;
}
.pl-stitch-header h1 {
  font-family: var(--plm-font-display);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 600;
  color: var(--plm-deep);
  margin: 0 0 10px;
}
.pl-stitch-header p {
  font-family: var(--plm-font-body);
  font-size: 15px;
  color: var(--plm-text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── STITCHING PRICE LIST — shown first, above the form ───────
   Gold accent stripe + gold labels = colour 1 (var(--plm-gold)),
   maroon price numbers + tags = colour 2 (var(--plm-maroon)) — the
   theme's two primary brand colours, used deliberately throughout
   both this section and the form below instead of neutral grey.
   Shared card/tag classes (.pl-stitch-price-grid/-card/-label/
   -amount/-note/-applicable-title/-tags/-tag/-footnote) are the SAME
   markup/classes used in the product-page.css popup version — only
   this outer section wrapper differs between the two contexts. */
.pl-stitch-price-section {
  background: var(--plm-warm-white);
  border: 1px solid var(--plm-border);
  border-top: 3px solid var(--plm-gold);
  border-radius: var(--plm-r-lg);
  padding: 22px 24px;
  margin-bottom: 20px;
}
.pl-stitch-price-section-title {
  font-family: var(--plm-font-display);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  color: var(--plm-deep);
  margin: 0 0 14px;
  text-align: center;
}
.pl-stitch-price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.pl-stitch-price-card {
  background: var(--plm-cream);
  border: 1px solid var(--plm-border);
  border-top: 2px solid var(--plm-gold);
  border-radius: var(--plm-r);
  padding: 14px 16px;
  text-align: center;
}
.pl-stitch-price-card.is-recommended {
  border-color: #1a7a3d;
  border-top-color: #1a7a3d;
  background: rgba(26,122,61,0.06);
}
.pl-stitch-price-recommended {
  display: inline-block;
  font-family: var(--plm-font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #fff;
  background: #1a7a3d;
  border-radius: 20px;
  padding: 2px 8px;
  margin-bottom: 6px;
}
.pl-stitch-price-label {
  font-family: var(--plm-font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--plm-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.pl-stitch-price-amount {
  font-family: var(--plm-font-body);
  font-size: 26px;
  font-weight: 700;
  color: var(--plm-maroon);
  line-height: 1;
  margin-bottom: 6px;
}
.pl-stitch-price-amount span {
  font-size: 15px;
  font-weight: 600;
  color: var(--plm-text-muted);
}
.pl-stitch-price-note {
  font-family: var(--plm-font-body);
  font-size: 12.5px;
  color: var(--plm-text-muted);
  line-height: 1.4;
}
.pl-stitch-price-applicable-title {
  font-family: var(--plm-font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--plm-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.pl-stitch-price-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.pl-stitch-price-tag {
  font-family: var(--plm-font-body);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--plm-maroon);
  background: rgba(107,30,30,0.06);
  border: 1px solid var(--plm-border);
  border-radius: 20px;
  padding: 5px 13px;
}
.pl-stitch-price-footnote {
  font-family: var(--plm-font-body);
  font-size: 12.5px;
  color: var(--plm-text-muted);
  font-style: italic;
  margin: 0;
  line-height: 1.5;
  text-align: center;
}

/* ── MEASUREMENT FORM — compact, maroon accent stripe (colour 2)
   pairs with the price section's gold stripe (colour 1) above. ──── */
.pl-stitch-form-header {
  margin: 0 0 12px;
}
.pl-stitch-form-header h2 {
  font-family: var(--plm-font-display);
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 600;
  color: var(--plm-deep);
  margin: 0 0 4px;
  text-align: center;
}
.pl-stitch-form-header p {
  font-family: var(--plm-font-body);
  font-size: 13.5px;
  color: var(--plm-text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.5;
  text-align: center;
}

.pl-stitch-form {
  background: var(--plm-cream);
  border: 1px solid var(--plm-border);
  border-top: 3px solid var(--plm-maroon);
  border-radius: var(--plm-r-lg);
  padding: 18px 20px;
}

.pl-stitch-customer-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--plm-border);
}

.pl-stitch-section {
  margin-bottom: 14px;
}
.pl-stitch-section-title {
  font-family: var(--plm-font-body);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--plm-maroon);
  padding: 7px 14px;
  border-radius: var(--plm-r);
  margin-bottom: 10px;
}

.pl-stitch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.pl-stitch-field {
  display: flex;
  flex-direction: column;
}
.pl-stitch-field label {
  font-family: var(--plm-font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--plm-text);
  margin-bottom: 3px;
}
.pl-stitch-bilingual {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--plm-text-muted);
  margin-top: 1px;
}
.pl-stitch-required {
  color: var(--plm-maroon);
}

.pl-stitch-field input,
.pl-stitch-field textarea,
.pl-stitch-section textarea {
  font-family: var(--plm-font-body);
  font-size: 14px;
  color: var(--plm-text);
  background: var(--plm-warm-white);
  border: 1.5px solid var(--plm-border);
  border-radius: var(--plm-r);
  padding: 7px 10px;
  width: 100%;
  box-sizing: border-box;
}
.pl-stitch-field input:focus,
.pl-stitch-section textarea:focus {
  outline: none;
  border-color: var(--plm-gold);
}

.pl-stitch-section textarea {
  resize: vertical;
}

.pl-stitch-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
  padding: 11px 18px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: var(--plm-r-lg);
  font-family: var(--plm-font-body);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.pl-stitch-submit-btn:hover {
  background: #1EBE57;
}

.pl-stitch-pdf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 18px;
  background: transparent;
  color: var(--plm-maroon);
  border: 2px solid var(--plm-maroon);
  border-radius: var(--plm-r-lg);
  font-family: var(--plm-font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.pl-stitch-pdf-btn:hover {
  background: rgba(107,30,30,0.06);
}

.pl-stitch-note-msg {
  text-align: center;
  font-size: 11.5px;
  color: var(--plm-text-muted);
  margin: 5px 0 0;
}

@media (max-width: 768px) {
  .pl-stitch-customer-row {
    grid-template-columns: 1fr 1fr;
  }
  .pl-stitch-grid {
    grid-template-columns: 1fr;
  }
  .pl-stitch-form {
    padding: 16px;
  }
  .pl-stitch-price-section {
    padding: 18px;
  }
}
@media (max-width: 480px) {
  .pl-stitch-price-grid {
    grid-template-columns: 1fr;
  }
  .pl-stitch-customer-row {
    grid-template-columns: 1fr;
  }
}
