/**
 * Front-end success panel for Contact Form 7 (Metronome Signal).
 *
 * The panel is rendered hidden, immediately after the form, and revealed in the
 * form's place when CF7 marks the form `.sent`. Themes can override these base
 * styles to match a specific layout (e.g. the Solutions quote modal).
 */
.metronome-signal-success {
	display: none;
	box-sizing: border-box;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 1rem;
	max-width: 28rem;
	margin: 0 auto;
	padding: 2.5rem 1rem;
}

/* CF7 adds `.sent` to the form on a successful submission. Swap it for the
   panel (its immediate next sibling). */
.wpcf7-form.sent {
	display: none;
}

.wpcf7-form.sent + .metronome-signal-success {
	display: flex;
}

.metronome-signal-success__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 9999px;
	background: var(--primary-color, #16a34a);
}

.metronome-signal-success__image {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	object-fit: contain;
}

.metronome-signal-success__title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.48px;
	color: #000;
}

.metronome-signal-success__copy {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
	color: #494e53;
}
