/* ==========================================================================
   "Get the Free Guide" popup — inc/guide-popup.php
   Scoped under .rh-gpop so it never touches other CF7 forms.
   ========================================================================== */

html.rh-gpop-open {
	overflow: hidden;
}

.rh-gpop {
	--gpop-gold: #CEA347;
	--gpop-gold-2: #E2BF6A;
	--gpop-navy: #0F1B3D;
	--gpop-ink: #1D2433;
	--gpop-muted: #6B7280;
	--gpop-line: #D5D9E0;
	--gpop-error: #B42318;

	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	/* font-family: var(--font-text, 'Jost', system-ui, sans-serif); */
}

.rh-gpop[hidden] {
	display: none;
}

.rh-gpop *,
.rh-gpop *::before,
.rh-gpop *::after {
	box-sizing: border-box;
}

#wpcf7-f4803-o1 {
	margin-top: 24px;
}

.rh-gpop__overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 16, 36, .62);
	animation: rh-gpop-fade .2s ease;
}

.rh-gpop__dialog {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: #fff;
	border-top: 5px solid #d3a84c;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
	padding: 38px 38px 32px;
	animation: rh-gpop-in .25s ease;
}

.rh-gpop__dialog::-webkit-scrollbar {
	width: 0 !important;
}

.rh-gpop__dialog:focus {
	outline: none;
}

.rh-gpop__close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--gpop-navy);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.rh-gpop__close:hover {
	color: var(--gpop-gold);
	background: none;
}

.rh-gpop__eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #d3a84c;
	margin-bottom: 8px !important;
}

.rh-gpop .rh-gpop__title {
	margin: 0 0 8px;
	padding-right: 24px;
	/* font-family: var(--font-title, 'Playfair Display', Georgia, serif); */
	font-size: 31px;
	line-height: 40px;
	font-weight: 700;
	color: var(--gpop-navy);
}

.rh-gpop__title:focus {
	outline: none;
}

.rh-gpop__sub {
	margin: 10px 0 24px !important;
	color: #0006359e;
	font-size: 18px;
	font-weight: 600;
}

/* ---- CF7 form ---- */
.rh-gpop .wpcf7-form p {
	margin: 0;
}

.rh-gpop__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.rh-gpop__field {
	margin-bottom: 16px;
}

.rh-gpop__field label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .03em;
	color: #000000;
	margin-bottom: 7px;
}

.rh-gpop__field label small {
	font-size: 10px;
	font-weight: 400;
	color: var(--gpop-muted);
}

.rh-gpop .wpcf7-form-control-wrap {
	display: block;
}

.rh-gpop input[type="text"],
.rh-gpop input[type="email"],
.rh-gpop input[type="tel"] {
	width: 100%;
	min-height: 46px;
	padding: 0px 16px;
	border: 1.5px solid #ddd7d7;
	border-radius: 2px;
	background: #ffffff;
	font-size: 16px;
	/* border-radius: 12px; */
	transition: all 0.3s linear;
}

.rh-gpop input[type="text"]:focus,
.rh-gpop input[type="text"]:focus-visible,
.rh-gpop input[type="email"]:focus,
.rh-gpop input[type="email"]:focus-visible,
.rh-gpop input[type="tel"]:focus,
.rh-gpop input[type="tel"]:focus-visible {
	outline: none;
	border-color: #d3a84c;
	box-shadow: none;
	box-shadow: 0 0 0 3px rgba(211, 168, 76, .25);
}

.rh-gpop input[type="text"]::placeholder,
.rh-gpop input[type="email"]::placeholder,
.rh-gpop input[type="tel"]::placeholder {
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: 0%;
	color: #b9b9b8;
}

.wpcf7-form p .wpcf7-submit {
	background-color: transparent;
	font-size: 16px;
	font-weight: 600;
	fill: #000635;
	color: #000635;
	background-image: linear-gradient(180deg, #E6BE69 0%, #D3A84C 100%);
	border-radius: 2px 2px 2px 2px !important;
	padding: 20px 20px 20px 20px;
	height: auto !important;
	display: block;
	box-shadow: none !important;
	border: none !important;
	transition: all 0.3s linear;
}

.wpcf7-form p .wpcf7-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(211, 168, 76, .3);
}

.rh-gpop input.error {
	border-color: var(--gpop-error);
}

.rh-gpop input.error:focus {
	box-shadow: 0 0 0 3px rgba(180, 35, 24, .14);
}

.rh-gpop label.error,
.rh-gpop .wpcf7-not-valid-tip {
	color: red;
	font-size: 14px;
	margin: 5px 0 0;
	font-weight: normal;
	display: block;
}

/* jQuery Validate already shows the message, so hide CF7's duplicate tip */
.rh-gpop label.error~.wpcf7-not-valid-tip {
	display: none;
}

.rh-gpop .wpcf7-submit,
.rh-gpop__done {
	background-color: transparent;
	font-size: 16px;
	font-weight: 700;
	fill: #000635;
	color: #000635;
	background-image: linear-gradient(180deg, #E6BE69 0%, #D3A84C 100%);
	border-radius: 2px 2px 2px 2px !important;
	padding: 20px 20px 20px 20px;
	height: auto !important;
	display: block;
	box-shadow: none !important;
	border: none !important;
	width: 100%;
	transition: all 0.3s linear;
}

.rh-gpop .wpcf7-submit:hover,
.rh-gpop__done:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(211, 168, 76, .3);
	color: #000635;
}

.rh-gpop .wpcf7-submit:disabled {
	opacity: .7;
	cursor: progress;
}

.rh-gpop .wpcf7-spinner {
	display: block;
	margin: 10px auto 0;
}

.rh-gpop .wpcf7 form .wpcf7-response-output {
	margin: 12px 0 0;
	padding: 8px 10px;
	font-size: 12px;
}

/* Successful sends show the thank-you step instead */
.rh-gpop .wpcf7 form.sent .wpcf7-response-output {
	display: none;
}

.rh-gpop__privacy {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 12px 0 0;
	font-size: 14px;
	color: #000000;
	font-weight: 600;
}

/* ---- thank-you step ---- */
.rh-gpop__step--thanks {
	padding: 10px 0 8px;
	text-align: center;
}

.rh-gpop__step--thanks .rh-gpop__title {
	padding-right: 0;
}

.rh-gpop__check {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(206, 163, 71, .14);
	color: var(--gpop-gold);
	font-size: 26px;
	font-weight: 700;
}

.rh-gpop__step--thanks .rh-gpop__sub strong {
	color: var(--gpop-ink);
	word-break: break-all;
}

/* reCAPTCHA v2 checkbox (CF7 [recaptcha] tag) */
.rh-gpop .wpcf7-form .g-recaptcha,
.rh-gpop .wpcf7-form .wpcf7-recaptcha {
	margin: 0 0 4px;
	transform-origin: 0 0;
}

.rh-gpop .wpcf7-form .g-recaptcha+label.error {
	margin: 0 0 12px;
}


body.page-id-1703 .rh-thankyou-overlay,
body.page-id-1702 .rh-thankyou-overlay {
	display: none !important;
}



/* 304px widget is wider than the dialog's content box on small phones */
@media (max-width: 380px) {

	.rh-gpop .wpcf7-form .g-recaptcha,
	.rh-gpop .wpcf7-form .wpcf7-recaptcha {
		transform: scale(.88);
	}
}

/* reCAPTCHA v3 badge sits bottom-right of the page; keep it above the overlay */
html.rh-gpop-open .grecaptcha-badge {
	z-index: 100000;
}

@keyframes rh-gpop-fade {
	from {
		opacity: 0;
	}
}

@keyframes rh-gpop-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}

@media (max-width: 420px) {
	.rh-gpop__dialog {
		padding: 26px 18px 16px;
	}

	.rh-gpop__row {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

@media (prefers-reduced-motion: reduce) {

	.rh-gpop__overlay,
	.rh-gpop__dialog {
		animation: none;
	}
}