/*
 * "I'm New" page only. Enqueued in functions.php when is_page( 'im-new' ).
 * Shared pieces (the page wash, form fields, buttons) live in main.css.
 *
 * Layout: a compact intro, then one glass card on the page wash. No hero here.
 * With only a title to show, the shared hero collapses into a tall empty band.
 */

/* Take your first step */

.first-step {
	padding-block: 1rem 5rem;
}

.first-step__title {
	margin: 0 0 2rem;
	font-size: clamp(1.6rem, 2.8vw, 2.1rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-align: center;
}

/*
 * One frosted card holding both halves, split by a hairline. Two separate
 * cards read as a mismatched pair, since the contact side and the form side
 * never have the same natural height.
 *
 * Looks like glass, costs nothing like glass: a flat diagonal gradient
 * standing in for the blur, so there's no backdrop-filter to make the
 * browser composite every frame behind the card.
 */
.glass {
	border: 1px solid rgb(255 255 255 / 55%);
	border-radius: var(--radius);
	background: linear-gradient(135deg, #e5f2fa 0%, #ecf6fb 100%);
	box-shadow:
		inset 0 1px 0 rgb(255 255 255 / 65%),
		0 18px 50px rgb(11 58 92 / 12%);
}

.first-step__card {
	display: grid;
	grid-template-columns: 1fr;
	overflow: hidden;
}

/*
 * Both halves get their padding from the card, never from themselves. Scoped
 * to the page so it outranks the .form padding that main.css sets, rather
 * than relying on stylesheet order to break the tie.
 */
.page--im-new .first-step__card > * {
	padding: clamp(1.75rem, 3.5vw, 2.5rem);
}

/* Stacked: the divider runs across. Side by side: it runs down. */
.first-step__card > * + * {
	border-top: 1px solid rgb(11 58 92 / 12%);
}

@media (min-width: 900px) {
	.first-step__card {
		grid-template-columns: 1fr 1.1fr;
		align-items: start;
	}

	.first-step__card > * + * {
		border-top: 0;
		border-left: 1px solid rgb(11 58 92 / 12%);
	}
}

/* Contact side */

.contact__intro {
	margin: 0 0 0.5rem;
	color: var(--muted);
}

.contact-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-list__item {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding-block: 1rem;
	border-top: 1px solid var(--line);
}

.contact-list__label {
	color: var(--muted);
	font-size: 0.85rem;
}

.contact-list__value {
	color: var(--ink);
	font-size: 1.1rem;
	font-weight: 500;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.contact-list__value:hover {
	color: var(--accent);
}

/*
 * Form side. The glass card supplies the surface, so the form drops the sand
 * fill it carries elsewhere. Padding stays with the card, not the form.
 */
.page--im-new .form {
	border-radius: 0;
	background: none;
}

/* Inputs get a near-white fill so they stand out against the card gradient. */
.page--im-new .field__input {
	background: rgb(255 255 255 / 85%);
	border-color: rgb(11 58 92 / 15%);
}

.page--im-new .field__input:focus-visible {
	background: #fff;
	border-color: var(--accent);
}
