/* ==========================================================================
   Ninja Forms that replaced the Caldera Forms (November 2026)

   Every form created by the Caldera -> Ninja Forms migration has the wrapper
   class .ecn-form, and its fields carry the class names Caldera used:
     field container  .nf-field-container.form-group (+ the Caldera custom classes
                      e.g. contact-field, contact-check-box, field-qs, check-box-grp)
     text/select      .form-control
     submit button    .btn.btn-default
   The rules below are the theme's old ".caldera-grid ..." rules (stylesheet.css,
   header.php) re-targeted at .ecn-form, plus a reset of the Ninja Forms "light"
   styles, so the forms look the same as before in each place they appear:
     1. base               plain look (fees, blog posts, treatments)
     2. .default-page      content pages (DHP, wrinkle clinic, online consultation...)
     3. .infoer-wrapp      contact page (two columns)
     4. .sidber-wrapp      "Get in touch" sidebar (+ #pinkclass pages)
     5. .dialog-inner      "Ask the dentist" popup (legacy home page)
   Forms #4 (Referral) and #5 (Home) are not .ecn-form and keep their own styles.
   ========================================================================== */


/* ---------- 0. Ninja Forms structure and "light" theme reset ---------- */

.ecn-form .nf-form-title,
.ecn-form .nf-before-form-content { display: none; } /* Caldera showed no title and no "Fields marked with * are required" line */

.ecn-form.nf-form-cont,
.ecn-form .nf-form-wrap,
.ecn-form .nf-form-layout,
.ecn-form .nf-form-content,
.ecn-form .html-container .nf-field-element { font-size: inherit; color: inherit; line-height: inherit; font-family: inherit; }
.ecn-form .nf-form-content { padding: 0; margin: 0; max-width: none; }
.ecn-form .nf-form-content .nf-row,
.ecn-form .nf-form-content .nf-cell { margin: 0; padding: 0; }
.ecn-form .nf-field-container { margin: 0 0 15px; }
.ecn-form .nf-field-container.hidden-container,
.ecn-form .nf-field-container.html-container { margin-bottom: 0; }
.ecn-form .nf-field-container.html-container .nf-field-element { font-size: inherit; color: inherit; }
.ecn-form .html-container hr { height: 0; margin: 20px 0; border: 0; border-top: 1px solid #eee; background: none; box-sizing: content-box; }
.ecn-form .label-above .field-wrap,
.ecn-form .label-hidden .field-wrap { display: block; }
/* label spacing (!important: Ninja Forms forces 10px under every label below 800px wide, hidden ones included) */
.ecn-form .nf-form-content .nf-field-container.label-above .nf-field-label { margin: 0 0 5px !important; padding: 0; }
.ecn-form .nf-form-content .nf-field-container.label-hidden .nf-field-label,
.ecn-form .nf-form-content .nf-field-container.label-right .nf-field-label { margin: 0 !important; }
.ecn-form .nf-field-label label,
.ecn-form .nf-field-label .nf-label-span { display: inline-block; max-width: 100%; margin: 0; font-size: 16px; font-weight: 700; line-height: normal; color: inherit; }
.ecn-form .ninja-forms-req-symbol { color: #ee0000; }
.ecn-form .nf-field-description { margin: 5px 0 0; font-size: 14px; color: #737373; }
.ecn-form .nf-after-field .nf-error-msg { margin-top: 5px; font-size: 14px; }
.ecn-form .nf-after-form-content .nf-error-msg { font-size: 14px; }
.ecn-form .nf-field-element:after { display: none; } /* Ninja Forms' error icon */

/* Success message: same box Caldera showed after sending */
.ecn-form .nf-response-msg:not(:empty) { display: block; margin: 0 0 20px; padding: 15px; color: #3c763d; background-color: #dff0d8; border: 1px solid #d6e9c6; border-radius: 2px; font-size: 16px; }
.ecn-form .nf-response-msg p:last-child { margin-bottom: 0; }

/* ---------- 1. Base (Caldera's own Bootstrap look) ---------- */

.ecn-form .nf-field-element .form-control {
	display: block; width: 100%; height: 34px; margin: 0; padding: 6px 12px;
	font-family: inherit; font-size: 14px; line-height: 1.42857143; letter-spacing: normal; text-transform: none; color: #555;
	background: #fff none; border: 1px solid #ccc; border-radius: 2px;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
	-webkit-appearance: none; -moz-appearance: none; appearance: none; /* Caldera's selects had no arrow either */
}
.ecn-form .nf-field-element .form-control:focus { border-color: #66afe9; outline: 0; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6); }
.ecn-form .nf-field-element .form-control::placeholder { color: #999; opacity: 1; }
/* textarea height follows the Caldera "rows" setting (ecn-rows-N on the container) */
.ecn-form .ecn-rows-1 { --ecn-rows: 1; } .ecn-form .ecn-rows-2 { --ecn-rows: 2; } .ecn-form .ecn-rows-3 { --ecn-rows: 3; }
.ecn-form .ecn-rows-4 { --ecn-rows: 4; } .ecn-form .ecn-rows-5 { --ecn-rows: 5; } .ecn-form .ecn-rows-6 { --ecn-rows: 6; }
.ecn-form .ecn-rows-7 { --ecn-rows: 7; } .ecn-form .ecn-rows-8 { --ecn-rows: 8; }
.ecn-form .nf-field-element textarea.form-control { height: calc(var(--ecn-rows, 4) * 1.42857143em + 28px); padding: 20px 4px 6px 12px; resize: vertical; }
/* select: native control instead of the Ninja Forms arrow overlay */
.ecn-form .list-select-wrap .nf-field-element > div,
.ecn-form .listselect-wrap .nf-field-element > div { display: none; }
.ecn-form .nf-field-element select.form-control:not([multiple]) { height: 34px; padding-top: 6px; padding-bottom: 6px; line-height: 1.42857143; }
.default-page .ecn-form .nf-field-element select.form-control:not([multiple]),
.infoer-wrapp .infoer-row1 .infoer-bar1 .ecn-form .nf-field-element select.form-control:not([multiple]),
.sidber-wrapp .sidber-row1 .ecn-form .nf-field-element select.form-control:not([multiple]),
.dialog-inner .ecn-form .nf-field-element select.form-control:not([multiple]) { height: auto; padding-top: 0; padding-bottom: 0; }
.ecn-form .nf-error .nf-field-element .form-control { border-color: #a94442; }

/* single consent checkbox (label on the right) + checkbox / radio lists = Bootstrap .checkbox */
.ecn-form .checkbox-wrap { display: block; position: relative; margin: 10px 0; }
.ecn-form .checkbox-wrap .nf-field-element,
.ecn-form .label-right .checkbox-wrap .nf-field-element { position: absolute; left: 0; top: 0; width: auto; margin: 0; opacity: 1; }
.ecn-form .checkbox-wrap .nf-field-label .ninja-forms-req-symbol { display: none; } /* Caldera showed no * on the consent boxes */
.ecn-form .checkbox-wrap .nf-field-label { display: block; width: auto; margin: 0; padding: 0; }
.ecn-form .label-right .checkbox-wrap .nf-field-label { width: auto; padding: 0; }
.ecn-form .checkbox-wrap .nf-field-label label,
.ecn-form .listcheckbox-wrap .nf-field-element li label,
.ecn-form .listradio-wrap .nf-field-element li label { display: inline-block; position: static; min-height: 20px; margin: 0 !important; padding: 0 0 0 20px; font-size: 16px; font-weight: 400; line-height: 20px; cursor: pointer; float: none; width: auto; vertical-align: top; }
.ecn-form .checkbox-wrap .nf-field-label label:before,
.ecn-form .checkbox-wrap .nf-field-label label:after,
.ecn-form .listcheckbox-wrap .nf-field-element label:before,
.ecn-form .listcheckbox-wrap .nf-field-element label:after,
.ecn-form .listradio-wrap .nf-field-element label:before,
.ecn-form .listradio-wrap .nf-field-element label:after { display: none; content: none; }
.ecn-form .checkbox-wrap .nf-field-element input[type=checkbox],
.ecn-form .listcheckbox-wrap .nf-field-element li input[type=checkbox],
.ecn-form .listradio-wrap .nf-field-element li input[type=radio] { display: inline-block; position: absolute; left: 0; top: 0; float: none; width: 13px !important; height: 13px; margin: 4px 0 0; padding: 0; opacity: 1; -webkit-appearance: auto; appearance: auto; background: none; border: 0; box-shadow: none; cursor: pointer; }
.ecn-form .listcheckbox-wrap .nf-field-element ul,
.ecn-form .listradio-wrap .nf-field-element ul { margin: 0; padding: 0; list-style: none; }
/* Bootstrap spacing: 10px around the group, 5px between options */
.ecn-form .nf-form-content .listcheckbox-wrap .nf-field-element li,
.ecn-form .nf-form-content .listradio-wrap .nf-field-element li { position: relative; display: block; margin: 0 0 5px !important; padding: 0; line-height: 20px; text-indent: 0 !important; list-style: none; background: none; }
.ecn-form .nf-form-content .listcheckbox-wrap .nf-field-element li:first-child,
.ecn-form .nf-form-content .listradio-wrap .nf-field-element li:first-child { margin-top: 10px !important; }
.ecn-form .nf-form-content .listcheckbox-wrap .nf-field-element li:last-child,
.ecn-form .nf-form-content .listradio-wrap .nf-field-element li:last-child { margin-bottom: 10px !important; }
.ecn-form .nf-field-element li:before,
.ecn-form .nf-field-element li:after { display: none !important; content: none !important; } /* the theme's green list bullets */
.ecn-form .nf-form-content .nf-field-container.label-above .listcheckbox-wrap .nf-field-label,
.ecn-form .nf-form-content .nf-field-container.label-above .listradio-wrap .nf-field-label { margin-bottom: 0 !important; }

/* submit = .btn.btn-default */
.ecn-form .nf-field-element .btn {
	display: inline-block; width: auto; height: auto; margin: 0; padding: 6px 12px;
	font-family: inherit; font-size: 14px; font-weight: 400; line-height: 1.42857143; letter-spacing: normal; text-transform: none; text-align: center; white-space: nowrap;
	color: #333; background: #fff; border: 1px solid #ccc; border-radius: 2px; box-shadow: none; cursor: pointer; transition: none;
}
.ecn-form .nf-field-element .btn:hover,
.ecn-form .nf-field-element .btn:focus { color: #333; background: #e6e6e6; border-color: #adadad; }
.ecn-form .submit-container .field-wrap { display: block; }


/* ---------- 2. Content pages (.default-page) ---------- */

.default-page .ecn-form { font-family: 'Lato', sans-serif; }
.default-page .ecn-form h3 { margin-bottom: 35px; }
.default-page .ecn-form .nf-field-container { margin-bottom: 25px; }
.default-page .ecn-form .nf-field-container.html-container,
.default-page .ecn-form .nf-field-container.hidden-container { margin-bottom: 0; }
.default-page .ecn-form .nf-form-content .nf-field-container.label-above .nf-field-label { margin-bottom: 12px !important; }
.default-page .ecn-form .nf-field-element .form-control:focus { box-shadow: none; border-color: #dedfdf; }


/* ---------- 3. Contact page (.infoer-wrapp) + shared "rounded" field style ---------- */

.default-page .ecn-form .nf-field-element .form-control,
.infoer-wrapp .infoer-row1 .infoer-bar1 .ecn-form .nf-field-element .form-control {
	background: #fff; font-size: 12.77px; letter-spacing: 1.6px; text-transform: uppercase; border: 1px solid #dedfdf; border-radius: 10px;
	transition: all .25s ease-out 0s; display: inline-block; position: relative; height: auto; min-height: 49px; padding: 0 20px; color: #000; box-shadow: inherit; outline: 0; resize: vertical;
}
.default-page .ecn-form .nf-field-element textarea.form-control { height: calc(var(--ecn-rows, 4) * 1.42857143em + 22px); padding: 20px 20px 0; }
.default-page .ecn-form .nf-field-element select.form-control { padding-top: 0; padding-bottom: 0; }

.default-page .ecn-form .nf-field-element .btn-default,
.infoer-wrapp .infoer-row1 .infoer-bar1 .ecn-form .nf-field-container.contact-field-submit .btn {
	color: #fff; background-color: #b7cd2d; border-color: #b7cd2d; cursor: pointer; margin: 22px 0 0; padding: 15px 44px 15px 46px;
	text-align: center; font-size: 12.77px; letter-spacing: 1.6px; text-transform: uppercase; border: 1px solid; border-radius: 10px;
	transition: all .25s ease-out 0s; display: inline-block; position: relative; outline: 0; line-height: 1.42857143;
}
.default-page .ecn-form .nf-field-element .btn-default:hover,
.infoer-wrapp .infoer-row1 .infoer-bar1 .ecn-form .nf-field-container.contact-field-submit .btn:hover { color: #c1d82f; background-color: #fff; border-color: #b7cd2d; }
.default-page .ecn-form .nf-field-element .btn-default { margin-top: 5px; }

/* two columns: Caldera wrapped the fields in a flex row; Ninja Forms puts each field in its own .nf-row */
.infoer-wrapp .infoer-row1 .infoer-bar1 .ecn-form nf-rows-wrap { display: flex; flex-wrap: wrap; }
.infoer-wrapp .infoer-row1 .infoer-bar1 .ecn-form .nf-row { width: 100%; }
.infoer-wrapp .infoer-row1 .infoer-bar1 .ecn-form .nf-row:has(.contact-field) { width: 50%; }
.infoer-wrapp .infoer-row1 .infoer-bar1 .ecn-form .nf-field-container.contact-field { width: 100%; margin: 0 0 14px; padding: 0 8px; }
.infoer-wrapp .infoer-row1 .infoer-bar1 .ecn-form .nf-field-container.contact-field-textarea { width: 100%; margin: 3px 0 32px; padding: 0 8px; }
.infoer-wrapp .infoer-row1 .infoer-bar1 .ecn-form .nf-field-element textarea.form-control { height: auto; min-height: 131px; padding: 20px 20px 0; }
.infoer-wrapp .infoer-row1 .infoer-bar1 .ecn-form .nf-field-container.contact-check-box { margin-bottom: 0; padding: 0 8px; }
.infoer-wrapp .infoer-row1 .infoer-bar1 .ecn-form .nf-field-container.contact-field-submit { width: 100%; padding: 0 8px; }
.infoer-wrapp .infoer-row1 .infoer-bar1 .ecn-form .nf-error .nf-field-element .form-control { border: 1px dashed #b71c1c; }

/* green square checkboxes (images/checkbox-thumb1.jpg sprite) - contact page and sidebar */
.infoer-wrapp .infoer-row1 .infoer-bar1 .ecn-form .checkbox-wrap,
.infoer-wrapp .infoer-row1 .infoer-bar1 .ecn-form .listcheckbox-wrap .nf-field-element li { width: 100%; font-size: 13px; color: #000; line-height: 19px; margin: 0 0 11px !important; }
.infoer-wrapp .infoer-row1 .infoer-bar1 .ecn-form .checkbox-wrap .nf-field-element input[type=checkbox],
.infoer-wrapp .infoer-row1 .infoer-bar1 .ecn-form .listcheckbox-wrap .nf-field-element li input[type=checkbox],
.sidber-wrapp .sidber-row1 .ecn-form .checkbox-wrap .nf-field-element input[type=checkbox],
.sidber-wrapp .sidber-row1 .ecn-form .listcheckbox-wrap .nf-field-element li input[type=checkbox] {
	background-image: url(../images/checkbox-thumb1.jpg); -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; overflow: hidden;
	height: 12px; width: 12px !important; margin: 0 !important; padding: 0; border: 0; position: absolute; left: 0; top: 2px;
	-webkit-appearance: none; -moz-appearance: none; appearance: none; outline: none !important; cursor: pointer;
}
.infoer-wrapp .infoer-row1 .infoer-bar1 .ecn-form input[type=checkbox]:checked,
.sidber-wrapp .sidber-row1 .ecn-form input[type=checkbox]:checked { background-position: 0 -12px; }
.infoer-wrapp .infoer-row1 .infoer-bar1 .ecn-form .checkbox-wrap .nf-field-label label,
.infoer-wrapp .infoer-row1 .infoer-bar1 .ecn-form .listcheckbox-wrap .nf-field-element li label { padding-left: 30px; color: #000; font-size: 13px; line-height: 19px; min-height: 0; }
.infoer-wrapp .infoer-row1 .infoer-bar1 .ecn-form .checkbox-wrap label a,
.sidber-wrapp .sidber-row1 .ecn-form .checkbox-wrap label a { color: #c1d82e; text-decoration: none; }
.infoer-wrapp .infoer-row1 .infoer-bar1 .ecn-form .checkbox-wrap label a:hover,
.sidber-wrapp .sidber-row1 .ecn-form .checkbox-wrap label a:hover { text-decoration: underline; }


/* ---------- 4. "Get in touch" sidebar (.sidber-wrapp) ---------- */

.sidber-wrapp .sidber-row1 .ecn-form .nf-field-container { width: 100%; margin: 0 0 14px; }
.sidber-wrapp .sidber-row1 .ecn-form .nf-field-container.field-qs,
.sidber-wrapp .sidber-row1 .ecn-form .nf-field-container.check-box-grp,
.sidber-wrapp .sidber-row1 .ecn-form .nf-field-container.submi-grp,
.sidber-wrapp .sidber-row1 .ecn-form .nf-field-container.hidden-container { margin-bottom: 0; }
.sidber-wrapp .sidber-row1 .ecn-form .nf-field-element .form-control {
	width: 100%; height: auto; min-height: 49px; padding: 0 6%; background: #f7f8f8; border: 1px solid; border-radius: 6px;
	font-size: 12.77px; letter-spacing: 1.6px; text-transform: uppercase; transition: all .25s ease-out 0s; display: inline-block; position: relative;
}
.sidber-wrapp .sidber-row1 .ecn-form .nf-field-element .form-control::placeholder { color: #58585a; }
.sidber-wrapp .sidber-row1 .ecn-form .nf-field-element textarea.form-control { min-height: 131px; height: auto; margin: 0 0 20px; padding: 20px 6% 0; resize: vertical; }
.sidber-wrapp .sidber-row1 .ecn-form .nf-error .nf-field-element .form-control { border: 1px dashed #b71c1c; }
.sidber-wrapp .sidber-row1 .ecn-form .nf-field-element .btn-default {
	color: #fff; background-color: #b7cd2d; cursor: pointer; margin: 26px 0 0; padding: 15px 44px 15px 46px; font-size: 12.77px; letter-spacing: 1.6px;
	text-transform: uppercase; border: 1px solid transparent; border-radius: 10px; transition: all .25s ease-out 0s; outline: 0 !important; box-shadow: inherit; line-height: 1.42857143;
}
.sidber-wrapp .sidber-row1 .ecn-form .nf-field-element .btn-default:hover { color: #c1d82f; background-color: #fff; border-color: #b7cd2d; }
.sidber-wrapp .sidber-row1 .ecn-form .checkbox-wrap { margin-top: 0; }
.sidber-wrapp .sidber-row1 .ecn-form .checkbox-wrap .nf-field-element input[type=checkbox],
.sidber-wrapp .sidber-row1 .ecn-form .listcheckbox-wrap .nf-field-element li input[type=checkbox] { top: 6px; }
.sidber-wrapp .sidber-row1 .ecn-form .checkbox-wrap .nf-field-label label,
.sidber-wrapp .sidber-row1 .ecn-form .listcheckbox-wrap .nf-field-element li label { padding-left: 30px; margin: 0 0 10px !important; color: #000; font-size: 13px; line-height: 19px; }
.sidber-wrapp .sidber-row1 .ecn-form .checkbox-wrap,
.sidber-wrapp .sidber-row1 .ecn-form .nf-form-content .listcheckbox-wrap .nf-field-element li,
.sidber-wrapp .sidber-row1 .ecn-form .nf-form-content .listcheckbox-wrap .nf-field-element li:first-child,
.sidber-wrapp .sidber-row1 .ecn-form .nf-form-content .listcheckbox-wrap .nf-field-element li:last-child { margin: 0 0 12px !important; }

#pinkclass .sidber-wrapp .sidber-row1 .ecn-form .checkbox-wrap label a { color: #ee4097; }
#pinkclass .sidber-wrapp .sidber-row1 .ecn-form .nf-field-element .btn-default { background: #ee4097; border-color: #ee4097; }
#pinkclass .sidber-wrapp .sidber-row1 .ecn-form input[type=checkbox] { background-image: url(../images/checkbox-thumb1-pink.jpg) !important; }


/* ---------- 5. "Ask the dentist" popup (.dialog-inner, legacy home page) ---------- */

.dialog-inner .ecn-form nf-rows-wrap { display: flex; flex-wrap: wrap; }
.dialog-inner .ecn-form .nf-row { width: 100%; }
.dialog-inner .ecn-form .nf-row:has(.dialog-field) { width: 50%; }
.dialog-inner .ecn-form .nf-field-container { margin-bottom: 15px; width: 100%; }
.dialog-inner .ecn-form .nf-field-container.dialog-field { padding: 0 7.5px; }
.dialog-inner .ecn-form .nf-field-container.dialog-field-submit { text-align: center; margin-bottom: 0; }
.dialog-inner .ecn-form .nf-field-element .form-control { text-align: center; font-size: 12.77px; color: #4e5a5c; letter-spacing: 1.6px; text-transform: uppercase; background: none; border: 1px solid #535356; border-radius: 10px; height: auto; min-height: 45px; padding: 12px 1.9%; resize: vertical; box-shadow: none; }
.dialog-inner .ecn-form .nf-field-element textarea.form-control { padding: 13px 1.9%; }
.dialog-inner .ecn-form .nf-field-element .form-control::placeholder { color: #000; }
.dialog-inner .ecn-form .nf-field-element .btn { font-size: 12.77px; color: #fff; letter-spacing: 1.6px; text-transform: uppercase; background: #b7cd2d; border: 0; border-radius: 10px; padding: 14px 31px 13px; transition: all .25s ease-out 0s; }
.dialog-inner .ecn-form .nf-field-element .btn:hover { color: #b7cd2d; background: #fff; }
.dialog-inner .ecn-form a { color: #b7cd2d !important; }


/* ---------- responsive (same breakpoints as the old Caldera rules) ---------- */

@media screen and (max-width: 1240px) {
	.infoer-wrapp .infoer-row1 .infoer-bar1 .ecn-form .nf-field-element .form-control,
	.infoer-wrapp .infoer-row1 .infoer-bar1 .ecn-form .nf-field-container.contact-field-submit .btn,
	.sidber-wrapp .sidber-row1 .ecn-form .nf-field-element .form-control,
	.sidber-wrapp .sidber-row1 .ecn-form .nf-field-element .btn-default { font-size: 10.77px; letter-spacing: 1px; }
}
@media screen and (max-width: 767px) {
	.infoer-wrapp .infoer-row1 .infoer-bar1 .ecn-form .nf-row:has(.contact-field) { width: 100%; }
	.sidber-wrapp .sidber-row1 .ecn-form .nf-field-element .btn-default { margin-top: 0; }
	.dialog-inner .ecn-form .nf-row:has(.dialog-field) { width: 100%; }
}
@media screen and (max-width: 480px) {
	.sidber-wrapp .sidber-row1 .ecn-form .check-box-grp .checkbox-wrap .nf-field-element input[type=checkbox] { top: 3px; }
}
