/*
|----------------------------------------------------------------------------
	Kontact - Responsive HTML5 Ajax Contact Form Main CSS
	Author: MGScoder
	Author URL: https://codecanyon.net/user/mgscoder
	Version: 2.9.4
	Primary color: #000000
|----------------------------------------------------------------------------
*/

/*
|------------------------------------------------------------------
	[Table of contents]:

	1. Common
	2. TITLE
	3. CONTACT FORM STYLE
	4. Math Captcha
	5. Button
	6. Responsive
|-------------------------------------------------------------------
*/

/*
|----------------------------------------------------------------------------
	1. Common
|----------------------------------------------------------------------------
*/
.contact-1 {
	background-color: #fff;
	margin: 0 auto;
	width:100%;
}
.intro-text {
	background-color: rgba(211, 211, 211, 0.5);
	border: 1px solid #65def2;
    border-radius: 10px;
	box-shadow: 0 0 5px 1px rgba(211, 211, 211, 0.5);
    font-size: 18px;
    font-weight: bold;
    margin: 0 20% 60px;
    padding: 30px;
}
.intro-text:hover {
	border-color: #000000;
	box-shadow: 0 0 10px 1px rgba(19, 145, 166, 0.5);
}

/*
|----------------------------------------------------------------------------
	2. TITLE
|----------------------------------------------------------------------------
*/
.contact-form-title-wrap {
    overflow: hidden;
	margin: 0 0 50px;
    text-align: center;
}
.title-text {
    margin: 0;
    text-transform: uppercase;
    white-space: nowrap;
}
.title-text > span {
    padding: 0 8px;
}
.title-text strong {
    font-weight: bold;
}
/*-- Title bottom line --*/
.contact-form-title-wrap .title-line {
	clear: both;
    position: relative;
	line-height: 0;
}
.contact-form-title-wrap .title-line .long-line {
    background-color: #000000;	/*-- border line color --*/
    border-radius: 10px;
    display: inline-block;
    height: 3px;
    position: relative;
    width: 90px;		/*-- border right long line width before aniumation. --*/
}
.contact-form-title-wrap .title-line .short-line {
    background-color: #000000;
    border-radius: 10px;
    display: inline-block;
    height: 3px;
    margin-right: 5px;	/*-- space between left & right line --*/
    position: relative;
    width: 20px;	/*-- border left short line width before aniumation --*/
}

/*title-box*/
.title-box::before {
    background-color: #000000;
    bottom: 0;
    content: "";
    display: block;
    height: 1px;
    left: 0;
    margin: 0 0 -1px;
    position: absolute;
    width: 40px;
}
.title-box {
    border-bottom: 1px solid #e1e1e1;
    margin: 0 0 40px;
    position: relative;
}
.title-box > h3 {
	margin: 0;
    text-transform: uppercase;
}

/*
|----------------------------------------------------------------------------
	3. CONTACT FORM STYLE
|----------------------------------------------------------------------------
*/
#contact-5 {
	background-attachment: fixed;
	background-color: #fff;
    background-image: url("../images/bg-3.jpg");
	background-position: center;
	background-repeat: no-repeat;
    background-size: cover;
	padding: 60px 0 30px;
    position: relative;
}
#contact-5::before {
    background-color: #fff;
    content: "";
    height: 100%;
    left: 0;
    opacity: 0.75;
    position: absolute;
    top: 0;
    width: 100%;
}
#contact-5 .container {
    position: relative;
}
/*CONTACT INFO*/
#contact-5 .contact-item {
	background-color: rgba(211, 211, 211, 0.5);
	border: 1px solid #ccc;
    border-radius: 10px;
	box-shadow: 0 0 5px 1px rgba(211, 211, 211, 0.5);
    display: table;
    height: 160px;
    margin: 0 auto 40px;
	max-width: 400px;
    overflow-wrap: break-word;
    text-align: center;
	width: 100%;
}
#contact-5 .contact-item:hover {
	box-shadow: 0 0 10px 1px rgba(211, 211, 211, 0.5);
}
#contact-5 .contact-item-inner {
    display: table-cell;
    vertical-align: middle;
    padding: 30px 20px;
}
#contact-5 .contact-icon {
    overflow: hidden;
	margin: 0 0 30px;
}
#contact-5 .contact-desc a {
    color: #222;
    text-decoration: none;
}
#contact-5 .contact-desc h4 {
    margin: 15px 0 0;
	font-size: 18px;
	font-weight: bold;
}
#contact-5 .contact-icon i {
	background: transparent;
	border: 1px solid #000000;
    border-radius: 50%;
	color: #000000;
    font-size: 32px;
    height: 64px;
    line-height: 64px;
    text-align: center;
    transition: all 0.8s ease 0s;
    width: 64px;
}
#contact-5 .contact-item:hover i {
	background-color: #000000;
	border-color: #000000;
	color: #fff;
}
/*CONTACT FORM*/
#contactForm5 {
    background-color: rgba(211, 211, 211, 0.2);
	border: 1px solid #cccccc;
    border-radius: 10px;
	box-shadow: 0 0 5px 1px rgba(211, 211, 211, 0.5);
    margin: 0 0 60px;
    padding: 30px;
	position: relative;
}
#contactForm5:hover {
    box-shadow: 0 0 10px 1px rgba(19, 145, 166, 0.5);
}
#contactForm5 #msgSubmit {
    margin: 0 0 30px;
}
#contactForm5 .form-group {
    position: relative;
    margin: 0 0 30px;
}
#contactForm5 .form-group.last {
    margin: 0;
}
#contactForm5 .form-control {
    background-color: transparent;
    border: 1px solid #000000;
    padding-left: 50px;
}
#contactForm5 .input-group-icon {
    position: absolute;
	top: 0;
}
#contactForm5 .form-group .input-group-icon {
    color: #000000;
    border: 1px solid #000000;
	border-radius: 4px;
	border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    display: table-cell;
    font-size: 14px;
	height: 100%;
    padding: 5px 7px;
    text-align: center;
	-webkit-transition:all 0.2s ease 0s;
    -moz-transition:all 0.2s ease 0s;
    -ms-transition:all 0.2s ease 0s;
    -o-transition:all 0.2s ease 0s;
    transition: all 0.2s ease 0s;
    vertical-align: top;
    white-space: nowrap;
    width: 40px;
}
#contactForm5 .form-control:focus {
	border-color: #ccc;
	box-shadow: 0 1px 1px rgba(19, 145, 166, 0.075) inset, 0 0 8px rgba(19, 145, 166, 0.6);
}
#contactForm5 .form-control:focus + .input-group-icon{
    background-color: #ccc;
    color: #fff;
}
#contactForm5 .has-error .form-control {
    border-color: #ce0606;
}
#contactForm5 .has-error .input-group-icon {
    background-color: #ce0606;
    color: #ffffff;
}
#contactForm5 .has-error .form-control:focus {
    border-color: #ce0606;
    -webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.075) inset, 0 0 6px 0 #ce0606;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.075) inset, 0 0 6px 0 #ce0606;
}
#contactForm5 .has-error .form-control:focus + .input-group-icon {
    background-color: #ce0606;
    color: #ffffff;
}
#contactForm5 .help-block {
	font-size: 14px;
    color: #ce0606;
    margin: 0;
    padding-left: 35px;
    position: absolute;
    top: -25px;
}
#contactForm5 .help-block ul.list-unstyled li::before {
    content: "\f071";
    font-family: "Font Awesome 6 Free";
	font-weight: bold;
    position: relative;
    padding-right: 5px;
    top: 0;
    left: 0;
}
#contactForm5 .help-block ul li {
	font-size: 13px;
    background-color: transparent;
    color: #ce0606;
    border: 1px solid #ce0606;
    border-radius: 2px;
    top: 0px;
	position: relative;
	padding: 0 5px;
	margin-left: 5px;
	max-height: 20px;
}
#contactForm5 .help-block ul li::after {
	content: "";
    position: absolute;
    height: 0;
    width: 0;
    right: 50%;
    top: 18px;
    border: 5px solid transparent;
    border-top: 5px solid #ce0606;
}
#contactForm5 .text-success {
    color: #37a000;
}
#contactForm5 .text-danger {
    color: #ce0606;
	margin: 0 0 30px;
}
#contactForm5 .btn.disabled {
    opacity: 1;
}
#contactForm5 #submit.btn {
    transition: all 0.5s ease 0s;
    width: 150px;
}
#submit.btn::after {
    content: "\f0a9";
    font-family: "Font Awesome 6 Free";
	font-weight: bold;
    font-size: 22px;
    opacity: 0;
    position: absolute;
    top: 2px;
    right: 50px;
    transition: all 0.3s ease 0s;
}
#submit.btn:hover::after {
    opacity: 1;
    right: 10px;
}
#contactForm5 .sub-text { 
	right: 15px;
    bottom: 75px;
    color: #ce0606;
    font-size: 14px;
    position: absolute;
}

#contactForm5 .input-group-btn ~ .form-control {
    border-radius: 0 4px 4px 0;
	cursor: not-allowed;
	padding-left: 10px;
}
#contactForm5 .input-group-btn > .btn {
    background-color: #000000;
    border: 1px solid #000000;
    border-radius: 4px 0 0 4px;
	color: #fff;
    padding: 4.5px 14px;
	height: 34px;
}
#contactForm5 .input-group-btn > .btn > input[type="file"] {
    display: none;
}

/*upload file b4 fix*/
#contactForm5 .form-group.attachmentFile .input-group-btn ~ .form-control {
	width: calc(100% - 90px);
	margin-left: -5px;
	border-left: none;
	display: inline;
}
#contactForm5 .form-group.attachmentFile .input-group-btn > .btn {
	width: 90px;
	margin-top: -5px;
	padding: 7px 14px;
	height: 38px;
}

/*checkbox b4 fix*/
.checkbox input[type="checkbox"] {
    margin: 6px 5px 0 0;
}

/*radio-inline b4 fix*/
.form-group .checkbox-inline, .form-group .radio-inline {
    position: relative;
    display: inline-block;
    padding-left: 20px;
    margin-bottom: 0;
	margin-right: 15px;
    vertical-align: middle;
    cursor: pointer;
}
.form-group .radio-inline input[type="radio"] {
    margin: 6px 5px 0 -20px;
}


/***************** Mgsstyle Checkbox *****************/
ul.mgsstyle-checkbox.mgscheckbox-style {
	padding-left: 0;
}

.mgsstyle-checkbox.mgscheckbox-style li {
    display: inline-block;
	width: auto;
    margin: 0 3% 0 0;
}
.mgsstyle-checkbox.mgscheckbox-style li:last-child {
    margin: 0;
}
.mgsstyle-checkbox.mgscheckbox-style input[type="checkbox"] {
	opacity: 0;
	margin-left: -12px;
}
.mgsstyle-checkbox.mgscheckbox-style label  {
	position: relative;
	padding: 5px 30px;
	cursor: pointer;
}
.mgsstyle-checkbox.mgscheckbox-style label:before {
	border: 1px solid #a0a0a0;
	border-radius: 3px;
	content: "";
	left: 0;
	position: absolute;
	top: 6px;
	width: 20px;
	height: 20px;
}
.mgsstyle-checkbox.mgscheckbox-style :checked + label:before {
	border: 12px solid #000000;
	border-radius: 3px;
	content: "";
	left: 0;
	position: absolute;
	top: 5px;
	width: auto;
	height: auto;
}


/*select box*/
#contactForm5 select {
	background-color: white;
	display: inline-block;
	box-sizing: border-box;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, #000000 50%),
		linear-gradient(135deg, #000000 50%, transparent 50%),
		radial-gradient(transparent 66%, transparent 66%);
	background-position: calc(100% - 18px) calc(1em + 2px),
		calc(100% - 13px) calc(1em + 2px),
		calc(100% - .5em) .5em;
	background-size: 5px 6px, 6px 5px, 1.5em 1.5em;
	background-repeat: no-repeat;
}
#contactForm5 select:focus {
	background-image: linear-gradient(45deg, transparent 50%, #000000 50%),
		linear-gradient(135deg, #000000 50%, transparent 50%),
		radial-gradient(transparent 66%, transparent 66%);
}
#contactForm5 select::-ms-expand {
    display: none;
}

/*
|----------------------------------------------------------------------------
	4. Math Captcha
|----------------------------------------------------------------------------
*/
#humanCheckCaptchaBox, #humanCheckCaptchaInput, #firstDigit, #secondDigit,  #mathfirstnum, #mathsecondnum {
    display: inline;
}
#humanCheckCaptchaInput.form-control {
    height: 30px;
    margin-left: 10px;
    padding: 4px;
    text-align: center;
    width: 45px;
}
#firstDigit #mathfirstnum, #secondDigit #mathsecondnum {
	border: none;
	box-shadow: none;
    width: 30px;
    height: 30px;
	padding: 0;
    pointer-events: none;
    text-align: center;
}

/*
|----------------------------------------------------------------------------
	5. Button
|----------------------------------------------------------------------------
*/
.btn {
	font-size: 16px;
	overflow: hidden;
	padding: 6px 20px;
	text-transform: uppercase;
}
.btn-custom {
    background-color: #000000;
    color: #fff;
    -webkit-box-shadow: 0 0 1px transparent;
    box-shadow: 0 0 1px transparent;
    display: inline-block;
    position: relative;
	-moz-transform: perspective(1px) translateZ(0px);
	-webkit-transform: perspective(1px) translateZ(0px);
	-o-transform: perspective(1px) translateZ(0px);
	-ms-transform: perspective(1px) translateZ(0px);
    transform: perspective(1px) translateZ(0px);
	-webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
	-webkit-transition-property: color;
    transition-property: color;
    vertical-align: middle;
}
.btn-custom::before {
    background-color: #65def2;
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    -moz-transform:scaleX(0);
    -webkit-transform:scaleX(0);
    -o-transform:scaleX(0);
    -ms-transform:scaleX(0);
	transform: scaleX(0);
	-webkit-transform-origin: 50%;
	transform-origin: 50%;
	-webkit-transition-property: transform;
	transition-property: transform;
	-webkit-transition-duration: 0.3s;
	transition-duration: 0.3s;
	-webkit-transition-timing-function: ease-out;
	transition-timing-function: ease-out;
    z-index: -1;
}
.btn-custom:hover, .btn-custom:focus, .btn-custom:active {
    border-color: #65def2;
    color: #222;
}
.btn-custom:hover::before, .btn-custom:focus::before, .btn-custom:active::before {
    -moz-transform: scaleX(1);
	-webkit-transform: scaleX(1);
	-o-transform: scaleX(1);
	-ms-transform: scaleX(1);
	transform: scaleX(1);
}
.btn-transparent {
	background-color: transparent;
	border: 1px solid #fff;
	color: #fff;
}
.btn.btn-custom.disabled {
    opacity: 1;
	pointer-events: auto;
}

/*
|----------------------------------------------------------------------------
	6. Responsive
|----------------------------------------------------------------------------
*/
@media screen and (max-width: 767px) {
	.intro-text {
		margin: 0 0 60px;
	}
}
@media screen and (max-width: 420px) {
	#firstDigit #mathfirstnum, #secondDigit #mathsecondnum {
		width: 20px;
	}
	#contactForm .g-recaptcha {
		-webkit-transform:scale(0.85);
		transform:scale(0.85);
		-webkit-transform-origin:0 0;
		transform-origin:0 0;
	}
}
@media screen and (max-width: 320px) {
	#humanCheckCaptchaInput.form-control {
		margin-left: 8px;
		padding: 5px 2px;
		width: 32px;
	}	
	#contactForm .g-recaptcha {
		-webkit-transform:scale(0.75);
		transform:scale(0.75);
	}
}