/* CORE Registration – values mirror the GymEdge theme's Contact form (inputs, button, typography). */

.core-reg {
	margin: 0 0 80px;
}

.core-reg [hidden] {
	display: none !important;
}

.core-reg .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.core-reg__intro p {
	font-size: 16px;
	line-height: 28px;
	color: #666;
	max-width: 780px;
	margin: 0 0 30px;
}

.core-reg__legend {
	font-size: 14px;
	color: #666;
	margin: 0 0 25px;
}

.core-reg__req {
	color: #fb5b21;
	font-weight: 700;
}

.core-reg__opt {
	color: #999;
	font-weight: 400;
	font-size: 13px;
}

/* Fields */
.core-reg__field {
	margin: 0 0 25px;
}

.core-reg fieldset.core-reg__field {
	border: 0;
	padding: 0;
	min-width: 0;
}

.core-reg__field > label,
.core-reg__field > legend {
	display: block;
	width: auto;
	border: 0;
	padding: 0;
	margin: 0 0 8px;
	font-family: Poppins, sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 24px;
	color: #111;
}

.core-reg .form-control {
	display: block;
	width: 100%;
	height: 48px;
	padding: 6px 12px;
	font-family: "Open Sans", sans-serif;
	font-size: 14px;
	color: #666;
	background: #fff;
	border: 1px solid #e7e7e7;
	border-radius: 0;
	box-shadow: none;
	transition: border-color .3s;
}

.core-reg textarea.form-control {
	height: 134px;
	min-height: 100px;
	resize: vertical;
	padding-top: 10px;
}

.core-reg .form-control::placeholder {
	color: #999;
	opacity: 1;
}

.core-reg .form-control:focus {
	border-color: #fb5b21;
	outline: 2px solid #fb5b21;
	outline-offset: -1px;
	box-shadow: none;
}

/* Radios and checkbox */
.core-reg__options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 30px;
	padding-top: 4px;
}

.core-reg label.core-reg__option,
.core-reg label.core-reg__check {
	display: inline-flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-family: Poppins, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 24px;
	color: #666;
	cursor: pointer;
}

.core-reg label.core-reg__option input,
.core-reg label.core-reg__check input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 3px 0 0;
	accent-color: #fb5b21;
	cursor: pointer;
}

.core-reg__option input:focus-visible,
.core-reg__check input:focus-visible {
	outline: 2px solid #fb5b21;
	outline-offset: 2px;
}

/* Errors */
.core-reg__error {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	line-height: 20px;
	color: #dc3232;
}

.core-reg__error:empty {
	display: none;
}

.core-reg .has-error .form-control {
	border-color: #dc3232;
}

.core-reg__summary,
.core-reg__success {
	margin: 0 0 30px;
	padding: 18px 22px;
	background: #f7f7f7;
	border-left: 4px solid #dc3232;
	color: #333;
}

.core-reg__summary:focus,
.core-reg__success:focus {
	outline: 2px solid #fb5b21;
	outline-offset: 2px;
}

.core-reg__summary p,
.core-reg__success p {
	margin: 0;
}

.core-reg__success {
	border-left-color: #fb5b21;
	padding: 30px;
	font-size: 17px;
	line-height: 28px;
}

/* Honeypot */
.core-reg__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Submit button – theme submit style (#fb5b21, hover #111) */
.core-reg__actions {
	margin-top: 10px;
}

.core-reg__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 300px;
	padding: 20px 40px;
	font-family: "Open Sans", sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 27px;
	text-transform: uppercase;
	color: #fff;
	background: #fb5b21;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: .5s;
}

.core-reg__submit:hover,
.core-reg__submit:focus {
	background: #111;
	color: #fff;
}

.core-reg__submit:focus-visible {
	outline: 2px solid #fb5b21;
	outline-offset: 3px;
}

.core-reg__submit[disabled] {
	cursor: wait;
	opacity: .8;
}

.core-reg__spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, .4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: core-reg-spin .8s linear infinite;
}

.core-reg__form.is-loading .core-reg__spinner {
	display: inline-block;
}

@keyframes core-reg-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.core-reg__spinner { animation-duration: 2s; }
	.core-reg__submit, .core-reg .form-control { transition: none; }
}

@media (max-width: 767px) {
	.core-reg {
		margin-bottom: 50px;
	}

	.core-reg__submit {
		width: 100%;
		min-width: 0;
		padding: 18px 20px;
	}

	.core-reg__options {
		flex-direction: column;
	}
}
