/**
 * Click-2-CallMe baseline styles.
 *
 * Deliberately minimal so themes and page builders stay in charge of the look.
 */

.ctc-widget {
	max-width: 32rem;
}

.ctc-title {
	margin: 0 0 0.25em;
}

.ctc-subtitle {
	margin: 0 0 1em;
}

.ctc-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: stretch;
}

.ctc-input {
	flex: 1 1 12rem;
	min-width: 0;
}

.ctc-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	cursor: pointer;
}

.ctc-button[disabled] {
	cursor: progress;
	opacity: 0.65;
}

.ctc-phone-icon {
	flex: 0 0 auto;
}

/*
 * The honeypot must be reachable by naive bots but invisible to people.
 * display:none is avoided on purpose: many bots skip hidden inputs.
 */
.ctc-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none;
}

.ctc-status {
	margin: 0.75em 0 0;
	min-height: 1.5em;
}

.ctc-status:empty {
	margin-top: 0;
	min-height: 0;
}

.ctc-status.is-success {
	color: #12772f;
}

.ctc-status.is-error {
	color: #b3261e;
}

.ctc-status.is-pending {
	opacity: 0.8;
}

@media (prefers-color-scheme: dark) {

	.ctc-status.is-success {
		color: #6fd18a;
	}

	.ctc-status.is-error {
		color: #f2a49e;
	}
}
