/* ============================================================
   XYRA — Support & Contact (/support, resources/views/services/support.blade.php)
   One page for help and contact. Scoped to .sc and prefixed sc-; the shared
   header, footer and chat widget keep their own styles. Behaviour:
   js/support-contact.js.
   ============================================================ */
.sc {
  --p: #4034C9; --p-dk: #2F25A8; --p-lt: #EEECFB;
  --ink: #15123B; --body: #4A4868; --mute: #625F80;
  --tint: #F6F4FF; --line: #E7E4F8;
  --ok: #127A45; --ok-bg: #E6F6EC; --warn: #9A4A0B; --warn-bg: #FFF0E3;
  --sc-pad: 104px;
  --sc-hdr: 80px;          /* set to the real header height by the script */
  color: var(--ink);
  background: #FFFFFF;
}
.sc *, .sc *::before, .sc *::after { box-sizing: border-box; }
/* the shared shell forces its own face on headings and buttons; this page is Figtree with Bricolage headings */
.sc, .sc * { font-family: 'Figtree', system-ui, sans-serif !important; }
.sc .sc-h, .sc .sc-h * { font-family: 'Bricolage Grotesque', sans-serif !important; letter-spacing: -0.02em; }
.sc .bi::before { font-family: 'bootstrap-icons' !important; }
.sc :where(h1, h2, h3, p, ul, fieldset) { margin: 0; }
.sc :where(ul) { list-style: none; padding: 0; }
.sc :focus-visible { outline: 3px solid #F0822C; outline-offset: 3px; }
.sc a { color: var(--p); }
.sc a:hover { color: var(--p-dk); }
html:has(.sc) { scroll-behavior: smooth; }
html:has(.sc), body:has(.sc) { overflow-x: clip; }

/* ---- layout ---- */
.sc-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sc-sec { padding: var(--sc-pad) 0; background: #FFFFFF; scroll-margin-top: var(--sc-hdr); }
.sc-sec--tint { background: var(--tint); }
.sc-head { max-width: 640px; margin: 0 auto 48px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.sc-h { color: var(--ink); }
.sc-h1 { font-size: clamp(38px, 5vw, 58px); font-weight: 800; line-height: 1.04; }
.sc-h2 { font-size: clamp(32px, 4vw, 44px); font-weight: 800; line-height: 1.1; }
.sc-lead { font-size: 17px; line-height: 1.65; color: var(--body); }
.sc-c-p { color: var(--p); }
.sc-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--p-lt); color: var(--p); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---- buttons, chips, cards ---- */
.sc a.sc-btn, .sc button.sc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.sc .sc-btn--p { background: var(--p); color: #FFFFFF; }
.sc .sc-btn--p:hover { background: var(--p-dk); color: #FFFFFF; }
.sc .sc-btn--g { background: #FFFFFF; color: var(--ink); border: 1.5px solid #D8D3F7; }
.sc .sc-btn--g:hover { border-color: var(--p); color: var(--p); }
.sc .sc-btn--full { width: 100%; }
.sc-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.sc-chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.sc-chip--ok { background: var(--ok-bg); color: var(--ok); }
.sc-chip--p { background: var(--p-lt); color: var(--p); }
.sc-chip--warn { background: var(--warn-bg); color: var(--warn); }
.sc-chip--mute { background: #EFEEF4; color: var(--mute); }
.sc-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; }
.sc-lift { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.sc-lift:hover { transform: translateY(-4px); border-color: #CFC8F6; box-shadow: 0 24px 48px -26px rgba(21, 18, 59, 0.3); }
.sc-ic { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; background: var(--p-lt); color: var(--p); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.sc-ic--sm { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; font-size: 18px; }

/* ============================================================
   1 — HERO + in-page nav
   ============================================================ */
.sc-hero { background: linear-gradient(180deg, #F3F0FF 0%, #FFFFFF 100%); padding: 88px 0 0; scroll-margin-top: var(--sc-hdr); }
.sc-hero-row { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.sc-hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.sc-hero-copy .sc-lead { max-width: 520px; }
.sc-status { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mute); }
.sc-status-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: #1F9D5C; animation: sc-pulse 1.6s infinite; }
.sc-status.is-off .sc-status-dot { background: #9A97B5; animation: none; }
.sc-hero-card-wrap { position: relative; flex: 1 1 420px; max-width: 480px; }
.sc-float { position: absolute; z-index: 2; right: 20px; top: -18px; padding: 8px 14px; border-radius: 999px; background: var(--p); color: #FFFFFF; font-size: 13px; font-weight: 700; box-shadow: 0 14px 30px -12px rgba(64, 52, 201, 0.7); }
.sc-hero-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 60px -30px rgba(21, 18, 59, 0.3); }
.sc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 2px; }
.sc-stats > div { background: var(--tint); border-radius: 14px; padding: 14px 8px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.sc-stats strong { font-size: 26px; font-weight: 800; }
.sc-stats span { font-size: 12px; color: var(--mute); }
.sc a.sc-chan, .sc button.sc-chan { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #FFFFFF; color: var(--ink); text-decoration: none; text-align: left; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.sc .sc-chan:hover { transform: translateY(-2px); border-color: #CFC8F6; box-shadow: 0 16px 30px -22px rgba(21, 18, 59, 0.35); color: var(--ink); }
.sc-chan-ic { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: var(--p-lt); color: var(--p); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.sc-chan-ic--ok { background: var(--ok-bg); color: var(--ok); }
.sc-chan-ic--warn { background: var(--warn-bg); color: var(--warn); }
.sc-chan-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sc-chan-t strong { font-size: 15px; }
.sc-chan-t span { font-size: 13px; color: var(--mute); }

/* ============================================================
   2 — RESOURCES
   ============================================================ */
#resources { padding-top: 88px; }
.sc-res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: stretch; }
.sc .sc-res { padding: 28px; display: flex; flex-direction: column; gap: 14px; color: inherit; text-decoration: none; }
.sc-res-t { font-size: 19px; font-weight: 700; }
.sc-res-x { flex: 1; font-size: 15px; line-height: 1.6; color: var(--mute); }
.sc-res-cta { font-size: 14px; font-weight: 700; color: var(--p); }

/* ============================================================
   3 — VISIT US (map and details always the same height)
   ============================================================ */
.sc-visit { display: flex; flex-wrap: wrap; overflow: hidden; border-radius: 24px; box-shadow: 0 30px 60px -36px rgba(21, 18, 59, 0.35); }
.sc-map { position: relative; flex: 999 1 560px; min-width: 0; min-height: 460px; background: #ECEAF2; }
.sc-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sc .sc-map-btn { position: absolute; left: 16px; bottom: 16px; padding: 10px 16px; border-radius: 999px; background: #FFFFFF; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px -12px rgba(21, 18, 59, 0.45); }
.sc .sc-map-btn:hover { color: var(--p); }
.sc-visit-info { flex: 1 1 360px; padding: 32px; display: flex; flex-direction: column; }
.sc-visit-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sc-visit-row:first-child { padding-top: 0; }
.sc-visit-k { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.sc-visit-v { font-size: 15px; font-weight: 600; line-height: 1.5; margin-top: 4px; }
.sc .sc-visit-cta { margin-top: auto; }
.sc-visit-row:last-of-type { margin-bottom: 24px; }

/* ============================================================
   4 — SEND A MESSAGE
   ============================================================ */
.sc-msg { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.sc-talk { position: relative; overflow: hidden; flex: 1 1 340px; display: flex; flex-direction: column; gap: 22px; padding: 36px; border-radius: 24px; background: var(--p); color: #FFFFFF; }
.sc-talk-ring { position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, 0.07); }
.sc-talk-t { color: #FFFFFF; font-size: 28px; font-weight: 800; }
.sc-talk-x { font-size: 15px; line-height: 1.6; color: #E2DCFF; }
.sc-talk-list { display: flex; flex-direction: column; gap: 14px; }
.sc-talk-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.sc-talk-list li > span { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; background: rgba(255, 255, 255, 0.14); display: flex; align-items: center; justify-content: center; }
.sc-talk-foot { position: relative; margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 14px; }
.sc .sc-talk-foot a { color: #FFFFFF; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 28px; }
.sc .sc-talk-foot a:hover { text-decoration: underline; color: #FFFFFF; }
.sc-form { flex: 999 1 560px; min-width: 0; padding: 36px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 30px 60px -40px rgba(21, 18, 59, 0.3); }
.sc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sc-form label, .sc-subj legend { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.sc-opt { font-weight: 500; color: var(--mute); }
.sc .sc-inp { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #FFFFFF; color: var(--ink); font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.sc .sc-inp::placeholder { color: #8E8AAE; }
.sc .sc-inp:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 4px rgba(64, 52, 201, 0.14); }
.sc .sc-area { min-height: 132px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.sc-subj { border: 0; padding: 0; min-width: 0; }
.sc-subj-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-form label.sc-subj-chip { position: relative; margin: 0; }
.sc-subj-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sc-subj-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #FFFFFF; color: var(--body); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.sc-subj-chip:hover span { border-color: var(--p); color: var(--p); }
.sc-subj-chip input:checked + span { background: var(--p); border-color: var(--p); color: #FFFFFF; }
.sc-subj-chip input:focus-visible + span { outline: 3px solid #F0822C; outline-offset: 3px; }
.sc .sc-submit { min-height: 52px; }
.sc .sc-submit:disabled { opacity: .85; cursor: wait; }
.sc-note { font-size: 13px; text-align: center; color: var(--mute); }
.sc-note i { color: var(--ok); }
.sc-alert { padding: 12px 16px; border-radius: 12px; background: #FDECEC; color: #9B1C1C; font-size: 14px; }
.sc-alert ul { margin: 0; padding-left: 18px; list-style: disc; }

/* success popup */
.sc-done { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(21, 18, 59, 0.45); backdrop-filter: blur(6px); }
.sc-done[hidden] { display: none; }
.sc-done-box { max-width: 420px; width: 100%; padding: 36px 30px 30px; border-radius: 20px; background: #FFFFFF; text-align: center; box-shadow: 0 24px 64px rgba(21, 18, 59, 0.25); }
.sc-done-ic { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-size: 38px; }
.sc-done-box h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.sc-done-box p { font-size: 15px; line-height: 1.6; color: var(--body); margin-bottom: 22px; }

/* ============================================================
   5 — FAQ
   ============================================================ */
.sc-faq { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.sc-ftabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sc button.sc-ftab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #FFFFFF; color: var(--body); font-size: 14px; font-weight: 600; cursor: pointer; }
.sc button.sc-ftab:hover { border-color: var(--p); color: var(--p); }
.sc button.sc-ftab.is-on { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.sc-fpanel { display: flex; flex-direction: column; gap: 12px; }
.sc-fpanel[hidden] { display: none; }
.sc-fq { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .2s; }
.sc-fq.is-open { border-color: var(--p); }
.sc-fq-h { font-size: inherit; }
.sc button.sc-fq-b { width: 100%; min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border: 0; background: transparent; text-align: left; font-size: 16px; font-weight: 700; color: var(--ink); cursor: pointer; }
.sc-fq-ic { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: var(--p-lt); color: var(--p); display: flex; align-items: center; justify-content: center; font-size: 18px; transition: transform .2s ease; }
.sc-fq.is-open .sc-fq-ic { transform: rotate(45deg); }
.sc-fq-p { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s ease; }
.sc-fq.is-open .sc-fq-p { grid-template-rows: 1fr; }
.sc-fq-p > div { overflow: hidden; min-height: 0; }
.sc-fq-p p { padding: 0 24px 20px; font-size: 15px; line-height: 1.65; color: var(--body); }
.sc-faq-more { text-align: center; font-size: 15px; color: var(--mute); }
.sc-faq-more a { font-weight: 700; }

@keyframes sc-pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 157, 92, .5); } 100% { box-shadow: 0 0 0 8px rgba(31, 157, 92, 0); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1279px) { .sc { --sc-pad: 88px; } }
@media (max-width: 1024px) {
  .sc { --sc-pad: 72px; }
  .sc-hero-row { flex-direction: column; align-items: stretch; gap: 48px; }
  .sc-hero-card-wrap { max-width: 560px; width: 100%; }
  .sc-map, .sc-visit-info, .sc-talk, .sc-form { flex-basis: 100%; }
}
@media (max-width: 768px) {
  .sc { --sc-pad: 56px; }
  .sc-hero { padding: 56px 0 0; }
  .sc-res-grid { grid-template-columns: minmax(0, 1fr); }
  .sc-fields { grid-template-columns: minmax(0, 1fr); }
  .sc-map { min-height: 320px; }
  .sc-form, .sc-talk { padding: 28px 22px; }
  .sc-visit-info { padding: 28px 22px; }
}
@media (max-width: 480px) {
  .sc-btns { flex-direction: column; align-self: stretch; }
  .sc a.sc-btn { width: 100%; }
  .sc-stats strong { font-size: 22px; }
  .sc-float { right: 12px; }
}
@media (max-width: 359.98px) { .sc-wrap { padding: 0 16px; } }

@media (prefers-reduced-motion: reduce) {
  html:has(.sc) { scroll-behavior: auto; }
  .sc *, .sc *::before, .sc *::after { animation: none !important; transition: none !important; }
  .sc-lift:hover, .sc .sc-chan:hover { transform: none; }
}
