/*
 * Contact form (find-contact plugin) — CCN styles.
 *
 * Loaded through the "stylesheet" setting in form.json (this folder), after the plugin's base
 * stylesheet and only on pages that show the form. Plain CSS, not part of the Tailwind build.
 *
 * Moved here from the previous plugin (wegamble-contact-form/assets/css/ccn-styles.css); the
 * block at the end covers what is different in find-contact's markup.
 */

.ccn.wcf-custom-form {
	--text-color: rgba(0, 0, 0, 0.90);
	--border-color: rgba(0, 0, 0, 0.30);
	--textarea-color: rgba(0, 0, 0, 0.16);
	--primary-bg-color: #0A5EFF;
	--required-color: #EF4747;
}

.ccn.wcf-custom-form button[type='submit'] {
	padding: 11px 75px;
}

.ccn.wcf-custom-form button[type='submit']::before {
	content: "";
	width: 8px;
	height: 8px;
	position: absolute;
	margin-left: 113px;
	margin-top: -7px;
}

.ccn.wcf-custom-form input,
.ccn.wcf-custom-form textarea {
	margin-top: 0px;
	padding-bottom: 0px;
	border: none;
	background: transparent;
	font-size: 20px;
	line-height: 30px;
}

.ccn.wcf-custom-form input::placeholder, .ccn.wcf-custom-form textarea::placeholder  {
	color: #88958B;
	font-size: 20px;
}

.ccn.wcf-custom-form textarea {
	border: 1px solid var(--textarea-color);
	padding: 10px 90px 10px 12px;
}

.ccn.wcf-custom-form .field.error textarea {
	padding-right: 115px;
}

.ccn.wcf-custom-form .radio-options-label {
	display: block;
	margin-bottom: 9px;
}

.ccn.wcf-custom-form .radio-collection .option input[type=radio]:checked:after, 
.ccn.wcf-custom-form .options-collection .option input[type=radio]:checked:after {
	top: -30px;
    left: 3px;
}

.wcf-custom-form {
	--text-color: #536557!important;
	margin-bottom: 3.5rem;
}

.wcf-custom-form label {
	color: #536557;
	font-family: var(--font-neue-plak-narrow);
	font-size: 16px;
	line-height: 21px;
	letter-spacing: 0.64px;
}

.ccn.wcf-custom-form .radio-collection .option input[type=radio]:checked:after, 
.ccn.wcf-custom-form .options-collection .option input[type=radio]:checked:after {
	top: -39px;
}

.wcf-custom-form .radio-collection .option input,
.wcf-custom-form .options-collection .option input {
	visibility: hidden;
	width: 20px;
	height: 20px;
	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 {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid #B7BEB8;
	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: 2px solid #5FD44B;
}

.wcf-custom-form .radio-collection .option input[type=radio]:checked:after,
.wcf-custom-form .options-collection .option input[type=radio]:checked:after {
	top: -39px;
	left: 6px!important;
	border-radius: 50%;
	width: 8px;
	height: 8px;
	background: #339423;
}

.wcf-custom-form .required {
    color: #339423;
    top: 2px;
	left: 2px;
	font-size: 20px;
}

.ccn.wcf-custom-form .field {
	border-radius: 4px;
	border: 2px solid transparent;
}

.ccn.wcf-custom-form .field.error {
	background-color: #FFF4F0;
}

.ccn.wcf-custom-form .field.focused {
	border-color: #5FD44B;
}

.ccn.wcf-custom-form .message-field.field {
	position: relative;
	padding: 0;
}

.ccn.wcf-custom-form .message-field.field label {
	position: absolute;
	top: 16px;
	left: 16px;
}

.ccn.wcf-custom-form .message-field.field textarea {
	border: none;
	padding: 0px 16px 16px;
	margin-top: 40px;
}

.wcf-custom-form span#counter {
	position: absolute;
	right: 16px;
	margin-top: 16px;
}

.ccn.wcf-custom-form .radio-options-label {
	margin-bottom: 0;
}

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

.g-recaptcha {
	margin-top: 24px;
}

.ccn.wcf-custom-form input,
.ccn.wcf-custom-form textarea {
	margin-top: 0px;
	padding-bottom: 0px;
	border: none;
	background: transparent;
	font-size: 20px;
	line-height: 30px;
	color: #162C1B;
	caret-color: #48C134;
}

#counter-num {
	color: #98A39B;
	font-family: var(--font-neue-plak-narrow);
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.96px;
	text-transform: uppercase;
}

.ccn.wcf-custom-form input::placeholder, .ccn.wcf-custom-form textarea::placeholder  {
	color: #88958B;
	font-size: 20px;
}

.ccn.wcf-custom-form .field {
	background-color: #F4F7F4;
}

.ccn.wcf-custom-form .field {
	display: flex;
	padding: 12px 16px 10px 16px;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	align-self: stretch;
}

.ccn.wcf-custom-form #purpose.field {
	gap: 12px;
	padding-top: 12px;
}

.radio-collection {
	display: flex;
	align-items: center;
}

.wcf-custom-form span.error {
	font-family: var(--font-neue-plak-narrow);
	font-size: 16px;
	line-height: 22px;
	letter-spacing: 0.64px;
	color: #E44900;
	margin-left: 18px;
	margin-right:18px;
}

/* The icon follows the message text instead of sitting at the right edge of the form.
   The plugin's base stylesheet draws it as a background; switch that off and draw it as ::after. */
.ccn.wcf-custom-form span.error {
	background-image: none !important;
}

.ccn.wcf-custom-form span.error::after {
	content: "";
	display: inline-block;
	width: 20px;
	height: 20px;
	/* 8px gap, then give the 28px back: the icon takes no room on the line, so it can never wrap
	   onto a line of its own. On a full line it hangs into the message's right margin instead. */
	margin: 0 -28px 0 8px;
	vertical-align: -4px; /* centres the 20px icon on the 22px text line */
	background: url("data:image/svg+xml,%3Csvg width='21' height='20' viewBox='0 0 21 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_5218_20714)'%3E%3Cpath d='M10.5 18.7808C5.69385 18.7808 1.73438 14.8213 1.73438 10.0068C1.73438 5.20068 5.68555 1.24121 10.5 1.24121C15.3062 1.24121 19.2656 5.20068 19.2656 10.0068C19.2656 14.8213 15.3145 18.7808 10.5 18.7808ZM10.5083 11.252C11.0811 11.252 11.4131 10.9282 11.4463 10.3306L11.5791 6.75293C11.6123 6.13037 11.1558 5.69873 10.5 5.69873C9.83594 5.69873 9.3877 6.12207 9.4209 6.75293L9.55371 10.3389C9.57861 10.9282 9.91895 11.252 10.5083 11.252ZM10.5083 14.2485C11.1641 14.2485 11.6704 13.8335 11.6704 13.1943C11.6704 12.5718 11.1724 12.1484 10.5083 12.1484C9.84424 12.1484 9.32959 12.5718 9.32959 13.1943C9.32959 13.8335 9.84424 14.2485 10.5083 14.2485Z' fill='%23E44900'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_5218_20714'%3E%3Crect width='20' height='20' fill='white' transform='translate(0.5)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E") no-repeat center / 20px 20px;
}

.ccn.wcf-custom-form button[type=submit] {
	/*border-radius: 2px;
	background: #48C134;
	font-family: var(--font-neue-plak-extended);
	color: #fff;
	font-size: 12px;
	line-height: 140%; /* 16.8px */
	/*letter-spacing: 0.96px;
	text-transform: uppercase;
	display: flex;
	width: 160px;
	padding: 12px 24px 10px 24px;
	justify-content: center;
	align-items: center;
	gap: 8px;
	transition: all .3 ease-in-out;*/
	margin-top: 1.5rem;
}
/*
.ccn.wcf-custom-form button[type=submit]:hover {
	background: #3CA12B;
}
*/

.ccn.wcf-custom-form button[type=submit]::before {
	display: none;
}

.wcf-custom-form .response {
	font-family: var(--font-neue-plak-narrow);
	font-size: 16px;
	line-height: 140%; /* 22.4px */
	letter-spacing: 0.64px;
}

.row.disabled {
	opacity: .6;
}

/* ---- find-contact markup ---- */

/* Submit button above the response message, as before */
.ccn.wcf-custom-form .cta-collection .submit-container {
	order: -1;
}

/* Title of the "already sent" message on its own line, as before */
.ccn.wcf-custom-form #yellow-response-show span {
	display: block;
}

@media(max-width: 767px) {

	/* These two rules used to sit in the previous plugin's shared stylesheet */
	.ccn.wcf-custom-form .message-field.field label {
		margin-right: 65px;
	}

	.ccn.wcf-custom-form .message-field.field textarea {
		margin-top: 60px!important;
	}
}
