/* Form */

.ap_form fieldset:last-of-type {
	margin: 0;
}
.ap_form legend {
	margin-bottom: 20px;
	font-size: 16px;
	border-bottom: 2px solid #cfd9db;
}
.ap_form fieldset > div {
	/* form element wrapper */
	margin-bottom: 1rem;
}
.ap_form legend + div {
	/* reduce margin-top for first form element after the legend */
	margin-top: 16px;
}
.ap_form ul {
	margin: 0;
	padding: 8px 0 0;
	min-height: 50px;
}
.ap_form ul li {
	position: relative;
	display: inline-block;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	margin: 8px 26px 4px 0;
}
.ap_form .ap_extra p {
	margin: 4px 0;
	text-align: left;
	font-size: 13px;
}

.ap_form h4 {
	margin: 0;
}
.ap_form h4 + div {
	/* reduce margin-top/bottom for a gap between form elements */
	margin: 2px 0 20px;
}

.ap_form input[type="text"],
.ap_form input[type="url"],
.ap_form input[type="email"],
.ap_form input[type="tel"],
.ap_form input[type="number"],
.ap_form input[type="password"],
.ap_form select,
.ap_form textarea,
.ap_form legend {
	display: block;
	width: 100%;
	-webkit-appearance: none;
	-moz-appearance: none;
	-ms-appearance: none;
	-o-appearance: none;
	appearance: none;
}
.ap_form input[type="text"],
.ap_form input[type="url"],
.ap_form input[type="email"],
.ap_form input[type="tel"],
.ap_form input[type="number"],
.ap_form input[type="password"],
.ap_form select,
.ap_form textarea {
	/* general style for input elements */
	padding: 1rem;
	border: 1px solid var(--duna-gray-300);
	background-color: var(--duna-gray-100);
}

.ap_form input::placeholder,
.ap_form select::placeholder,
.ap_form textarea::placeholder {
	font-size: .9rem;
}

.ap_form input[type="text"]:focus,
.ap_form input[type="url"]:focus,
.ap_form input[type="email"]:focus,
.ap_form input[type="tel"]:focus,
.ap_form input[type="number"]:focus,
.ap_form input[type="password"]:focus,
.ap_form select:focus,
.ap_form textarea:focus {
	outline: none;
	border-color: var(--duna-point1);
	box-shadow: 0 0 5px rgba(44, 151, 222, 0.2);
}
.ap_form select {
	box-shadow: 0 1px 3px rgba(0,0,0,.08);
    cursor: pointer;
}
.ap_form textarea {
	min-height: 250px;
	resize: vertical;
	overflow: auto;
}

.ap_form input[type=radio]+label::after,
.ap_form input[type=checkbox]+label::after {
	background-color: #846874;
	background-position: center center;
	background-repeat: no-repeat;
	box-shadow: 0 0 5px rgba(44,151,222,.4);
	display: none;
}
.ap_form input[type=radio]+label::before,
.ap_form input[type=radio]+label::after {
	border-radius: 50%;
}
.ap_form input[type=radio]:checked+label::after,
.ap_form input[type=checkbox]:checked+label::after {
    display: block;
}
.ap_form input[type=radio]:checked+label::before,
.ap_form input[type=radio]:checked+label::after,
.ap_form input[type=checkbox]:checked+label::before,
.ap_form input[type=checkbox]:checked+label::after {
	-webkit-animation: ap_bounce .3s;
	-moz-animation: ap_bounce .3s;
	animation: ap_bounce .3s;
}
.ap_form .ap_message[rel="password"] {
	display: table;
	margin: 32px auto !important;
}

/* ExtraKeys Info */
.ap_form .ap_extra[rel="tel"] {
	text-align: center;
	clear: both;
}
.ap_form .ap_extra[rel="tel"]:after {
	content: '';
	display: table;
	clear: both;
}
.ap_form .ap_extra[rel="tel"] input.tel {
	display: inline-block;
	padding-left: 12px !important;
	width: calc(33.1% - 18px);
}
.ap_form .ap_extra[rel="tel"] input.tel:nth-child(1) {
	margin-left: 54px;
	float: left;
}
.ap_form .ap_extra[rel="tel"] input.tel:nth-child(3) {
	float: right;
}
.ap_form .ap_extra[rel="select"]::after,
.ap_form .ap_message[rel="category"]::after {
	content: '';
	position: absolute;
	z-index: 1;
	right: 28px;
	top: 24px;
	margin-top: -8px;
	display: block;
	width: 16px;
	height: 16px;
	background: url("../img/ap_icon-arrow.svg") no-repeat center center;
	pointer-events: none;
}
.ap_form .ap_extra[rel="date"] input[type="button"] {
	position: absolute;
	top: 0;
	right: 0;
	margin: 8px;
	padding: 0 16px !important;
	height: 30px !important;
	font-size: 12px;
	border-radius: 4px;
}
.ap_form .ap_extra[rel="date"].is_required input[type="button"] {
	margin-right: 32px;
}
.ap_form .ap_extra[rel="kr_zip"] .krZip {
	margin: 0;
}
.ap_form .ap_extra[rel="kr_zip"] .krZip input {
	padding: 16px !important;
	font-size: 14px;
}
.ap_form .ap_extra[rel="kr_zip"] .krZip .krzip-postcode-wrap,
.ap_form .ap_extra[rel="kr_zip"] .krZip .krzip-address-wrap,
.ap_form .ap_extra[rel="kr_zip"] .krZip .krzip-detailAddress-wrap {
	margin: 0;
	padding: 4px 0;
	clear: both;
}
.ap_form .ap_extra[rel="kr_zip"] .krZip .krzip-postcode-wrap {
	padding-top: 8px;
}
.ap_form .ap_extra[rel="kr_zip"] .krZip .krzip-postcode-wrap label,
.ap_form .ap_extra[rel="kr_zip"] .krZip .krzip-address-wrap label,
.ap_form .ap_extra[rel="kr_zip"] .krZip .krzip-detailAddress-wrap label {
	position: relative;
	top: 0;
	left: 0;
	min-width: unset;
	font-size: 14px;
}
.ap_form .ap_extra[rel="kr_zip"] .krZip .krzip-postcode-wrap label {
	display: inline-block;
	margin-right: 2px;
	padding: 3px 0;
	height: 26px;
	vertical-align: bottom;
}
.ap_form .ap_extra[rel="kr_zip"] .krZip .krzip-postcode-wrap input.krzip-postcode {
	display: inline-block;
	padding: 12px !important;
	width: 80px;
	min-width: 80px;
	text-align: center;
}
.ap_form .ap_extra[rel="kr_zip"] .krZip .krzip-postcode-wrap input.krzip-search {
	padding: 0 16px !important;
    font-size: 12px;
}
.ap_form .ap_extra[rel="kr_zip"] .krZip .krzip-address-wrap {
	height: 84px;
	text-align: justify;
}
.ap_form .ap_extra[rel="kr_zip"] .krZip .krzip-address-wrap input.krzip-roadAddress {
	margin-bottom: 4px;
}
.ap_form .ap_extra[rel="kr_zip"] .krZip .krzip-address-wrap input.krzip-jibunAddress,
.ap_form .ap_extra[rel="kr_zip"] .krZip .krzip-address-wrap input.krzip-extraAddress {
	display: inline-block;
}
.ap_form .ap_extra[rel="kr_zip"] .krZip .krzip-address-wrap input.krzip-jibunAddress{
	width: 66.6%;
	float: left;
}
.ap_form .ap_extra[rel="kr_zip"] .krZip .krzip-address-wrap input.krzip-extraAddress {
	width: 33.3%;
	float: right;
}
.ap_form .ap_item[rel="password"] .ap_eye {
	position: absolute;
	display: none;
	z-index: 1;
	right: 32px;
	top: 24px;
	margin-top: -11px;
	width: 20px;
	height: 20px;
	cursor: pointer;
}

.ap_form .ap_submit_info {
	position: relative;
	min-height: 36px;
	line-height: 2;
}

.ap_form .ap_submit_info ul.ap_section {
	margin-bottom: 16px !important;
	padding: 0;
	min-height: auto;
	white-space: nowrap;
}
.ap_form .ap_submit_info ul.ap_section li {
	margin: 0 12px 0 0;
}

.ap_form .ap_submit_info .ap_privacy .ap_privacy_content {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 100%;
	max-width: 1000px;
	height: 100%;
	max-height: 675px;
	padding: 3% 6%;
	background-color: #94aab0;
	box-shadow: 0 0 20px rgba(0,0,0,.2);
	opacity: 0;
	visibility: hidden;
	white-space: normal;
	-webkit-transform: translate(-50%, -50%);
	-moz-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	-o-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	-webkit-transition: opacity .3s 0s,visibility 0s .3s;
	-moz-transition: opacity .3s 0s,visibility 0s .3s;
	transition: opacity .3s 0s,visibility 0s .3s;
}
.ap_form .ap_submit_info .ap_privacy .ap_privacy_content.is_visible {
	opacity: 1;
	visibility: visible;
	-webkit-transition: opacity .3s 0s,visibility 0s 0s;
	-moz-transition: opacity .3s 0s,visibility 0s 0s;
	transition: opacity .3s 0s,visibility 0s 0s;
	z-index: 1;
}
.ap_form .ap_submit_info .ap_privacy .ap_privacy_title_container {
	position: relative;
	height: 32px;
}
.ap_form .ap_submit_info .ap_privacy .ap_privacy_title {
	font-size: 16px;
	font-weight: bold;
	color: #fff;
}
.ap_form .ap_submit_info .ap_privacy .ap_privacy_desc {
	position: relative;
	width: 100%;
	height: calc(100% - 64px);
	padding: 6%;
	overflow: auto;
	background: #fff;
	border-radius: .25em .25em .4em .4em;
	font-size: 14px;
	-webkit-transition-duration: .3s;
	-moz-transition-duration: .3s;
	transition-duration: .3s;
}
.ap_form .ap_submit_info .ap_privacy .ap_privacy_command_container {
	position: relative;
	height: 28px;
	text-align: right;
}
.ap_form .ap_submit_info .ap_privacy .ap_privacy_check,
.ap_form .ap_submit_info .ap_privacy .ap_privacy_check + label::before,
.ap_form .ap_submit_info .ap_privacy .ap_privacy_check + label::after {
	right: 0;
	left: auto;
}
.ap_form .ap_submit_info .ap_privacy .ap_privacy_check + label {
	padding-right: 24px;
	padding-left: 0;
	color: #eee;
}
.ap_form .ap_submit_info .g-recaptcha {
	display: table;
	margin: 0 auto 16px;
}
.ap_form .ap_submit_info .ap_privacy label {
    margin-left: 0.5rem;
}
.ap_form .ap_submit_info .ap_privacy > div {
    display: flex;
    align-items: center;
}
.ap_form .ap_submit_info .ap_privacy input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
}
.ap_form .ap_submit_info .accordion .accordion-item {
    background-color: transparent;
}
.ap_form .ap_submit_info .accordion .accordion-item .accordion-header .accordion-button {
    background-color: var(--duna-gray-100);
    border: 1px solid var(--duna-gray-300);
}
.ap_form .ap_submit_info .accordion .accordion-item .accordion-header .accordion-button:focus {
    box-shadow: none;
}
.ap_form .ap_submit_info .accordion .accordion-item .accordion-collapse .accordion-body {
	padding: 4rem 2rem;font-size:.9rem;background-color: var(--duna-gray-200);
}


@media only screen and (min-width: 768px) {
	.ap_form ul {
		padding-top: 6px;
	}
	.ap_form .ap_extra[rel="date"] input[type="button"] {
		margin: 10px;
	}
	.ap_form .ap_submit_info .ap_privacy .ap_privacy_content {
		width: 80%;
		height: 80%;
	}
	.ap_form .ap_submit_info .ap_privacy .ap_privacy_command_container {
		height: 32px;
	}
}

/* Disabled elements  */
.ap_form input:disabled,
.ap_form select:disabled,
.ap_form textarea:disabled {
	cursor: not-allowed;
}

@-webkit-keyframes ap_bounce {
	0%, 100% {
		-webkit-transform: scale(1);
	}
	50% {
		-webkit-transform: scale(0.8);
	}
}
@-moz-keyframes ap_bounce {
	0%, 100% {
		-moz-transform: scale(1);
	}
	50% {
		-moz-transform: scale(0.8);
	}
}
@keyframes ap_bounce {
	0%, 100% {
		-webkit-transform: scale(1);
		-moz-transform: scale(1);
		-ms-transform: scale(1);
		-o-transform: scale(1);
		transform: scale(1);
	}
	50% {
		-webkit-transform: scale(0.8);
		-moz-transform: scale(0.8);
		-ms-transform: scale(0.8);
		-o-transform: scale(0.8);
		transform: scale(0.8);
	}
}



/* Result */
.ap_result {
	display: none;
	margin: 0 auto;
	width: 100%;
}

.ap_result .ap_text_wrapper .thanks {
	border: 3px dotted var(--duna-point1);
	border-radius: 1rem;
	padding: 12rem 0;
	text-align: center;
	margin-top: 10rem;
}

.ap_result .ap_text_wrapper .thanks i {
	color: var(--duna-point1);
	font-size: 5rem;
	margin-bottom: 2rem;
}

@keyframes blink {
	0% {
		background-color: transparent;
	}
	50% {
		background-color: #ccf;
	}
}
@-webkit-keyframes blink {
	0% {
		background-color: transparent;
	}
	50% {
		background-color: #ccf;
	}
}

@media only screen and (max-width: 768px) {
	.js .floating-labels label {
		font-size: 14px;
	}
}
@media only screen and (max-width: 540px) {
	.ap_form .ap_basic select[name="phone_country"] {
		width: 100%;
	}
	.ap_form .ap_basic.rx_phone_country:after {
		right: 16px;
		left: auto;
	}
}