/*
 * Health Results waiting lists — sign-up form styling.
 * Matches the Health Results (Avada Gym) design system used by the
 * calculators: near-black panels, a single red accent, uppercase Archivo
 * headings, Open Sans body copy and Montserrat buttons. Every value is a CSS
 * custom property on .hrwl-wrap, so the palette can be re-themed from a child
 * theme or the Customizer without touching the rules below.
 */

.hrwl-wrap {
	--hrwl-bg: #0c0c0c;
	--hrwl-bg-alt: #141414;
	--hrwl-bg-elevated: #1e2123;
	--hrwl-border: rgba(255, 255, 255, 0.09);
	--hrwl-border-strong: rgba(255, 255, 255, 0.16);
	--hrwl-red: #dd3333;
	--hrwl-red-dark: #a71f1f;
	--hrwl-white: #ffffff;
	--hrwl-text-body: #a3a3a3;
	--hrwl-text-muted: #7c7c7c;
	--hrwl-radius: 2px;
	--hrwl-font-heading: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--hrwl-font-body: "Open Sans", Arial, Helvetica, sans-serif;
	--hrwl-font-ui: "Montserrat", Arial, Helvetica, sans-serif;

	box-sizing: border-box;
	color: var(--hrwl-text-body);
	font-family: var(--hrwl-font-body);
	font-size: 15px;
	line-height: 1.65;
}

.hrwl-wrap *,
.hrwl-wrap *::before,
.hrwl-wrap *::after {
	box-sizing: border-box;
}

.hrwl-panel {
	background: var(--hrwl-bg);
	border: 1px solid var(--hrwl-border);
	border-radius: var(--hrwl-radius);
	padding: clamp(24px, 4vw, 44px);
	max-width: 560px;
}

/* ---------------------------------------------------------------- */
/* Where it all sits                                                 */
/* ---------------------------------------------------------------- */

/* The panel keeps a comfortable reading width and is placed in the column
   it was dropped into: left, middle, right, or spanning the whole width. */
.hrwl-at-left .hrwl-panel {
	margin-left: 0;
	margin-right: auto;
}

.hrwl-at-center .hrwl-panel {
	margin-left: auto;
	margin-right: auto;
}

.hrwl-at-right .hrwl-panel {
	margin-left: auto;
	margin-right: 0;
}

.hrwl-at-full .hrwl-panel {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

/* How one piece of wording is justified. The theme may well centre
   everything in its column, so each of these says what it means. */
.hrwl-wrap .hrwl-a-left {
	text-align: left;
}

.hrwl-wrap .hrwl-a-center {
	text-align: center;
}

.hrwl-wrap .hrwl-a-right {
	text-align: right;
}

/* The button is a block of its own, so it is placed rather than aligned. */
.hrwl-wrap .hrwl-actions.hrwl-a-left {
	display: flex;
	justify-content: flex-start;
}

.hrwl-wrap .hrwl-actions.hrwl-a-center {
	display: flex;
	justify-content: center;
}

.hrwl-wrap .hrwl-actions.hrwl-a-right {
	display: flex;
	justify-content: flex-end;
}

/* ---------------------------------------------------------------- */
/* Headings                                                          */
/* ---------------------------------------------------------------- */

.hrwl-wrap .hrwl-heading {
	margin: 0 0 10px;
	color: var(--hrwl-white);
	font-family: var(--hrwl-font-heading);
	font-weight: 800;
	font-size: clamp(20px, 2.4vw, 26px);
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.hrwl-wrap .hrwl-intro {
	margin: 0 0 24px;
	font-size: 15px;
}

.hrwl-wrap .hrwl-closed-text {
	margin: 0;
	font-size: 15px;
}

/* ---------------------------------------------------------------- */
/* Fields                                                            */
/* ---------------------------------------------------------------- */

.hrwl-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
}

.hrwl-label {
	font-family: var(--hrwl-font-ui);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hrwl-white);
}

.hrwl-wrap input[type="text"],
.hrwl-wrap input[type="email"],
.hrwl-wrap input[type="tel"] {
	width: 100%;
	margin-bottom: 14px;
	background: var(--hrwl-bg-alt);
	border: 1px solid var(--hrwl-border-strong);
	border-radius: var(--hrwl-radius);
	color: var(--hrwl-white);
	font-family: var(--hrwl-font-body);
	font-size: 15px;
	padding: 11px 14px;
	appearance: none;
	-webkit-appearance: none;
}

.hrwl-wrap input:focus {
	outline: none;
	border-color: var(--hrwl-red);
	box-shadow: 0 0 0 3px rgba(221, 51, 51, 0.2);
}

.hrwl-wrap input.is-invalid {
	border-color: #ff5c5c;
}

/* First and last name side by side. */
.hrwl-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 12px;
}

.hrwl-col {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

@media (max-width: 480px) {
	.hrwl-row {
		grid-template-columns: 1fr;
	}
}

/* The honeypot: off screen for people, filled in by bots. */
.hrwl-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------------------------------------------------------------- */
/* Button, status and small print                                    */
/* ---------------------------------------------------------------- */

.hrwl-actions {
	margin-top: 6px;
}

.hrwl-wrap .hrwl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--hrwl-font-ui);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 13px 28px;
	border-radius: var(--hrwl-radius);
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	text-decoration: none;
}

.hrwl-wrap .hrwl-btn-primary {
	background: var(--hrwl-red);
	color: var(--hrwl-white);
}

.hrwl-wrap .hrwl-btn-primary:hover,
.hrwl-wrap .hrwl-btn-primary:focus-visible {
	background: var(--hrwl-red-dark);
}

.hrwl-wrap .hrwl-btn:focus-visible {
	outline: 2px solid var(--hrwl-red);
	outline-offset: 2px;
}

.hrwl-wrap .hrwl-btn[disabled] {
	opacity: 0.65;
	cursor: default;
}

.hrwl-status {
	margin: 0 0 14px;
	font-size: 13.5px;
	padding: 10px 12px;
	border-radius: var(--hrwl-radius);
	background: var(--hrwl-bg-elevated);
}

.hrwl-status.is-error {
	color: #ff8080;
}

.hrwl-status.is-success {
	color: #6fe3ab;
}

.hrwl-wrap .hrwl-note {
	margin: 16px 0 0;
	font-size: 12.5px;
	color: var(--hrwl-text-muted);
}

/* ---------------------------------------------------------------- */
/* After signing up                                                  */
/* ---------------------------------------------------------------- */

.hrwl-done {
	border-left: 3px solid var(--hrwl-red);
	background: var(--hrwl-bg-elevated);
	padding: 18px 20px;
}

.hrwl-wrap .hrwl-done-text {
	margin: 0;
	color: var(--hrwl-white);
	font-size: 15px;
}

.hrwl-wrap .hrwl-done-place {
	margin: 8px 0 0;
	font-size: 13.5px;
	color: var(--hrwl-text-muted);
}
