/* SMARTcube Feedback — frontend form v1.2
   Design system: #3D7D93, Poppins/Inter, 6px radius */

.fb-form-wrap {
	--fb-primary: #3D7D93;
	--fb-primary-hover: #326678;
	--fb-dark: #2E333C;
	--fb-muted: #5C6B74;
	--fb-border: #E3E7E9;
	--fb-light: #F7F7F7;
	--fb-soft: #E7EFF2;
	--fb-white: #FFFFFF;
	--fb-font: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--fb-head: 'Poppins', 'Segoe UI', Arial, sans-serif;
	--fb-radius: 10px;
	--fb-radius-sm: 6px;

	max-width: 680px;
	margin: 0 auto;
	padding: 8px 0 40px;
	font-family: var(--fb-font);
	color: var(--fb-muted);
	font-size: 15px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

.fb-intro {
	background: linear-gradient(135deg, var(--fb-soft) 0%, var(--fb-light) 100%);
	border: 1px solid var(--fb-border);
	border-radius: var(--fb-radius);
	padding: 28px 28px 24px;
	margin-bottom: 28px;
}

.fb-intro-eyebrow {
	font-family: var(--fb-font);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fb-primary);
	margin: 0 0 10px;
}

.fb-intro h2 {
	font-family: var(--fb-head);
	font-weight: 800;
	font-size: 1.5rem;
	line-height: 1.2;
	color: var(--fb-dark);
	margin: 0 0 14px;
}

.fb-intro p {
	margin: 0 0 10px;
	color: var(--fb-muted);
	font-size: 15px;
}

.fb-intro p:last-child { margin-bottom: 0; }

.fb-alert {
	padding: 16px 18px;
	border-radius: var(--fb-radius-sm);
	margin-bottom: 24px;
	font-size: 14px;
	line-height: 1.5;
}

.fb-alert strong {
	display: block;
	margin-bottom: 4px;
	font-weight: 700;
}

.fb-alert--success {
	background: #e8f5ef;
	border: 1px solid #b7dfc9;
	color: #1e5c3a;
}

.fb-alert--error {
	background: #fef2f2;
	border: 1px solid #f5c2c2;
	color: #8b1e1e;
}

.fb-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.fb-section {
	background: var(--fb-white);
	border: 1px solid var(--fb-border);
	border-radius: var(--fb-radius);
	padding: 24px 24px 22px;
	box-shadow: 0 1px 2px rgba(46, 51, 60, 0.04);
}

.fb-section-title { display: none; /* sections disabled on frontend */
	/* was: */
	font-family: var(--fb-head);
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fb-primary);
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--fb-border);
}

.fb-fieldset {
	margin: 0;
	padding: 0;
	border: none;
	min-width: 0;
}

.fb-fieldset legend {
	font-family: var(--fb-head);
	font-weight: 700;
	font-size: 15px;
	color: var(--fb-dark);
	padding: 0;
	margin: 0 0 14px;
	line-height: 1.35;
	float: none;
	width: 100%;
}

.fb-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fb-check,
.fb-radio {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 12px 14px;
	cursor: pointer;
	color: var(--fb-dark);
	font-size: 14px;
	line-height: 1.45;
	border: 1px solid var(--fb-border);
	border-radius: var(--fb-radius-sm);
	background: var(--fb-white);
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.fb-check:hover,
.fb-radio:hover {
	border-color: #c5d4da;
	background: var(--fb-light);
}

.fb-check.is-checked,
.fb-radio.is-checked {
	border-color: var(--fb-primary);
	background: rgba(61, 125, 147, 0.06);
	box-shadow: 0 0 0 1px var(--fb-primary);
}

.fb-check input,
.fb-radio input {
	margin: 2px 0 0;
	width: 18px;
	height: 18px;
	accent-color: var(--fb-primary);
	flex-shrink: 0;
	cursor: pointer;
}

.fb-check span,
.fb-radio span { flex: 1; }

.fb-check--other { flex-wrap: wrap; align-items: center; }

.fb-other-label {
	width: 100%;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-muted);
	margin-bottom: 2px;
}

.fb-other-input {
	width: 100%;
	margin-top: 4px;
	margin-left: 30px;
	max-width: calc(100% - 30px);
}

.fb-field { margin: 0; }

.fb-field label {
	display: block;
	font-family: var(--fb-head);
	font-weight: 700;
	font-size: 15px;
	color: var(--fb-dark);
	margin-bottom: 10px;
	line-height: 1.35;
}

.fb-field .fb-hint {
	display: block;
	font-family: var(--fb-font);
	font-weight: 400;
	font-size: 13px;
	color: var(--fb-muted);
	margin-top: 4px;
}

.fb-field textarea,
.fb-field input[type="email"],
.fb-field input[type="text"],
.fb-field select,
.fb-other-input {
	width: 100%;
	box-sizing: border-box;
	font-family: var(--fb-font);
	font-size: 15px;
	padding: 13px 16px;
	border: 1px solid var(--fb-border);
	border-radius: var(--fb-radius-sm);
	background: var(--fb-white);
	color: var(--fb-dark);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	appearance: none;
	-webkit-appearance: none;
}

.fb-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235C6B74' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 40px;
	cursor: pointer;
}

.fb-field textarea {
	resize: vertical;
	min-height: 96px;
	line-height: 1.55;
}

.fb-field textarea:focus,
.fb-field input:focus,
.fb-field select:focus,
.fb-other-input:focus {
	outline: none;
	border-color: var(--fb-primary);
	box-shadow: 0 0 0 3px rgba(61, 125, 147, 0.18);
}

.fb-field textarea::placeholder,
.fb-field input::placeholder { color: #9aa5ad; }

.fb-actions {
	margin-top: 8px;
	padding-top: 8px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.fb-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 15px 32px;
	border: none;
	border-radius: var(--fb-radius-sm);
	background: var(--fb-primary);
	color: var(--fb-white);
	font-family: var(--fb-font);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
	box-shadow: 0 4px 14px rgba(61, 125, 147, 0.25);
}

.fb-submit:hover {
	background: var(--fb-primary-hover);
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(61, 125, 147, 0.3);
}

.fb-submit:active { transform: translateY(0); }

.fb-submit:disabled {
	opacity: 0.65;
	cursor: wait;
	transform: none;
	box-shadow: none;
}

.fb-privacy-note {
	font-size: 12px;
	color: var(--fb-muted);
	line-height: 1.45;
	max-width: 280px;
}

.fb-privacy-note a {
	color: var(--fb-primary);
	text-decoration: underline;
}

.fb-hp {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.fb-mt { margin-top: 20px; }

@media (max-width: 640px) {
	.fb-form-wrap { padding: 0 0 32px; }
	.fb-intro { padding: 20px 18px; }
	.fb-intro h2 { font-size: 1.25rem; }
	.fb-section { padding: 18px 16px 16px; }
	.fb-check, .fb-radio { padding: 11px 12px; }
	.fb-other-input { margin-left: 0; max-width: 100%; }
	.fb-actions { flex-direction: column; align-items: stretch; }
	.fb-submit { width: 100%; }
	.fb-privacy-note { max-width: none; text-align: center; }
}


/* Flat form: tighter first field */
.fb-section > .fb-mt:first-child,
.fb-section > .fb-fieldset:first-child {
	margin-top: 0;
}
