/**
 * G7 Event Registration — front-end styles.
 *
 * Colours come from CSS custom properties written inline by the plugin,
 * so a brand swap is a settings change, not a stylesheet edit.
 * Everything inherits the theme's font stack on purpose.
 */

.g7reg {
	--g7reg-accent: #D6A243;
	--g7reg-dark: #2E3A44;
	--g7reg-light: #F2F3F0;
	--g7reg-text: #232B2E;
	--g7reg-border: #cfd3ce;
	--g7reg-error: #a02c2c;
	max-width: 42rem;
	color: var(--g7reg-text);
}

.g7reg-seatline {
	margin: 0 0 1.5rem;
	padding-left: 0.875rem;
	border-left: 3px solid var(--g7reg-accent);
	font-weight: 600;
}

.g7reg-seats--full,
.g7reg-seats--closed {
	color: var(--g7reg-dark);
}

/* Notices */

.g7reg-notice {
	margin: 0 0 1.75rem;
	padding: 1rem 1.25rem;
	border-left: 3px solid var(--g7reg-accent);
	background: var(--g7reg-light);
}

.g7reg-notice p:last-child {
	margin-bottom: 0;
}

.g7reg-notice--error {
	border-left-color: var(--g7reg-error);
}

.g7reg-notice--success {
	border-left-color: var(--g7reg-dark);
}

/* Fields */

.g7reg-form {
	margin: 0;
}

.g7reg-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 1.25rem;
}

@media (max-width: 34rem) {
	.g7reg-row {
		grid-template-columns: 1fr;
	}
}

.g7reg-field {
	margin: 0 0 1.25rem;
}

.g7reg-field label {
	display: block;
	margin-bottom: 0.375rem;
	font-weight: 600;
	font-size: 0.9375rem;
}

.g7reg-req {
	color: var(--g7reg-accent);
}

.g7reg-optional {
	font-weight: 400;
	font-size: 0.8125rem;
	color: #6b6b6b;
}

.g7reg-field input[type="text"],
.g7reg-field input[type="email"],
.g7reg-field input[type="tel"],
.g7reg-field select,
.g7reg-field textarea {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid var(--g7reg-border);
	border-radius: 2px;
	background: #fff;
	font: inherit;
	font-size: 1rem; /* 16px stops iOS zooming on focus */
	color: var(--g7reg-text);
	box-sizing: border-box;
}

.g7reg-field textarea {
	resize: vertical;
}

.g7reg-field input:focus,
.g7reg-field select:focus,
.g7reg-field textarea:focus,
.g7reg-submit button:focus {
	outline: 3px solid var(--g7reg-accent);
	outline-offset: 2px;
	border-color: var(--g7reg-dark);
}

.g7reg-error {
	display: block;
	margin-top: 0.375rem;
	color: var(--g7reg-error);
	font-size: 0.875rem;
	font-weight: 600;
}

/* Consent */

.g7reg-consent label {
	display: flex;
	gap: 0.625rem;
	align-items: flex-start;
	font-weight: 400;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.g7reg-consent input[type="checkbox"] {
	margin-top: 0.2rem;
	flex: 0 0 auto;
	width: 1.05rem;
	height: 1.05rem;
}

.g7reg-contentnote {
	margin: 0 0 1.25rem;
	padding: 0.875rem 1rem;
	background: var(--g7reg-light);
	font-size: 0.9375rem;
	line-height: 1.55;
}

/* Submit */

.g7reg-submit {
	margin: 1.75rem 0 1rem;
}

.g7reg-submit button {
	appearance: none;
	border: 0;
	border-radius: 2px;
	padding: 1rem 2rem;
	background: var(--g7reg-accent);
	color: var(--g7reg-text);
	font: inherit;
	font-size: 1.0625rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.g7reg-submit button:hover {
	background: var(--g7reg-dark);
	color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	.g7reg-submit button {
		transition: none;
	}
}

.g7reg-fineprint {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.55;
	color: #5a5a5a;
}

/* Honeypot — hidden from people, visible to bots that ignore CSS */

.g7reg-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
