/* =========================================================
   Checkout: checkout-only components, built on the site tokens in
   rk-site.css (load that first).

   Class names the page scripts depend on are kept as they were:
   step-pip / active / complete, sticky-header--hidden / --visible,
   chosen, SpouseInfo, Incomplete-input, discountSuccess /
   discountFailure, FormFieldGroup-container--invalid, productPopup,
   popupModal, shake, hidden.
   ========================================================= */
:root {
	--ck-placeholder: #9A9A9E;
	--ck-error-bg: #FBEDED;
}

/* Column layout so a short page still puts the footer at the bottom. */
body { background: var(--rk-paper); min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }

/* Native form controls do not inherit fonts by default. */
input, select, textarea, button { font-family: inherit; }
::placeholder { color: var(--ck-placeholder); opacity: 1; }

/* =========================================================
   Header: the site header (not sticky here) plus an enrollment
   progress band. Scrolling past both reveals the compact sticky bar.
   ========================================================= */
.ck-header .rk-header { position: relative; }
.ck-header .rk-header__inner { min-height: 72px; }

.ck-progress {
	background: var(--rk-white);
	border-bottom: 1px solid var(--rk-line);
}
.ck-progress__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-top: 14px;
	padding-bottom: 14px;
}
.ck-progress__title {
	font-family: var(--rk-font-heading);
	font-size: 20px;
	font-weight: 600;
	color: var(--rk-black);
	letter-spacing: -0.01em;
}
.ck-progress__track { display: flex; align-items: center; gap: 16px; }
@media (max-width: 560px) {
	.ck-progress__inner { flex-direction: column; padding-top: 12px; padding-bottom: 12px; }
	.ck-progress__track { flex-direction: column; gap: 8px; }
}

/* Step pips: hollow for steps ahead, filled green for done, ringed for
   the current step. */
.step-indicator { display: flex; align-items: center; gap: 22px; }
.step-pip {
	position: relative;
	display: block;
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--rk-white);
	border: 2px solid #CFCCC2;
	transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.step-pip:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 50%;
	left: calc(100% + 5px);
	width: 16px;
	height: 2px;
	border-radius: 2px;
	transform: translateY(-50%);
	background: #CFCCC2;
	transition: background-color .25s ease;
}
.step-pip.complete { background: var(--rk-green); border-color: var(--rk-green); }
.step-pip.complete:not(:last-child)::after { background: var(--rk-green); }
.step-pip.active {
	background: var(--rk-green);
	border-color: var(--rk-green);
	box-shadow: 0 0 0 4px rgba(10, 67, 27, 0.16);
}
.step-label {
	font-size: 15px;
	font-weight: 600;
	color: var(--rk-muted);
	white-space: nowrap;
	line-height: 1;
}

/* Compact bar shown once the full header has scrolled away. */
.ck-sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid var(--rk-line);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
	transition: opacity .2s ease, transform .2s ease;
}
.ck-sticky__inner { display: flex; align-items: center; gap: 12px; padding-top: 9px; padding-bottom: 9px; }
.ck-sticky__mark { width: 30px; height: 30px; object-fit: contain; }
.ck-sticky__word {
	font-family: var(--rk-font-heading);
	font-size: 18px;
	font-weight: 600;
	color: var(--rk-black);
}
.ck-sticky .step-indicator { margin-left: auto; gap: 16px; }
.ck-sticky .step-pip { width: 12px; height: 12px; }
.ck-sticky .step-pip:not(:last-child)::after { width: 10px; left: calc(100% + 3px); }
.ck-sticky .step-label { font-size: 14px; }
.sticky-header--hidden { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.sticky-header--visible { opacity: 1; transform: none; }
@media (max-width: 400px) {
	.ck-sticky__word { display: none; }
	.ck-sticky .step-indicator { gap: 12px; }
	.ck-sticky .step-pip:not(:last-child)::after { width: 6px; }
}
@media (prefers-reduced-motion: reduce) {
	.ck-sticky, .step-pip, .step-pip::after { transition: none; }
}

/* =========================================================
   Split layout: summary on paper (left), form on white (right).
   Stacked on phones and tablets.
   ========================================================= */
.ck-shell { background: var(--rk-paper); }
.ck-shell__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	max-width: 1120px;
	margin: 0 auto;
}
.ck-overview { padding: 40px 22px 40px; }
.ck-panel {
	background: var(--rk-white);
	border-top: 1px solid var(--rk-line);
	padding: 36px 22px 56px;
}
.ck-overview__inner, .ck-panel__inner { max-width: 460px; margin: 0 auto; }
@media (min-width: 992px) {
	.ck-shell { background: linear-gradient(90deg, var(--rk-paper) 50%, var(--rk-white) 50%); }
	.ck-shell__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 640px; }
	.ck-overview { padding: 64px 56px 80px 40px; }
	.ck-panel { border-top: 0; box-shadow: -1px 0 0 var(--rk-line); padding: 64px 40px 80px 56px; }
	.ck-overview__inner, .ck-panel__inner { margin: 0; }
	.ck-overview__inner { margin-left: auto; }
}

/* Headings sized for a form page rather than a marketing hero. */
.ck-title { font-size: clamp(2rem, 3.2vw, 2.6rem); line-height: 1.08; margin-bottom: 14px; }
.ck-intro { font-size: 18px; line-height: 1.6; color: var(--rk-text); margin-bottom: 28px; }
.ck-heading { font-size: 1.55rem; line-height: 1.2; margin-bottom: 8px; }
.ck-subheading { font-size: 1.2rem; margin: 0 0 14px; }

/* A text-styled button, e.g. "Why do we need this information?" */
.ck-linkbutton {
	background: none;
	border: 0;
	padding: 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--rk-red);
	text-align: left;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	text-decoration-color: rgba(160, 0, 0, 0.35);
}
.ck-linkbutton:hover { text-decoration-color: var(--rk-red); }
.ck-why { margin: 0 0 24px; }

/* =========================================================
   Plan choice (product page)
   ========================================================= */
.ck-plans { display: grid; gap: 12px; }
.ck-plan { position: relative; }
.ck-plan__select {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	padding: 18px 64px 18px 18px;
	text-align: left;
	color: var(--rk-black);
	background: var(--rk-white);
	border: 1.5px solid var(--rk-line);
	border-radius: var(--rk-radius);
	transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.ck-plan__select:hover { border-color: var(--rk-green); }
.ck-plan__select:active { transform: translateY(1px); }
.ck-plan__radio {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid #CFCCC2;
	background: var(--rk-white);
	transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.ck-plan__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ck-plan__name { font-family: var(--rk-font-heading); font-size: 19px; font-weight: 600; line-height: 1.25; }
.ck-plan__blurb { font-size: 15px; line-height: 1.45; color: var(--rk-muted); }
.ck-plan.chosen .ck-plan__select {
	border-color: var(--rk-green);
	background: var(--rk-green-tint);
	box-shadow: 0 10px 24px rgba(10, 67, 27, 0.08);
}
.ck-plan.chosen .ck-plan__radio {
	border-color: var(--rk-green);
	background: var(--rk-green);
	box-shadow: inset 0 0 0 4px var(--rk-white);
}
.ck-plan__info {
	position: absolute;
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border-radius: 50%;
	border: 1.5px solid var(--rk-line);
	background: var(--rk-white);
	color: var(--rk-muted);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	transition: border-color .15s ease, color .15s ease;
}
.ck-plan__info:hover { border-color: var(--rk-green); color: var(--rk-green); }

/* =========================================================
   Order summary card (promo code + totals)
   ========================================================= */
.ck-summary {
	margin-top: 24px;
	background: var(--rk-white);
	border: 1px solid var(--rk-line);
	border-radius: var(--rk-radius);
	padding: 22px;
}
.ck-summary__plan {
	font-family: var(--rk-font-heading);
	font-size: 20px;
	font-weight: 600;
	color: var(--rk-black);
	margin: 0 0 4px;
}
.ck-summary__plan + .ck-totals { margin-top: 14px; }
.ck-promo { display: flex; gap: 8px; }
.ck-promo .rk-form__input { flex: 1 1 auto; min-width: 0; padding-top: 10px; padding-bottom: 10px; font-size: 16px; }
.ck-promo .rk-btn { flex-shrink: 0; }
.ck-promo .rk-btn.chosen { background: var(--rk-green-tint); border-color: var(--rk-green); color: var(--rk-green); }
.discountMessage { margin-top: 8px; font-size: 15px; font-weight: 600; line-height: 1.45; }
.discountMessage:empty { display: none; }
.discountSuccess { color: var(--rk-green); }
.discountFailure { color: var(--rk-red); }

.ck-totals {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 8px 16px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--rk-line);
	font-size: 16px;
	line-height: 1.4;
}
.ck-totals__label { color: var(--rk-text); }
.ck-totals__amount { text-align: right; font-weight: 600; color: var(--rk-black); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ck-totals__label--main { font-weight: 600; color: var(--rk-black); }
.ck-totals__amount--main { font-family: var(--rk-font-heading); font-size: 26px; letter-spacing: -0.01em; }

/* =========================================================
   Form fields
   ========================================================= */
.ck-form .rk-form__group { margin-bottom: 18px; }
.ck-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ck-row > .rk-form__group { margin-bottom: 0; }
.ck-form .ck-row { margin-bottom: 18px; }
.ck-form .rk-form__group .ck-row { margin-bottom: 0; }
@media (max-width: 420px) {
	.ck-row--stack { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
.ck-row--csz { grid-template-columns: minmax(0, 1fr) 118px 112px; }
.ck-row--rent { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.ck-row--date { gap: 8px; }
@media (max-width: 420px) {
	.ck-row--csz { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.ck-row--csz > :first-child { grid-column: 1 / -1; }
	.ck-row--rent { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

select.rk-form__input {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 34px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236E6E72' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	cursor: pointer;
}
/* Selects show their "State..." / "Month..." prompt in the placeholder
   color until a value is chosen (lease-page.js switches the color). */
#leaseState, #leaseMonth, #leaseYear { color: var(--ck-placeholder); }
select.rk-form__input option { color: var(--rk-black); }
input[type=number].rk-form__input { -moz-appearance: textfield; }
input[type=number].rk-form__input::-webkit-inner-spin-button,
input[type=number].rk-form__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.Incomplete-input,
.rk-form__input.Incomplete-input { border-color: var(--rk-red) !important; background-color: #FFFBFB; }
.Incomplete-input:focus { box-shadow: 0 0 0 4px rgba(160, 0, 0, 0.12) !important; }

.ck-error { font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--rk-red); margin: 6px 0 0; }
.ck-error:empty { display: none; }
.ck-error--block:not(:empty) {
	margin-top: 12px;
	padding: 12px 16px;
	background: var(--ck-error-bg);
	border-left: 4px solid var(--rk-red);
	border-radius: var(--rk-radius-sm);
}

.ck-spouse {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--rk-line);
}

/* Radio choices (lease page: landlord or property manager) */
.ck-fieldset { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.ck-fieldset legend { padding: 0; margin-bottom: 12px; line-height: 1.45; }
.ck-choices { display: grid; gap: 10px; }
.ck-choice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 18px;
	background: var(--rk-white);
	border: 1.5px solid var(--rk-line);
	border-radius: var(--rk-radius);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--rk-black);
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}
.ck-choice:hover { border-color: var(--rk-green); }
.ck-choice input { flex-shrink: 0; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--rk-green); }
.ck-choice:has(input:checked) { border-color: var(--rk-green); background: var(--rk-green-tint); }
.ck-choice:has(input:focus-visible) { outline: 3px solid var(--rk-orange); outline-offset: 2px; }
.ck-choice:has(input.Incomplete-input) { border-color: var(--rk-red); }

.ck-subsection {
	margin-top: 24px;
	padding: 22px;
	background: var(--rk-paper);
	border-radius: var(--rk-radius);
}
.ck-subsection .rk-form__group:last-child { margin-bottom: 0; }

/* Address suggestions (Smarty + jQuery UI menu) */
.ck-address { position: relative; }
#us-autocomplete-pro-menu {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	width: auto !important;
	z-index: 30;
	max-height: 16em;
	overflow-y: auto;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: var(--rk-white);
	border: 1px solid var(--rk-line);
	border-radius: var(--rk-radius-sm);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.10);
	font-family: var(--rk-font-body);
	font-size: 16px;
	color: var(--rk-text);
}
#us-autocomplete-pro-menu .ui-menu-item-wrapper {
	margin: 0;
	padding: 9px 12px;
	border: 0;
	border-radius: 8px;
}
#us-autocomplete-pro-menu b { color: var(--rk-black); }
#us-autocomplete-pro-menu .ui-state-active,
#us-autocomplete-pro-menu .ui-menu-item-wrapper:hover {
	margin: 0;
	border: 0;
	background: var(--rk-green-tint);
	color: var(--rk-black);
}

/* =========================================================
   Submit + payment-page details
   ========================================================= */
.ck-submit { width: 100%; margin-top: 10px; padding: 16px 26px; font-size: 18px; white-space: normal; }
.ck-submit:disabled { opacity: .55; cursor: default; }

.ck-note { font-size: 15px; line-height: 1.55; color: var(--rk-muted); margin: 14px 0 0; }
.ck-secure { display: flex; gap: 10px; align-items: flex-start; }
.ck-secure svg { flex-shrink: 0; margin-top: 2px; color: var(--rk-green); }
.ck-optin { align-items: flex-start; margin-top: 18px; font-size: 15px; line-height: 1.55; color: var(--rk-text); }
.ck-optin input { flex-shrink: 0; margin-top: 3px; }
.PaymentElement { margin-bottom: 6px; }
.hidden { display: none !important; }

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	20%, 60% { transform: translateX(-5px); }
	40%, 80% { transform: translateX(5px); }
}
.shake { animation: shake .4s ease; }

/* =========================================================
   Popups and the wait spinner. The page scripts set top/left in
   pixels; the !important rules here center them reliably instead.
   ========================================================= */
.popupModal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 200;
	overflow: auto;
	background: rgba(26, 26, 26, 0.55);
}
.productPopup {
	display: none;
	position: fixed;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%);
	z-index: 201;
	width: min(440px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 0;
	background: var(--rk-white);
	border-radius: var(--rk-radius-lg);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}
/* The padding sits on this inner wrapper on purpose: the page scripts
   hide a popup when a click lands on the popup element itself, which
   would leave the dark overlay stuck on screen. */
.productPopup__body { padding: 28px; }
.popupTitle { font-size: 1.45rem; margin-bottom: 12px; }
.popupDescription { font-size: 17px; line-height: 1.6; color: var(--rk-text); }
.popupDescription p:last-child { margin-bottom: 0; }
.popupButtonWrapper { display: flex; justify-content: flex-end; margin-top: 22px; }

.spinner-container {
	display: none;
	position: fixed;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%);
	z-index: 300;
	width: min(360px, calc(100vw - 32px));
	padding: 30px 28px;
	text-align: center;
	background: var(--rk-white);
	border-radius: var(--rk-radius-lg);
	box-shadow: 0 0 0 100vmax rgba(26, 26, 26, 0.6), 0 24px 60px rgba(0, 0, 0, 0.25);
}
.spinner-text { font-size: 18px; font-weight: 600; line-height: 1.45; color: var(--rk-black); }
.spinner-text--warn { margin-top: 6px; font-size: 15px; color: var(--rk-red); }
.spinner-innerContainer { display: flex; justify-content: center; margin-top: 22px; }
.ck-spinner {
	display: block;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 4px solid var(--rk-green-tint);
	border-top-color: var(--rk-green);
	animation: ck-spin 0.9s linear infinite;
}
@keyframes ck-spin { to { transform: rotate(360deg); } }
@keyframes ck-blink { 50% { opacity: .35; } }
.blinking { animation: ck-blink 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
	.ck-spinner { animation-duration: 2.4s; }
	.blinking, .shake { animation: none; }
}

/* =========================================================
   Footer: trust strip, then the site footer
   ========================================================= */
.ck-trust { background: var(--rk-white); border-top: 1px solid var(--rk-line); }
.ck-trust__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 18px 36px;
	padding-top: 26px;
	padding-bottom: 26px;
}
.ck-trust__badge { width: 76px; height: 76px; }
.ck-trust__item { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--rk-black); }
.ck-trust__item svg { flex-shrink: 0; color: var(--rk-green); }
.ck-trust__stripe { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--rk-muted); }
.ck-trust__stripe img { width: 44px; height: auto; }
.ck-trust__stripe:hover { color: var(--rk-black); }

.ck-footer { padding-top: 56px; }
.ck-footer .rk-footer__top { grid-template-columns: minmax(0, 1fr) auto; align-items: start; margin-bottom: 40px; }
.ck-footer__links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.ck-footer__links a:hover { color: var(--rk-white); }
@media (max-width: 860px) {
	.ck-footer .rk-footer__top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
