/**
 * STG Web Brief — Public form styles
 *
 * Standalone CSS for the [stg_web_brief] shortcode.
 * Design system: Manrope 700 headings, Helvetica body,
 * monochrome palette, border-radius: 0.
 */

/* ------------------------------------------------
   Container
   ------------------------------------------------ */

.stg-wb {
	max-width: 800px;
	margin: 40px auto;
	padding: 0 20px;
	font-family: 'Helvetica', 'Arial', sans-serif;
	color: #ffffff;
}

/* ------------------------------------------------
   Header
   ------------------------------------------------ */

.stg-wb__header {
	text-align: center;
	margin-bottom: 40px;
	padding-bottom: 24px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stg-wb__title {
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 28px;
	color: #ffffff;
	margin: 0 0 8px 0;
	line-height: 1.2;
}

.stg-wb__subtitle {
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.45);
	margin: 0;
	line-height: 1.5;
}

/* ------------------------------------------------
   Progress bar (JS-enhanced)
   ------------------------------------------------ */

.stg-wb__progress {
	margin-bottom: 32px;
}

.stg-wb__progress-bar {
	height: 3px;
	background: rgba(255, 255, 255, 0.1);
	overflow: hidden;
}

.stg-wb__progress-fill {
	height: 100%;
	background: #ffffff;
	transition: width 0.3s ease;
}

.stg-wb__progress-text {
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.35);
	margin-top: 8px;
	display: block;
	text-align: right;
}

/* ------------------------------------------------
   Sections
   ------------------------------------------------ */

.stg-wb__section {
	background: rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 32px;
	margin-bottom: 24px;
	color: #ffffff;
}

.stg-wb__section-title {
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 16px;
	color: #ffffff;
	margin: 0 0 24px 0;
	padding: 0 0 16px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	align-items: center;
	gap: 12px;
}

.stg-wb__section-num {
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 24px;
	color: rgba(255, 255, 255, 0.12);
	line-height: 1;
}

/* ------------------------------------------------
   Field grid
   ------------------------------------------------ */

.stg-wb__field-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.stg-wb__field--full {
	grid-column: 1 / -1;
}

/* ------------------------------------------------
   Fields
   ------------------------------------------------ */

.stg-wb__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.stg-wb__field label {
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.5);
}

.stg-wb__field input[type="text"],
.stg-wb__field input[type="email"],
.stg-wb__field input[type="tel"],
.stg-wb__field input[type="url"],
.stg-wb__field input[type="date"],
.stg-wb__field select,
.stg-wb__field textarea {
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-size: 14px;
	color: #ffffff;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0;
	background: rgba(255, 255, 255, 0.06);
	outline: none;
	transition: border-color 0.15s ease;
	-webkit-appearance: none;
	width: 100%;
	box-sizing: border-box;
}

.stg-wb__field input:focus,
.stg-wb__field select:focus,
.stg-wb__field textarea:focus {
	border-color: rgba(255, 255, 255, 0.4);
}

.stg-wb__field input::placeholder,
.stg-wb__field textarea::placeholder {
	color: rgba(255, 255, 255, 0.25);
}

.stg-wb__field select option {
	background: #1a1a1a;
	color: #ffffff;
}

.stg-wb__field textarea {
	min-height: 100px;
	resize: vertical;
}

.stg-wb__field-hint {
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.3);
	font-style: italic;
}

.stg-wb__field-error {
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-size: 12px;
	color: #ff6b6b;
	font-weight: 600;
	margin-top: 6px;
}

.stg-wb__required {
	color: #cc0000;
	margin-left: 2px;
}

/* ------------------------------------------------
   Checkboxes
   ------------------------------------------------ */

.stg-wb__checkbox-group {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.stg-wb__checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-size: 14px;
	color: #ffffff;
	cursor: pointer;
}

.stg-wb__checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	min-width: 18px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 0;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	position: relative;
	background: rgba(255, 255, 255, 0.06);
}

.stg-wb__checkbox input[type="checkbox"]:checked {
	background: #ffffff;
	border-color: #ffffff;
}

.stg-wb__checkbox input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 2px;
	width: 5px;
	height: 9px;
	border: solid #050507;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* ------------------------------------------------
   Radio groups
   ------------------------------------------------ */

.stg-wb__radio-group {
	display: flex;
	gap: 24px;
	padding-top: 4px;
}

.stg-wb__radio {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-size: 14px;
	color: #ffffff;
	cursor: pointer;
}

.stg-wb__radio input[type="radio"] {
	width: 18px;
	height: 18px;
	min-width: 18px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	position: relative;
	background: rgba(255, 255, 255, 0.06);
}

.stg-wb__radio input[type="radio"]:checked {
	border-color: #ffffff;
}

.stg-wb__radio input[type="radio"]:checked::after {
	content: '';
	position: absolute;
	top: 4px;
	left: 4px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ffffff;
}

/* ------------------------------------------------
   File upload
   ------------------------------------------------ */

.stg-wb__file-zone {
	border: 2px dashed rgba(255, 255, 255, 0.15);
	padding: 32px;
	text-align: center;
	transition: border-color 0.15s ease;
}

.stg-wb__file-zone:hover {
	border-color: rgba(255, 255, 255, 0.3);
}

.stg-wb__file-zone input[type="file"] {
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.5);
}

.stg-wb__file-label {
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.4);
	margin-bottom: 12px;
}

/* ------------------------------------------------
   Buttons
   ------------------------------------------------ */

.stg-wb__btn {
	font-family: 'Manrope', sans-serif !important;
	font-weight: 700 !important;
	font-size: 12px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.06em !important;
	padding: 14px 32px !important;
	border: 1px solid rgba(255, 255, 255, 0.15) !important;
	background: transparent !important;
	color: #ffffff !important;
	cursor: pointer !important;
	transition: all 0.15s ease !important;
	text-decoration: none !important;
	display: inline-block !important;
	border-radius: 0px !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	box-shadow: none !important;
	outline: none !important;
	line-height: 1.4 !important;
}

.stg-wb__btn:hover {
	background: rgba(255, 255, 255, 0.08) !important;
	color: #ffffff !important;
}

.stg-wb__btn--submit,
.stg-wb__btn--next {
	background: #ffffff!important;
	color: #050507!important;
	border-color: #ffffff!important;
	border-radius: none!important;
}

.stg-wb__btn--submit:hover,
.stg-wb__btn--next:hover {
	background: rgba(255, 255, 255, 0.85);
}

.stg-wb__btn--prev{
	background-color: transparent!important;
	border:solid 1px #fff!important;
	color: #fff!important;
	border-radius: none!important;
}

/* ------------------------------------------------
   Actions bar
   ------------------------------------------------ */

.stg-wb__actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 24px 0 0 0;
}

/* ------------------------------------------------
   Success view
   ------------------------------------------------ */

.stg-wb__success {
	text-align: center;
	padding: 80px 40px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.stg-wb__success-icon {
	width: 64px;
	height: 64px;
	line-height: 64px;
	font-size: 32px;
	background: rgba(26, 138, 74, 0.15);
	color: #1a8a4a;
	display: inline-block;
	margin-bottom: 24px;
}

/* ------------------------------------------------
   Error messages
   ------------------------------------------------ */

.stg-wb__errors {
	background: rgba(204, 0, 0, 0.15);
	border-left: 3px solid #cc0000;
	padding: 16px 20px;
	margin-bottom: 24px;
}

.stg-wb__errors p {
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-size: 13px;
	color: #ff6666;
	margin: 0 0 4px 0;
}

.stg-wb__errors p:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------
   Domain input + check
   ------------------------------------------------ */

.stg-wb__domain-input {
	display: flex;
	gap: 0;
}

.stg-wb__domain-input input {
	flex: 1;
	border-right: none !important;
}

.stg-wb__btn--check {
	padding: 12px 20px !important;
	font-size: 11px !important;
	white-space: nowrap !important;
	border-left: none !important;
	border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
	border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
	background: rgba(255, 255, 255, 0.08) !important;
	color: rgba(255, 255, 255, 0.7) !important;
}

.stg-wb__btn--check:hover {
	background: rgba(255, 255, 255, 0.15) !important;
	color: #ffffff !important;
}

.stg-wb__domain-status {
	margin-top: 8px;
	min-height: 20px;
}

.stg-wb__domain-status span {
	font-size: 13px;
	line-height: 1.5;
}

.stg-wb__domain-loading {
	color: rgba(255, 255, 255, 0.45);
}

.stg-wb__domain-available {
	color: #1a8a4a;
	font-weight: 600;
}

.stg-wb__domain-taken {
	color: #d4a574;
}

.stg-wb__domain-error {
	color: #ff6666;
}

/* ------------------------------------------------
   Email rows
   ------------------------------------------------ */

.stg-wb__emails {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 12px;
}

.stg-wb__email-row {
	display: flex;
	align-items: center;
	gap: 0;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.06);
}

.stg-wb__email-prefix {
	flex: 1;
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-size: 14px;
	color: #ffffff;
	padding: 12px 14px;
	border: none !important;
	background: transparent !important;
	outline: none;
	-webkit-appearance: none;
}

.stg-wb__email-prefix::placeholder {
	color: rgba(255, 255, 255, 0.25);
}

.stg-wb__email-at {
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.3);
	padding: 0 2px;
}

.stg-wb__email-domain {
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.5);
	padding-right: 14px;
	white-space: nowrap;
}

.stg-wb__email-remove {
	background: transparent;
	border: none;
	border-left: 1px solid rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.3);
	font-size: 18px;
	padding: 12px 14px;
	cursor: pointer;
	transition: color 0.15s ease;
	line-height: 1;
}

.stg-wb__email-remove:hover {
	color: #ff6666;
}

.stg-wb__btn--add-email {
	font-size: 11px !important;
	padding: 8px 16px !important;
	border-style: dashed !important;
	color: rgba(255, 255, 255, 0.45) !important;
	align-self: flex-start;
}

.stg-wb__btn--add-email:hover {
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.3) !important;
}

/* ------------------------------------------------
   Responsive
   ------------------------------------------------ */

@media (max-width: 600px) {
	.stg-wb {
		margin: 20px auto;
	}

	.stg-wb__title {
		font-size: 22px;
	}

	.stg-wb__field-grid {
		grid-template-columns: 1fr;
	}

	.stg-wb__checkbox-group {
		grid-template-columns: 1fr;
	}

	.stg-wb__radio-group {
		flex-direction: column;
		gap: 12px;
	}

	.stg-wb__section {
		padding: 24px 16px;
	}

	.stg-wb__actions {
		flex-direction: column;
		gap: 12px;
	}

	.stg-wb__btn {
		width: 100%;
		text-align: center;
	}
}
