@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500&display=swap');

/* ==========================================================================
   Feedback Form — Magellano Core
   ========================================================================== */

.fb-wrap {
	display: flex;
	justify-content: center;
}

.fb-card {
	font-family: 'Poppins', sans-serif;
	font-weight: 300;
	background: #fff;
	border-radius: 16px;
	padding: 2rem;
	width: 100%;
	max-width: 720px;
	border: 1px solid #e8e6e0;
	box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Logo row
   -------------------------------------------------------------------------- */

.fb-logo-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid #eeecea;
}

.fb-logo-circle {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #AA0202;
	flex-shrink: 0;
	position: relative;
	overflow: hidden;
}

.fb-logo-img {
	display: block;
	width: 38px;
	height: 38px;
	object-fit: cover;
	border-radius: 50%;
	position: relative;
	z-index: 1;
}

.fb-logo-fallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.fb-company-name {
	font-size: 14px;
	font-weight: 500;
	color: #1a1a2e;
}

.fb-tagline {
	font-size: 12px;
	color: #9a9690;
	margin-top: 1px;
}

/* --------------------------------------------------------------------------
   Titolo e sottotitolo
   -------------------------------------------------------------------------- */

.fb-title {
	font-size: 18px;
	font-weight: 500;
	margin: 0 0 4px;
	color: #1a1a2e;
}

.fb-sub {
	font-size: 13px;
	color: #9a9690;
	margin: 0 0 1.75rem;
	line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Sezione
   -------------------------------------------------------------------------- */

.fb-section {
	margin-bottom: 1.5rem;
}

.fb-label {
	display: block;
	font-size: 12px;
	color: #6b6860;
	margin-bottom: 10px;
	letter-spacing: 0.01em;
}

.fb-opt {
	font-size: 11px;
	color: #b0ada8;
}

.fb-divider {
	height: 1px;
	background: #eeecea;
	margin: 1.5rem 0;
}

/* --------------------------------------------------------------------------
   Stelle
   -------------------------------------------------------------------------- */

.fb-stars {
	display: flex;
	gap: 6px;
}

.fb-star {
	font-size: 28px;
	cursor: pointer;
	color: transparent;
	-webkit-text-stroke: 1.5px #031F30;
	transition: color 0.12s, -webkit-text-stroke-color 0.12s;
	line-height: 1;
	user-select: none;
	outline: none;
}

.fb-star:focus-visible {
	outline: 2px solid #AA0202;
	outline-offset: 2px;
	border-radius: 2px;
}

.fb-star--active {
	color: #031F30;
	-webkit-text-stroke-color: #031F30;
}

/* --------------------------------------------------------------------------
   Chips
   -------------------------------------------------------------------------- */

.fb-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fb-chip {
	padding: 6px 14px !important;
	border-radius: 20px !important;
	border: 1px solid #dedad4 !important;
	font-family: 'Poppins', sans-serif !important;
	font-size: 12px !important;
	font-weight: 300 !important;
	color: #6b6860 !important;
	cursor: pointer !important;
	background: transparent !important;
	box-shadow: none !important;
	text-decoration: none !important;
	transition: background 0.15s, border-color 0.15s, color 0.15s !important;
}

.fb-chip:hover,
.fb-chip:focus {
	background: #f0f0f0 !important;
	border-color: #031F30 !important;
	color: #031F30 !important;
	box-shadow: none !important;
	outline: none !important;
}

.fb-chip:focus-visible {
	outline: 2px solid #AA0202 !important;
	outline-offset: 2px !important;
}

.fb-chip--selected,
.fb-chip--selected:hover,
.fb-chip--selected:focus {
	background: #031F30 !important;
	color: #fff !important;
	border-color: #031F30 !important;
	box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   Trio (selezione singola)
   -------------------------------------------------------------------------- */

.fb-trio {
	display: flex;
	gap: 8px;
}

.fb-trio-btn {
	flex: 1 !important;
	padding: 10px 8px !important;
	border-radius: 10px !important;
	border: 1px solid #dedad4 !important;
	font-family: 'Poppins', sans-serif !important;
	font-size: 12px !important;
	font-weight: 300 !important;
	cursor: pointer !important;
	background: transparent !important;
	color: #6b6860 !important;
	text-align: center !important;
	line-height: 1.3 !important;
	box-shadow: none !important;
	text-decoration: none !important;
	transition: background 0.15s, border-color 0.15s, color 0.15s !important;
}

.fb-trio-btn:hover,
.fb-trio-btn:focus {
	background: #f0f0f0 !important;
	border-color: #031F30 !important;
	color: #031F30 !important;
	box-shadow: none !important;
	outline: none !important;
}

.fb-trio-btn:focus-visible {
	outline: 2px solid #AA0202 !important;
	outline-offset: 2px !important;
}

.fb-trio-btn--sel,
.fb-trio-btn--sel:hover,
.fb-trio-btn--sel:focus {
	background: #031F30 !important;
	color: #fff !important;
	border-color: #031F30 !important;
	box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   NPS
   -------------------------------------------------------------------------- */

.fb-nps {
	display: flex;
	flex-wrap: nowrap;
	gap: 4px;
}

.fb-nps-btn {
	flex: 1 !important;
	min-width: 0 !important;
	height: 36px !important;
	border-radius: 8px !important;
	border: 1px solid #dedad4 !important;
	font-family: 'Poppins', sans-serif !important;
	font-size: 12px !important;
	font-weight: 300 !important;
	cursor: pointer !important;
	background: transparent !important;
	color: #6b6860 !important;
	box-shadow: none !important;
	text-decoration: none !important;
	transition: background 0.15s, border-color 0.15s, color 0.15s !important;
}

.fb-nps-btn:hover,
.fb-nps-btn:focus {
	background: #f0f0f0 !important;
	border-color: #031F30 !important;
	color: #031F30 !important;
	box-shadow: none !important;
	outline: none !important;
}

.fb-nps-btn:focus-visible {
	outline: 2px solid #AA0202 !important;
	outline-offset: 2px !important;
}

.fb-nps-btn--sel,
.fb-nps-btn--sel:hover,
.fb-nps-btn--sel:focus {
	background: #031F30 !important;
	color: #fff !important;
	border-color: #031F30 !important;
	box-shadow: none !important;
}

.fb-nps-labels {
	display: flex;
	justify-content: space-between;
	margin-top: 6px;
}

.fb-nps-label {
	font-size: 11px;
	color: #b0ada8;
}

/* --------------------------------------------------------------------------
   Textarea
   -------------------------------------------------------------------------- */

.fb-textarea {
	width: 100%;
	border: 1px solid #dedad4;
	border-radius: 10px;
	padding: 10px 13px;
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 300;
	color: #1a1a2e;
	background: #fff;
	resize: none;
	height: 76px;
	outline: none;
	transition: border-color 0.15s;
	box-sizing: border-box;
}

.fb-textarea::placeholder {
	color: #c0bdb8;
}

.fb-textarea:focus {
	border-color: #AA0202;
}

/* --------------------------------------------------------------------------
   Submit row
   -------------------------------------------------------------------------- */

.fb-submit-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid #eeecea;
	gap: 12px;
}

.fb-privacy {
	font-size: 11px;
	color: #b0ada8;
	line-height: 1.4;
}

.fb-submit-btn {
	padding: 9px 24px !important;
	background: #031F30 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 10px !important;
	font-family: 'Poppins', sans-serif !important;
	font-size: 13px !important;
	font-weight: 300 !important;
	cursor: pointer !important;
	white-space: nowrap !important;
	flex-shrink: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
	opacity: 1 !important;
	transition: opacity 0.15s !important;
}

.fb-submit-btn:hover,
.fb-submit-btn:focus {
	background: #031F30 !important;
	color: #fff !important;
	box-shadow: none !important;
	outline: none !important;
	opacity: 0.82 !important;
	text-decoration: none !important;
}

.fb-submit-btn:focus-visible {
	outline: 2px solid #AA0202 !important;
	outline-offset: 2px !important;
	opacity: 1 !important;
}

.fb-submit-btn:disabled {
	opacity: 0.5 !important;
	cursor: not-allowed !important;
}

/* --------------------------------------------------------------------------
   Messaggio di errore
   -------------------------------------------------------------------------- */

.fb-error-msg {
	margin-top: 12px;
	padding: 10px 14px;
	background: #fdf3f2;
	border: 1px solid #e74c3c;
	border-radius: 8px;
	font-size: 13px;
	color: #c0392b;
}

/* --------------------------------------------------------------------------
   Schermata di ringraziamento
   -------------------------------------------------------------------------- */

.fb-thank {
	text-align: center;
	padding: 3rem 0 2rem;
}

.fb-thank-check {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #eef7f0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.25rem;
	font-size: 22px;
	color: #2d8a4e;
}

.fb-thank h3 {
	font-size: 17px;
	font-weight: 500;
	margin: 0 0 6px;
	color: #1a1a2e;
}

.fb-thank p {
	font-size: 13px;
	color: #9a9690;
	line-height: 1.6;
	margin: 0;
}

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

@media (max-width: 600px) {
	.fb-card {
		padding: 1.5rem 1rem;
	}

	.fb-nps {
		flex-wrap: wrap;
	}

	.fb-nps-btn {
		flex: 0 0 calc(20% - 4px);
		height: 34px;
	}

	.fb-trio {
		flex-direction: column;
	}
}
