/* ==========================================================================
   Pulsar Showcase — the support page
   Loaded on /support/ only, after showcase.css, whose tokens and buttons it
   reuses. Nothing here is repeated from that file.
   ========================================================================== */

/* --- The opening ------------------------------------------------------- */

.psc-support-hero {
	background:
		radial-gradient(720px 360px at 14% 0%, rgba(30, 99, 212, .34), transparent 62%),
		var(--pls-ink);
	color: #fff;
	padding: 74px 0 66px;
}

.psc-support-hero .psc-head__label { color: #9dc0fb; }

.psc-support-hero__title {
	font-size: clamp(30px, 4.6vw, 44px);
	font-weight: 700;
	max-width: 18ch;
	margin-bottom: 16px;
}

.psc-support-hero__lead {
	max-width: 66ch;
	font-size: 17.5px;
	line-height: 1.7;
	color: rgba(233, 240, 252, .8);
}

.psc-support-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 26px;
	margin-top: 26px;
	font-size: 14.5px;
	color: rgba(233, 240, 252, .82);
}

.psc-support-hero__facts li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.psc-support-hero__facts .psc-icon {
	width: 17px;
	height: 17px;
	color: #7fe0a8;
}

/* --- What to read first ------------------------------------------------ */

.psc-support-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.psc-support-card {
	background: var(--pls-surface);
	border: 1px solid var(--pls-border);
	border-radius: var(--pls-radius-lg);
	box-shadow: var(--pls-shadow-sm);
	padding: 26px 24px 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.psc-support-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--pls-radius);
	background: var(--pls-brand-soft);
	color: var(--pls-brand);
	margin-bottom: 4px;
}

.psc-support-card h3 {
	font-size: 18px;
	font-weight: 700;
}

.psc-support-card p {
	font-size: 15px;
	line-height: 1.65;
	color: var(--pls-ink2);
	margin-bottom: 6px;
}

.psc-support-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14.5px;
	font-weight: 600;
	margin-top: auto;
}

.psc-support-card__cta + .psc-support-card__cta { margin-top: 6px; }
.psc-support-card__cta .psc-icon { width: 15px; height: 15px; }

/* --- The two columns of the form section ------------------------------- */

.psc-support-layout {
	display: grid;
	grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
	gap: 46px;
	align-items: start;
}

.psc-support-side { position: sticky; top: calc(var(--psc-nav-h) + 26px); }

.psc-support-side__title {
	font-size: 21px;
	font-weight: 700;
	margin-bottom: 18px;
}

.psc-support-side__list {
	display: grid;
	gap: 16px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--pls-ink2);
}

.psc-support-side__list li {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 12px;
}

.psc-support-side__list .psc-icon { color: var(--pls-brand); margin-top: 2px; }
.psc-support-side__list strong { color: var(--pls-ink); font-weight: 650; }

.psc-support-side__note {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 12px;
	margin-top: 24px;
	padding: 16px 18px;
	border-radius: var(--pls-radius);
	background: var(--pls-brand-soft);
	color: #1a3f7d;
	font-size: 14px;
	line-height: 1.6;
}

.psc-support-side__note .psc-icon { margin-top: 2px; }

/* --- The card the form lives in ---------------------------------------- */

.psc-form-card {
	background: var(--pls-surface);
	border: 1px solid var(--pls-border);
	border-radius: var(--pls-radius-lg);
	box-shadow: var(--pls-shadow-md);
	padding: 32px 34px 34px;
}

.psc-form-card__head { margin-bottom: 26px; }

.psc-form-card__head h2 {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 6px;
}

.psc-form-card__head p {
	font-size: 15.5px;
	color: var(--pls-ink2);
}

/* --- The steps ---------------------------------------------------------- */

.psc-form__step {
	border: 0;
	margin: 0 0 28px;
	padding: 0;
}

.psc-form__legend {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0;
	margin-bottom: 14px;
	font-size: 16px;
	font-weight: 650;
	color: var(--pls-ink);
}

.psc-form__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--pls-brand);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	flex: none;
}

/* --- The subject ------------------------------------------------------- */

.psc-form__choices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.psc-choice { display: block; cursor: pointer; }

.psc-choice input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.psc-choice__box {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 100%;
	padding: 13px 15px;
	border: 1.5px solid var(--pls-border);
	border-radius: var(--pls-radius);
	background: var(--pls-bg);
	transition: border-color .16s, background-color .16s;
}

.psc-choice:hover .psc-choice__box { border-color: #c9d5ea; }

.psc-choice input:checked + .psc-choice__box {
	border-color: var(--pls-brand);
	background: var(--pls-brand-soft);
}

.psc-choice input:focus-visible + .psc-choice__box {
	outline: 2px solid var(--pls-brand);
	outline-offset: 2px;
}

.psc-choice__text { display: grid; gap: 2px; margin-right: auto; }

.psc-choice__name {
	font-size: 15px;
	font-weight: 650;
	color: var(--pls-ink);
}

.psc-choice__hint {
	font-size: 13px;
	line-height: 1.45;
	color: var(--pls-ink2);
}

.psc-choice__tick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1.5px solid var(--pls-border);
	background: var(--pls-surface);
	color: transparent;
	flex: none;
	transition: background-color .16s, border-color .16s, color .16s;
}

.psc-choice__tick .psc-icon { width: 13px; height: 13px; stroke-width: 3; }

.psc-choice input:checked + .psc-choice__box .psc-choice__tick {
	background: var(--pls-brand);
	border-color: var(--pls-brand);
	color: #fff;
}

/* Only the note of the chosen subject is drawn; the others stay in the
   document so the box does not jump when the choice changes. */
.psc-form__notes { margin-top: 12px; }

.psc-form__note {
	display: none;
	grid-template-columns: 20px 1fr;
	gap: 10px;
	padding: 13px 15px;
	border-radius: var(--pls-radius);
	background: #eef2f9;
	font-size: 14px;
	line-height: 1.6;
	color: var(--pls-ink2);
}

.psc-form__note.is-active { display: grid; }
.psc-form__note .psc-icon { width: 18px; height: 18px; color: var(--pls-brand); margin-top: 2px; }

/* --- The fields --------------------------------------------------------- */

.psc-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.psc-form__field + .psc-form__field,
.psc-form__field + .psc-form__grid { margin-top: 14px; }

.psc-form__field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--pls-ink);
}

.psc-form__req { color: var(--pls-accent); }

.psc-form__field input,
.psc-form__field textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid var(--pls-border);
	border-radius: var(--pls-radius);
	background: var(--pls-bg);
	color: var(--pls-ink);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.55;
	transition: border-color .16s, background-color .16s, box-shadow .16s;
}

.psc-form__field textarea { resize: vertical; min-height: 140px; }

.psc-form__field input::placeholder,
.psc-form__field textarea::placeholder { color: #97a3b8; }

.psc-form__field input:focus,
.psc-form__field textarea:focus {
	outline: 0;
	background: var(--pls-surface);
	border-color: var(--pls-brand);
	box-shadow: 0 0 0 3px rgba(30, 99, 212, .14);
}

.psc-form__field input[aria-invalid="true"],
.psc-form__field textarea[aria-invalid="true"] {
	border-color: var(--pls-accent);
	background: #fdf1ed;
}

#psc-code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .01em;
}

.psc-form__help {
	margin-top: 6px;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--pls-ink2);
}

/* Off screen rather than display:none, so a bot that skips hidden fields
   still fills it in. */
.psc-form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- Turnstile ---------------------------------------------------------- */

.psc-form__turnstile {
	min-height: 66px;
	margin-bottom: 20px;
	border-radius: var(--pls-radius);
	background: linear-gradient(90deg, #eef2f9, #f7f9fc, #eef2f9);
	background-size: 200% 100%;
	animation: psc-shimmer 1.4s linear infinite;
}

.psc-form__turnstile.is-ready {
	min-height: 0;
	background: none;
	animation: none;
}

@keyframes psc-shimmer {
	from { background-position: 0 0; }
	to { background-position: -200% 0; }
}

/* --- Sending ------------------------------------------------------------ */

.psc-form__actions { display: grid; gap: 12px; justify-items: start; }

.psc-form__submit { padding: 13px 26px; font-size: 15.5px; }
.psc-form__submit:disabled { opacity: .6; cursor: default; transform: none; }

.psc-form__privacy {
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--pls-ink2);
}

.psc-form__status { font-size: 14.5px; line-height: 1.55; }
.psc-form__status:empty { display: none; }

.psc-form__status--error {
	color: #a33517;
	font-weight: 600;
}

.psc-form__status--ok {
	padding: 14px 16px;
	border-radius: var(--pls-radius);
	background: #e6f6ec;
	color: #1a6b3d;
	font-weight: 600;
}

/* Once the request is gone the fields have nothing left to say: the card keeps
   only the confirmation. */
.psc-form.is-sent .psc-form__step,
.psc-form.is-sent .psc-form__turnstile,
.psc-form.is-sent .psc-form__submit,
.psc-form.is-sent .psc-form__privacy { display: none; }

/* --- Narrow screens ----------------------------------------------------- */

@media (max-width: 1000px) {
	.psc-support-cards { grid-template-columns: 1fr 1fr; }
	.psc-support-layout { grid-template-columns: 1fr; gap: 34px; }
	.psc-support-side { position: static; }
}

@media (max-width: 660px) {
	.psc-support-hero { padding: 56px 0 50px; }
	.psc-support-cards { grid-template-columns: 1fr; }
	.psc-form__choices,
	.psc-form__grid { grid-template-columns: 1fr; }
	.psc-form-card { padding: 24px 20px 26px; }
	.psc-form__submit { width: 100%; }
}
