/**
 * ASI Checkout — public support form.
 *
 * Every interactive state re-declares its own background and colour on purpose:
 * Astra styles bare <button>, <input> and <select> elements — hover and focus
 * included — and inherits nothing useful. The same lesson as the checkout.
 */

.asi-sup {
	--asi-sup-ink: #1e293b;
	--asi-sup-muted: #64748b;
	--asi-sup-line: #e2e8f0;
	--asi-sup-brand: #046bd2;
	--asi-sup-bad: #b32d2e;

	max-width: 760px;
	margin: 0 auto;
	color: var(--asi-sup-ink);
	font-size: 16px;
	line-height: 1.6;
	text-align: left;
}

.asi-sup__title {
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.asi-sup__intro {
	margin: 0 0 22px;
	color: var(--asi-sup-muted);
	font-size: 15px;
}

/* Off-screen rather than display:none — some bots skip hidden fields. */
.asi-sup__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

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

@media (max-width: 600px) {
	.asi-sup__grid {
		grid-template-columns: 1fr;
	}
}

.asi-sup__field {
	margin: 0 0 14px;
}

.asi-sup__grid .asi-sup__field {
	margin: 0;
}

.asi-sup__label {
	display: block;
	margin: 0 0 6px;
	color: var(--asi-sup-ink);
	font-size: 14px;
	font-weight: 600;
}

/* Double-scoped, and every property spelled out: a single class loses to the
   theme's `input[type="text"], select { … }`, which is (0,1,1). */
.asi-sup .asi-sup__input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 11px 14px;
	background: #fff;
	border: 1px solid var(--asi-sup-line);
	border-radius: 10px;
	color: var(--asi-sup-ink);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.asi-sup .asi-sup__input:hover {
	border-color: #cbd5e1;
}

.asi-sup .asi-sup__input:focus,
.asi-sup .asi-sup__input:focus-visible {
	border-color: var(--asi-sup-brand);
	box-shadow: 0 0 0 3px rgba(4, 107, 210, 0.15);
	outline: none;
}

.asi-sup .asi-sup__input.is-invalid {
	border-color: var(--asi-sup-bad);
}

.asi-sup .asi-sup__select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 38px;
	/* Inline SVG: the caret must not cost a request, and a background-image on
	   a remote host would be blocked on some pages anyway. */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

.asi-sup .asi-sup__textarea {
	min-height: 150px;
	resize: vertical;
}

.asi-sup__note {
	margin: 12px 0 18px;
	color: var(--asi-sup-muted);
	font-size: 13px;
}

.asi-sup__error {
	margin: 6px 0 0;
	color: var(--asi-sup-bad);
	font-size: 13px;
}

.asi-sup__alert {
	margin: 0 0 14px;
	padding: 11px 14px;
	background: #fef2f2;
	border-left: 3px solid var(--asi-sup-bad);
	border-radius: 6px;
	color: #7f1d1d;
	font-size: 14px;
}

.asi-sup .asi-sup__submit {
	display: inline-block;
	width: 100%;
	padding: 14px 24px;
	background: var(--asi-sup-brand);
	border: 0;
	border-radius: 10px;
	color: #fff;
	cursor: pointer;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.asi-sup .asi-sup__submit:hover,
.asi-sup .asi-sup__submit:focus,
.asi-sup .asi-sup__submit:focus-visible,
.asi-sup .asi-sup__submit:active {
	background: #0356a8;
	color: #fff;
}

.asi-sup .asi-sup__submit:focus-visible {
	outline: 3px solid rgba(4, 107, 210, 0.35);
	outline-offset: 2px;
}

.asi-sup .asi-sup__submit[disabled] {
	cursor: default;
	opacity: 0.65;
}

@media (min-width: 601px) {
	.asi-sup .asi-sup__submit {
		width: auto;
		min-width: 260px;
	}
}

.asi-sup__done {
	padding: 22px 24px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 12px;
}

.asi-sup__done-title {
	margin: 0 0 6px;
	color: #166534;
	font-size: 18px;
	font-weight: 700;
}

.asi-sup__done p {
	margin: 0;
	color: #14532d;
}

.asi-sup--dup p {
	margin: 0;
	color: var(--asi-sup-muted);
	font-size: 14px;
	font-style: italic;
}

/* The theme's own `[hidden]` handling is not guaranteed to win; an author
   `display` declaration beats the UA rule behind the attribute. */
.asi-sup [hidden] {
	display: none !important;
}
