.abps-survey {
	--abps-navy: #021035;
	--abps-blue: #00397b;
	--abps-blue-light: #1153a1;
	--abps-green: #4fb362;
	--abps-gray: #393939;
	--abps-gray-light: #ebebeb;
	--abps-red: #d92626;

	max-width: 640px;
	margin: 0 auto;
	padding: 2.5rem 2rem;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(2, 16, 53, 0.08);
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--abps-gray);
	box-sizing: border-box;
}

.abps-survey * {
	box-sizing: border-box;
}

.abps-progress {
	margin-bottom: 2rem;
}

.abps-progress-bar {
	height: 6px;
	background: var(--abps-gray-light);
	border-radius: 999px;
	overflow: hidden;
}

.abps-progress-bar span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--abps-blue), var(--abps-blue-light));
	border-radius: 999px;
	transition: width 0.3s ease;
}

.abps-progress-label {
	margin-top: 0.5rem;
	font-size: 0.8rem;
	color: #8a8a8a;
	text-align: right;
}

.abps-step {
	display: none;
}

.abps-step.is-active {
	display: block;
	animation: abps-fade 0.25s ease;
}

@keyframes abps-fade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.abps-question-title {
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--abps-navy);
	margin: 0 0 1.5rem;
	line-height: 1.4;
}

.abps-field {
	margin-bottom: 1.25rem;
}

.abps-field label {
	display: block;
	font-size: 0.85rem;
	font-weight: 500;
	margin-bottom: 0.4rem;
	color: var(--abps-gray);
}

.abps-field input[type="text"],
.abps-field input[type="email"],
.abps-field textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1.5px solid var(--abps-gray-light);
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.95rem;
	color: var(--abps-gray);
	transition: border-color 0.2s ease;
}

.abps-field input[type="text"]:focus,
.abps-field input[type="email"]:focus,
.abps-field textarea:focus {
	outline: none;
	border-color: var(--abps-blue-light);
}

.abps-field textarea {
	resize: vertical;
}

.abps-char-count {
	text-align: right;
	font-size: 0.75rem;
	color: #999;
	margin-top: 0.35rem;
}

/* Rating */
.abps-rating {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.abps-rating-option {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	cursor: pointer;
	padding: 0.75rem 0.25rem;
	border-radius: 10px;
	border: 1.5px solid var(--abps-gray-light);
	transition: border-color 0.2s ease, background 0.2s ease;
	text-align: center;
}

.abps-rating-option:hover {
	border-color: var(--abps-blue-light);
}

.abps-rating-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.abps-rating-option:has(input:checked) {
	border-color: var(--abps-blue);
	background: rgba(0, 57, 123, 0.06);
}

.abps-rating-visual {
	font-size: 1.4rem;
	line-height: 1;
	color: var(--abps-blue-light);
}

.abps-rating--number .abps-rating-visual {
	width: 2rem;
	height: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--abps-gray-light);
	font-size: 1rem;
	font-weight: 600;
	color: var(--abps-gray);
}

.abps-rating-option:has(input:checked) .abps-rating--number,
.abps-rating--number .abps-rating-option:has(input:checked) .abps-rating-visual {
	background: var(--abps-blue);
	color: #fff;
}

.abps-rating-caption {
	font-size: 0.68rem;
	color: #999;
}

/* Choice */
.abps-choice {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.abps-choice-option {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.8rem 1rem;
	border: 1.5px solid var(--abps-gray-light);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
	font-size: 0.92rem;
}

.abps-choice-option:hover {
	border-color: var(--abps-blue-light);
}

.abps-choice-option:has(input[type="radio"]:checked) {
	border-color: var(--abps-blue);
	background: rgba(0, 57, 123, 0.06);
}

.abps-choice-option input[type="radio"] {
	width: 18px;
	height: 18px;
	accent-color: var(--abps-blue);
	flex-shrink: 0;
}

.abps-other-text {
	flex: 1;
	padding: 0.4rem 0.6rem;
	border: 1px solid var(--abps-gray-light);
	border-radius: 6px;
	font-family: inherit;
	font-size: 0.88rem;
}

.abps-other-text:disabled {
	background: #f5f5f5;
	color: #bbb;
}

/* Introdução */
.abps-step-intro {
	text-align: center;
}

.abps-intro-logo {
	max-width: 160px;
	max-height: 90px;
	object-fit: contain;
	margin: 0 auto 1.75rem;
	display: block;
}

.abps-intro-title {
	text-align: left;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--abps-navy);
	line-height: 1.4;
	margin: 0 0 1.25rem;
}

.abps-intro-body {
	text-align: left;
	color: var(--abps-gray);
	font-size: 0.92rem;
	line-height: 1.6;
}

.abps-intro-body p {
	margin: 0 0 1rem;
}

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

/* Thanks */
.abps-step-thanks {
	text-align: center;
	padding: 1.5rem 0;
}

.abps-thanks-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--abps-green);
	color: #fff;
	font-size: 1.6rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
}

.abps-step-thanks h3 {
	color: var(--abps-navy);
	margin: 0 0 0.5rem;
}

.abps-step-thanks p {
	color: #777;
	margin: 0;
}

/* Nav */
.abps-error {
	color: var(--abps-red);
	font-size: 0.85rem;
	min-height: 1.2rem;
	margin-top: 0.5rem;
}

.abps-nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.5rem;
}

.abps-survey button.abps-btn {
	padding: 0.75rem 1.6rem;
	border-radius: 999px !important;
	border: none !important;
	font-family: inherit;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	transition: background 0.2s ease, opacity 0.2s ease;
}

.abps-survey button.abps-btn-back {
	background: transparent !important;
	color: var(--abps-gray, #393939) !important;
}

.abps-survey button.abps-btn-back:hover {
	text-decoration: underline;
}

.abps-survey button.abps-btn-primary {
	background: var(--abps-blue, #00397b) !important;
	color: #fff !important;
	margin-left: auto;
}

.abps-survey button.abps-btn-primary:hover {
	background: var(--abps-blue-light, #1153a1) !important;
}

.abps-survey button.abps-btn-primary:disabled {
	opacity: 0.6;
	cursor: default;
}

@media (max-width: 480px) {
	.abps-survey {
		padding: 1.75rem 1.25rem;
	}

	.abps-rating {
		flex-wrap: wrap;
	}

	.abps-rating-option {
		flex: 1 1 30%;
	}
}
