/* School24h public Support page (/support). Builds on home.css: tokens, header, footer,
   form fields (.field, .ctl, .err, .f-grid), buttons and the hero's background pieces. */

.sp { position: relative; isolation: isolate; overflow: hidden; padding: 132px 0 110px; }
.sp .bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sp .grid {
  -webkit-mask-image: radial-gradient(ellipse 70% 45% at 50% 12%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 45% at 50% 12%, #000 20%, transparent 75%);
}

/* School drawings, at the edges */
.sp-vectors { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.spv-book { width: 70px; height: 70px; left: 6%; top: 120px; rotate: -14deg; --d: 400ms; }
.spv-cap { width: 72px; height: 72px; right: 7%; top: 140px; rotate: 8deg; --d: 550ms; animation-duration: 1.2s, 9s; }
.spv-plane { width: 46px; height: 46px; right: 16%; top: 300px; rotate: -6deg; --d: 700ms; animation-duration: 1.2s, 7s; }

/* Heading */
.sp-head { max-width: 720px; margin: 0 auto 44px; text-align: center; animation: fadeUp .8s var(--ease) both; }
.sp-pill { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px 0 10px; border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--ink-85); background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); }
.sp-pill svg.i { width: 15px; height: 15px; color: var(--success); }
.sp-head h1 { margin: 18px 0 0; font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.05; letter-spacing: -.04em; font-weight: 600; text-wrap: balance; }
.sp-head p { margin: 16px auto 0; max-width: 56ch; font-size: 18px; line-height: 1.6; color: var(--ink-75); text-wrap: pretty; }

/* Form card + side column */
.sp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
.sp-frame {
  padding: 1.5px; border-radius: 30px; animation: fadeUp .8s var(--ease) .1s both;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 55%, transparent), var(--line) 35%, var(--line) 65%, color-mix(in srgb, var(--grad-2) 45%, transparent));
  box-shadow: 0 2px 6px rgba(18,24,38,.05), 0 50px 90px -55px rgba(35,64,216,.45);
}
:root[data-theme="dark"] .sp-frame { box-shadow: 0 2px 6px rgba(0,0,0,.3), 0 50px 90px -45px rgba(0,0,0,.8); }
.sp-card { border-radius: 28.5px; padding: 30px 32px 30px; background: var(--surface); }
.sp-card-head { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; margin-bottom: 24px; }
.sp-card-head .tile { width: 46px; height: 46px; border-radius: 14px; background: var(--tone); color: #fff; box-shadow: 0 12px 22px -12px var(--tone); }
.sp-card-head .tile svg.i { width: 22px; height: 22px; }
.sp-card-head h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.sp-card-head p { margin: 2px 0 0; font-size: 14px; color: var(--ink-66); }
.sp-card .req { color: var(--danger); }

/* School code: shows the school's name once the code is found */
.sp-school { display: flex; align-items: center; gap: 8px; min-height: 0; margin: 8px 0 0; font-size: 13.5px; font-weight: 500; }
.sp-school:empty { display: none; }
.sp-school svg.i { width: 16px; height: 16px; flex: none; }
.sp-school.ok { color: var(--success); }
.sp-school.ok b { color: var(--ink); font-weight: 600; }
.sp-school.checking { color: var(--ink-66); }
.sp-school .dot-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.field.ok-code .ctl input { border-color: color-mix(in srgb, var(--success) 60%, transparent); }
.field.ok-code .ctl > svg.i { color: var(--success); }

/* Attachments */
.sp-label { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; font-size: 14px; font-weight: 500; color: var(--ink-85); }
.sp-label svg.i { width: 15px; height: 15px; color: var(--tone); }
.sp-label .opt { font-size: 12.5px; font-weight: 500; color: var(--ink-55); }
.drop {
  display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; cursor: pointer;
  border: 1.5px dashed color-mix(in srgb, var(--ink) 22%, transparent); background: color-mix(in srgb, var(--paper) 60%, var(--surface));
  transition: border-color .2s, background-color .2s, transform .3s var(--ease);
}
.drop:hover, .drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.drop.over { transform: scale(1.01); }
.drop:focus-within { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.drop-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--tone); background: color-mix(in srgb, var(--tone) 13%, transparent); transition: transform .4s var(--ease); }
.drop:hover .drop-ic { transform: translateY(-2px); }
.drop-ic svg.i { width: 21px; height: 21px; }
.drop b { display: block; font-size: 14.5px; font-weight: 600; }
.drop b u { color: var(--accent); text-underline-offset: 3px; }
.drop small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-66); }
.drop-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.drop-list:empty { display: none; }
.drop-list li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px 8px 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); animation: paneIn .35s var(--ease); }
.drop-list .ft { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--tone); background: color-mix(in srgb, var(--tone) 13%, transparent); }
.drop-list b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop-list small { display: block; font-size: 12px; color: var(--ink-66); }
.drop-list button { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-66); transition: background-color .2s, color .2s; }
.drop-list button:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.drop-list button svg.i { width: 16px; height: 16px; }

/* Sent */
.sp-done { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 6px 6px; animation: paneIn .6s var(--ease); }
.sp-done[hidden] { display: none; }
.sp-done .ok { width: 92px; height: 92px; margin-bottom: 14px; }
.sp-done .ok circle { fill: color-mix(in srgb, var(--success) 12%, transparent); stroke: var(--success); stroke-width: 2.5; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw .8s var(--ease) forwards; }
.sp-done .ok path { fill: none; stroke: var(--success); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s var(--ease) .55s forwards; }
.sp-done h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.sp-ref { display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 0; padding: 6px 6px 6px 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); font-size: 20px; font-weight: 600; letter-spacing: .02em; }
.sp-copy { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); transition: background-color .2s; }
.sp-copy:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.sp-copy svg.i { width: 15px; height: 15px; }
.sp-done-text { margin: 16px 0 24px; max-width: 46ch; font-size: 15.5px; line-height: 1.6; color: var(--ink-75); }
.sp-done-text b { color: var(--ink); font-weight: 600; }
.sp-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Side column */
.sp-side { display: grid; gap: 14px; animation: fadeUp .8s var(--ease) .2s both; }
.sp-box { padding: 20px; border-radius: 22px; background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-card); transition: transform .4s var(--ease), border-color .3s; }
.sp-box:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tone) 40%, transparent); }
.sp-box > .tile { width: 40px; height: 40px; border-radius: 12px; background: var(--tone); color: #fff; margin-bottom: 12px; }
.sp-box > .tile svg.i { width: 19px; height: 19px; }
.sp-box h3 { margin: 0; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.sp-box p { margin: 5px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-75); }
.sp-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.sp-steps li { position: relative; display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; counter-increment: s; }
.sp-steps li::before { content: counter(s); grid-row: span 2; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--tone); background: color-mix(in srgb, var(--tone) 13%, transparent); }
.sp-steps b { font-size: 14px; font-weight: 600; }
.sp-steps span { font-size: 13px; line-height: 1.45; color: var(--ink-66); }
.sp-reach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.sp-reach a { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px; border-radius: 14px; font-size: 12.5px; font-weight: 600; color: var(--ink-85); border: 1px solid var(--line); background: var(--surface); transition: transform .3s var(--ease), border-color .2s, color .2s; }
.sp-reach a svg.i { width: 20px; height: 20px; }
.sp-reach .wa svg.i { color: #1FAF55; } .sp-reach .mail svg.i { color: var(--accent); } .sp-reach .call svg.i { color: #EA580C; }
.sp-reach a:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--ink); }

/* Questions */
.sp-faq { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; margin-top: 64px; padding-top: 44px; border-top: 1px solid var(--line); }
.sp-faq h2 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 600; }
.sp-faq-list { display: grid; gap: 10px; }
.sp-faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.sp-faq details[open] { border-color: color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: var(--shadow-card); }
.sp-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-size: 15.5px; font-weight: 600; border-radius: 16px; }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary .pm { margin-left: auto; width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--ink-66); background: var(--paper); transition: transform .35s var(--ease), background-color .3s, color .3s; }
.sp-faq summary .pm svg.i { width: 15px; height: 15px; }
.sp-faq details[open] summary .pm { transform: rotate(45deg); background: var(--accent); color: #fff; }
.sp-faq details p { margin: 0; padding: 0 18px 18px; font-size: 14.5px; line-height: 1.6; color: var(--ink-75); animation: paneIn .35s var(--ease); }
.sp-faq details a { color: var(--accent); font-weight: 600; }

@media (max-width: 1000px) {
  .sp-grid { grid-template-columns: 1fr; }
  .sp-side { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sp-faq { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 760px) {
  .sp-side { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sp { padding: 112px 0 84px; }
  .sp-card { padding: 22px 18px; border-radius: 24.5px; }
  .sp-frame { border-radius: 26px; }
  .spv-plane { display: none; }
  .spv-book { left: -10px; top: 92px; opacity: .5 !important; }
  .spv-cap { right: -8px; top: 96px; opacity: .5 !important; }
  .drop { grid-template-columns: 40px 1fr; padding: 14px; }
  .sp-ref { font-size: 17px; }
}
.sp-copy[hidden] { display: none; }
