/*
 * **********************************************************************
 * Kadence Child Theme — Member Registration Form Styles
 *
 * @package  KadenceChild
 * @version  0.2.5
 * @updated  2026-06-19
 * **********************************************************************
 */

/* =============================================================================
   Grid layout
   ============================================================================= */

.mah-reg-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 2rem;
	max-width: 680px;
	margin: 2rem auto;
	background: #ffffff;
	padding: 2rem;
	border-radius: 8px;
}

/* Items that should stretch across both columns */
.mah-reg-full {
	grid-column: 1 / -1;
}

/* =============================================================================
   Section headings
   ============================================================================= */

.mah-reg-section {
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #888;
	margin: 1rem 0 .25rem;
	padding-bottom: .35rem;
	border-bottom: 1px solid #e0e0e0;
}

.mah-reg-section:first-child {
	margin-top: 0;
}

/* =============================================================================
   Field wrapper
   ============================================================================= */

.mah-reg-field {
	display: flex;
	flex-direction: column;
	margin-bottom: 1rem;
}

/* =============================================================================
   Labels
   ============================================================================= */

.mah-reg-field label,
.mah-reg-field legend {
	font-size: .875rem;
	font-weight: 600;
	color: #444;
	margin-bottom: .3rem;
	padding: 0;
	border: 0;
}

.mah-reg-field [aria-hidden="true"] {
	color: #cc0000;
}

/* =============================================================================
   Inputs
   ============================================================================= */

.mah-reg-field input[type="text"],
.mah-reg-field input[type="email"],
.mah-reg-field input[type="url"],
.mah-reg-field input[type="number"],
.mah-reg-field input[type="date"],
.mah-reg-field input[type="time"],
.mah-reg-field input[type="datetime-local"],
.mah-reg-field input[type="color"],
.mah-reg-field textarea,
.mah-reg-field select {
	padding: .5rem .75rem;
	border: 1px solid #d0d0d0;
	border-radius: 5px;
	font-size: .95rem;
	width: 100%;
	box-sizing: border-box;
	background: #fafafa;
	transition: border-color .15s, box-shadow .15s;
}

.mah-reg-field input:focus,
.mah-reg-field textarea:focus,
.mah-reg-field select:focus {
	outline: none;
	border-color: var(--mah-menu-fg);
	box-shadow: 0 0 0 3px rgba(68, 122, 79, .15);
	background: #fff;
}

/* =============================================================================
   Per-field width caps
   ============================================================================= */

/* Zip Code — 5 chars */
.mah-reg-field--zip_code input {
	max-width: 7rem;
}

/* Phone — (xxx) xxx-xxxx */
.mah-reg-field--phone input {
	max-width: 13rem;
}

/* Years playing — 2 digits */
.mah-reg-field--years_playing_mahjong input {
	max-width: 5rem;
}

/* State — 2-letter abbreviation */
.mah-reg-field--state select {
	max-width: 6rem;
}

/* =============================================================================
   Fieldsets (checkbox / radio groups)
   ============================================================================= */

.mah-reg-field fieldset {
	border: 0;
	padding: 0;
	margin: 0;
}

.mah-reg-check,
.mah-reg-radio {
	display: flex;
	align-items: center;
	gap: .5rem;
	font-size: .9rem;
	font-weight: normal;
	margin-bottom: .35rem;
	cursor: pointer;
}

/* =============================================================================
   Submit button
   ============================================================================= */

.mah-reg-submit {
	margin-top: .5rem;
}

.mah-reg-submit button {
	background: #132618;
	color: #fff;
	border: none;
	padding: .7rem 2.5rem;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 5px;
	cursor: pointer;
	letter-spacing: .02em;
	transition: background .15s;
}

.mah-reg-submit button:hover {
	background: var(--mah-menu-fg);
}

/* =============================================================================
   Messages
   ============================================================================= */

.mah-reg-errors {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: .75rem 1rem;
	background: #fff3f3;
	border-left: 4px solid #cc0000;
	border-radius: 0 4px 4px 0;
}

.mah-reg-errors li {
	color: #cc0000;
	font-size: .9rem;
	margin-bottom: .2rem;
}

.mah-reg-success {
	padding: .85rem 1.1rem;
	background: #f0fff4;
	border-left: 4px solid #2a7a40;
	border-radius: 0 4px 4px 0;
}

.mah-reg-notice {
	padding: .75rem 1rem;
	background: #f5f5f5;
	border-radius: 4px;
}

.mah-reg-instructions {
	font-size: .8rem;
	color: #888;
	margin-top: .25rem;
}

/* =============================================================================
   Responsive — single column on small screens
   ============================================================================= */

@media (max-width: 540px) {
	.mah-reg-form {
		grid-template-columns: 1fr;
	}

	.mah-reg-field--zip_code input,
	.mah-reg-field--phone input,
	.mah-reg-field--years_playing_mahjong input {
		max-width: 100%;
	}
}
