/**
 * FTMPub Devis — Neo-brutal form styles.
 *
 * Uses the theme's CSS custom properties with fallbacks.
 * All classes prefixed ftmd- to avoid collisions.
 *
 * @package FtmpubDevis
 */

/* ── Design tokens (fallback if theme vars missing) ── */
:root {
	--ftmd-bg:      var(--ftm-bg, #F5F1EB);
	--ftmd-yellow:  var(--ftm-yellow, #E8FF00);
	--ftmd-magenta: var(--ftm-magenta, #FF2D9B);
	--ftmd-violet:  var(--ftm-violet, #C74AFF);
	--ftmd-cyan:    var(--ftm-cyan, #00E5FF);
	--ftmd-black:   var(--ftm-black, #0A0A0A);
	--ftmd-white:   #FFFFFF;
	--ftmd-gray:    #888;
	--ftmd-gray-lt: #CCC;
	--ftmd-error:   #E24B4A;
	--ftmd-font-h:  'Bricolage Grotesque', system-ui, sans-serif;
	--ftmd-font-m:  'JetBrains Mono', ui-monospace, monospace;
	--ftmd-radius:  8px;
	--ftmd-border:  2.5px solid var(--ftmd-black);
	--ftmd-shadow:  4px 4px 0 var(--ftmd-black);
}

/* ── Screen-reader only ── */
.ftmd-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ── Wrapper ── */
.ftmd-wrap {
	position: relative;
	max-width: 780px;
	margin: 0 auto;
	padding: 0 1rem;
}

/* ── Header ── */
.ftmd-header {
	text-align: center;
	margin-bottom: 2rem;
}
.ftmd-title {
	font-family: var(--ftmd-font-h);
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 700;
	color: var(--ftmd-black);
	margin: 0 0 0.5rem;
}
.ftmd-subtitle {
	font-size: 1rem;
	color: var(--ftmd-gray);
	margin: 0;
}

/* ── Path tabs ── */
.ftmd-paths {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 2rem;
}
.ftmd-path {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	padding: 1.25rem 1rem;
	border: 3px solid var(--ftmd-black);
	border-radius: var(--ftmd-radius);
	background: var(--ftmd-white);
	cursor: pointer;
	text-align: center;
	transition: transform 0.1s, box-shadow 0.1s, background 0.1s;
	font-family: inherit;
	color: var(--ftmd-black);
}
.ftmd-path:hover {
	transform: translate(-1px, -1px);
	box-shadow: 2px 2px 0 var(--ftmd-black);
}
.ftmd-path.is-active.ftmd-path--express {
	background: var(--ftmd-magenta);
	color: var(--ftmd-white);
	box-shadow: 5px 5px 0 var(--ftmd-black);
	transform: translate(-2px, -2px);
}
.ftmd-path.is-active.ftmd-path--config {
	background: var(--ftmd-yellow);
	color: var(--ftmd-black);
	box-shadow: 5px 5px 0 var(--ftmd-black);
	transform: translate(-2px, -2px);
}
.ftmd-path-title {
	font-family: var(--ftmd-font-h);
	font-size: 1.1rem;
	font-weight: 600;
}
.ftmd-path-desc {
	font-size: 0.8rem;
	opacity: 0.8;
}

/* ── Panels ── */
.ftmd-panel.is-hidden {
	display: none;
}

/* ── Express form ── */
.ftmd-express {
	border: 3px solid var(--ftmd-magenta);
	border-radius: calc(var(--ftmd-radius) + 2px);
	padding: 1.5rem;
	background: var(--ftmd-white);
	margin-bottom: 2rem;
}
.ftmd-express-label {
	display: block;
	font-family: var(--ftmd-font-m);
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--ftmd-magenta);
	margin-bottom: 1rem;
	font-weight: 600;
}

/* ── Inputs ── */
.ftmd-input {
	display: block;
	width: 100%;
	padding: 0.7rem 0.9rem;
	font-size: 0.95rem;
	font-family: inherit;
	color: var(--ftmd-black);
	background: var(--ftmd-white);
	border: var(--ftmd-border);
	border-radius: var(--ftmd-radius);
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.ftmd-input::placeholder {
	color: var(--ftmd-gray);
}
.ftmd-input:focus {
	outline: none;
	border-color: var(--ftmd-magenta);
	box-shadow: 0 0 0 3px rgba(255, 45, 155, 0.15);
}
.ftmd-input.has-error {
	border-color: var(--ftmd-error);
	box-shadow: 0 0 0 3px rgba(226, 75, 74, 0.15);
}
.ftmd-textarea {
	resize: vertical;
	min-height: 70px;
}

/* ── Field layout ── */
.ftmd-field {
	margin-bottom: 0.75rem;
}
.ftmd-field-label {
	display: block;
	font-family: var(--ftmd-font-m);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--ftmd-black);
	margin-bottom: 0.35rem;
	font-weight: 500;
}
.ftmd-field-label abbr {
	color: var(--ftmd-magenta);
	text-decoration: none;
}
.ftmd-field-error {
	font-size: 0.8rem;
	color: var(--ftmd-error);
	margin-top: 0.25rem;
}
.ftmd-row-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

/* ── Chips (express type selector) ── */
.ftmd-chips-fieldset {
	border: none;
	padding: 0;
	margin: 0 0 0.75rem;
}
.ftmd-chips-fieldset legend {
	font-family: var(--ftmd-font-m);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--ftmd-black);
	margin-bottom: 0.5rem;
	font-weight: 500;
}
.ftmd-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.ftmd-chip {
	cursor: pointer;
}
.ftmd-chip span {
	display: inline-block;
	padding: 0.4rem 0.9rem;
	font-size: 0.85rem;
	border: 2px solid var(--ftmd-black);
	border-radius: 2rem;
	background: var(--ftmd-white);
	color: var(--ftmd-black);
	transition: background 0.1s, box-shadow 0.1s, transform 0.1s;
	cursor: pointer;
}
.ftmd-chip:hover span {
	transform: translate(-1px, -1px);
	box-shadow: 1px 1px 0 var(--ftmd-black);
}
.ftmd-chip input:checked + span {
	background: var(--ftmd-yellow);
	box-shadow: 2px 2px 0 var(--ftmd-black);
	transform: translate(-1px, -1px);
}
.ftmd-chip input:focus-visible + span {
	outline: 2px solid var(--ftmd-magenta);
	outline-offset: 2px;
}

/* ── Divider ── */
.ftmd-divider {
	text-align: center;
	margin: 2rem 0;
	position: relative;
}
.ftmd-divider::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1.5px;
	background: var(--ftmd-gray-lt);
}
.ftmd-divider span {
	position: relative;
	padding: 0 1rem;
	font-family: var(--ftmd-font-m);
	font-size: 0.75rem;
	color: var(--ftmd-gray);
	background: var(--ftmd-bg);
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* ── Section labels ── */
.ftmd-section {
	margin-bottom: 2rem;
	border: none;
	padding: 0;
}
.ftmd-section-label {
	display: block;
	font-family: var(--ftmd-font-m);
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--ftmd-black);
	opacity: 0.6;
	margin-bottom: 1rem;
}

/* ── Hint text ── */
.ftmd-hint {
	font-size: 0.8rem;
	color: var(--ftmd-gray);
	font-style: italic;
	margin-top: 0.5rem;
}
.ftmd-hint--center {
	text-align: center;
}

/* ── Pack cards ── */
.ftmd-pack-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
}
.ftmd-pack {
	cursor: pointer;
	position: relative;
}
.ftmd-pack-visual {
	display: flex;
	flex-direction: column;
	padding: 1rem;
	border: var(--ftmd-border);
	border-radius: var(--ftmd-radius);
	background: var(--ftmd-white);
	transition: background 0.1s, box-shadow 0.1s, transform 0.1s;
	height: 100%;
	box-sizing: border-box;
}
.ftmd-pack:hover .ftmd-pack-visual {
	transform: translate(-1px, -1px);
	box-shadow: 2px 2px 0 var(--ftmd-black);
}
.ftmd-pack input:checked + .ftmd-pack-visual {
	background: var(--ftmd-yellow);
	box-shadow: var(--ftmd-shadow);
	transform: translate(-2px, -2px);
}
.ftmd-pack input:focus-visible + .ftmd-pack-visual {
	outline: 2px solid var(--ftmd-magenta);
	outline-offset: 2px;
}
.ftmd-pack-name {
	font-family: var(--ftmd-font-h);
	font-size: 1rem;
	font-weight: 600;
	color: var(--ftmd-black);
}
.ftmd-pack-price {
	font-family: var(--ftmd-font-m);
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--ftmd-black);
	margin-top: 0.25rem;
}
.ftmd-pack-desc {
	font-size: 0.8rem;
	color: #555;
	margin-top: 0.5rem;
	line-height: 1.4;
}
.ftmd-pack--popular {
	position: relative;
}
.ftmd-pack--popular .ftmd-pack-visual {
	border-color: var(--ftmd-magenta);
	border-width: 3px;
	background: rgba(255, 45, 155, 0.04);
}
.ftmd-pack--popular:hover .ftmd-pack-visual {
	box-shadow: 3px 3px 0 var(--ftmd-magenta);
}
.ftmd-badge {
	position: absolute;
	top: -0.55rem;
	right: 0.75rem;
	display: inline-block;
	font-family: var(--ftmd-font-m);
	font-size: 0.7rem;
	padding: 0.2rem 0.7rem;
	background: var(--ftmd-magenta);
	color: var(--ftmd-white);
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 600;
}

/* ── "Pas de pack" option ── */
.ftmd-pack--nopack {
	grid-column: 1 / -1;
}
.ftmd-pack--nopack .ftmd-pack-visual {
	border-style: dashed;
	border-color: var(--ftmd-gray-lt);
	background: transparent;
	text-align: center;
	padding: 0.75rem 1rem;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}
.ftmd-pack--nopack .ftmd-pack-name {
	font-size: 0.9rem;
}
.ftmd-pack--nopack .ftmd-pack-desc {
	margin-top: 0;
	font-size: 0.8rem;
}
.ftmd-pack--nopack:hover .ftmd-pack-visual {
	border-color: var(--ftmd-black);
}
.ftmd-pack--nopack input:checked + .ftmd-pack-visual {
	background: var(--ftmd-bg);
	border-color: var(--ftmd-black);
	border-style: solid;
	box-shadow: 2px 2px 0 var(--ftmd-black);
}

/* ── Category headers inside options grid ── */
.ftmd-category {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.75rem 0 0.25rem;
	border-bottom: 2px solid var(--ftmd-black);
	margin-bottom: 0.25rem;
}
.ftmd-category:first-child {
	padding-top: 0;
}
.ftmd-category-title {
	font-family: var(--ftmd-font-h);
	font-size: 1rem;
	font-weight: 700;
	color: var(--ftmd-black);
}
.ftmd-category-desc {
	font-size: 0.8rem;
	color: var(--ftmd-gray);
}

/* ── Option cards (2-col grid) ── */
.ftmd-options-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}
.ftmd-option {
	cursor: pointer;
	position: relative;
}
.ftmd-option-visual {
	display: flex;
	gap: 0.75rem;
	padding: 1rem;
	border: var(--ftmd-border);
	border-radius: var(--ftmd-radius);
	background: var(--ftmd-white);
	transition: background 0.1s, box-shadow 0.1s;
	height: 100%;
	box-sizing: border-box;
}
.ftmd-option:hover .ftmd-option-visual {
	box-shadow: 2px 2px 0 var(--ftmd-black);
}
.ftmd-option input:checked + .ftmd-option-visual {
	background: var(--ftmd-yellow);
	box-shadow: 3px 3px 0 var(--ftmd-black);
}
.ftmd-option input:focus-visible + .ftmd-option-visual {
	outline: 2px solid var(--ftmd-magenta);
	outline-offset: 2px;
}

/* Checkbox indicator */
.ftmd-option-check {
	flex-shrink: 0;
	width: 1.2rem;
	height: 1.2rem;
	margin-top: 0.15rem;
	border: 2.5px solid var(--ftmd-black);
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ftmd-option-check::after {
	content: '';
	display: none;
	width: 0.5rem;
	height: 0.5rem;
	background: var(--ftmd-yellow);
	border-radius: 2px;
}
.ftmd-option input:checked + .ftmd-option-visual .ftmd-option-check {
	background: var(--ftmd-black);
}
.ftmd-option input:checked + .ftmd-option-visual .ftmd-option-check::after {
	display: block;
}

.ftmd-option-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}
.ftmd-option-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.5rem;
}
.ftmd-option-name {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ftmd-black);
}
.ftmd-option-price {
	font-family: var(--ftmd-font-m);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ftmd-black);
	white-space: nowrap;
}
.ftmd-option-desc {
	font-size: 0.8rem;
	color: #555;
	line-height: 1.45;
}
.ftmd-option-limit {
	font-size: 0.72rem;
	font-family: var(--ftmd-font-m);
	color: var(--ftmd-gray);
	padding: 0.2rem 0.5rem;
	background: rgba(0, 0, 0, 0.04);
	border-radius: 4px;
	align-self: flex-start;
}
.ftmd-option-includes {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}
.ftmd-option-includes span {
	font-size: 0.78rem;
	color: var(--ftmd-black);
	line-height: 1.5;
}
.ftmd-option-includes span::before {
	content: '\2192\00a0';
	font-weight: 700;
	opacity: 0.5;
}

/* ── WooCommerce tier selector ── */
.ftmd-woo-tiers {
	display: none;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.35rem;
}
.ftmd-option input:checked ~ .ftmd-option-visual .ftmd-woo-tiers,
.ftmd-option input:checked + .ftmd-option-visual .ftmd-woo-tiers {
	display: flex;
}
.ftmd-tier {
	font-family: var(--ftmd-font-m);
	font-size: 0.7rem;
	padding: 0.3rem 0.6rem;
	border: 2px solid var(--ftmd-black);
	border-radius: 2rem;
	background: var(--ftmd-white);
	color: var(--ftmd-black);
	cursor: pointer;
	transition: background 0.1s;
}
.ftmd-tier.is-active {
	background: var(--ftmd-black);
	color: var(--ftmd-yellow);
}
.ftmd-tier:hover:not(.is-active) {
	background: rgba(0, 0, 0, 0.06);
}

/* ── Article quantity selector ── */
.ftmd-qty-row {
	display: none;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.35rem;
}
.ftmd-option input:checked ~ .ftmd-option-visual .ftmd-qty-row,
.ftmd-option input:checked + .ftmd-option-visual .ftmd-qty-row {
	display: flex;
}
.ftmd-qty-btn {
	width: 1.8rem;
	height: 1.8rem;
	border: 2px solid var(--ftmd-black);
	border-radius: 50%;
	background: var(--ftmd-white);
	font-size: 1rem;
	font-weight: 700;
	color: var(--ftmd-black);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	padding: 0;
	transition: background 0.1s;
}
.ftmd-qty-btn:hover {
	background: var(--ftmd-black);
	color: var(--ftmd-yellow);
}
.ftmd-qty-value {
	font-family: var(--ftmd-font-m);
	font-size: 1rem;
	font-weight: 600;
	min-width: 1.5rem;
	text-align: center;
}
.ftmd-qty-label {
	font-size: 0.78rem;
	color: var(--ftmd-gray);
}

/* ── Custom description for "sur mesure" ── */
.ftmd-custom-desc-row {
	display: none;
	margin-top: 0.35rem;
}
.ftmd-option input:checked ~ .ftmd-option-visual .ftmd-custom-desc-row,
.ftmd-option input:checked + .ftmd-option-visual .ftmd-custom-desc-row {
	display: block;
}

/* ── Diagnostic express option (distinct styling) ── */
.ftmd-option--diagnostic .ftmd-option-visual {
	border-style: dashed;
}

/* ── Voucher callout (Diagnostic express) ── */
.ftmd-voucher-callout {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	margin-top: 0.35rem;
	padding: 0.5rem 0.6rem;
	border: 2px dashed var(--ftmd-magenta);
	border-radius: var(--ftmd-radius);
	background: rgba(255, 45, 155, 0.05);
}
.ftmd-voucher-line {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--ftmd-magenta);
}
.ftmd-voucher-line::before {
	content: '\2192\00a0';
}

/* ── Voucher summary in total bar ── */
.ftmd-voucher-summary {
	font-size: 0.8rem;
	margin-bottom: 0.5rem;
}
.ftmd-voucher-summary:empty {
	display: none;
}
.ftmd-voucher-item {
	display: block;
	color: var(--ftmd-magenta);
	font-weight: 600;
	padding: 0.15rem 0;
}

/* ── Maintenance cards ── */
.ftmd-maint-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
}
.ftmd-maint {
	cursor: pointer;
}
.ftmd-maint-visual {
	display: flex;
	flex-direction: column;
	padding: 1rem;
	border: var(--ftmd-border);
	border-radius: var(--ftmd-radius);
	background: var(--ftmd-white);
	transition: background 0.1s, box-shadow 0.1s, color 0.1s;
	height: 100%;
	box-sizing: border-box;
}
.ftmd-maint:hover .ftmd-maint-visual {
	box-shadow: 2px 2px 0 var(--ftmd-black);
}
.ftmd-maint input:checked + .ftmd-maint-visual {
	background: var(--ftmd-violet);
	box-shadow: var(--ftmd-shadow);
	color: var(--ftmd-white);
}
.ftmd-maint input:focus-visible + .ftmd-maint-visual {
	outline: 2px solid var(--ftmd-magenta);
	outline-offset: 2px;
}
.ftmd-maint-name {
	font-family: var(--ftmd-font-h);
	font-size: 0.9rem;
	font-weight: 600;
}
.ftmd-maint-price {
	font-family: var(--ftmd-font-m);
	font-size: 1.05rem;
	font-weight: 600;
	margin-top: 0.25rem;
}
.ftmd-maint-desc {
	font-size: 0.78rem;
	opacity: 0.8;
	margin-top: 0.5rem;
	line-height: 1.4;
}
.ftmd-maint-includes {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin-top: 0.5rem;
}
.ftmd-maint-includes span {
	font-size: 0.75rem;
	line-height: 1.5;
}
.ftmd-maint-includes span::before {
	content: '\2192\00a0';
	opacity: 0.6;
}
.ftmd-maint input:checked + .ftmd-maint-visual .ftmd-maint-name,
.ftmd-maint input:checked + .ftmd-maint-visual .ftmd-maint-price {
	color: var(--ftmd-white);
}
.ftmd-maint input:checked + .ftmd-maint-visual .ftmd-maint-desc,
.ftmd-maint input:checked + .ftmd-maint-visual .ftmd-maint-includes span {
	color: rgba(255, 255, 255, 0.85);
}

/* ── Sérénité recommended badge ── */
.ftmd-maint--recommended {
	position: relative;
}
.ftmd-badge--maint {
	position: absolute;
	top: -0.55rem;
	right: 0.75rem;
	background: var(--ftmd-cyan);
	color: var(--ftmd-black);
}

/* ── Privacy checkbox ── */
.ftmd-field--privacy {
	margin-bottom: 1rem;
}
.ftmd-privacy-label {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	cursor: pointer;
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--ftmd-black);
}
.ftmd-privacy-check {
	flex-shrink: 0;
	width: 1.1rem;
	height: 1.1rem;
	margin-top: 0.15rem;
	accent-color: var(--ftmd-magenta);
	cursor: pointer;
}
.ftmd-privacy-label a {
	color: var(--ftmd-magenta);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.ftmd-privacy-label a:hover {
	color: var(--ftmd-violet);
}
.ftmd-privacy-check.has-error {
	outline: 2px solid var(--ftmd-error);
	outline-offset: 1px;
}

/* ── Footer section ── */
.ftmd-footer {
	margin-top: 1rem;
}

/* ── Total bar ── */
.ftmd-total-left {
	display: flex;
	flex-direction: column;
}
.ftmd-total-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	border: 3px solid var(--ftmd-black);
	border-radius: var(--ftmd-radius);
	background: var(--ftmd-yellow);
	box-shadow: 5px 5px 0 var(--ftmd-black);
}
.ftmd-total-label {
	font-family: var(--ftmd-font-m);
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--ftmd-black);
}
.ftmd-total-recurring {
	font-size: 0.8rem;
	color: var(--ftmd-black);
	opacity: 0.7;
	margin-top: 0.15rem;
}
.ftmd-total-recurring:empty {
	display: none;
}
.ftmd-total-price {
	font-family: var(--ftmd-font-h);
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--ftmd-black);
}

/* ── Buttons ── */
.ftmd-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 1rem;
	font-family: var(--ftmd-font-h);
	font-size: 1rem;
	font-weight: 600;
	border: var(--ftmd-border);
	border-radius: var(--ftmd-radius);
	cursor: pointer;
	transition: transform 0.1s, box-shadow 0.1s;
	text-align: center;
}
.ftmd-btn:hover {
	transform: translate(-1px, -1px);
	box-shadow: 3px 3px 0 var(--ftmd-violet);
}
.ftmd-btn:active {
	transform: translate(0, 0);
	box-shadow: none;
}

.ftmd-btn--express {
	margin-top: 0.5rem;
	background: var(--ftmd-magenta);
	color: var(--ftmd-white);
	box-shadow: 4px 4px 0 var(--ftmd-black);
}

.ftmd-btn--submit {
	margin-top: 1rem;
	background: var(--ftmd-black);
	color: var(--ftmd-yellow);
	box-shadow: 4px 4px 0 var(--ftmd-violet);
}
.ftmd-btn--submit:hover {
	box-shadow: 5px 5px 0 var(--ftmd-violet);
}

.ftmd-btn-loading {
	display: none;
}
.ftmd-btn.is-loading .ftmd-btn-text,
.ftmd-btn.is-loading .ftmd-btn-arrow {
	display: none;
}
.ftmd-btn.is-loading .ftmd-btn-loading {
	display: inline;
}
.ftmd-btn.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

/* Loading pulse animation */
@keyframes ftmd-pulse {
	0%, 100% { opacity: 0.7; }
	50% { opacity: 1; }
}
.ftmd-btn.is-loading {
	animation: ftmd-pulse 1.2s ease-in-out infinite;
}

/* ── Success state ── */
.ftmd-success {
	text-align: center;
	padding: 3rem 2rem;
	border: 3px solid var(--ftmd-black);
	border-radius: var(--ftmd-radius);
	background: var(--ftmd-yellow);
	box-shadow: 6px 6px 0 var(--ftmd-black);
}
.ftmd-success.is-hidden {
	display: none;
}
.ftmd-success-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	border: 3px solid var(--ftmd-black);
	border-radius: 50%;
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--ftmd-black);
	margin-bottom: 1rem;
}
.ftmd-success-title {
	font-family: var(--ftmd-font-h);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--ftmd-black);
	margin: 0 0 0.5rem;
}
.ftmd-success-text {
	font-size: 1rem;
	color: var(--ftmd-black);
	margin: 0 0 0.5rem;
}
.ftmd-success-ref {
	font-family: var(--ftmd-font-m);
	font-size: 0.8rem;
	color: var(--ftmd-black);
	opacity: 0.6;
	margin: 0;
}

/* ── Toast ── */
.ftmd-toast {
	position: fixed;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	padding: 0.8rem 1.5rem;
	background: var(--ftmd-error);
	color: var(--ftmd-white);
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: var(--ftmd-radius);
	z-index: 9999;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	animation: ftmd-toast-in 0.3s ease;
}
.ftmd-toast.is-hidden {
	display: none;
}
@keyframes ftmd-toast-in {
	from { opacity: 0; transform: translateX(-50%) translateY(1rem); }
	to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 700px) {
	.ftmd-pack-grid {
		grid-template-columns: 1fr;
	}
	.ftmd-options-grid {
		grid-template-columns: 1fr;
	}
	.ftmd-maint-grid {
		grid-template-columns: 1fr;
	}
	.ftmd-row-2 {
		grid-template-columns: 1fr;
	}
	.ftmd-paths {
		grid-template-columns: 1fr;
	}
	.ftmd-total-price {
		font-size: 1.3rem;
	}
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
	.ftmd-btn,
	.ftmd-pack-visual,
	.ftmd-option-visual,
	.ftmd-maint-visual,
	.ftmd-path,
	.ftmd-chip span {
		transition: none;
	}
	.ftmd-btn.is-loading {
		animation: none;
		opacity: 0.5;
	}
}
