/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  --s: 125px; /* control the size*/
  --c1: #e5ffe8;
  --c2: #d4fcd9;
  
  --_g: var(--c1) 90deg,var(--c2) 0 135deg,#0000 0;
  background:
    conic-gradient(from  -45deg at calc(100%/3)   calc(100%/3)  ,var(--c1) 90deg,#0000 0 ),
    conic-gradient(from -135deg at calc(100%/3)   calc(2*100%/3),var(--_g)),
    conic-gradient(from  135deg at calc(2*100%/3) calc(2*100%/3),var(--_g)),
    conic-gradient(from   45deg at calc(2*100%/3) calc(100%/3)  ,var(--_g),var(--c1) 0 225deg,var(--c2) 0);
  background-size: var(--s) var(--s);
}

body {
	padding:4em 2em;
	font-size: 20px;
	font-family: "Poetsen One", sans-serif;
  	font-weight: 400;
  	font-style: normal;
}

@media(max-width:700px) {
	body {
		padding:1em;
	}
}

body > * {
	max-width: 900px;
	width:100%;
	margin-left:auto;
	margin-right:auto;
}

h1 {
  background-image: linear-gradient(to right, #049715, #0acb20, #049715);
  -webkit-background-clip: text; 
  background-clip: text; 
  color: transparent;
  
  background-size: 300%;
  background-position: -100%;  
  
  animation: animatedText 5s infinite alternate-reverse;

}

@keyframes animatedText{
  to{
    background-position: 100%; 
  }
}

h2 {
	margin:0 0 0.75em;
	font-size: 24px;
}

.form-wrap {
	margin-top:1.5em;
	padding:1em;
	border-radius: 10px;
	background:white;
}

form {
	overflow: hidden;
}

.form-tab.form-checks {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: 10px 10px;
}

@media(max-width:700px) {

	.form-tab.form-checks {
		display:block;
	}
	
}

.form-tab.form-checks h2 {
	grid-column: 1 / span 3;
}

.form-check {
	position: relative;
	overflow: hidden;
	margin:0;
	height:100%;
}

@media(max-width:700px) {

	.form-check {
	margin:0 0 0.5em;
	height:auto;
}

}

.form-check input {
	height:1px;
	width:1px;
	position: absolute;
	left:-9999px;
	opacity: 0;
}

.form-check label {
	color:#111;
	font-size:0.8em;
	padding:0.65em 0.85em;
	display: block;
	border:2px solid #ccc;
	border-radius: 5px;
	background:#f5f5f5;
	cursor: pointer;
	height:100%;
}

.form-check input:checked + label {
	border:2px solid #0acb20;
	background:#b6fbbe;
}

.form-check label:hover {
	border:2px solid #0acb20;
	background:#b6fbbe;
}

.form-tabs {
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-start;
	transform:translateX(0);
	transition: all 0.3s ease-in-out;
}

.form-tab {
	position: relative;
	width:100%;
	flex:1 0 100%;
	max-width: 100%;
}

#form-gift {
	height:auto;
	width:0%;
	display: block;
	margin:0 auto;
	animation: wiggle 2.5s infinite;
	opacity: 1;
	transition: opacity 1s ease-in-out;
	cursor: pointer;
	transform-origin: center center;
	position: relative;
}

#form-gift.is-showing {
	margin:2em auto;
	width:40%;
}

@media(max-width:700px) {

	#form-gift.is-showing {
		width:80%;
	}

}

#form-gift.revealed {
	opacity: 0;
	position: absolute;
	top:2em;
	left:30%;
	margin:0 auto;
}

@keyframes wiggle {
    0% { transform: rotate(0deg) scale(1); }
   20% { transform: rotate(5deg) scale(0.9); }
   50% { transform: rotate(0deg) scale(1.1); }
   80% { transform: rotate(-5deg) scale(0.9); }
  100% { transform: rotate(0deg) scale(1); }
}

.form-actions {
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-end;
}

.form-pal-copy {
	text-align: center;
	transform:scale(0);
	opacity: 0;
	line-height: 1.1;
	transition: all 0.7s ease-in-out;
	text-shadow: 5px 0 0 rgba(255,255,255,1);
	z-index: 2;
}

.form-pal.revealed .form-pal-copy {
	opacity: 1;
	transform:scale(1);
}

#form-pal-title {
	font-size: 40px;
	margin:0;
}

#form-pal-description {
	margin:0.5em 0 0;
	font-size:16px;
	line-height:1.4;
}

.form-pal-image {
	opacity: 0;
	background-size: contain;
	background-position:center;
	background-repeat: no-repeat;
	height:auto;
	width:60%;
	margin:1em auto;
	transform:scale(0);
	transition: all 0.7s ease-in-out;
	transform-origin:center center;
	z-index: 1;
}

@media(max-width:700px) {
	.form-pal-image {
		width:90%;
	}
}

.form-pal.revealed .form-pal-image {
	opacity: 1;
	transform:scale(1);
}

.form-actions button {
	padding:0.5em 1em;
	display: block;
	border:2px solid #049715;
	background:#049715;
	border-radius: 10px;
	color:#fff;
}

.form-progress {
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
	position: relative;
	padding:0;
	margin:1em 0;
}

.form-progress:after {
	content:'';
	height:2px;
	top:50%;
	margin-top:-1px;
	left:0;
	right:0;
	background:#ccc;
	position: absolute;
	z-index: 1;
}

.form-progress span {
	height:30px;
	width:30px;
	background:#f5f5f5;
	border:2px solid #ccc;
	border-radius:100%;
	flex-basis:30px;
	max-width: 30px;
	line-height: 25px;
	text-align: center;
	z-index: 2;
	color:#000;
	position: relative;
}

.form-progress span.answered {
	background:#049715;
	border:2px solid #049715;
	color:#fff;
}

.form-actions .form-next:disabled,
.form-actions .form-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.form-actions .form-submit {
	display: none;
}
