/**
 * Central CRM — Front-end Form Styles
 *
 * Minimal, theme-native styling. Inherits typography, colours, and button
 * styles from the active theme. Only provides layout and spacing.
 *
 * @package CentralCRM
 * @since 1.16.0
 */

/* Form container */
.ccrm-form {
	max-width: 600px;
	margin: 0 auto;
}

/* Field group */
.ccrm-form__field-group {
	margin-bottom: 1.2em;
}

/* Labels */
.ccrm-form__label {
	display: block;
	margin-bottom: 0.3em;
	font-weight: 600;
}

/* Required indicator */
.ccrm-form__required {
	color: #d63638;
}

/* Inputs */
.ccrm-form__input {
	width: 100%;
	box-sizing: border-box;
}

textarea.ccrm-form__input {
	resize: vertical;
}

/* Consent checkbox */
.ccrm-form__consent {
	margin: 1.5em 0;
}

.ccrm-form__consent-label {
	display: flex;
	align-items: flex-start;
	gap: 0.5em;
	cursor: pointer;
}

.ccrm-form__consent-label input[type="checkbox"] {
	margin-top: 0.25em;
	flex-shrink: 0;
}

/* Turnstile widget */
.ccrm-form__turnstile {
	margin-bottom: 1.2em;
}

/* Submit button wrapper */
.ccrm-form__submit-wrap {
	margin-top: 1.5em;
}

.ccrm-form__submit {
	cursor: pointer;
}

.ccrm-form__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Messages */
.ccrm-form__message {
	margin-top: 1em;
	padding: 0.8em 1em;
	border-radius: 4px;
}

.ccrm-form__message--success {
	background: #ecf7ed;
	border: 1px solid #46b450;
	color: #1e4620;
}

.ccrm-form__message--error {
	background: #fcf0f1;
	border: 1px solid #d63638;
	color: #8a1f1f;
}

/* Honeypot — visually hidden, not display:none */
.ccrm-form__hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ============================================
   Layout: Inline (e.g. footer subscriptions)
   ============================================ */
.ccrm-form--inline {
	max-width: none;
}

.ccrm-form--inline .ccrm-form__form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.6em;
}

.ccrm-form--inline .ccrm-form__field-group {
	flex: 1 1 auto;
	margin-bottom: 0;
	min-width: 120px;
}

.ccrm-form--inline .ccrm-form__label {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ccrm-form--inline .ccrm-form__input {
	width: 100%;
}

.ccrm-form--inline .ccrm-form__input::placeholder {
	opacity: 1;
}

.ccrm-form--inline .ccrm-form__consent {
	flex: 0 0 100%;
	margin: 0.5em 0 0;
}

.ccrm-form--inline .ccrm-form__submit-wrap {
	flex: 0 0 auto;
	margin-top: 0;
}

.ccrm-form--inline .ccrm-form__turnstile {
	flex: 0 0 100%;
	margin-bottom: 0.5em;
}
