/* play-rugby / join-modal — the "Ready to join us?" dialog opened by the hero
   CTA and the next-match card CTA. Markup is server-rendered (hidden) in the
   template part; join-modal.js toggles .is-open. */

.afrc-join-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 15, 61, .54);
	backdrop-filter: blur(7px);
	-webkit-backdrop-filter: blur(7px);
}
.afrc-join-modal.is-open {
	display: flex;
}

.afrc-join-modal__card {
	position: relative;
	width: min(430px, 100%);
	padding: 28px;
	border: 1px solid rgba(255, 255, 255, .26);
	border-radius: 18px;
	background: linear-gradient(145deg, rgba(0, 27, 104, .88), rgba(12, 31, 84, .80));
	box-shadow: 0 24px 64px rgba(0, 15, 61, .36);
	color: #fff;
	text-align: center;
}

.afrc-join-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 30px;
	height: 30px;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, .72);
	font-size: 22px;
	cursor: pointer;
}

.afrc-join-modal__eyebrow {
	display: block;
	margin-bottom: 7px;
	color: var(--afrc-gold);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.afrc-join-modal h2 {
	margin: 0 0 7px;
	color: #fff;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-size: 25px;
	font-style: normal;
	font-weight: 700;
}
.afrc-join-modal p {
	margin: 0 0 10px;
	color: rgba(255, 255, 255, .78);
	font-size: 15px;
	line-height: 1.55;
}

.afrc-join-modal__actions {
	display: grid;
	gap: 9px;
}
.afrc-join-modal__action {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: transform .2s ease, background .2s ease;
}
.afrc-join-modal__action:hover {
	transform: translateY(-1px);
}
.afrc-join-modal__action--primary {
	background: var(--afrc-red);
	color: #fff;
}

.afrc-join-modal__calendar {
	display: inline-flex;
	margin-top: 14px;
	color: rgba(255, 255, 255, .76);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

/* Form inside Join Modal */


.afrc-join-modal__action[type="submit"] {
	width: 100%;
	border: 0;
	cursor: pointer;
}

.afrc-join-modal__proof {
	display: grid;
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	text-align: left;
	color: rgba(255, 255, 255, .88);
	font-size: 13px;
	font-weight: 650;
}

.afrc-join-modal__proof li::before {
	content: "✓";
	margin-right: 8px;
	color: var(--afrc-gold);
	font-weight: 900;
}

/* WPForms inside the training popup. */
.afrc-join-modal__card {
	max-height: calc(100dvh - 48px);
	overflow-y: auto;
}
.afrc-join-modal .afrc-join-wpforms .wpforms-container {
	margin: 14px 0 0;
	text-align: left;
	--wpforms-button-background-color: #e30613 !important;
	--wpforms-button-background-color-alt: #e30613 !important;
}
.afrc-join-modal .afrc-join-wpforms .wpforms-field-label {
	color: #fff;
}
.afrc-join-modal .afrc-join-wpforms input[type="text"],
.afrc-join-modal .afrc-join-wpforms input[type="email"],
.afrc-join-modal .afrc-join-wpforms textarea {
	width: 100%;
	max-width: 100%;
	min-height: 46px;
	padding: 9px 16px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-family: inherit;
}
.afrc-join-modal .afrc-join-wpforms textarea {
	min-height: 92px;
	border-radius: 16px;
	resize: vertical;
}
.afrc-join-modal .afrc-join-wpforms input:focus,
.afrc-join-modal .afrc-join-wpforms textarea:focus {
	outline: 2px solid var(--afrc-gold);
	outline-offset: 2px;
}
.afrc-join-modal .afrc-join-wpforms button[type="submit"] {
	width: 100%;
	min-height: 46px;
	border: 0;
	border-radius: 999px;
	background: #e30613 !important;
	color: #fff;
	font-family: inherit;
	font-weight: 700;
}

#wpforms-4457 #wpforms-submit-4457,
#wpforms-4460 #wpforms-submit-4460,
#wpforms-4463 #wpforms-submit-4463 {
	background-color: #e30613 !important;
}
.afrc-join-modal .afrc-join-wpforms button[type="submit"]:disabled {
	opacity: .65;
	cursor: wait;
}
.afrc-join-modal .afrc-join-wpforms .wpforms-error {
	color: #ffb3b3;
}
.afrc-join-modal .afrc-join-wpforms .wpforms-confirmation-container-full {
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 12px;
	background: rgba(255, 255, 255, .08);
	color: #fff;
}
.afrc-join-modal .afrc-join-wpforms .wpforms-confirmation-container-full p {
	color: #fff;
}
