/* --- ENQUIRY FORM --- */

ol,
li {
	list-style-type: none;
}

.form-fields {
	width: 100%;
	padding: 2.5em 0;
	margin: 0 auto;
}

.form-row {
	display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    width: auto;
    margin-bottom: 3em;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.form-row.email {
    margin-bottom: 4em;
}

.form-text {
	font-family: 'ivymode', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
	line-height: 1.1em;
	color: #d7d7d7;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
}

/* Basic styles */

.input {
	position: relative;
	z-index: 1;
	display: inline-block;
	margin: -1em 0 0 1.55em;
	width: 100%;
	max-width: 100%;
}

.form-row.service,
.form-row.budget,
.form-row.message {
    display: block;
}

.txta {
	max-width: 100%;
	margin: 1.5em 0 0;
}

textarea {
	height: 350px;
	padding: 2em .2em;
	margin-top: 0;
	resize: none;
	box-shadow: inherit;
}

.input__field,
.input__label {
	font-family: 'ivymode', sans-serif;
	text-transform: uppercase;
}

.input__field {
	font-size: 1.5rem;
	font-weight: 400;
	letter-spacing: .02em;
	text-transform: none;
	text-align: center;
    color: #f7f7f7;
    background: transparent;
	position: relative;
	display: block;
	padding: 0.7em;
	width: 60%;
	border: none;
	border-radius: 0;
	box-shadow: inherit;
	-webkit-appearance: none; /* for box shadows to show on iOS */
}

.textarea {
	font-size: 1.3rem;
	font-weight: 300;
	padding: 2.5em 0 0 !important;
	text-align: left;
}

.input__field:focus {
	outline: none;
}

.input__label {
	display: inline-block;
	padding: 0 1em;
	width: 50%;
	color: #7f7f7f;
	font-weight: 400;
	font-size: 1.15rem;
	-webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.input__label-content {
	position: relative;
	display: block;
	padding: 1em 0 1.55em;
    bottom: -.55em;
	width: 100%;
	text-transform: none;
}

/* Input styles */

.input-wrap {
	overflow: hidden;
}

.input__field {
	padding: .8em 0;
    width: 100%;
}

.input__label {
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 0;
	width: 100%;
	height: calc(100% - 1em);
	text-align: left;
	pointer-events: none;
}

.input__label-content {
	position: absolute;
}

.textarea__label-content {
	position: relative;
	padding: 0 0 1.77em;
	bottom: 0;
}

.input__label::before,
.input__label::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: calc(100% - 10px);
	border-bottom: 3px solid #5f5f5f;
}

.input__label::after {
	margin-top: 0;
	border-bottom: 3px solid #070707;
	-webkit-transform: translate3d(-100%, 0, 0);
	transform: translate3d(-100%, 0, 0);
	-webkit-transition: -webkit-transform 0.2s;
	transition: transform 0.2s;
}

.input__label::after {
	border-color: #e7e7e7;
}

.input__field:focus + .input__label::after,
.input--filled .input__label::after {
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
}

.input__field:focus + .input__label .input__label-content,
.input--filled .input__label-content {
	color: #7f7f7f;
    -webkit-transition: color .2s;
    transition: color .2s;
	-webkit-animation: anim-1 0.2s forwards;
	animation: anim-1 0.2s forwards;
}

/* Radio button field */

@-moz-document url-prefix() {
    .service-fields {
		margin-top: 2.33em;
	}
}

@media screen and (-webkit-min-device-pixel-ratio:0) { 
	.service-fields {
		margin-top: 2.55em;
	} 
}

.budget-fields {
	margin-top: 1.1em;
	margin-left: 0;
}

.form-radio-group {
	margin: 1.5em 0 0;
}

.form-fields .form-radio-custom input[type="radio"] {
	position: relative;
	display: block;
	margin: .5em auto;
	margin: 0 auto;
	width: 100%;
	height: 100%;
	display: none;
	cursor: pointer;
}

.form-fields > li .form-radio-custom input {
	display: none;
}

.form-fields > li .form-radio-custom span {
	font-size: 1.1rem;
	font-weight: 400;
	text-align: center;
	display: inline-block;
	position: relative;
	padding: 0;
	margin: 0 .1em 0 0;
}

.form-fields > li .form-radio-custom span:last-child {
    margin-right: 0;
}

.form-overview .form-fields > li .form-radio-custom span {
	max-width: 500px;
}

.form-overview .form-fields > li .form-radio-custom span {
	font-size: 79.9%;
}

.form-fields > li .form-radio-custom label {
	display: inline-block;
    height: 100%;
	cursor: pointer;
	padding: 1.1em 1.15em 1.17em;
	margin: 0;
	color: #c7c7c7;
	background: transparent;
	text-transform: none;
	border: 3px solid #2e2e2e;
	-moz-transition: all .2s ease;
    -webkit-transition: all .2s ease;
    transition: all .2s ease;
}

@-moz-document url-prefix() {
    .form-fields > li .form-radio-custom label {
        margin: 0;
    }
}

.form-fields > li .form-radio-custom span:hover label {
	background: transparent;
	color: #f7f7f7;
	border: 3px solid #5f5f5f;
}

.form-fields .form-radio-custom label::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	background-position: 50% 0%;
	background-size: 85%;
	background-repeat: no-repeat;
	content: '';
	opacity: 0.5;
	-webkit-transition: opacity 0.2s;
	transition: opacity 0.2s;
	-webkit-transform: translate(-50%,-50%);
	transform: translate(-50%,-50%);
}

.form-fields .form-radio-custom label:hover::after,
.form-fields input[type="radio"]:focus + label::after,
.form-fields input[type="radio"]:checked + label::after {
	opacity: 1;
}

.form-fields .form-radio-custom input[type="radio"]:checked + label,
.form-form-overview .form-fields .form-radio-custom input[type="radio"]:checked + label {
	background: #f7f7f7;
    color: #070707;
	box-shadow: 0;
	border: 3px solid transparent;
}

.enquiry-form-btn {
	position: absolute;
	margin-top: 2em;
	margin-left: 0;
}

.submit {
	font-family: 'ivymode', sans-serif;
    font-size: .7rem;
    text-transform: uppercase;
    line-height: 1.2;
	letter-spacing: -.01em;
	width: 130px;
    height: 130px;
	padding: 0;
	margin-left: calc(50% - 60px);
    background: transparent;
	color: #f7f7f7;
	border-radius: 50%;
    border-color: #5f5f5f;
    border-width: 5px;
    border-style: double;
    cursor: pointer;
    outline: none;
    transform: rotate(-22.5deg);
	transition: .3s ease;
}

.submit:hover {
    transform: rotate(0deg);
}

/* Animations */ 

@-webkit-keyframes anim-1 {
	50% {
		opacity: 0;
		-webkit-transform: translate3d(1em, 0, 0);
		transform: translate3d(1em, 0, 0);
	}
	51% {
		opacity: 0;
		-webkit-transform: translate3d(-1em, -40%, 0);
		transform: translate3d(-1em, -40%, 0);
	}
	100% {
		opacity: 1;
		-webkit-transform: translate3d(0, -40%, 0);
		transform: translate3d(0, -40%, 0);
	}
}

@keyframes anim-1 {
	50% {
		opacity: 0;
		-webkit-transform: translate3d(1em, 0, 0);
		transform: translate3d(1em, 0, 0);
	}
	51% {
		opacity: 0;
		-webkit-transform: translate3d(-1em, -40%, 0);
		transform: translate3d(-1em, -40%, 0);
	}
	100% {
		opacity: 1;
		-webkit-transform: translate3d(0, -40%, 0);
		transform: translate3d(0, -40%, 0);
	}
}