/* ================================================================
   ABS Vendor Questionnaire — Light Purple Theme
   Matches artistic.qa site design language
================================================================ */

:root {
	--abs-vq-bg: #f7f7f8;
	--abs-vq-white: #ffffff;
	--abs-vq-surface: rgba(255, 255, 255, 0.72);
	--abs-vq-text: #111111;
	--abs-vq-muted: #5f6673;
	--abs-vq-border: rgba(0, 0, 0, 0.08);
	--abs-vq-primary: #bc39ed;
	--abs-vq-primary-dark: #8a1fc0;
	--abs-vq-primary-light: #f14cc8;
	--abs-vq-accent: #f2d7ff;
	--abs-vq-success: #16a34a;
	--abs-vq-error: #dc2626;
	--abs-vq-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
	--abs-vq-glow: 0 0 28px rgba(188, 57, 237, 0.10);
	--abs-vq-radius: 24px;
	--abs-vq-gradient: linear-gradient(90deg, #8a1fc0, #bc39ed, #f14cc8);
}

.abs-vq-shell {
	font-family: inherit;
	color: var(--abs-vq-text);
}

/* ================================================================
   FLOATING BUTTON
================================================================ */

.abs-vq-shell .abs-vq-float-button {
	position: fixed;
	left: 20px !important;
	right: auto !important;
	bottom: 20px !important;
	z-index: 10001 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: var(--abs-vq-gradient) !important;
	color: #ffffff !important;
	box-shadow:
		0 14px 34px rgba(188, 57, 237, 0.28),
		0 0 18px rgba(188, 57, 237, 0.15);
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	animation: absVqPulse 3s ease-in-out infinite;
}

.abs-vq-shell .abs-vq-float-button::before {
	content: "";
	position: absolute;
	inset: 1px;
	border-radius: inherit;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
	pointer-events: none;
}

.abs-vq-shell .abs-vq-float-button::after {
	content: attr(data-tooltip);
	position: absolute;
	left: calc(100% + 14px);
	top: 50%;
	transform: translateY(-50%) translateX(-6px);
	padding: 10px 16px;
	border: 1px solid var(--abs-vq-border);
	border-radius: 999px;
	background: var(--abs-vq-white);
	color: var(--abs-vq-text);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.abs-vq-shell .abs-vq-float-button:hover,
.abs-vq-shell .abs-vq-float-button:focus-visible {
	transform: translateY(-3px) scale(1.05);
	box-shadow:
		0 18px 40px rgba(188, 57, 237, 0.36),
		0 0 24px rgba(188, 57, 237, 0.22);
}

.abs-vq-shell .abs-vq-float-button:hover::after,
.abs-vq-shell .abs-vq-float-button:focus-visible::after {
	opacity: 1;
	transform: translateY(-50%) translateX(0);
}

.abs-vq-float-button__badge {
	position: relative;
	z-index: 1;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.08em;
}

/* ================================================================
   MODAL (overlay + centering)
================================================================ */

.abs-vq-modal {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 9999;
}

.abs-vq-modal.is-open {
	display: flex;
	align-items: center;
	justify-content: center;
	animation: absVqFadeIn 0.3s ease forwards;
}

.abs-vq-overlay {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at top right, rgba(188, 57, 237, 0.07), transparent 32%),
		radial-gradient(circle at bottom left, rgba(241, 76, 200, 0.05), transparent 28%),
		rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(16px) saturate(140%);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
}

/* ================================================================
   DIALOG — flex column with sticky header + footer
================================================================ */

.abs-vq-dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(1180px, calc(100vw - 40px));
	max-height: calc(100vh - 40px);
	border-radius: 28px;
	box-shadow: var(--abs-vq-shadow), var(--abs-vq-glow);
	animation: absVqSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.abs-vq-inline-wrapper {
	max-width: 1180px;
	margin: 0 auto;
}

/* ================================================================
   CARD — wraps everything inside dialog
================================================================ */

.abs-vq-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 0;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 28px;
	background: var(--abs-vq-bg);
	color: var(--abs-vq-text);
}

.abs-vq-card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background:
		radial-gradient(circle at top right, rgba(188, 57, 237, 0.05), transparent 32%),
		radial-gradient(circle at bottom left, rgba(241, 76, 200, 0.04), transparent 26%);
	pointer-events: none;
	z-index: 0;
}

/* ================================================================
   CARD HEADER — sticky at top
================================================================ */

.abs-vq-card__header {
	position: relative;
	z-index: 2;
	flex-shrink: 0;
	padding: 28px 32px 20px;
	border-bottom: 1px solid var(--abs-vq-border);
	background: var(--abs-vq-bg);
	border-radius: 28px 28px 0 0;
}

.abs-vq-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	padding: 7px 14px;
	border: 1px solid rgba(188, 57, 237, 0.18);
	border-radius: 999px;
	background: rgba(188, 57, 237, 0.07);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--abs-vq-primary);
}

.abs-vq-card__header h2 {
	margin: 0 0 8px;
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--abs-vq-text);
}

.abs-vq-intro {
	margin: 0;
	max-width: 760px;
	color: var(--abs-vq-muted);
	line-height: 1.6;
	font-size: 14px;
}

/* ── Progress Bar ── */

.abs-vq-progress {
	margin-top: 18px;
	height: 8px;
	border: 1px solid var(--abs-vq-border);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.04);
	overflow: hidden;
}

.abs-vq-progress__bar {
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: var(--abs-vq-gradient);
	box-shadow: 0 0 12px rgba(188, 57, 237, 0.2);
	transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================================================================
   FORM — scrollable middle section
================================================================ */

.abs-vq-form {
	position: relative;
	z-index: 1;
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	padding: 24px 32px 0;
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	grid-template-areas:
		"steps message"
		"steps content"
		"steps actions";
	gap: 0 24px;
	align-items: start;
	align-content: start;
}

/* smooth scrollbar styling */
.abs-vq-form::-webkit-scrollbar {
	width: 6px;
}

.abs-vq-form::-webkit-scrollbar-track {
	background: transparent;
}

.abs-vq-form::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.12);
	border-radius: 999px;
}

.abs-vq-form::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 0, 0, 0.2);
}

/* ================================================================
   STEPS NAVIGATION
================================================================ */

.abs-vq-steps-nav {
	grid-area: steps;
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	position: sticky;
	top: 0;
	padding-top: 2px;
	padding-bottom: 24px;
}

.abs-vq-steps-nav__item {
	padding: 10px 14px;
	border: 1px solid var(--abs-vq-border);
	border-radius: 14px;
	background: var(--abs-vq-white);
	color: var(--abs-vq-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	cursor: default;
	transition: all 0.22s ease;
}

.abs-vq-steps-nav__item.is-active {
	border-color: rgba(188, 57, 237, 0.3);
	background: rgba(188, 57, 237, 0.08);
	color: var(--abs-vq-primary);
	font-weight: 700;
	box-shadow: 0 4px 14px rgba(188, 57, 237, 0.08);
}

/* ================================================================
   MESSAGE (success / error)
================================================================ */

.abs-vq-message {
	grid-area: message;
	margin: 0 0 16px;
	padding: 14px 18px;
	border: 1px solid var(--abs-vq-border);
	border-radius: 14px;
	font-size: 14px;
	font-weight: 700;
}

.abs-vq-message.is-success {
	background: rgba(22, 163, 74, 0.07);
	border-color: rgba(22, 163, 74, 0.2);
	color: var(--abs-vq-success);
}

.abs-vq-message.is-error {
	background: rgba(220, 38, 38, 0.06);
	border-color: rgba(220, 38, 38, 0.18);
	color: var(--abs-vq-error);
}

/* ================================================================
   STEP CONTENT
================================================================ */

.abs-vq-step {
	grid-area: content;
	padding: 22px;
	border: 1px solid var(--abs-vq-border);
	border-radius: 20px;
	background: var(--abs-vq-surface);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.abs-vq-step__header {
	margin-bottom: 20px;
	padding-left: 16px;
	border-left: 3px solid transparent;
	border-image: linear-gradient(180deg, #bc39ed, #f14cc8, #ffb14a, #d8ff6a) 1;
}

.abs-vq-step__header h3 {
	margin: 0 0 6px;
	font-size: 1.2rem;
	line-height: 1.15;
	font-weight: 700;
	color: var(--abs-vq-text);
}

.abs-vq-step__header p,
.abs-vq-field__description {
	margin: 0;
	color: var(--abs-vq-muted);
	line-height: 1.55;
	font-size: 13.5px;
}

/* ================================================================
   FIELD GRID
================================================================ */

.abs-vq-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 18px;
}

.abs-vq-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.abs-vq-field--full {
	grid-column: 1 / -1;
}

.abs-vq-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--abs-vq-text);
}

.abs-vq-required {
	color: #d946a8;
}

/* ================================================================
   FORM CONTROLS
================================================================ */

.abs-vq-field input,
.abs-vq-field select,
.abs-vq-field textarea {
	width: 100%;
	min-height: 48px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 12px;
	padding: 12px 14px;
	font: inherit;
	font-size: 14px;
	color: var(--abs-vq-text) !important;
	background: var(--abs-vq-white) !important;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.abs-vq-field input::placeholder,
.abs-vq-field textarea::placeholder {
	color: #a0a4ab;
}

.abs-vq-field textarea {
	min-height: 120px;
	resize: vertical;
}

.abs-vq-field input:focus,
.abs-vq-field select:focus,
.abs-vq-field textarea:focus {
	outline: none;
	border-color: rgba(188, 57, 237, 0.5);
	box-shadow: 0 0 0 3px rgba(188, 57, 237, 0.08);
}

.abs-vq-field option {
	color: var(--abs-vq-text);
}

/* ================================================================
   CHECKBOX
================================================================ */

.abs-vq-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--abs-vq-border);
	border-radius: 14px;
	background: var(--abs-vq-white);
}

.abs-vq-checkbox input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	min-height: auto;
	margin-top: 3px;
	accent-color: var(--abs-vq-primary);
}

.abs-vq-checkbox span {
	color: var(--abs-vq-text);
	line-height: 1.55;
	font-size: 14px;
}

/* ================================================================
   TABLE
================================================================ */

.abs-vq-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--abs-vq-border);
	border-radius: 14px;
	background: var(--abs-vq-white);
}

.abs-vq-table {
	width: 100%;
	border-collapse: collapse;
}

.abs-vq-table th,
.abs-vq-table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--abs-vq-border);
	text-align: left;
	vertical-align: top;
	font-size: 13.5px;
	color: var(--abs-vq-text);
}

.abs-vq-table th {
	background: rgba(0, 0, 0, 0.025);
	font-weight: 700;
}

.abs-vq-table tr:last-child td {
	border-bottom: 0;
}

/* ================================================================
   REPEATER
================================================================ */

.abs-vq-repeater {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.abs-vq-repeater__rows {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.abs-vq-repeater__row {
	padding: 16px;
	border: 1px solid var(--abs-vq-border);
	border-radius: 16px;
	background: var(--abs-vq-white);
}

.abs-vq-repeater__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.abs-vq-repeater__remove {
	margin-top: 12px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--abs-vq-error);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.abs-vq-repeater__remove:hover {
	opacity: 0.7;
}

/* ================================================================
   ACTIONS — sticky at bottom
================================================================ */

.abs-vq-actions {
	grid-area: actions;
	position: sticky;
	bottom: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 24px;
	padding: 18px 0 28px;
	border-top: 1px solid var(--abs-vq-border);
	background: var(--abs-vq-bg);
}

.abs-vq-actions__right {
	display: flex;
	align-items: center;
	gap: 12px;
}

.abs-vq-step-counter {
	font-size: 13px;
	font-weight: 700;
	color: var(--abs-vq-muted);
}

/* ================================================================
   BUTTONS
================================================================ */

.abs-vq-button {
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 14px 24px;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.abs-vq-button:hover,
.abs-vq-button:focus-visible {
	transform: translateY(-2px);
}

.abs-vq-button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none !important;
}

.abs-vq-button--primary {
	color: #ffffff !important;
	background: var(--abs-vq-gradient) !important;
	box-shadow: 0 12px 28px rgba(188, 57, 237, 0.22);
}

.abs-vq-button--primary:hover,
.abs-vq-button--primary:focus-visible {
	box-shadow: 0 16px 36px rgba(188, 57, 237, 0.32);
}

.abs-vq-button--ghost {
	color: var(--abs-vq-text) !important;
	border-color: rgba(0, 0, 0, 0.1);
	background: var(--abs-vq-white) !important;
}

.abs-vq-button--ghost:hover,
.abs-vq-button--ghost:focus-visible {
	border-color: rgba(188, 57, 237, 0.28);
	background: rgba(188, 57, 237, 0.04) !important;
}

.abs-vq-button--small {
	align-self: flex-start;
	padding: 10px 15px;
	font-size: 13px;
}

/* ================================================================
   CLOSE BUTTON
================================================================ */

.abs-vq-close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--abs-vq-border);
	border-radius: 50%;
	font-size: 24px;
	line-height: 1;
	color: var(--abs-vq-muted);
	background: var(--abs-vq-white);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.abs-vq-close:hover {
	transform: scale(1.08);
	color: var(--abs-vq-text);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

body.abs-vq-modal-open {
	overflow: hidden;
}

/* ================================================================
   ANIMATIONS
================================================================ */

@keyframes absVqPulse {
	0%, 100% {
		box-shadow:
			0 14px 34px rgba(188, 57, 237, 0.28),
			0 0 18px rgba(188, 57, 237, 0.15);
	}
	50% {
		box-shadow:
			0 18px 40px rgba(188, 57, 237, 0.4),
			0 0 28px rgba(188, 57, 237, 0.25);
	}
}

@keyframes absVqFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes absVqSlideUp {
	from {
		opacity: 0;
		transform: translateY(24px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* ================================================================
   RESPONSIVE — Tablet (<=960px)
================================================================ */

@media (max-width: 960px) {
	.abs-vq-form {
		grid-template-columns: 1fr;
		grid-template-areas:
			"steps"
			"message"
			"content"
			"actions";
		gap: 16px;
	}

	.abs-vq-steps-nav {
		position: static;
		flex-direction: row;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		gap: 8px;
		padding-bottom: 4px;
		scrollbar-width: none;
	}

	.abs-vq-steps-nav::-webkit-scrollbar {
		display: none;
	}

	.abs-vq-steps-nav__item {
		flex: 0 0 auto;
		white-space: nowrap;
		padding: 8px 14px;
		font-size: 11.5px;
	}

	.abs-vq-grid,
	.abs-vq-repeater__grid {
		grid-template-columns: 1fr;
	}
}

/* ================================================================
   RESPONSIVE — Small Tablet / Large Phone (<=782px)
================================================================ */

@media (max-width: 782px) {
	.abs-vq-dialog {
		width: calc(100vw - 16px);
		max-height: calc(100vh - 16px);
		border-radius: 22px;
	}

	.abs-vq-card {
		border-radius: 22px;
	}

	.abs-vq-card__header {
		padding: 22px 20px 16px;
		border-radius: 22px 22px 0 0;
	}

	.abs-vq-card__header h2 {
		padding-right: 44px;
	}

	.abs-vq-intro {
		font-size: 13px;
	}

	.abs-vq-form {
		padding: 18px 20px 0;
	}

	.abs-vq-step {
		padding: 18px;
		border-radius: 16px;
	}

	.abs-vq-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding: 16px 0 22px;
	}

	.abs-vq-actions__right {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.abs-vq-button {
		width: 100%;
		text-align: center;
		padding: 15px 20px;
	}

	.abs-vq-step-counter {
		width: 100%;
		text-align: center;
	}
}

/* ================================================================
   RESPONSIVE — Phone (<=640px)  — full-screen drawer
================================================================ */

@media (max-width: 640px) {
	.abs-vq-modal.is-open {
		align-items: flex-end;
	}

	.abs-vq-dialog {
		width: 100vw;
		max-height: 95vh;
		margin: 0;
		border-radius: 22px 22px 0 0;
		animation: absVqSlideUpMobile 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
	}

	.abs-vq-card {
		border-radius: 22px 22px 0 0;
	}

	.abs-vq-card__header {
		padding: 18px 16px 14px;
		border-radius: 22px 22px 0 0;
	}

	.abs-vq-card__header h2 {
		font-size: 1.35rem;
		padding-right: 44px;
	}

	.abs-vq-eyebrow {
		font-size: 10px;
		padding: 5px 10px;
	}

	.abs-vq-intro {
		font-size: 12.5px;
		line-height: 1.5;
	}

	.abs-vq-progress {
		margin-top: 12px;
		height: 6px;
	}

	.abs-vq-form {
		padding: 14px 16px 0;
	}

	.abs-vq-steps-nav__item {
		padding: 7px 12px;
		font-size: 11px;
		border-radius: 10px;
	}

	.abs-vq-step {
		padding: 14px;
		border-radius: 14px;
	}

	.abs-vq-step__header {
		margin-bottom: 14px;
		padding-left: 12px;
	}

	.abs-vq-step__header h3 {
		font-size: 1.05rem;
	}

	.abs-vq-label {
		font-size: 12.5px;
	}

	.abs-vq-field input,
	.abs-vq-field select,
	.abs-vq-field textarea {
		min-height: 46px;
		padding: 11px 12px;
		font-size: 14px;
		border-radius: 10px;
	}

	.abs-vq-field textarea {
		min-height: 100px;
	}

	.abs-vq-repeater__row {
		padding: 12px;
		border-radius: 12px;
	}

	.abs-vq-checkbox {
		padding: 12px;
		border-radius: 12px;
		gap: 10px;
	}

	.abs-vq-table th,
	.abs-vq-table td {
		padding: 10px 12px;
		font-size: 13px;
	}

	.abs-vq-close {
		top: 12px;
		right: 12px;
		width: 38px;
		height: 38px;
		font-size: 22px;
	}

	.abs-vq-actions {
		padding: 14px 0 18px;
	}

	.abs-vq-button {
		padding: 14px 18px;
		font-size: 14px;
	}

	/* floating button */
	.abs-vq-shell .abs-vq-float-button {
		left: 14px !important;
		right: auto !important;
		bottom: 14px !important;
		width: 56px;
		height: 56px;
	}

	.abs-vq-float-button::after {
		display: none;
	}
}

/* Mobile slide-up animation */
@keyframes absVqSlideUpMobile {
	from {
		opacity: 0;
		transform: translateY(100%);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ================================================================
   RESPONSIVE — Very Small Phone (<=380px)
================================================================ */

@media (max-width: 380px) {
	.abs-vq-card__header {
		padding: 14px 12px 12px;
	}

	.abs-vq-card__header h2 {
		font-size: 1.2rem;
	}

	.abs-vq-form {
		padding: 10px 12px 0;
	}

	.abs-vq-step {
		padding: 12px;
	}

	.abs-vq-grid {
		gap: 12px;
	}

	.abs-vq-field input,
	.abs-vq-field select,
	.abs-vq-field textarea {
		min-height: 44px;
		padding: 10px;
		font-size: 13.5px;
	}
}
