/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 769px) {
	#ft-btn {
		width:25% !important;
	}
	#ft-disc {
		width: 75% !important;
	}
	#ft-headercontent {
		width:100%;
		flex-direction:unset !important;
	}
	#contact-success-overlay .container, #contact-error-overlay .container {
		width: 60vw;
		height: auto;
	}
	#ft-headercontent {
		padding-right: 30px !important;
	}
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (max-width: 1280px) {
	#contactWebForm {
		padding-top: 0px !important;
	}
	#submit-wrapper, .btn-submit {
		margin-bottom:0px;
	}
    #sec-contact > .row {
        max-width: 700px;
    }
    #sec-contact {
        background: transparent url(../img/img_contact_bg.svg) no-repeat 550px 0px !important;
        background-size: 1100px !important;
    }
}

/* Large devices (laptops/desktops, 992px and up) 
@media only screen and (min-width: 992px) {
} */

/* Extra large devices (large laptops and desktops, 1280px and up) */
@media only screen and (min-width: 1281px) {
	#contact-success-overlay .container, #contact-error-overlay .container {
		width: 50vw;
		height: auto;
	}
}

/* Extra small devices (phones, 768px and down) */
@media only screen and (max-width: 768px) {
	#ft-headercontent {
		flex-direction:column !important;
		padding: 0px;
	}
	#ft-btn {
		width: 100% !important;
	}
	#ft-disc {
		width: 100% !important;
		padding-top:30px;
	}
	.container h1 {
		font-size: 44px;
		line-height: 44px;
		margin-bottom: 30px;
	}
	.dialog-icon {
		margin-bottom: 30px;
	}
	.container p {
		margin-bottom: 30px;
	}
    #sec-contact > .row {
        max-width: 350px !important;
    }
    #sec-contact {
        background: transparent url(../img/img_contact_bg.svg) no-repeat 80px 55px !important;
        background-size: 1100px !important;
    }
    #ft-bodycontent {
        order:1 !important;
    }
    #ft-envelope-img {
        margin-left: -8px !important;
    }
}

#sec-contact {
    position: relative;
}

#sec-contact {
    background: transparent url(../img/img_contact_bg.svg) no-repeat 108% -35%;
    color: #faf8f3;
    overflow-x: visible !important;
    overflow-y: visible !important;
    max-width: 1920px !important;
    margin: auto;
    padding-bottom: 60px;
}

#sec-contact > .row {
    /*background: url("../img/img_background_dots.png");*/
    background-size: cover;
    background-blend-mode: multiply;
    margin: auto;
}

/*#sec-contact .col-content:last-child {
    margin-left: 100px;
    margin-right: 100px;
}*/

#contactWebForm {
    padding-top: 50px;
	margin-left: 0px !important;
}

#form-header {
    margin: 0;

    font-family: 'Roboto', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 25px;
    line-height: 90%;
    letter-spacing: -0.02em;

    text-align: left;

    color: #fcfaf3;
	padding-left:0px;
}

#form-header span {
    padding-left: 0px;
    font-size: 14px;
    font-weight: 400;
}

.firstInput {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

input.form-control, input.form-control:focus,
textarea.form-control, textarea.form-control:focus {

    font-family: 'Roboto', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;

    color: #FAF8F3;
    text-align: left;

    border: solid 1px #FAF8F3;
    border-radius: 4px;
    background-image: linear-gradient(#211D33, #211D33), linear-gradient(148.75deg, #9356A0 14.87%, #8061C9 37.91%, #724C9D 67.39%, #533A71 86.23%);
    background-origin: border-box;
    background-clip: padding-box, border-box;

    overflow: auto !important;
}

input.form-control, textarea.form-control {
    padding: 15px;
	background-color:#211d33;
}

input.form-control::placeholder, textarea.form-control::placeholder {
    color: #FAF8F3;

    text-align: left;
    vertical-align: middle;
}

input.form-control::-webkit-input-placeholder, textarea.form-control::-webkit-input-placeholder {
    color: #FAF8F3;

    text-align: left;
    vertical-align: middle;
}

input.form-control:-moz-placeholder, textarea.form-control:-moz-placeholder {
    color: #FAF8F3;
    text-align: left;
    vertical-align: middle;
}

textarea.form-control::placeholder {
    transform: translateY(50px);
}

textarea.form-control::-webkit-input-placeholder {
    transform: translateY(50px);
}

textarea.form-control::-moz-placeholder {
    transform: translateY(50px);
}

.cbs {
    margin-top: 20px !important;
}

.form-check {
    display: flex;
    align-content: start;
    padding-left: 0;
	margin: 7px 0px 7px 0px;
}

.gradient-cb {
    position: relative;
    padding-left: 40px;
    font-family: 'Roboto', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    text-align: left;
    display: flex;
    align-items: center;
}

.gradient-cb input[type=checkbox] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.gradient-cb .check {
    position: absolute;
    /*top: calc(50% - 16px);*/
    left: 0;
    height: 24px;
    width: 24px;

    border: 3px solid #6A55F7;
    border-radius: 4px;
    /*background-image: linear-gradient(#211D33, #211D33), linear-gradient(148.75deg, #9356A0 14.87%, #8061C9 37.91%, #724C9D 67.39%, #533A71 86.23%);*/
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.gradient-cb input[type=checkbox]:checked + .check:after {
    content: "";
    position: absolute;
    display: block;
    left: 8px;
    top: 0px;
    width: 5px;
    height: 18px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

#submit-wrapper {
    margin-top: 30px;
    margin-bottom: 30px;
	padding-left:0px;
}

#additional-comments {
	padding-left:0px;
}

.btn-submit {
    margin-bottom: 30px;

}

#formLoading {
    display: none;
    border: var(--bs-spinner-border-width) solid #9356A0;
    border-right-color: transparent;
}

#submit-wrapper p {
    font-family: 'Roboto', serif;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 22px !important;
    color: #FAF8F3 !important;
    max-width: 396px;
    text-align: left;
}

.form-error {
    display: none;
    color: red;
}

input:not(:focus):not(:placeholder-shown):invalid,
form.submitted input:invalid,
input:not(:focus).touched:invalid {
    background-image: linear-gradient(#211D33, #211D33), linear-gradient(148.75deg, red, darkred);
}

textarea:not(:focus):not(:placeholder-shown):invalid,
form.submitted textarea:invalid,
textarea:not(:focus).touched:invalid {
    background-image: linear-gradient(#211D33, #211D33), linear-gradient(148.75deg, red, darkred);
}

#fsCbs.touched.invalid,
form.submitted #fsCbs.invalid {
    border: 3px darkred solid;
    border-radius: 8px;
    padding: 8px;
}

input:not(:focus):not(:placeholder-shown):invalid ~ .form-error,
form.submitted input:invalid ~ .form-error,
input:not(:focus).touched:invalid ~ .form-error,
#fsCbs.touched.invalid ~ .form-error, form.submitted #fsCbs.invalid ~ .form-error {
    display: block;
}

input:not(:focus):not(:placeholder-shown):valid {
    background-image: linear-gradient(#211D33, #211D33), linear-gradient(148.75deg, #9356A0 14.87%, #8061C9 37.91%, #724C9D 67.39%, #533A71 86.23%);
}

.cbs > span {
    font-style: normal;
    font-weight: 700;
    font-size: 28px;
    line-height: 30px;
    padding-bottom: 20px;
	padding-left:0px;
}

.dialog-icon {
    width: 100%;
    max-width: 125px;
	margin-bottom:60px;
}

#contact-success-overlay, #contact-error-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    /*background: rgba(0, 0, 0, 0.7);*/

    display: flex;
    justify-content: center;

    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s;
}

#contact-success-overlay.show, #contact-error-overlay.show {
    visibility: visible;
    opacity: 1;
}

#contact-success-overlay .container, #contact-error-overlay .container {

    margin: auto;
    padding: 60px;

    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;

    text-align: center;

    /*background: radial-gradient(50% 50% at 50% 50%, #5B5187 0%, #211D33 100%);
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);*/
    border-radius: 20px;
	background-color: #FAF8F3;

    color: #211D33;
	box-shadow: 0px 0px 100px rgba(0, 0, 0, 0.50);
}

#contact-success-overlay .container h1, #contact-error-overlay .container h1 {
    font-family: 'Roboto', serif;
    font-style: normal;
    font-weight: 500;
    font-size: 54px;
    line-height: 54px;
}

#contact-success-overlay .container p, #contact-error-overlay .container p {
    font-family: 'Roboto', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 150%;
	margin-bottom: 60px;
}

#btnSubmit {
	border: none;
}

/* Large devices (laptops/desktops, 1280px and below) */
@media only screen and (max-width: 1280px) {
    #sec-contact .row div > img {
        max-width: 175px;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 1281px) {

    #sec-contact .col-content:last-child {
        margin-left: 0px;
        margin-right: 0px;
    }

    input.form-control, input.form-control:focus,
    textarea.form-control, textarea.form-control:focus,
    .gradient-cb {
        font-size: 18px;
    }

    textarea.form-control::placeholder {
        transform: translateY(35px);
    }

    textarea.form-control::-webkit-input-placeholder {
        transform: translateY(35px);
    }

    textarea.form-control::-moz-placeholder {
        transform: translateY(35px);
    }


    .gradient-cb {
        padding-top: 5px;
    }

    .form-check {
        margin-bottom: 7px;
    }

    /*.cbs > span {
        font-size: 18px;
    }*/

    #contact-success-overlay .container {

        width: 670px;
        height: auto;
        margin: auto;

        /*background: radial-gradient(50% 50% at 50% 50%, #5B5187 0%, #211D33 100%);
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);*/
        border-radius: 20px;
    }


    #contact-success-overlay .container h2, #contact-error-overlay .container h2 {
        font-size: 54px;
		margin-bottom: 60px;
		line-height:54px;
    }

    #contact-success-overlay .container p, #contact-error-overlay .container p {
        font-size: 24px;
		margin-bottom: 60px;
		padding: 0px 60px;
    }
	
	#ft-headercontent {
		width:50%;
		flex-direction:column !important;
	}
	
	#sec-contact .row div > img {
        max-width: 417px;
    }
    #sec-contact > .row {
        max-width: 1152px;
    }
}
