/**
 * Care Home — public form (premium layout).
 */

.chd-shell {
	--chd-bg: linear-gradient(165deg, #0f172a 0%, #1e293b 42%, #0f172a 100%);
	--chd-card: #ffffff;
	--chd-border: rgba(15, 23, 42, 0.08);
	--chd-text: #0f172a;
	--chd-muted: #64748b;
	--chd-accent: #c9a227;
	--chd-accent-2: #2563eb;
	--chd-radius: 16px;
	--chd-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--chd-text);
	margin: 2rem 0;
}

.chd-shell__inner {
	max-width: 1040px;
	margin: 0 auto;
	padding: clamp(1.75rem, 4vw, 2.75rem);
	background: var(--chd-card);
	border-radius: var(--chd-radius);
	box-shadow: var(--chd-shadow);
	border: 1px solid var(--chd-border);
	position: relative;
	overflow: hidden;
}

.chd-shell__inner::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 5px;
	background: linear-gradient(90deg, var(--chd-accent), var(--chd-accent-2));
}

.chd-header {
	margin-bottom: 1.75rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.chd-header__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--chd-accent-2);
}

.chd-header__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.45rem, 3vw, 1.85rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.chd-header__lead {
	margin: 0;
	font-size: 1rem;
	color: var(--chd-muted);
	line-height: 1.6;
	max-width: 62ch;
}

.chd-alert {
	padding: 1rem 1.15rem;
	margin-bottom: 1.5rem;
	border-radius: 12px;
	font-size: 0.95rem;
	line-height: 1.55;
}

.chd-alert ul {
	margin: 0;
	padding-left: 1.2rem;
}

.chd-alert--error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #7f1d1d;
}

.chd-alert--success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}

.chd-thanks-again {
	margin: 0 0 1.25rem;
	font-size: 0.95rem;
}

.chd-thanks-again__link {
	color: var(--chd-accent-2);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.chd-thanks-again__link:hover,
.chd-thanks-again__link:focus {
	color: #1d4ed8;
}

.chd-section {
	margin-bottom: 1.75rem;
}

.chd-section__title {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.chd-grid {
	display: grid;
	gap: 1rem 1.25rem;
	margin-bottom: 1rem;
}

.chd-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chd-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 782px) {
	.chd-grid--3,
	.chd-grid--2 {
		grid-template-columns: 1fr;
	}
}

.chd-field label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 0.4rem;
	color: #334155;
}

.chd-field input[type="text"],
.chd-field input[type="email"],
.chd-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.7rem 0.85rem;
	border-radius: 10px;
	border: 1px solid #cbd5e1;
	background: #f8fafc;
	font-size: 1rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.chd-field textarea {
	resize: vertical;
	min-height: 5rem;
}

.chd-field input:focus,
.chd-field textarea:focus {
	outline: none;
	border-color: var(--chd-accent-2);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.chd-req {
	color: #dc2626;
	font-weight: 700;
}

.chd-method-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

@media (max-width: 640px) {
	.chd-method-grid {
		grid-template-columns: 1fr;
	}
}

.chd-method-card {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin: 0;
	padding: 1rem 1.1rem;
	border-radius: 12px;
	border: 2px solid #e2e8f0;
	background: #f8fafc;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.chd-method-card:hover {
	border-color: #cbd5e1;
}

.chd-method-card:has(input:checked) {
	border-color: var(--chd-accent-2);
	background: #fff;
	box-shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
}

.chd-method-card input {
	margin-top: 0.2rem;
	accent-color: var(--chd-accent-2);
}

.chd-method-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.chd-method-card__name {
	font-weight: 700;
	font-size: 0.98rem;
}

.chd-method-card__hint {
	font-size: 0.85rem;
	color: var(--chd-muted);
	line-height: 1.45;
}

.chd-tier-banner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.15rem;
	margin-bottom: 1.25rem;
	border-radius: 12px;
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	color: #f8fafc;
}

.chd-tier-banner__label {
	grid-column: 1;
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 700;
	opacity: 0.85;
}

.chd-tier-banner__value {
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fde68a;
	flex: 0 0 auto;
}

.chd-tier-banner__note {
	font-size: 1.05rem;
	line-height: 1.35;
	opacity: 0.85;
	flex: 1 1 auto;
}

@media (max-width: 640px) {
	.chd-tier-banner {
		flex-direction: column;
		align-items: flex-start;
	}

	.chd-tier-banner__value {
		align-self: flex-end;
	}
}

.chd-products__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

@media (max-width: 900px) {
	.chd-products__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.chd-products__grid {
		grid-template-columns: 1fr;
	}
}

.chd-product-card {
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.chd-product-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}

.chd-product-card--empty {
	background: #f8fafc;
	box-shadow: none;
}

.chd-product-card__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	cursor: pointer;
	margin: 0;
}

.chd-product-card__check {
	padding: 0.65rem 0.85rem 0;
}

.chd-product-card__check input {
	accent-color: var(--chd-accent-2);
	width: 1.1rem;
	height: 1.1rem;
}

.chd-product-card__image {
	display: block;
	padding: 0 0.85rem;
	background: #f1f5f9;
}

.chd-product-card__image img {
	width: 100%;
	height: auto;
	display: block;
}

.chd-product-card__title {
	padding: 0.85rem 0.85rem 0.25rem;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.35;
	color: #0f172a;
}

.chd-product-card__catalog {
	display: block;
	padding: 0 0.85rem 0.85rem;
	font-size: 0.8rem;
	color: var(--chd-muted);
}

.chd-product-card__catalog strong {
	color: #0f172a;
	font-weight: 700;
}

.chd-product-card__placeholder {
	padding: 1.25rem;
	color: var(--chd-muted);
	font-size: 0.9rem;
	line-height: 1.5;
}

.chd-submit-wrap {
	margin-top: 0.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(15, 23, 42, 0.08);
	display: flex;
	justify-content: flex-end;
}

.chd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1.75rem;
	font-size: 1rem;
	font-weight: 700;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.chd-btn--primary {
	background: linear-gradient(90deg, var(--chd-accent-2), #1d4ed8);
	color: #fff;
	box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.chd-btn--primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 16px 36px rgba(37, 99, 235, 0.45);
}

.chd-btn--primary:active {
	transform: translateY(0);
}

/* Honeypot: hidden from users, not display:none (some bots skip those). */
.chd-honeypot {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.chd-recaptcha {
	margin-top: 1rem;
	margin-bottom: 0.25rem;
}
