@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

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

img {
	max-width: 100%;
	display: block;
}


// iOS Reset 
input {
	appearance: none;
	border-radius: 0;
}

.card {
	width: 100%;
	background-color: #fcf6ea;
	border-radius: 10px;
	border: 2px solid rgb(171, 154, 111);
	box-shadow: 0 10px 20px 0 rgba(#999, .25);
	padding: .75rem;
}

.card-image {
	border-radius: 8px;
	overflow: hidden;
	padding-bottom: 65%;
	background-image: url('https://assets.codepen.io/285131/coffee_1.jpg');
	background-repeat: no-repeat;
	background-size: 150%;
	background-position: 0 5%;
	position: relative;
}

.card-heading {
	position: absolute;
	left: 10%;
	top: 15%;
	right: 10%;
	font-size: 16px;
	font-weight: 700;
	color: #735400;
	line-height: 1.222;
	small {
		display: block;
		font-size: .75em;
		font-weight: 400;
		margin-top: .25em;
	}
}

.card-form {
	padding: 2rem 1rem 0;
}

.input {
	display: flex;
	flex-direction: column-reverse;
	position: relative;
	padding-top: 1.5rem;
	&+.input {
		margin-top: 1.5rem;
	}
}

.input-label {
	color: #8597a3;
	position: absolute;
	font-size: 18px;
	top: 1.5rem;
	transition: .25s ease;
}

.input-field {
	border: 0;
	z-index: 1;
	background-color: transparent;
	border-bottom: 2px solid #b7b7b7; 
	font: inherit;
	font-size: 17px;
	padding: .25rem 0;
	&:focus, &:valid {
		outline: 0;
		border-bottom-color: rgb(182, 130, 17);
		&+.input-label {
			color: rgb(101, 73, 13);
			transform: translateY(-1.5rem);
		}
	}
}

.action {
	margin-top: 2rem;
}

.action-button {
	font: inherit;
	font-size: 18px;
	padding: 1em;
	width: 100%;
	font-weight: 500;
	background-color: rgb(218, 151, 9);
	border-radius: 6px;
	color: #FFF;
	border: 0;
	cursor: pointer;
	&:focus {
		outline: 0;
	}
}
.action-button:hover{
	background-color: rgb(225, 160, 19);
}

.card-info {
	padding: 1rem 1rem;
	text-align: center;
	font-size: 16px;
	color: #8597a3;
	a {
		display: block;
		color: #6658d3;
		text-decoration: none;
	}
}

@media screen and (max-width: 700px) {
  .card {
    width: calc(100%);
  }
}





