/* ==========================================================
   Form pages: Support (support.html) and General Inquiries (contact.html)
   ========================================================== */

/* ---------- Page hero ---------- */
.pg-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 90px)) 0 clamp(40px, 5vw, 64px);
}
.pg-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(195, 1, 1, 0.16), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(255, 140, 90, 0.12), transparent 70%);
}
/* faint blueprint grid that fades out towards the bottom */
.pg-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 64px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.crumbs, .pg-steps { list-style: none; padding: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); transition: color 0.3s; }
.crumbs a:hover { color: var(--red); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.crumbs [aria-current] { color: var(--fg); font-weight: 600; }
.pg-hero__title { max-width: 900px; margin-top: 14px; font-size: clamp(38px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
.pg-hero__lead { max-width: 620px; margin-top: 20px; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); }

/* quick facts under the hero text */
.pg-quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.pg-quick a, .pg-quick span {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; font-weight: 600;
  box-shadow: 0 14px 30px -24px var(--shadow); transition: border-color 0.3s, translate 0.3s var(--ease);
}
.pg-quick a:hover { border-color: var(--red); translate: 0 -2px; }
.pg-quick i {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  background: linear-gradient(145deg, var(--red-2), var(--red-deep)); color: #fff;
}
.pg-quick svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Steps (support) ---------- */
.pg-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 44px; counter-reset: step; }
.pg-steps li {
  position: relative; padding: 22px 22px 22px 70px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line);
}
.pg-steps li::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff;
  background: linear-gradient(145deg, var(--red-2), var(--red-deep));
}
.pg-steps b { display: block; font-size: 16px; }
.pg-steps span { font-size: 14px; color: var(--muted); }

/* ---------- Form + aside layout ---------- */
.pg-body { padding: clamp(24px, 4vw, 48px) 0 clamp(80px, 10vw, 120px); }
.pg-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 28px; align-items: start; }

.pf-card {
  position: relative; overflow: hidden; padding: clamp(26px, 4vw, 44px); border-radius: 28px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 80px -50px var(--shadow);
}
.pf-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--red), var(--red-2)); }
.pf-card__title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }
.pf-card__lead { margin: 8px 0 28px; color: var(--muted); }

.pf { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.pf__field { display: block; }
.pf__field--full { grid-column: 1 / -1; }
.pf__label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 7px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pf__label em { font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; opacity: 0.8; }
.pf__field input, .pf__field select, .pf__field textarea {
  width: 100%; padding: 13px 16px; border-radius: 14px; font: inherit; font-size: 15.5px; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line); outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.pf__field textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.pf__field select {
  appearance: none; cursor: pointer; padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat;
}
.pf__field input::placeholder, .pf__field textarea::placeholder { color: var(--muted); opacity: 0.7; }
.pf__field input:focus, .pf__field select:focus, .pf__field textarea:focus {
  border-color: var(--red); background-color: var(--surface); box-shadow: 0 0 0 4px rgba(195, 1, 1, 0.12);
}
.pf__field.is-bad input, .pf__field.is-bad select, .pf__field.is-bad textarea { border-color: #e11d48; box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12); }
.pf__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 6px; }
.pf__note { font-size: 13px; color: var(--muted); max-width: 340px; }
.pf__msg { grid-column: 1 / -1; min-height: 1.4em; font-size: 14px; font-weight: 600; color: #e11d48; }
.pf button[type="submit"].is-busy { opacity: 0.75; cursor: progress; }
.pf button[type="submit"].is-busy span::after { content: "…"; }
.pf button[type="submit"].is-busy svg { animation: pfSpin 0.9s linear infinite; }
@keyframes pfSpin { to { rotate: 360deg; } }

/* sent state */
.pf-done { padding: 30px 0 10px; text-align: center; }
.pf-done[hidden] { display: none; }
.pf-done__tick {
  width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--red-2), var(--red-deep)); box-shadow: 0 22px 44px -16px rgba(195, 1, 1, 0.7);
  animation: pfPop 0.6s var(--ease);
}
.pf-done__tick svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pf-done p { max-width: 420px; margin: 8px auto 24px; color: var(--muted); }
@keyframes pfPop { from { transform: scale(0.6); opacity: 0; } }

/* ---------- Aside cards ---------- */
.pg-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
.pa-card { padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.pa-card h3 { margin: 10px 0 6px; font-size: 20px; letter-spacing: -0.01em; }
.pa-card p { color: var(--muted); font-size: 15px; }
.pa-card .clock { margin-top: 14px; }
.pa-card--dark {
  color: #fff; border-color: transparent;
  background:
    radial-gradient(circle at 100% 0%, rgba(195, 1, 1, 0.45), transparent 60%),
    linear-gradient(160deg, #1d1118, #0d0a0f);
}
.pa-card--dark p { color: rgba(255, 255, 255, 0.68); }
.pa-card--dark .subtitle { color: var(--red-2); }
.pa-lines { display: grid; gap: 8px; margin-top: 14px; }
.pa-lines a { display: flex; align-items: center; gap: 12px; font-weight: 600; transition: color 0.3s; }
.pa-lines a:hover { color: var(--red); }
.pa-lines i { width: 36px; height: 36px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); color: var(--red); }
.pa-lines svg { width: 18px; height: 18px; fill: currentColor; }
.pa-links { margin-top: 12px; }
.pa-links li { border-top: 1px solid var(--line); }
.pa-links li:first-child { border-top: 0; }
.pa-links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; font-size: 15px; font-weight: 600; transition: color 0.3s, padding 0.3s var(--ease); }
.pa-links a::after { content: "↗"; color: var(--muted); transition: color 0.3s; }
.pa-links a:hover { color: var(--red); padding-left: 6px; }
.pa-links a:hover::after { color: var(--red); }
.pa-links small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.pa-checks { display: grid; gap: 8px; margin-top: 14px; }
.pa-checks li { display: flex; gap: 10px; font-size: 14.5px; color: rgba(255, 255, 255, 0.85); }
.pa-checks svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; fill: none; stroke: var(--red-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pa-map { overflow: hidden; padding: 0; }
.pa-map iframe { display: block; width: 100%; height: 240px; border: 0; filter: grayscale(0.35); }
.pa-map div { padding: 20px 24px 22px; }

@media (max-width: 1000px) {
  .pg-grid { grid-template-columns: minmax(0, 1fr); }
  .pg-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pg-steps { grid-template-columns: minmax(0, 1fr); }
  .pf { grid-template-columns: minmax(0, 1fr); }
  .pg-aside { grid-template-columns: minmax(0, 1fr); }
  .pf__foot .btn { width: 100%; justify-content: center; }
}
