/* Help & Contact page (help.html + js/help.js). Uses the store theme's colours with fallbacks. */
.help { padding-bottom: clamp(3rem, 7vw, 6rem); }

/* quick start cards */
.help__quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; max-width: 1180px; margin: 0 auto 3rem; padding: 0 var(--gutter); }
.help__quick a { display: flex; flex-direction: column; gap: .3rem; padding: 1.2rem 1.3rem; background: var(--white); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.help__quick a:hover, .help__quick a:focus-visible { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.help__quick b { font-family: var(--display, var(--serif)); font-weight: var(--display-weight, 600); font-size: 1.2rem; color: var(--rust, var(--ink)); }
.help__quick span { font-size: .85rem; color: var(--ink-soft); }

.help__wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); align-items: start; }
.help h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 1.2rem; }

/* answers */
.help__faq h3 { margin: 2rem 0 .3rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-family: var(--sans); font-weight: 600; scroll-margin-top: 140px; }
.help__faq h3:first-of-type { margin-top: 0; }
.help__faq summary { text-transform: none; letter-spacing: 0; font-size: .98rem; font-weight: 600; gap: 1rem; }
.help__faq details p, .help__faq details ul { line-height: 1.6; }
.help__contact { line-height: 1.7; color: var(--ink-soft); }
.help__contact a, .help__faq a { text-decoration: underline; text-underline-offset: 3px; }

/* form */
.help__ask { background: var(--white); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: clamp(1.3rem, 3vw, 2.2rem); scroll-margin-top: 120px; }
.help__ask fieldset { margin-bottom: 1.6rem; }
.help__legend { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink); margin-bottom: .7rem; display: block; }
.help__hint { margin: -.3rem 0 .7rem; font-size: .85rem; color: var(--muted); }
.help__types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.help__types .option { padding: .7rem .8rem; gap: .5rem; font-size: .9rem; }
.help__types input { accent-color: var(--ink); }
.help__refund { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.help__refund .option { padding: .8rem .9rem; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.help__refund .option input { margin-top: .2rem; accent-color: var(--ink); flex: none; }
.help__refund small { display: block; color: var(--muted); font-size: .8rem; margin-top: .15rem; }
#upiField { margin-top: .9rem; }
.help__wallet-note { margin: .8rem 0 0; }
.help__wallet-note a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .help__refund { grid-template-columns: minmax(0, 1fr); } }
.help .field textarea { font: inherit; font-size: .95rem; padding: .85rem 1rem; border: 1px solid var(--line); background: var(--white); color: var(--ink); width: 100%; resize: vertical; }
.help .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(201, 162, 74, .25); }
.help .field.invalid textarea { border-color: #b3261e; }
.help .field input[type=file] { padding: .6rem; font-size: .85rem; }
.help__thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.help__thumbs img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--line); }
.help__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* orders on this device */
.help__orders { display: grid; gap: .8rem; max-height: 22rem; overflow-y: auto; padding-right: .2rem; }
.help__order { border: 1px solid var(--line); background: var(--paper); padding: .6rem; }
.help__orderhead { display: flex; justify-content: space-between; gap: .5rem; font-size: .8rem; letter-spacing: .06em; margin: 0 .2rem .4rem; color: var(--ink-soft); }
.help__line { display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left; padding: .45rem; background: var(--white); border: 1px solid var(--line); cursor: pointer; font: inherit; color: inherit; }
.help__line + .help__line { margin-top: .4rem; }
.help__line img { width: 44px; height: 56px; object-fit: cover; flex: none; background: var(--cream); }
.help__line b { display: block; font-size: .9rem; }
.help__line small { color: var(--muted); font-size: .78rem; }
.help__line[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--accent-soft, var(--cream)); }

.help__done { text-align: center; padding: 1.5rem .5rem; }
.help__done h3 { font-family: var(--display, var(--serif)); font-weight: var(--display-weight, 600); font-size: 1.8rem; margin: 0 0 .6rem; }
.help__done p { color: var(--ink-soft); margin: 0 0 1.4rem; }

@media (max-width: 900px) {
  .help__quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help__wrap { grid-template-columns: minmax(0, 1fr); }
  .help__ask { order: -1; }
}
@media (max-width: 520px) {
  .help__quick { gap: .6rem; }
  .help__quick a { padding: .9rem; }
  .help__quick b { font-size: 1.02rem; }
  .help__types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help .row { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
