/*
 * Find Contact — base form styles.
 *
 * Generic defaults only. Site styling belongs in the theme, which can add to these rules or
 * switch this file off with the "load_base_styles" setting of its form definition.
 * ".wcf-custom-form" is the form's long-standing class; ".fnd-contact" is on the form as well.
 */
.wcf-custom-form {
	/* Set a common font size and line height for all form elements */
	width: 696px;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 0.16px;
	color: #536557!important;
}

/* Use CSS variables for common colors */
.wcf-custom-form {
	--text-color: rgba(0, 0, 0, 0.90);
	--border-color: rgba(0, 0, 0, 0.30);
	--primary-bg-color: #0A5EFF;
	--required-color: #EF4747;
}

/* Define a common style for labels */
.wcf-custom-form label {
	font-size: 14px;
	font-weight: 500;
	line-height: 21px;
	letter-spacing: 0.28px;
}

/* Create a grid layout for the form rows with 12 columns */
.wcf-custom-form .row {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-gap: 21px;
	row-gap: 0px;
}

/* Define column widths for col-6 and col-12 elements */
.wcf-custom-form .col-6 {
	grid-column: span 6;
}

.wcf-custom-form .col-9 {
	grid-column: span 9;
}

.wcf-custom-form .col-12 {
	grid-column: span 12;
}

.wcf-custom-form .field {
	margin-top: 24px;
}

.wcf-custom-form span.error {
	margin-top: 8px;
	color: var(--required-color);
	font-size: 14px;
	font-weight: 400;
	line-height: 21px;
	letter-spacing: 0.14px;
	display: none;
}

.wcf-custom-form input.empty-field, .wcf-custom-form span.error  {
	background-image: url('../images/warning.svg') !important;
	background-repeat: no-repeat !important;
	background-position: right !important;
	background-size: 20px !important;
}

.wcf-custom-form #counter img {
	margin: 0;
	display: none;
}

.wcf-custom-form #counter img.error-icon {
	width: 20px;
	height: 20px;
	margin: 0px 0px 0px 4px;
	display: block;
}

/* Style radio collection options */
.wcf-custom-form .radio-collection .option {
	display: inline-flex;
	align-items: center;
	margin-right: 40px;
	margin-top: 12px;
}

.wcf-custom-form .radio-collection .option>*,
.wcf-custom-form .options-collection .option>* {
	cursor: pointer;
}

/* Style radio inputs within radio collection */
.wcf-custom-form .radio-collection .option input,
.wcf-custom-form .options-collection .option input {
	visibility: hidden;
	width: 16px;
	height: 16px;
	margin: 0px 12px 0px 0px;
}

.wcf-custom-form .radio-collection .option input[type=radio]:before,
.wcf-custom-form .options-collection .option input[type=radio]:before {
	display: inline-block;
	visibility: visible;
	width: 16px;
	height: 16px;
	border-radius: 10px;
	border: 1px inset rgba(0, 0, 0, 0.20);
	content: "";
	position: relative;
	top: -3px;
}

.wcf-custom-form .radio-collection .option input[type=radio]:checked::before,
.wcf-custom-form .options-collection .option input[type=radio]:checked::before {
	border: 1px inset #0A5EFF;
}

.wcf-custom-form .radio-collection .option input[type=radio]:checked:after,
.wcf-custom-form .options-collection .option input[type=radio]:checked:after {
	position: relative;
	top: -28px;
	left: 4px;
	display: inline-block;
	visibility: visible;
	border-radius: 6px;
	width: 10px;
	height: 10px;
	background: #0A5EFF;
	content: "";
}


/* Style radio option labels */
.wcf-custom-form .radio-collection .option label,
.wcf-custom-form .options-collection .option label {
	color: var(--text-color);
	font-weight: 400;
}

.wcf-custom-form .options-collection .option label {
	position: relative;
	top: 2px;
}

.wcf-custom-form .options-collection .option {
	display: inline-flex;
	align-items: flex-start;
	width: 100%;
	margin-top: 6px;
	margin-bottom: 6px;
}

.wcf-custom-form .options-collection .option input {
	margin: 0 12px 0 0;
	position: relative;
	top: 4px;
}

/* Style form inputs and textareas */
.wcf-custom-form input,
.wcf-custom-form textarea {
	width: 100%;
	margin-top: 9px;
	padding-bottom: 9px;
	color: var(--text-color);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: 0.16px;
}

/* Style textarea with additional padding and border radius */
.wcf-custom-form textarea {
	padding: 10px 110px 10px 12px;
	border-radius: 4px;
	resize: vertical;
	position: relative;
}

/* Style textarea with additional padding and border radius */
.wcf-custom-form span#counter {
	color: var(--border-color);
	font-size: 14px;
	font-weight: 400;
	line-height: 21px;
	letter-spacing: 0.14px;
	position: absolute;
	margin-top: 22px;
	margin-left: -115px;
	width: 105px;
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
}

.wcf-custom-form textarea::-webkit-scrollbar {
    width: 0 !important
}


/* Style required field messages */
.wcf-custom-form .required {
	color: var(--required-color);
	font-weight: 500;
	font-size: 14px;
	position: relative;
	top: 3px;
}

/* Style submit button */
.wcf-custom-form button[type='submit'] {
	background-color: var(--primary-bg-color);
	border: none;
	border-radius: 2px;
	color: white;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.28px;
	cursor: pointer;
	height: fit-content;
}

.wcf-custom-form button[type='submit']:hover {
	background-color: #084BCC;
}

.wcf-custom-form button[type='submit']:disabled {
	background-color: #E4EDE5;
	color: #A0B0A2;
	animation: blinker 2s linear infinite;
}

@keyframes blinker {
	50% {
		background-color: #d9d9d9;
	}
}

/* Remove focus outline for all elements */
.wcf-custom-form *:focus {
	outline: none;
	border-color: #0A5EFF;
}

/* Style input and textarea placeholders */
.wcf-custom-form textarea::placeholder,
.wcf-custom-form input::placeholder {
	color: var(--border-color);
	font-size: 16px;
}

.wcf-custom-form .response {
	display: none;
	color: var(--text-color);
	height: fit-content;
	font-size: 14px;
	font-weight: 400;
	line-height: 21px;
	padding: 20px 16px;
	border-radius: 4px;
	margin-top: 1.5rem;
}

.wcf-custom-form .response span {
	font-weight: 700;
	letter-spacing: 0.28px;
}

.wcf-custom-form #green-response-show {
	color: #246E17;
	padding-left: 48px;
	background-color: #EDFAEB;
	background-image: url('../images/check.svg') !important;
	background-repeat: no-repeat !important;
	background-position: 16px center !important;
	background-size: 20px !important;
}

.wcf-custom-form #red-response-show {
	padding-left: 48px;
	color: #AE3000;
	background-color: #EDFAEB;
	background-image: url('../images/warning.svg') !important;
	background-repeat: no-repeat !important;
	background-position: 16px center !important;
	background-size: 20px !important;
	background-color: #FFF4F0;
}

.wcf-custom-form #yellow-response-show {
	background-color: #eef2cc;
}

@media(max-width: 767px) {
	.wcf-custom-form {
		width: 100%;
	}

	.wcf-custom-form .col-xs-12 {
		grid-column: span 12;
	}
	.wcf-custom-form .radio-collection {
		columns: 1;
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.wcf-custom-form .radio-collection .option {
		margin-right: 0px;
	}

	.wcf-custom-form textarea {
		padding-right: 95px;
	}

	.wcf-custom-form .response {
		margin-top: 24px;
	}
	.wcf-custom-form {
		margin-bottom: 0.5rem!important;
	}
	.wcf-custom-form .options-collection .option {
		margin-top: 8px;
		margin-bottom: 8px;
	}
}