/* NINJA Form */
.nf-form-wrap .nf-response-msg {
	padding: 30px;
	max-width: 80%;
	margin: 0 auto 30px;
	background-color: #ffeeee;
	border-radius: 8px;
}

#ninja_forms_required_items, 
.nf-form-content  .nf-field-container {
	margin-bottom: 0px;
}

.label-above .nf-field-label {
	margin-bottom: 0;
}

.nf-form-content .nf-field { display: flex; flex-direction: column; gap: 14px; }
.nf-form-content .nf-field label { font-family: var(--font-heading); font-weight: 600; font-size: var(--font-size); color: var(--skin-black); }
.nf-form-content .nf-field input[type="text"],
.nf-form-content .nf-field input[type="email"],
.nf-form-content .nf-field input[type="tel"],
.nf-form-content .nf-field input[type="number"],
.nf-form-content .nf-field select,
.nf-form-content .nf-field textarea {
    font-size: 19px;
    color: var(--skin-black);
    background: var(--skin-white);
    border: 1px solid var(--skin-grey-10);
    border-radius: 8px;
    padding: 15px 16px;
    width: 100%;
}

.nf-form-content .nf-field input[type="submit"] {
	background: var(--skin-red);
    color: var(--skin-white);
	font-size: 1em;
    align-items: center;
    justify-content: center;
    line-height: 1.3em;
    padding: 14px 28px;
    border-radius: 100px;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nf-form-content .nf-field textarea { height: 130px; resize: vertical; font-family: var(--font-body); }
.nf-form-content .nf-field .listradio-wrap { display: flex; flex-direction: column; gap: 0px;font-size: var(--font-size); color: var(--skin-black); cursor: pointer; }
.nf-form-content .nf-field .listradio-wrap input[type="radio"] {
    appearance: none;
    width: 14px!important;
	height: 14px;
    border-radius: 50%;
    border: 1px solid var(--skin-red);
    background: var(--skin-white);
    margin:  4px 0 0;
    flex-shrink: 0;
}
.nf-form-content .nf-field .listradio-wrap input[type="radio"]:checked {
    background: var(--skin-red);
    box-shadow: inset 0 0 0 3px var(--skin-white);
}

.field-wrap>div input[type=checkbox] {
	width: 24px!important;
	height: 24px;
}

.nf-form-content .nf-field .list-radio-wrap ul {
	display: flex; 
	flex-wrap: wrap;
}

.rad-alt .nf-field .list-radio-wrap ul {
	margin-top: 15px !important;
}

.nf-form-content .list-radio-wrap .nf-field-element li {
    width: auto !important;
    flex: 0 0 auto;
}

.nf-form-content .list-checkbox-wrap .nf-field-element li, 
.nf-form-content .list-image-wrap .nf-field-element li, 
.nf-form-content .list-radio-wrap .nf-field-element li {
	margin-right: 25px!important;
}

.nf-form-content .list-checkbox-wrap .nf-field-element li input, 
.nf-form-content .list-image-wrap .nf-field-element li input, 
.nf-form-content .list-radio-wrap .nf-field-element li input {
	margin-top:0.5em;
}

.nf-form-content .single-cb.label-right .nf-field-label {
	padding-left: 30px;
	align-items: flex-start;
}

.nf-form-content .single-cb.label-right .nf-field-description {
	margin-right: 0;	
}

.nf-form-content .single-cb.label-right .nf-field-description a {
	text-decoration: underline;
}

.nf-form-content .single-cb.label-right .nf-field-description a:hover {
	text-decoration: none;
}

.nf-form-content {
	margin-top: 40px;
}

.nf-form-fields-required {
	font-size: var(--font-size);
}

.nf-form-content  nf-fields-wrap nf-field:has(.listradio-container),
.nf-form-content  nf-fields-wrap nf-field:has(.listselect-container) {
	grid-column: 1 / -1;
}


.nf-form-content  nf-fields-wrap {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 24px;
	align-items: start;
}


.nf-form-content nf-fields-wrap > nf-field:has(.col-12),
.nf-form-content nf-fields-wrap > nf-field:has(.one-col) {
	grid-column: span 12;
}

.nf-form-content nf-fields-wrap > nf-field:has(.col-6),
.nf-form-content nf-fields-wrap > nf-field:has(.two-col) {
	grid-column: span 6;
}

.nf-form-content nf-fields-wrap > nf-field:has(.col-4),
.nf-form-content nf-fields-wrap > nf-field:has(.three-col) {
	grid-column: span 4;
}

.nf-form-content nf-fields-wrap > nf-field:has(.col-3),
.nf-form-content nf-fields-wrap > nf-field:has(.four-col) {
	grid-column: span 3;
}

/* CAPTCHA and submit below both columns */
/* 
.nf-form-content nf-fields-wrap > nf-field:has(.recaptcha-container),
.nf-form-content nf-fields-wrap > nf-field:has(.submit-container) {
	grid-column: 1 / -1;
}

.nf-form-content nf-fields-wrap > nf-field:has(.recaptcha-container) {
	grid-row: 7;
	justify-self: center;
	width: auto;
}

.nf-form-content nf-fields-wrap > nf-field:has(.submit-container) {
	grid-row: 8;
	justify-self: center;
	width: min(420px, 100%);
}
*/



/* Prevent field overflow */
nf-fields-wrap > nf-field,
.nf-field-container,
.field-wrap,
.nf-field-element,
input,
select,
textarea {
	min-width: 0;
}

.nf-field-container,
.field-wrap,
.nf-field-element,
input:not([type="radio"]):not([type="checkbox"]),
select,
textarea {
	width: 100%;
}

/* Footer Quote Form */
.form-container {
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0) 100%);
	position: relative;
}

.form-container:after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	background-image: url('/wp-content/themes/h2-conveyancing/assets/img/bg_form_v12.png'); 
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center 380px;
	z-index: 0;
}


.quote-form-bg-wrap {	
	background-color: transparent;
}

.quote-form-alt {
	padding-top: 100px;
	padding-bottom: 120px;
	text-align: left;
}

.quote-form-alt h2 {
	text-align: left;
}

.quote-form-section { position: relative; padding-top: 60px; z-index: 10;}
.quote-form-bg-wrap { position: relative; padding: 60px 0 140px; overflow: hidden; }
.quote-form-bg-wrap .bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.quote-form-bg-wrap .skin-inner { position: relative; z-index: 1; }

.quote-form-card {
    background: var(--skin-white);
    border-radius: 12px;
    padding: 80px;
    margin: 60px auto 0;
	
}
.quote-form-heading { margin-bottom: 56px; }
.quote-form-card form { display: flex; flex-direction: column; gap: 48px; align-items: center; }
.quote-form-card form > * { width: 100%; max-width: 1200px; }
.quote-form-fields { display: flex; flex-direction: column; gap: 24px; }
.quote-form-narrow { max-width: 514px !important; }
.quote-form-price-prefix { position: relative; }


.quote-form-section .nf-form-content .nf-field textarea,
.quote-form-card .nf-form-content .nf-field textarea {
	height: 54px;	
}

@media (min-width: 1400px) {
	.quote-form-card {
		max-width: 1200px;
	}
}

@media (max-width: 1440px) {
	.form-container:after {
		background-size: 150%;
		background-position: center bottom;
	}
}


/* Tablet */
@media (max-width: 1024px) {
	nf-fields-wrap > nf-field:has(.col-4),
	nf-fields-wrap > nf-field:has(.col-3) {
		grid-column: span 6;
	}
	
	.form-container:after {
		background-size: 180%;
	}
	
	.quote-form-bg-wrap {
		padding-top: 0px;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.nf-form-content nf-fields-wrap {
		display: flex;
		flex-direction: column;
		gap: 20px;
	}

	.nf-form-content nf-fields-wrap > nf-field {
		width: 100%;
	}

	.nf-form-content nf-fields-wrap > nf-field:has(.recaptcha-container) {
		align-self: flex-start;
	}

	.nf-form-content nf-fields-wrap > nf-field:has(.submit-container) {
		align-self: stretch;
		width: 100%;
	}
	
	.quote-form-bg-wrap {
		padding: 0 0 40px; 
	}
    .quote-form-card { 
		margin-top: 0;
		padding: 40px 24px; 
	}
}
