* {
	user-select: none;
	-webkit-user-select: none;
}
html, body {
	overflow-x: hidden;
}
body {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background: #fefefe;
	padding: 1em;
	font-family: "Inter var experimental", "Inter var", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, "Noto Sans", sans-serif;
}
header {
	padding: 32px;
	text-align: center;
}
#app {
	margin-top: 32px;
	position: relative;
	padding: 24px 0;
	text-align: center;
}
#app h4 {
	margin-top: 8px;
	margin-bottom: 4px;
}
#app p {
	margin-block-start: 0;
}

main {
	width: 100%;
	max-width: 380px;
}
main#after-submit,
body.form-submitted main#before-submit {
	display: none;
}
body.form-submitted main#after-submit {
	display: block;
}


form {
	display: flex;
	flex-direction: column;
	justify-content: center;
}
div {
	margin-bottom: 1em;
}
label {
	display: block;
	padding: 8px 0;
}
h1, h2, h3, h4 {
	font-family: -apple-system-ui-serif, ui-serif, ".NewYork-Medium", NewYorkMedium-Medium, "Calluna", serif;
	margin-block-start: 0;
	margin-block-end: 0;

}
p, h4 {
	font-size: .8rem;
	color: #505050;
}
p {
	line-height: 1.382;
}
a {
	color: #3c3c43;
	font-size: .8rem;
}
footer a {
	font-weight: 600;
}
input, textarea {
	font-size: 1em;
	padding: 8px;
	width: 100%;
	color: #505050;
	border: 1px solid #ccc;
	border-radius: 8px;
	box-sizing: border-box;
}
button {
	width: 100%;
	padding: 16px;
	font-size: 1em;
	background-color: #3c3c43;
	color: #fefefe;
	border: none;
	border-radius: 32px;
	cursor: pointer;
	transition: .3s ease-out;
}
button:hover {
	opacity: .9;
}
form.submitting button {
	pointer-events: none;
	opacity: .5;
}

.required {
	color: #951015;
}
.badge {
	display: inlnie-block;
	background: #3c3c43;
	padding: .3em .5em;
	font-size: 12px;
	border-radius: 4px;
	color: #fff;
}
#preview {
	display: none;
}
#photo-preview {
	width: 100%;
	max-width: 380px;
	border-radius: 8px;
	box-shadow: 0 6px 6px 0px #ededed;
	pointer-events: none;
}
.preview-available #preview {
	display: block;
}
.preview-available #url-input {
	display: none;
}

.radio-group {
	display: flex;
	gap: 16px;
	margin-top: 32px;
}

label footer {
	max-height: 0;
	overflow: hidden;
	transition: .3s ease-out;
}

input[type="radio"] {
	appearance: none;
	opacity: 0;
	position: absolute;
}
[role=radiogroup] {
	margin: 1.618em 0;
	transition: .5s ease-out;
}
[role=radiogroup] h2 {
	margin-bottom: .618em;
}
[role=radiogroup] label {
	position: relative;
	padding: 16px 16px 8px;
	border-radius: 8px;
	outline: solid 1px #ccc;
	transition: .5s ease-out;
	cursor: pointer;
}

[role=radiogroup] label h3::before {
	content: "";
	position: relative;
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: .5em;
	border-radius: 50%;
	background: #ededed;
	vertical-align: middle;
	margin-bottom: 3px;
}
label h4::before {
	content: "⚠️";
	margin-right: 0.38em;
}

label h4 + p {
	margin-block-start: 0;
	margin-top: 0.38em;
}

input[type="radio"]:hover + label {
	outline: solid 2px #ededed;
}
input[type="radio"]:checked + label {
	background: rgba(60, 60, 67, .08);
	outline: solid 2px #3c3c43;
}

input[type="radio"]:checked + label footer {
	max-height: 10em;
}

input[type="radio"]:focus + label {
	outline-offset: 3px;
}

input[type="radio"]:checked + label h3::before {
	background: #3c3c43;
}
