:root 
{
	 --rad: 0.3rem;
	 --dur: 0.3s;
	 --color-dark: #2f2f2f;
	 --color-light: #F7FEE7;
	 --color-brand: #9bb6fd;
	 --height: 2.2rem;
	 --btn-width: 3rem;
	 --bez: cubic-bezier(0, 0, 0.43, 1.49);
}

form 
{
	 position: relative;
	 width: 15rem;
	 background: var(--color-brand);
	 border-radius: var(--rad);
	 margin-right: 20px;
	 margin-left: 20px;
}

input, button 
{
	height: var(--height);
	font-family: var(--font-fam);
	border: 0;
	color: var(--color-dark);
}

input
{
	border:  1px solid lightgray;
}

input[type="search"] 
{
	outline: 0;
	width: 100%;
	background: var(--color-light);
	padding: 0 1.6rem;
	border-radius: var(--rad);
	appearance: none;
	transition: all var(--dur) var(--bez);
	transition-property: width, border-radius;
	z-index: 1;
	position: relative;
}

button 
{
	display: none;
	position: absolute;
	top: 0;
	right: 0;
	width: var(--btn-width);
	font-weight: bold;
	background: var(--color-brand);
	border-radius: 0 var(--rad) var(--rad) 0;
}

input:not(:placeholder-shown) 
{
	border-radius: var(--rad) 0 0 var(--rad);
	width: calc(100% - var(--btn-width));
}

input:not(:placeholder-shown) + button 
{
	display: block;
}

label 
{
	position: absolute;
	clip: rect(1px, 1px, 1px, 1px);
	padding: 0;
	border: 0;
	height: 1px;
	width: 1px;
	overflow: hidden;
}
 