/*
 * The contact page (template-contact.php): the head as on the other inner pages, the ways to reach us on a deep
 * green slip, and the form, whose fields are the calculator's (front.css .sst-calc-*).
 */

.sst-contact-head {
	padding-top: 8rem;
	padding-bottom: 3.5rem;
}

.sst-contact-lead {
	max-width: 40rem;
	font-size: 15.5px;
	line-height: 1.6;
	text-wrap: pretty;
}

.sst-contact-main {
	padding-top: 3.5rem;
}

.sst-contact-grid {
	display: grid;
	gap: 1.5rem;
	align-items: start;
}

/* The ways to reach us. */
.sst-contact-ways {
	padding: 1.75rem 1.5rem;
}

.sst-contact-way {
	display: flex;
	align-items: center;
	gap: 1rem;
	border-radius: 1.25rem;
	outline: none;
}

.sst-contact-way:focus-visible {
	box-shadow: 0 0 0 2px #adee68;
}

.sst-contact-icon {
	width: 3rem;
	height: 3rem;
	box-shadow: 0 4px 0 #62bb39;
	transition: translate 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.sst-contact-way:hover .sst-contact-icon {
	translate: 0 -2px;
}

.sst-contact-way-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1;
}

.sst-contact-way-value {
	margin-top: 0.5rem;
	font-size: 19px;
	line-height: 1.2;
	overflow-wrap: anywhere;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 0.12em;
	text-underline-offset: 0.2em;
	transition: text-decoration-color 0.15s;
}

.sst-contact-way:hover .sst-contact-way-value {
	text-decoration-color: #adee68;
}

/* The form's card: cream, with the hard shadow of the site's cards. */
.sst-contact-card {
	border-radius: 1.75rem;
	background: #fffdf8;
	padding: 1.5rem 1.25rem;
	color: #0c0b0a;
	box-shadow: 0 1px 2px rgb(40 20 70 / 0.05), 0 24px 44px -30px rgb(40 20 70 / 0.45), 0 8px 0 #e8dcf6;
}

.sst-contact-form {
	display: grid;
	gap: 1.6rem;
}

.sst-contact-form[hidden],
.sst-contact-done[hidden],
.sst-contact-alert[hidden] {
	display: none;
}

.sst-contact-fields {
	display: grid;
	gap: 1.25rem 1rem;
}

.sst-contact-field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-width: 0;
}

.sst-contact-label {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: #0c0b0a;
}

.sst-contact-optional {
	font-weight: 400;
	color: rgb(12 11 10 / 0.5);
}

.sst-contact-input {
	width: 100%;
	height: 3.25rem;
	padding: 0 1.1rem;
	border: 0;
	border-radius: 1rem;
	background: #fff;
	color: #0c0b0a;
	font-size: 16px;
	font-weight: 500;
	box-shadow: inset 0 0 0 1.5px rgb(12 11 10 / 0.1), 0 4px 0 #e0d5c6;
	transition: box-shadow 0.15s;
	outline: none;
}

.sst-contact-area {
	height: auto;
	min-height: 8.5rem;
	padding-block: 0.9rem;
	line-height: 1.55;
	resize: vertical;
}

.sst-contact-input:hover {
	box-shadow: inset 0 0 0 1.5px rgb(12 11 10 / 0.2), 0 4px 0 #e0d5c6;
}

.sst-contact-input:focus {
	box-shadow: inset 0 0 0 2px #154618, 0 4px 0 #adee68;
}

.sst-contact-input[aria-invalid] {
	box-shadow: inset 0 0 0 2px #c2410c, 0 4px 0 #f5c9a8;
}

.sst-contact-error {
	font-size: 12.5px;
	line-height: 1.35;
	color: #c2410c;
}

.sst-contact-error:empty {
	display: none;
}

.sst-contact-alert {
	border-radius: 1rem;
	background: #fdebd9;
	padding: 0.85rem 1.1rem;
	color: #7c2d12;
	font-size: 14px;
	line-height: 1.45;
}

.sst-contact-actions {
	display: flex;
}

.sst-contact-send {
	cursor: pointer;
}

.sst-contact-send:disabled {
	cursor: progress;
	opacity: 0.7;
}

/* Out of sight for people; bots fill it. */
.sst-contact-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* The thank-you card. */
.sst-contact-done {
	display: grid;
	justify-items: start;
	gap: 0.9rem;
	padding-block: 1rem;
}

.sst-contact-done-key {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 1.1rem;
	box-shadow: 0 5px 0 #62bb39;
}

.sst-contact-done-title {
	margin-top: 0.4rem;
	font-size: clamp(1.25rem, 5vw, 1.75rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.sst-contact-done-text {
	font-size: 15.5px;
	line-height: 1.6;
}

.sst-contact-again {
	margin-top: 0.4rem;
	border-radius: 999px;
	background: rgb(219 185 243 / 0.4);
	padding: 0.7rem 1.2rem;
	color: #0c0b0a;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.03em;
	cursor: pointer;
	transition: background-color 0.15s;
}

.sst-contact-again:hover {
	background: rgb(219 185 243 / 0.7);
}

@media (min-width: 40rem) {
	.sst-contact-head {
		padding-top: 10rem;
		padding-bottom: 5rem;
	}

	.sst-contact-lead {
		font-size: 17.5px;
		line-height: 1.65;
	}

	.sst-contact-main {
		padding-top: 5rem;
	}

	.sst-contact-ways {
		padding: 2.25rem 2.5rem;
	}

	.sst-contact-way-value {
		font-size: 22px;
	}

	.sst-contact-card {
		border-radius: 2.25rem;
		padding: 2.25rem 2.25rem 2.5rem;
	}

	.sst-contact-fields {
		grid-template-columns: 1fr 1fr;
	}

	.sst-contact-wide {
		grid-column: 1 / -1;
	}
}

@media (min-width: 64rem) {
	.sst-contact-grid {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		gap: 2rem;
	}

	.sst-contact-grid > aside {
		position: sticky;
		top: 7rem;
	}

	.sst-contact-card {
		padding: 2.75rem 3rem 3rem;
	}
}

/* The brand's § lying in the green slip's corner. */
.sst-contact-mark {
	right: -8%;
	bottom: -18%;
	height: 62%;
}
