/*
 * Align the design content container with the site's theme container (.container),
 * so the content edges line up with the theme header & footer on every breakpoint.
 * Mirrors the theme's Bootstrap container: 16px side gutters + responsive
 * max-widths (540 / 720 / 960 / 1140, and the theme's custom 1352 at >=1400px).
 *
 * Specificity is #id + 2 classes so it beats both the scoped Tailwind utilities
 * (.px-6 / .max-w-[1140px]) and the scoped preflight reset (#shtab-page *).
 */
#shtab-page .mx-auto.max-w-\[1140px\] {
	max-width: 100%;
	padding-left: 16px;
	padding-right: 16px;
}
@media (min-width: 576px)  { #shtab-page .mx-auto.max-w-\[1140px\] { max-width: 540px; } }
@media (min-width: 768px)  { #shtab-page .mx-auto.max-w-\[1140px\] { max-width: 720px; } }
@media (min-width: 992px)  { #shtab-page .mx-auto.max-w-\[1140px\] { max-width: 960px; } }
@media (min-width: 1200px) { #shtab-page .mx-auto.max-w-\[1140px\] { max-width: 1140px; } }
@media (min-width: 1400px) { #shtab-page .mx-auto.max-w-\[1140px\] { max-width: 1352px; } }

/* --------------------------------------------------------------------------
 * Contact Form 7 (phone form in the CTA / #join section) — match the design.
 * Selectors use #shtab-page input.shtab-* so the ID always wins over theme/CF7.
 * -------------------------------------------------------------------------- */
#shtab-page .shtab-cf7 { margin: 0; }
#shtab-page .wpcf7-form-control-wrap { display: block; width: 100%; }

#shtab-page input.shtab-input {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 2.75rem;
	margin: 0;
	padding: 0 1.25rem 0 4.4rem;
	border: 1px solid rgba(238, 243, 240, 0.4);
	border-radius: 9999px;
	background-color: #06190f;
	color: #eef3f0;
	font-size: 1rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}
#shtab-page input.shtab-input::placeholder { color: rgba(147, 163, 155, 0.7); }
#shtab-page input.shtab-input:focus-visible { border-color: #00ffab; box-shadow: 0 0 0 3px rgba(0, 255, 171, 0.25); }
#shtab-page input.shtab-input.wpcf7-not-valid { border-color: rgba(255, 122, 122, 0.7); box-shadow: none; }

#shtab-page input.shtab-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	height: 2.75rem;
	margin: 0;
	padding: 0 1.75rem;
	border: 0;
	border-radius: 9999px;
	background-color: #00ffab;
	color: #000;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s;
}
#shtab-page input.shtab-submit:hover { background-color: #eef3f0; }
#shtab-page input.shtab-submit:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(0, 255, 171, 0.4); }
#shtab-page input.shtab-submit:disabled { opacity: 0.7; cursor: default; }

/* Response message: plain text in the hint position (matches the mockup — no boxed banner).
   Base colour is neutral (not red) so the success text never flashes red for the frame
   before CF7 adds the .sent class. */
#shtab-page .wpcf7-response-output {
	margin: 0.625rem 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	font-size: 0.875rem;
	line-height: 1.4;
	color: #eef3f0;
}
/* On success the form inputs are replaced by the message (the card / dialog stays as the box). */
#shtab-page .shtab-form:has(.wpcf7 form.sent) > span { display: none; }
#shtab-page .wpcf7 form.sent > *:not(.wpcf7-response-output) { display: none; }
/* Success message: mint circle + dark check + 16px text, no own background (matches the mockup). */
#shtab-page .wpcf7 form.sent .wpcf7-response-output {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin: 0.625rem 0 0;
	padding: 0;
	background: transparent;
	color: #eef3f0;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.4;
}
#shtab-page .wpcf7 form.sent .wpcf7-response-output::before {
	content: "";
	flex: 0 0 1.75rem;
	width: 1.75rem;
	height: 1.75rem;
	background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'><circle cx='14' cy='14' r='14' fill='%2300ffab'/><path d='M8.5 14.5l3.4 3.4 7.6-8' fill='none' stroke='%2306190f' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
}
#shtab-page .wpcf7 form.invalid .wpcf7-response-output,
#shtab-page .wpcf7 form.unaccepted .wpcf7-response-output,
#shtab-page .wpcf7 form.spam .wpcf7-response-output,
#shtab-page .wpcf7 form.failed .wpcf7-response-output { color: #ff7a7a; }
/* While a CF7 message is shown, hide the resting grey hint so only one line appears (like the mockup). */
#shtab-page .shtab-form:has(.wpcf7-response-output:not(:empty)) > p { display: none; }
#shtab-page .wpcf7-not-valid-tip { display: none; } /* design uses the single message line, not per-field tips */
#shtab-page .wpcf7-spinner { margin: 0 0 0 0.5rem; }

/* The "+380" prefix sits over the input; CF7's .wpcf7-form-control-wrap is
   position:relative, so raise the prefix above it (tree-order paint fix). */
#shtab-page .wpcf7 .relative span[aria-hidden="true"] { z-index: 2; }
#shtab-page .wpcf7 .wpcf7-form-control-wrap { z-index: 1; }

/* CF7's own stylesheet is disabled site-wide (wpcf7_load_css=false), so the
   response banner has no reveal rule — show it ourselves when it has content. */
#shtab-page .wpcf7 .wpcf7-response-output { display: block; }
#shtab-page .wpcf7 .wpcf7-response-output:empty { display: none; }

/* ---- Join popup modal (hero / "Хочу в команду" buttons) ------------------ */
#shtab-page .shtab-modal { display: none; }
#shtab-page .shtab-modal.is-open {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}
#shtab-page .shtab-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
#shtab-page .shtab-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 430px;
	max-height: 90vh;
	overflow: auto;
	padding: 2rem 2rem 2.25rem;
	border: 1px solid rgba(238, 243, 240, 0.1);
	border-radius: 1.125rem;
	background-color: #0e1512;
	box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
#shtab-page .shtab-modal__close {
	position: absolute;
	top: 0.9rem;
	right: 0.9rem;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	border-radius: 9999px;
	background: transparent;
	color: #eef3f0;
	cursor: pointer;
	transition: color 0.15s;
}
#shtab-page .shtab-modal__close:hover { color: #00ffab; }

#shtab-page #shtab-modal-title { text-transform: none; }

/* ---- FAQ accordion (matched to the original: padding, hover, open highlight, + → ×, smooth) ---- */
/* Trigger padding: a stray theme rule bumps bare <button> padding, so set it explicitly
   (original = 20px vertical, 20px→24px horizontal). */
#shtab-page .faq-trigger { padding: 20px !important; }
@media (min-width: 768px) { #shtab-page .faq-trigger { padding: 20px 24px !important; } }

#shtab-page .faq-item { transition: background-color 0.2s ease; }
#shtab-page .faq-item[data-open] { background-color: rgba(10, 42, 31, 0.6); } /* turf/60 */

#shtab-page .faq-icon {
	border-color: rgba(0, 255, 171, 0.5);
	color: #00ffab;
	transition: transform 0.25s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
/* hover fills the circle mint (as in the original) */
#shtab-page .faq-trigger:hover .faq-icon { background-color: #00ffab; color: #06190f; }
/* open: + rotates to × (stays mint, like the original) */
#shtab-page .faq-item[data-open] .faq-icon { transform: rotate(45deg); }

/* answer text: original padding 0 80px 20px 24px, 14px chalk */
#shtab-page .faq-panel__inner p {
	padding: 0 56px 20px 20px !important;
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.6;
	color: #eef3f0;
}
@media (min-width: 768px) { #shtab-page .faq-panel__inner p { padding: 0 80px 20px 24px !important; } }

/* smooth expand/collapse via grid-template-rows (0fr → 1fr) */
#shtab-page .faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s ease; }
#shtab-page .faq-item[data-open] .faq-panel { grid-template-rows: 1fr; }
#shtab-page .faq-panel__inner { overflow: hidden; }
