/* Shared template for /support/*.html pages: hero + form/contact grid + downloads. */

/* ---- hero ---- */
.sup-hero { padding: clamp(48px, 6vw, 84px) 0 clamp(28px, 4vw, 44px); }

.sup-hero h1 { margin: 0; color: var(--purple); font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; font-size: clamp(30px, 3.6vw, 50px); }
.sup-hero h1 em { font-style: normal; color: var(--o); }
.sup-link { color: var(--purple); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(55, 48, 92, 0.35); transition: text-decoration-color 0.2s; }
.sup-link:hover { text-decoration-color: var(--o); }
.sup-hero p { margin: 16px 0 0; max-width: 56ch; color: var(--mute); font-size: clamp(15.5px, 1.15vw, 18px); line-height: 1.6; }

/* ---- contacts: form + direct-reach panel ---- */
.sup { padding: 0 0 clamp(64px, 8vw, 110px); }
.sup__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); gap: clamp(24px, 3vw, 40px); align-items: start; }

.sup-form { padding: clamp(24px, 3vw, 34px); background: #fff; border: 1px solid var(--line); border-radius: clamp(22px, 3vw, 28px); box-shadow: var(--shadow-sm); }
.sup-form h2 { margin: 0 0 20px; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 20px; }
.sup-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sup-form .field { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.sup-form .field-row .field { margin-top: 0; }
.sup-form label { font-size: 13px; font-weight: 700; color: var(--ink); }
.sup-form .req { color: #b3261e; font-weight: 800; }
.sup-form input, .sup-form select, .sup-form textarea {
  font: inherit; font-size: 14.5px; padding: 12px 14px; border: 1.5px solid #767676; border-radius: 12px;
  background: var(--surface); color: var(--ink); transition: border-color 0.25s, background 0.25s;
}
.sup-form input:focus, .sup-form select:focus, .sup-form textarea:focus { border-color: #37305c; background: #fff; }
.sup-form textarea { resize: vertical; min-height: 110px; }
.sup-form .consent { margin-top: 18px; display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: var(--plum); line-height: 1.5; }
.sup-form .consent input { margin-top: 3px; accent-color: var(--o); }
.sup-form .consent a { color: var(--ink); font-weight: 700; text-decoration: underline; }

.sup-form .submit-btn { margin-top: 22px; }

.sup-form .form-trust { margin: 18px 0 0; font-size: 12px; color: var(--mute); line-height: 1.5; }

.sup-direct h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 19px; }
.sup-direct > p { margin: 0 0 20px; font-size: 13.5px; color: var(--plum); }
.direct-list { display: grid; gap: 16px; }
.direct-list li { display: flex; align-items: flex-start; gap: 12px; }
.direct-list i { flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--o-soft); color: var(--ink); font-size: 18px; }
.direct-list b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.direct-list span, .direct-list a { font-size: 13.5px; color: var(--plum); }
.direct-list a { text-decoration: underline; }

/* ---- downloads ---- */

.downloads-grid { margin-top: clamp(28px, 3.4vw, 40px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 32px); }
.downloads-group { padding: 22px 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.downloads-group h4 { margin: 0 0 14px; font-size: 14.5px; font-weight: 800; letter-spacing: -0.01em; }
.downloads-group ul { display: grid; gap: 10px; }
.downloads-group li a, .downloads-group li span {
  display: flex; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 1.4; color: var(--plum);
}
.downloads-group li a { transition: color 0.25s; }
.downloads-group li a:hover { color: var(--o); }
.downloads-group li a i, .downloads-group li span i { margin-top: 3px; flex-shrink: 0; color: var(--o); font-size: 13px; }

/* ---- FAQ placeholder ---- */
.faq-panel { padding: clamp(24px, 3vw, 34px); background: #fff; border: 1px solid var(--line); border-radius: clamp(22px, 3vw, 28px); text-align: center; }
.faq-empty { margin: 0; color: var(--mute); font-size: 14.5px; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .sup__grid { grid-template-columns: 1fr; }
  .downloads-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sup-form .field-row { grid-template-columns: 1fr; }
  .downloads-grid { grid-template-columns: 1fr; }
}

/* ---- escalation matrix + office map ---- */
.esc { padding: clamp(44px, 5.5vw, 76px) 0; background: #f6f5fa; border-block: 1px solid var(--line); }

.map { margin-top: clamp(22px, 3vw, 34px); }
.map iframe { display: block; width: 100%; height: clamp(280px, 34vw, 420px); border: 0; border-radius: 20px; }

/* ---- Download Our App: purple feature band, phone right ---- */
.appdl { position: relative; overflow: hidden; margin-block: 8px clamp(40px, 5vw, 64px); background: linear-gradient(150deg, var(--purple) 0%, var(--purple-deep) 100%); color: #fff; }
.appdl__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(32px, 3.6vw, 52px); }
.appdl__visual { order: -1; }
.appdl__lines { transform: scaleX(-1); }
.appdl__copy p { margin: 18px 0 0; max-width: 46ch; color: rgba(255, 255, 255, 0.78); font-size: clamp(15.5px, 1.2vw, 18px); line-height: 1.65; }
.appdl__actions { margin-top: 30px; }
.appdl__stores { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.appdl__stores img { height: 42px; width: auto; }
.appdl__visual { position: relative; display: grid; place-items: center; min-height: clamp(220px, 22vw, 290px); }
.appdl__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.appdl__phone { position: relative; width: clamp(120px, 12vw, 165px); filter: drop-shadow(0 40px 40px rgba(0, 0, 0, 0.45)); transform: none; transition: transform 0.5s var(--ease); }
.appdl__phone:hover { transform: translateY(-6px); }
.appdl__phone img { display: block; width: 100%; height: auto; }
.downloads-page { padding-top: 0; }
@media (max-width: 860px) { .appdl__grid { grid-template-columns: 1fr; } .appdl__visual { order: 0; } .appdl__visual { min-height: 0; padding-block: 8px 24px; } }

/* ---- Downloads: coloured group cards ---- */
.downloads-page { padding-block: clamp(36px, 5vw, 64px) clamp(64px, 8vw, 110px); background: linear-gradient(180deg, #f6f5fa 0%, #fff 70%); }
.downloads-grid { margin-top: 0; align-items: start; grid-template-columns: 1fr; gap: 14px; }
/* accordion: summary acts as the heading */
.downloads-group summary { list-style: none; cursor: pointer; padding-right: 96px; user-select: none; }
.downloads-group summary::-webkit-details-marker { display: none; }
.downloads-group summary:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.downloads-group summary .dl-caret { position: absolute; right: 18px; top: 50%; z-index: 1; margin-top: -9px; width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.downloads-group[open] summary .dl-caret { transform: rotate(180deg); }
.downloads-group {
  --g1: var(--purple); --g2: var(--purple-deep); --acc: var(--purple);
  padding: 0; overflow: hidden; background: #fff; border: 1px solid rgba(55, 48, 92, 0.1); border-radius: 20px;
  box-shadow: 0 18px 40px -28px rgba(42, 36, 71, 0.45);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.downloads-group:nth-child(3n+2) { --g1: #453c73; --g2: #a55a1c; --acc: #d9700f; }
.downloads-group:nth-child(3n) { --g1: #37305c; --g2: #453c73; --acc: #7466b5; }
.downloads-group:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -26px rgba(42, 36, 71, 0.55); }
.downloads-group h4, .downloads-group summary {
  position: relative; margin: 0; padding: 20px 22px 18px; color: #fff; font-family: var(--display); font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em;
  background: linear-gradient(120deg, var(--g1), var(--g2)); overflow: hidden;
}
.downloads-group h4::after, .downloads-group summary::after { /* soft orange glow in the corner */
  content: ""; position: absolute; right: -30px; top: -50px; width: 130px; height: 130px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(241, 135, 23, 0.55), transparent 72%);
}
.downloads-group h4::before, .downloads-group summary::before { /* count pill */
  content: attr(data-count); position: absolute; right: 46px; top: 50%; transform: translateY(-50%); z-index: 1;
  min-width: 26px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); font-size: 12px; font-weight: 700; text-align: center;
}
.downloads-group ul { padding: 10px 10px 14px; gap: 2px; }
.downloads-group li a {
  align-items: center; gap: 8px; padding: 8px 12px 8px 10px; border-radius: 10px; font-size: 13.5px; color: var(--ink);
  border-left: 3px solid transparent; transition: background 0.2s, border-color 0.2s, color 0.2s, padding-left 0.2s;
}
.downloads-group li a:hover { background: linear-gradient(90deg, rgba(55, 48, 92, 0.07), transparent); border-left-color: var(--acc); color: var(--purple); padding-left: 14px; }
.downloads-group li a i { margin-top: 0; color: var(--acc); }
.downloads-group li a::after { /* file-type chip */
  content: "FILE"; margin-left: auto; flex-shrink: 0; padding: 2px 7px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: 0.06em;
  color: var(--purple); background: rgba(55, 48, 92, 0.08);
}
.downloads-group li a[href$=".pdf"]::after { content: "PDF"; color: #b3261e; background: rgba(217, 48, 37, 0.1); }
.downloads-group li a[href$=".docx"]::after { content: "DOC"; color: #1a5fb4; background: rgba(26, 95, 180, 0.1); }
.downloads-group li a[href$=".zip"]::after { content: "ZIP"; color: #a55a1c; background: rgba(241, 135, 23, 0.16); }

/* ---- escalation: closing text + regulator links ---- */
.esc__after { margin-top: clamp(22px, 3vw, 34px); text-align: center; }
.esc__lodge { margin: 0; font-size: 15px; color: var(--ink); }
.esc__links { margin: 16px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.esc__links a { display: inline-block; padding: 7px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--purple); background: #fff; border: 1px solid rgba(55, 48, 92, 0.2); transition: background 0.25s, color 0.25s, border-color 0.25s; }
.esc__links a:hover { background: var(--purple); color: #fff; border-color: var(--purple); }
.esc__note { margin: 18px 0 0; font-size: 14px; color: var(--plum); }
.rtable a { color: var(--purple); font-weight: 600; }
.rtable a:hover { color: var(--o); text-decoration: underline; }
.rtable td[data-label="Contact no"] { white-space: nowrap; }

/* contact form Submit button: no glow / shadow */
.submit-btn, .submit-btn:hover, .submit-btn:focus-visible { box-shadow: none; animation: none; }
.submit-btn::after { animation: none; }
.esc { scroll-margin-top: 90px; }

/* Office map now lives in the "Reach us directly" card, beside the form */
.sup-map { margin-top: 22px; }
.sup-map iframe { display: block; width: 100%; height: clamp(240px, 24vw, 320px); border: 0; border-radius: 16px; }

/* Downloads accordion rows: full width, roomy tap target, one open at a time (js/downloads.js) */
.downloads-group summary { min-height: 64px; display: flex; align-items: center; }

/* form: persistent hints, text errors linked to fields, error summary (WCAG 3.3.1 / 3.3.2 / 3.3.3) */
.sup-form .form-legend { margin: -8px 0 16px; font-size: 13px; color: var(--plum); }
.sup-form .field-hint { margin: 0; font-size: 12.5px; line-height: 1.4; color: #5f5b78; }
.sup-form .field-error { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.4; color: #b3261e; }
.sup-form .field-error::before { content: "Error: "; }
.sup-form .field-error[hidden], .sup-form .form-errors[hidden] { display: none; }
.sup-form input[aria-invalid="true"], .sup-form select[aria-invalid="true"], .sup-form textarea[aria-invalid="true"] { border-color: #b3261e; border-width: 2px; background: #fff; }
.sup-form .form-errors { margin: 0 0 18px; padding: 14px 16px; border: 2px solid #b3261e; border-radius: 12px; background: #fdf3f2; color: #5c1410; font-size: 14px; line-height: 1.5; }
.sup-form .form-errors p { margin: 0 0 6px; font-weight: 800; }
.sup-form .form-errors ul { margin: 0; padding-left: 20px; list-style: disc; }
.sup-form .form-errors a { color: #5c1410; font-weight: 700; text-decoration: underline; }
.sup-form .consent-wrap { margin-top: 18px; }
.sup-form .consent-wrap .consent { margin-top: 0; }
.sup-form .consent input { width: 20px; height: 20px; flex: none; accent-color: #37305c; }
.sup-form .consent-link { margin: 6px 0 0 30px; font-size: 12.5px; }
.sup-form .consent-link a { color: #37305c; font-weight: 700; text-decoration: underline; }
.sup-form .consent-wrap .field-error { margin: 8px 0 0 30px; }
.sup-form .form-note { margin: 12px 0 0; font-size: 14px; font-weight: 700; }

/* open accordion: the heading bar keeps its full width; the file list below it is a narrower, centred white card, so no empty white area is left beside the files */
.downloads-group[open] { background: transparent; border: 0; box-shadow: none; overflow: visible; }
.downloads-group[open] summary { border-radius: 20px; }
.downloads-group[open] ul { max-width: 720px; margin: 10px auto 6px; background: #fff; border: 1px solid rgba(55, 48, 92, 0.1); border-radius: 18px; box-shadow: 0 18px 40px -28px rgba(42, 36, 71, 0.45); }

/* contact names stay on one line in the tables */
@media (min-width: 721px) { .rtable td[data-label="Contact Person"], .rtable td[data-label="Contact person"] { white-space: nowrap; } }

/* escalation table: address line 2, email and hours time stay unbroken */
@media (min-width: 721px) { .rtable td[data-label="Address"], .rtable td[data-label="Email ID"], .rtable td[data-label="Working hours"] { white-space: nowrap; } }

/* Downloads rows loaded from the admin portal (js/downloads.js): title + optional description, file type, Download button.
   Replaces the generated "FILE" chip of the hand-written links above. */
.downloads-group li a.dl-item__link::after { content: none; }
.dl-item__link { align-items: center; gap: 10px; }
.dl-item__text { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.dl-item__title { font-weight: 600; }
.dl-item__desc { font-size: 12.5px; line-height: 1.4; color: var(--plum); }
.dl-item__type { flex: none; padding: 2px 7px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; white-space: nowrap; color: var(--purple); background: rgba(55, 48, 92, 0.08); }
.dl-item__type--pdf { color: #b3261e; background: rgba(217, 48, 37, 0.1); }
.dl-item__type--doc, .dl-item__type--docx, .dl-item__type--rtf { color: #1a5fb4; background: rgba(26, 95, 180, 0.1); }
.dl-item__type--xls, .dl-item__type--xlsx, .dl-item__type--csv { color: #1b7a3d; background: rgba(27, 122, 61, 0.12); }
.dl-item__type--zip { color: #a55a1c; background: rgba(241, 135, 23, 0.16); }
.dl-item__btn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--purple); background: rgba(55, 48, 92, 0.07); transition: background 0.2s, color 0.2s; }
.dl-item__link:hover .dl-item__btn, .dl-item__link:focus-visible .dl-item__btn { background: var(--o); color: #fff; }
.downloads-group li a.dl-item__link .dl-item__btn i { margin: 0; color: inherit; font-size: 15px; }
@media (max-width: 560px) { .dl-item__btn span { display: none; } .dl-item__btn { padding: 7px 9px; } }
