/* ===== Shengmilo Help Center – styles ===== */
.shc {
	--shc-red: #e53935;
	--shc-red-dark: #c62828;
	--shc-ink: #111;
	--shc-text: #444;
	--shc-muted: #777;
	--shc-line: #e8e8e8;
	--shc-soft: #f6f6f7;
	color: var(--shc-text);
	font-size: 16px;
	line-height: 1.6;
}
.shc *, .shc *::before, .shc *::after { box-sizing: border-box; }
.shc [hidden] { display: none !important; }
.shc a { text-decoration: none; }
.shc-ico { width: 24px; height: 24px; flex: none; }

/* ----- hero with big search ----- */
.shc-hero {
	position: relative;
	/* always full screen width, even inside a boxed Elementor container */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	padding: 72px 20px 64px;
	background:
		radial-gradient(1000px 420px at 85% -10%, rgba(229,57,53,.39), transparent 60%),
		radial-gradient(780px 350px at 0% 110%, rgba(229,57,53,.20), transparent 60%),
		#141414;
	color: #fff;
	text-align: center;
}
.shc-hero-in { max-width: 760px; margin: 0 auto; }
html:has(.shc-hero) { overflow-x: clip; } /* no sideways scroll from the full-width hero */
.shc .shc-h1 { margin: 0 0 8px; color: #fff; font-size: 44px; line-height: 1.15; font-weight: 700; letter-spacing: -.5px; }
.shc-sub { margin: 0 0 28px; color: #cfcfcf; font-size: 18px; }
.shc-search { position: relative; margin: 0; }
.shc-search-ico { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: #888; display: flex; pointer-events: none; }
.shc .shc-q {
	width: 100%;
	height: 66px;
	margin: 0;
	padding: 0 58px 0 62px;
	border: 2px solid transparent;
	border-radius: 999px;
	background: #fff;
	color: var(--shc-ink);
	font: inherit;
	font-size: 18px;
	box-shadow: 0 14px 40px rgba(0,0,0,.35);
	outline: none;
	transition: border-color .2s;
	-webkit-appearance: none;
	appearance: none;
}
.shc .shc-q:focus { border-color: var(--shc-red); }
.shc .shc-q::-webkit-search-cancel-button { display: none; }
.shc .shc-clear {
	position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
	display: flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
	background: #f1f1f1; color: #555; cursor: pointer;
}
.shc .shc-clear .shc-ico { width: 18px; height: 18px; }
.shc-chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 22px; }
.shc-chips-label { color: #aaa; font-size: 14px; margin-right: 2px; }
.shc a.shc-chip {
	padding: 6px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
	color: #fff; font-size: 14px; transition: background .2s, border-color .2s;
}
.shc a.shc-chip:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: #fff; }

/* ----- content ----- */
.shc-wrap { max-width: 1120px; margin: 0 auto; padding: 48px 20px 80px; }
.shc .shc-h2 { margin: 0 0 18px; color: var(--shc-ink); font-size: 26px; line-height: 1.25; font-weight: 700; }
.shc-home .shc-h2 + .shc-list, .shc-home .shc-h2 + .shc-cats { margin-bottom: 52px; }

/* topic cards */
.shc-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shc a.shc-cat {
	display: flex; flex-direction: column; gap: 6px;
	padding: 24px 22px 20px;
	border: 1px solid var(--shc-line); border-radius: 16px; background: #fff;
	color: var(--shc-text);
	transition: border-color .2s, box-shadow .2s;
}
.shc a.shc-cat:hover { border-color: var(--shc-red); box-shadow: 0 10px 28px rgba(0,0,0,.08); color: var(--shc-text); }
.shc-cat-ico {
	display: flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; margin-bottom: 8px;
	border-radius: 12px; background: #fdecec; color: var(--shc-red);
}
.shc-cat-title { color: var(--shc-ink); font-size: 18px; font-weight: 700; line-height: 1.3; }
.shc-cat-desc { color: var(--shc-muted); font-size: 14.5px; line-height: 1.45; }
.shc-cat-count { margin-top: auto; padding-top: 10px; color: var(--shc-red); font-size: 14px; font-weight: 600; }

/* question lists */
.shc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; border-top: 1px solid var(--shc-line); }
.shc a.shc-item {
	display: flex; align-items: center; gap: 12px;
	padding: 17px 4px;
	border-bottom: 1px solid var(--shc-line);
	color: var(--shc-ink);
	transition: color .2s;
}
.shc a.shc-item:hover { color: var(--shc-red); }
.shc-item-t { flex: 1; font-size: 16.5px; font-weight: 500; line-height: 1.4; }
.shc-item-c { flex: none; padding: 2px 10px; border-radius: 999px; background: var(--shc-soft); color: var(--shc-muted); font-size: 12.5px; white-space: nowrap; }
.shc-item .shc-ico { width: 18px; height: 18px; color: #bbb; transition: color .2s, transform .2s; }
.shc a.shc-item:hover .shc-ico { color: var(--shc-red); transform: translateX(3px); }
.shc-results .shc-list, .shc-topic .shc-list { grid-template-columns: 1fr; max-width: 820px; }
.shc-results, .shc-topic { margin-bottom: 52px; }

.shc a.shc-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 22px; color: var(--shc-muted); font-size: 15px; font-weight: 600; }
.shc a.shc-back:hover { color: var(--shc-red); }
.shc-back .shc-ico { width: 18px; height: 18px; }
.shc-topic-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.shc-topic-head .shc-cat-ico { margin: 0; }
.shc-topic-head .shc-h2 { margin: 0; }
.shc-topic-desc { margin: 2px 0 0; color: var(--shc-muted); }
.shc-noresults { max-width: 820px; padding: 24px; border-radius: 14px; background: var(--shc-soft); }
.shc-noresults p { margin: 0 0 16px; }

/* buttons */
.shc a.shc-btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 13px 26px; border-radius: 999px;
	background: var(--shc-red); color: #fff;
	font-weight: 700; font-size: 16px; line-height: 1.2;
	transition: background .2s;
}
.shc a.shc-btn:hover { background: var(--shc-red-dark); color: #fff; }
.shc a.shc-btn .shc-ico { width: 20px; height: 20px; }
.shc a.shc-btn-lg { padding: 18px 40px; font-size: 18px; }

/* contact band */
.shc-cta {
	display: flex; align-items: center; justify-content: space-between; gap: 28px;
	padding: 40px 44px; border-radius: 20px; background: #141414; color: #cfcfcf;
}
.shc-cta .shc-cta-title { margin: 0 0 6px; color: #fff; font-size: 26px; font-weight: 700; }
.shc-cta p { margin: 0; max-width: 560px; }
.shc-cta .shc-btn { flex: none; }

/* ----- popup ----- */
html.shc-lock, html.shc-lock body { overflow: hidden; }
.shc-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.shc-modal-bg { position: absolute; inset: 0; background: rgba(10,10,10,.6); animation: shcFade .2s ease; }
.shc-modal-box {
	position: relative; display: flex; flex-direction: column;
	width: 100%; max-width: 760px; max-height: calc(100vh - 48px);
	border-radius: 20px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.35);
	animation: shcUp .25s ease;
}
.shc-modal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 0 32px; }
.shc-m-cat { color: var(--shc-red); font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.shc .shc-m-close {
	display: flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
	background: var(--shc-soft); color: #333; cursor: pointer;
}
.shc .shc-m-close:hover { background: #ececec; }
.shc-modal-scroll { overflow-y: auto; padding: 4px 32px 32px; -webkit-overflow-scrolling: touch; }
.shc .shc-m-title { margin: 6px 0 18px; color: var(--shc-ink); font-size: 28px; line-height: 1.25; font-weight: 700; }
.shc-m-body { font-size: 17px; line-height: 1.75; color: #333; }
.shc-m-body p { margin: 0 0 14px; }
.shc-m-body ul, .shc-m-body ol { margin: 0 0 16px; padding-left: 22px; }
.shc-m-body li { margin-bottom: 8px; }
.shc-m-body strong { color: var(--shc-ink); }
.shc-m-body a:not(.shc-btn) { color: var(--shc-red); text-decoration: underline; text-underline-offset: 2px; }
.shc-m-body a.shc-btn { margin-top: 6px; }
.shc-m-help { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; padding: 16px 18px; border-radius: 14px; background: var(--shc-soft); font-weight: 600; color: var(--shc-ink); }
.shc .shc-vote { padding: 7px 20px; border: 1px solid #d8d8d8; border-radius: 999px; background: #fff; color: var(--shc-ink); font: inherit; font-size: 15px; cursor: pointer; }
.shc .shc-vote:hover { border-color: var(--shc-red); color: var(--shc-red); }
.shc-thanks { color: #2e7d32; }
.shc-m-no { margin-top: 14px; }
.shc-m-no p { margin: 0 0 12px; }
.shc-m-related { margin-top: 30px; }
.shc-m-related h3 { margin: 0 0 8px; color: var(--shc-ink); font-size: 18px; font-weight: 700; }
.shc-m-related .shc-list { grid-template-columns: 1fr; }
.shc-m-related a.shc-item { padding: 13px 2px; }
.shc-m-related .shc-item-t { font-size: 15.5px; }
@keyframes shcFade { from { opacity: 0; } }
@keyframes shcUp { from { opacity: 0; transform: translateY(16px); } }

/* ----- tablet ----- */
@media (max-width: 1024px) {
	.shc-cats { grid-template-columns: repeat(2, 1fr); }
}
/* ----- phone ----- */
@media (max-width: 680px) {
	.shc-hero { padding: 46px 16px 40px; }
	.shc .shc-h1 { font-size: 32px; }
	.shc-sub { font-size: 16px; margin-bottom: 22px; }
	.shc .shc-q { height: 58px; font-size: 16px; padding: 0 52px 0 52px; }
	.shc-search-ico { left: 18px; }
	.shc-wrap { padding: 32px 16px 56px; }
	.shc .shc-h2 { font-size: 22px; }
	.shc-cats { grid-template-columns: 1fr 1fr; gap: 10px; }
	.shc a.shc-cat { padding: 16px 14px; }
	.shc-cat-ico { width: 40px; height: 40px; margin-bottom: 4px; }
	.shc-cat-title { font-size: 15.5px; }
	.shc-cat-desc { display: none; }
	.shc-cat-count { padding-top: 4px; font-size: 13px; }
	.shc-list { grid-template-columns: 1fr; }
	.shc-item-c { display: none; }
	.shc-cta { flex-direction: column; align-items: stretch; text-align: center; padding: 30px 22px; }
	.shc-cta .shc-btn { justify-content: center; }
	.shc-modal { padding: 0; align-items: flex-end; }
	.shc-modal-box { max-height: 92vh; border-radius: 20px 20px 0 0; }
	.shc-modal-top { padding: 12px 12px 0 20px; }
	.shc-modal-scroll { padding: 2px 20px 28px; }
	.shc .shc-m-title { font-size: 23px; }
	.shc-m-body { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
	.shc-modal-bg, .shc-modal-box { animation: none; }
}
