/*
 Theme Name:   RSWStarter Child
 Theme URI:    https://www.rswstudio.it
 Description:  RSWStarter Child Theme for Promo
 Author:       RSW Studio
 Author URI:   https://www.rswstudio.it
 Template:     autofrancia2021
 Version:      1.0.0
 Text Domain:  rswstarter
*/

html {
	scroll-behavior: smooth;
}

@media (min-width: 1400px){
    .section-form .container {
        max-width: 1140px;
    }
}

.card.promo .badge {
    font-size: .75rem;
    background: rgb(184,18,18);
    color: white;
    padding: 2px 5px;
}

.countdown {
    font-size: 1rem;
    line-height: 1.25rem;
    padding: 3px 0;
    background: rgb(184,18,18);
    background: linear-gradient(146deg, rgba(184,18,18,1) 0%, rgba(113,11,11,1) 100%);
    color: white;
}
.countdown .timer {
    display: inline-block;
    background: black;
    padding: 2px 10px;
    color: white;
    font-size: .75rem;
    border-radius: 3px;
}

.section-lp {
    padding: 0;
}
.section-form {
    padding-top: 0;
}

.section-form button.wpcf7-submit::after {
    font-family: "Font Awesome 5 Free";
	-webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
	content: "\f061";
    padding-left: 5px;
}

.form-box {
	box-shadow: 0px 0px 2rem 0px rgb(0 0 0 / 29%);
    padding: 3rem;
	background:#ffffff;
}
.form-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0;
}
.form-subtitle {
    font-size: 1rem;
    margin: 2px 0px 10px 0px;
}




label {
	text-transform: none;
	font-weight: bold;
	font-size: .85rem;
}

p.input {
	margin-bottom: .75rem;
}
p.input-first {
	margin-right: .25rem;
}
p.input-last {
	margin-left: .25rem;
}

.input-name,
.input-email,
.input-phone {
	display: block;
	position: relative;
}
.input-name input,
.input-email input,
.input-phone input {
	padding-right: 1.5rem;
}
.input-name::after,
.input-email::after,
.input-phone::after {
	display: block;
	font-family: "Font Awesome 5 Free";
	-webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
	line-height: 45px;
	height: 45px;
	content: "";
	color: #434c56;
	opacity: .5;
	position: absolute;
	right: .5rem;
	top: 0;
}
.input-name::after {
	content: "\f007";
}
.input-email::after {
	content: "\f0e0";
}
.input-phone::after {
	content: "\f3cd";
}

.form-privacy {
	width: 100%;
	font-size: .75rem;
	line-height: 1.2;
}
.form-info {
	color:#63707f;
    font-size: 14px;
    margin: .75rem 0;
}
.form-info .fa {
	color: #03579b;
}
input.wpcf7-not-valid {
	border: 1px solid red;
	color: red;
}
span.wpcf7-not-valid-tip {
	margin: 0 0 .5rem 0;
	font-size: .75rem;
}
div.wpcf7-validation-errors,
div.wpcf7-acceptance-missing {
	background: #f7e700;
}


.form-submit {
	margin-top:1rem;
    position: relative;
}
.form-submit p {
    margin-bottom: 0;
}
.wpcf7-submit,
.elementor-widget-button a.elementor-button,
.elementor-widget-button .elementor-button {
	opacity: 1;
	transition: all 1s ease;
	cursor: pointer;
}
.wpcf7-spinner {
    position: absolute;
}

.form-submit-mobile {
    display: none;
    position: fixed;
    top: 100%;
    right: 0;
    left:0;
    box-shadow: 0 -1px 20px rgba(32,39,47,.2);
    z-index: 98;
    transform: translateY(-100%);
    transition: transform 1s ease;
    background:#fff;
    padding:12px;
}
.form-submit-mobile.show {
    display: none;
}

#form .close {
    display: none;
    cursor: pointer;
    z-index: 100;
    position: absolute;
    top:1rem;
    right:1rem;
    font-size: 1.5rem;
}
@media screen and (max-width:639px){
    .form-submit-mobile.show {
        display: block;
    }
    .form-submit-mobile .btn {
        width: 100%;
        padding:.75rem;
        font-size: 1.25rem;
    }
	p.input-first {
		margin-right: 0;
	}
	p.input-last {
		margin-left: 0;
	}
	#form {
		position: fixed;
		bottom: 0;
		right: 0;
		left:0;
		box-shadow: 0 -1px 20px rgba(32,39,47,.2);
        z-index: 99;
        transform: none;
        transition: all 1s ease;
        transform: translateY(100%);
    }
    #form.open {
        transform: none;
    }    
    #form .close {
        display: block;
    }
    .form-box {
        padding: 1rem;
    }
	.form-submit .wpcf7-submit {
        width: 100%;
        margin-bottom: 0;
    }
}