/**
 * LawNest registration page — CF7 form + section layout.
 */

.lawnest-reg {
	/* Fixed header ~72px + ~30px; HubSpot .reg used 130px so H1 clears header + eyebrow. */
	padding-block-start: 130px;
	padding-block-end: var(--lawnest-section);
}

.lawnest-reg__grid {
	gap: clamp(36px, 5vw, 80px);
	align-items: start;
}

.lawnest-reg__aside .lawnest-eyebrow {
	margin-bottom: 1.2rem;
}

.lawnest-reg__heading {
	font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.lawnest-reg__aside .lawnest-lead {
	margin-top: 1.2rem;
}

.lawnest-reg__points {
	margin: 2rem 0 0;
	display: grid;
	gap: 1.1rem;
}

.lawnest-reg__point {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	align-items: flex-start;
}

.lawnest-reg__point::before {
	content: "\2713";
	color: var(--lawnest-accent);
	flex: 0 0 auto;
	margin-top: 3px;
}

.lawnest-reg__point-title {
	display: block;
	flex: 1;
	min-width: 0;
	color: var(--lawnest-text);
	font-weight: 700;
	margin: 0;
}

.lawnest-reg__point-text {
	flex-basis: 100%;
	padding-inline-start: calc(1em + 0.85rem);
	font-size: 0.9rem;
	color: var(--lawnest-text-muted);
	margin: 0;
}

.lawnest-reg__form-col {
	max-width: 576px;
}

.lawnest-reg__form-card {
	background: #18272b;
	border: 1px solid var(--lawnest-border-strong);
	border-radius: var(--lawnest-radius-xl, 32px);
	padding: clamp(26px, 3vw, 44px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

/* Core zeroes horizontal padding on nested .has-global-padding groups. */
.lawnest-reg .lawnest-reg__form-col > .lawnest-reg__form-card.has-global-padding {
	padding-block: clamp(26px, 3vw, 44px);
	padding-inline: clamp(26px, 3vw, 44px);
}

.lawnest-reg__form-card iframe.hs-form-iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	background: transparent;
	border: 0;
}

/* --- Contact Form 7 --- */
.lawnest-reg__form-card .wpcf7 {
	color: #f5f0e6;
}

.lawnest-reg__form-card .wpcf7 label {
	display: block;
	margin-bottom: 1.2rem;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--lawnest-text-soft);
}

.lawnest-reg__form-card .wpcf7 .wpcf7-form-control-wrap {
	display: block;
}

.lawnest-reg__form-card .wpcf7 input[type="text"],
.lawnest-reg__form-card .wpcf7 input[type="email"],
.lawnest-reg__form-card .wpcf7 input[type="tel"],
.lawnest-reg__form-card .wpcf7 input[type="url"],
.lawnest-reg__form-card .wpcf7 input[type="number"],
.lawnest-reg__form-card .wpcf7 input[type="date"],
.lawnest-reg__form-card .wpcf7 textarea,
.lawnest-reg__form-card .wpcf7 select {
	display: block;
	width: 100%;
	max-width: 484px;
	margin-top: 8px;
	padding: 0.85rem 1rem;
	border: 1px solid var(--lawnest-border-strong);
	border-radius: var(--lawnest-radius-md);
	background: #0e1719;
	color: #f5f0e6;
	font-family: inherit;
	font-size: 0.98rem;
	transition:
		border-color 0.2s var(--lawnest-ease),
		box-shadow 0.2s var(--lawnest-ease);
}

.lawnest-reg__form-card .wpcf7 input::placeholder,
.lawnest-reg__form-card .wpcf7 textarea::placeholder {
	color: var(--lawnest-text-muted);
}

.lawnest-reg__form-card .wpcf7 input:focus,
.lawnest-reg__form-card .wpcf7 textarea:focus,
.lawnest-reg__form-card .wpcf7 select:focus {
	outline: none;
	border-color: #dda85c;
	box-shadow: 0 0 0 3px rgba(221, 168, 92, 0.18);
}

.lawnest-reg__form-card .wpcf7 textarea {
	min-height: 110px;
	height: 110px;
	resize: vertical;
}

.lawnest-reg__form-card .wpcf7 .wpcf7-acceptance {
	margin-bottom: 1.2rem;
}

.lawnest-reg__form-card .wpcf7 .wpcf7-list-item {
	margin: 0;
}

.lawnest-reg__form-card .wpcf7 .wpcf7-list-item-label,
.lawnest-reg__form-card .wpcf7 .wpcf7-acceptance .wpcf7-list-item-label {
	display: flex;
	gap: 0.7rem;
	align-items: flex-start;
	font-size: 0.86rem;
	font-weight: 400;
	color: var(--lawnest-text-muted);
	margin: 0;
}

.lawnest-reg__form-card .wpcf7 input[type="checkbox"] {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	accent-color: var(--lawnest-accent);
}

.lawnest-reg__form-card .wpcf7 .wpcf7-acceptance a {
	color: var(--lawnest-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.lawnest-reg__form-card .wpcf7 input[type="submit"],
.lawnest-reg__form-card .wpcf7 input.wpcf7-submit,
.lawnest-reg__form-card .wpcf7 button.wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 484px;
	margin-top: 0.6rem;
	padding: 1.1rem 2rem;
	border: 0;
	border-radius: var(--lawnest-radius-pill);
	background: linear-gradient(180deg, var(--lawnest-amber-400), var(--lawnest-amber-600));
	color: var(--lawnest-on-accent);
	font-weight: 600;
	font-size: 1.05rem;
	cursor: pointer;
	transition: transform 0.25s var(--lawnest-ease);
}

.lawnest-reg__form-card .wpcf7 input[type="submit"]:hover,
.lawnest-reg__form-card .wpcf7 input.wpcf7-submit:hover,
.lawnest-reg__form-card .wpcf7 button.wpcf7-submit:hover {
	transform: translateY(-2px);
}

.lawnest-reg__form-card .wpcf7 .wpcf7-not-valid-tip,
.lawnest-reg__form-card .wpcf7 .wpcf7-response-output {
	font-size: 0.85rem;
}

.lawnest-reg__form-card .wpcf7 .wpcf7-not-valid-tip {
	color: var(--lawnest-danger, #d9614c);
}

.lawnest-reg__form-card .wpcf7 .wpcf7-response-output {
	margin-top: 1rem;
	color: var(--lawnest-text-soft);
}

/* --- Details --- */
.lawnest-reg-details {
	padding-block-end: var(--lawnest-section);
}

.lawnest-reg-details__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(28px, 4vw, 48px) clamp(36px, 5vw, 64px);
	margin-block-start: clamp(40px, 5vw, 72px);
	padding-block-start: clamp(32px, 4vw, 56px);
	border-block-start: 1px solid var(--lawnest-border);
}

.lawnest-reg-details__block--wide {
	grid-column: 1 / -1;
	max-inline-size: 70ch;
}

.lawnest-reg-details__block h2 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.35rem, 2.2vw, 28px);
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.lawnest-reg-details__block p {
	margin: 0 0 0.9rem;
	font-size: 1rem;
	color: var(--lawnest-text-soft);
}

.lawnest-reg-details__block p:last-child {
	margin-bottom: 0;
}

.lawnest-reg-details__block a {
	color: var(--lawnest-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 860px) {
	.lawnest-reg {
		padding-block-start: 105px; /* mobile header ~75px + ~30px */
	}

	.lawnest-reg__grid {
		flex-direction: column;
	}

	.lawnest-reg__form-col {
		max-width: none;
	}

	.lawnest-reg-details__grid {
		grid-template-columns: 1fr;
	}

	.lawnest-reg-details__block--wide {
		max-inline-size: none;
	}
}
