/* StabiAlert: Contact Form 7 forms, tabs and contact details (Contact and Offerte pages).
   The forms are Contact Form 7 forms whose templates use the Quadron form classes (form-default, form-group, placeholder-label ...).
   Ported from the Quadron theme + CrackR child theme and checked against the live pages at 1440, 1024, 790 and 375 px. */

/* ---- Bootstrap-style grid used by the form templates ---- */
.sa-q .wpcf7 .row { display: flex; flex-flow: row wrap; margin: 0 -15px; }
.sa-q .wpcf7 [class*="col-"] { position: relative; width: 100%; padding: 0 15px; }
.sa-q .wpcf7 .d-none { display: none !important; }
.sa-q .wpcf7 .col-12 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 768px) { .sa-q .wpcf7 .col-md-4 { flex: 0 0 33.33333%; max-width: 33.33333%; } }
@media (min-width: 791px) {
	.sa-q .wpcf7 .d-md-none { display: none !important; }
	.sa-q .wpcf7 .d-md-block { display: block !important; }
}
/* the contact form (CrackR child theme) stays one column up to 1024px, then 5/7 columns, and 4/8 columns from 1026px */
@media (min-width: 1025px) {
	.sa-q .wpcf7 .col-md-5 { flex: 0 0 41.66667%; max-width: 41.66667%; }
	.sa-q .wpcf7 .col-md-7 { flex: 0 0 58.33333%; max-width: 58.33333%; }
}
@media (min-width: 1026px) {
	.sa-q .wpcf7 .col-lg-4 { flex: 0 0 33.33333%; max-width: 33.33333%; }
	.sa-q .wpcf7 .col-lg-8 { flex: 0 0 66.66667%; max-width: 66.66667%; }
	.sa-q .wpcf7 .d-lg-none { display: none !important; }
	.sa-q .wpcf7 .d-lg-block { display: block !important; }
}
@media (min-width: 1230px) { .sa-q .wpcf7 .d-xl-none { display: none !important; } .sa-q .wpcf7 .d-xl-block { display: block !important; } }
/* the "mobile" notes stay hidden below 1025px */
@media (max-width: 1024px) { .sa-q .wpcf7 .d-lg-none { display: none !important; } }

/* ---- Contact Form 7 core ---- */
.sa-q .wpcf7 .hidden-fields-container { display: none; }
.sa-q .wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); }
.sa-q .wpcf7 form { margin: 0; padding: 0; border: 0; }
.sa-q .wpcf7 .wpcf7-form-control-wrap { position: relative; }
.sa-q .wpcf7 .wpcf7-not-valid { border-color: #f00 !important; }
.sa-q .wpcf7 span.wpcf7-not-valid-tip { display: none; }
.sa-q .wpcf7 form .wpcf7-response-output { margin: 2em 0 1em; padding: 1.2em 1em; border: 2px solid #00a0d2; border-radius: 3px; }
.sa-q .wpcf7 form.init .wpcf7-response-output, .sa-q .wpcf7 form.resetting .wpcf7-response-output, .sa-q .wpcf7 form.submitting .wpcf7-response-output { display: none; }
.sa-q .wpcf7 form.sent .wpcf7-response-output { border-color: #46b450; background: rgba(70, 180, 80, .1); color: #46b450; }
.sa-q .wpcf7 form.failed .wpcf7-response-output, .sa-q .wpcf7 form.aborted .wpcf7-response-output { border-color: #dc3232; background: rgba(220, 50, 50, .1); color: #dc3232; }
.sa-q .wpcf7 form.spam .wpcf7-response-output { border-color: #f56e28; background: rgba(245, 110, 40, .1); color: #f56e28; }
.sa-q .wpcf7 form.invalid .wpcf7-response-output, .sa-q .wpcf7 form.unaccepted .wpcf7-response-output { border-color: #ffb900; background: rgba(255, 185, 0, .1); color: #ffb900; }
.sa-q .wpcf7 .wpcf7-spinner { visibility: hidden; display: inline-block; position: relative; top: 23px; width: 24px; height: 24px; margin: 0 24px; padding: 0; border: 0; border-radius: 100%; background-color: #23282d; opacity: .75; }
.sa-q .wpcf7 form.submitting .wpcf7-spinner { visibility: visible; }
.sa-q .wpcf7 .wpcf7-spinner::before { content: ''; position: absolute; top: 4px; left: 4px; width: 6px; height: 6px; border: 0; border-radius: 100%; background-color: #fbfbfc; transform-origin: 8px 8px; animation: sa-spin 1s linear infinite; }
@keyframes sa-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.sa-q .wpcf7 .wpcf7-submit:disabled { cursor: not-allowed; }
.sa-q .wpcf7 .wpcf7-list-item { display: inline-block; margin: 0 0 0 1em; }
.sa-q .wpcf7 .wpcf7-list-item-label::before, .sa-q .wpcf7 .wpcf7-list-item-label::after { content: ' '; white-space: pre; }

/* ---- Quadron "form-default": 65px fields with a label that floats up on focus ---- */
.sa-q .form-default br { display: none; }
.sa-q .form-default p { margin: 10px 0 15px; }
.sa-q .form-default p:empty { display: none; }
.sa-q .form-default .form-group { position: relative; margin: 0 0 16px; }
.sa-q .form-default:not(.woocommerce-checkout) .form-group:not(:first-child) { margin-top: 20px; }
.sa-q .form-default .form-control { position: relative; z-index: 1; display: inline-block; width: 100%; padding: 2px 12px 3px 24px; border: 1px solid #d5d5d5; border-radius: 3px; background: #fff; box-shadow: none; outline: none; color: #000; font: 400 17px/25px 'Roboto', sans-serif; transition: all .2s linear; }
.sa-q .form-default .form-control:not(textarea) { height: 65px; }
.sa-q .form-default textarea.form-control { padding-top: 23px !important; resize: vertical; }
.sa-q .form-default .form-control:focus { border-color: var(--sa-blue); background: #fff; }
.sa-q .form-default .form-group .placeholder-label { position: absolute; top: 23px; left: 0; width: 100%; z-index: 2; display: block; margin: 0 0 8px; padding: 0 0 0 26px; color: #898989; font-size: 17px; font-weight: 500; line-height: 20.4px; pointer-events: none; transition: transform 150ms ease-out, font-size 150ms ease-out; }
.sa-q .form-default .form-group.focused .placeholder-label { padding-left: 24px; font-size: 12px; transform: translateY(-92%); }
.sa-q .form-default .form-group.focused .form-control { padding-top: 19px; }
.sa-q .form-default .form-group.focused textarea.form-control { padding-top: 23px !important; }
.sa-q .form-default .notes { margin: 0; font-size: 15px; font-style: italic; line-height: 20.4px; letter-spacing: -.02em; }
.sa-q .form-default .notes p { letter-spacing: -.02em; }
.sa-q .form-default.contact-form textarea { height: 322px; }
.sa-q .section-form .form-default.contact-form textarea { height: 405px; }
.sa-q .form-default .mc4wp-checkbox { display: inline; }
.sa-q .form-default label { display: inline-block; width: 100%; max-width: 100%; margin-bottom: 8px; }
.sa-q .form-default input, .sa-q .form-default textarea { vertical-align: baseline; }
.sa-q .form-default .mc4wp-checkbox label { width: 100%; font-size: 15px; font-weight: 500; line-height: 27px; }
.sa-q .form-default .mc4wp-checkbox input { margin: 0 5px 0 0; color: #000; font-size: 15px; line-height: 27px; }
.sa-q .form-default input[type="checkbox"], .sa-q .form-default input[type="radio"] { box-sizing: border-box; width: 13px; height: 13px; padding: 0; }
.sa-q .form-default .form-submit { margin: 0; }
.sa-q .wpcf7 .btn { display: inline-block; width: auto; margin-top: 30px; padding: 15px 30px; border: 2px solid var(--sa-blue); border-radius: 30px; background: var(--sa-blue); color: #fff; font: 700 14px/16.8px 'Roboto', sans-serif; letter-spacing: .03em; text-align: center; cursor: pointer; transition: all .2s linear; -webkit-appearance: none; appearance: none; }
.sa-q .wpcf7 .btn:hover, .sa-q .wpcf7 .btn:focus-visible { background: #fff; color: var(--sa-blue); }
@media (min-width: 791px) { .sa-q .form-default.contact-form .d-md-none.d-lg-none.d-xl-none + .form-group { margin-top: 0; } }

/* ---- Offerte: country list in a grey panel ---- */
.sa-q .wpcf7 .quotation-label { display: inline-block; margin: 0 0 10px; font-size: 17px; font-weight: 500; color: #898989; }
.sa-q .wpcf7 .quotation-label small { font-size: 80%; font-weight: 400; }
.sa-q .wpcf7 .countries-column p { margin: 0; }
.sa-q .wpcf7 .countries-column { margin-top: 10px; margin-bottom: 10px; }
.sa-q .wpcf7 .countries-column > .form-group { padding: 20px; border: 1px solid #d5d5d5; border-radius: 3px; background-color: var(--sa-grey-bg); }
.sa-q .wpcf7 .countries-column .form-group { margin-bottom: 0; }
.sa-q .wpcf7 .countries-grid .countries-radio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.sa-q .wpcf7 .countries-grid label { margin-bottom: 3px; font-size: .9em; font-weight: 500; }
.sa-q .wpcf7 .countries-grid input[type="radio"] { margin: 0; color: #000; font-size: inherit; line-height: inherit; }
.sa-q .wpcf7 .countries-grid .wpcf7-list-item { margin: 0; }
.sa-q .wpcf7 .countries-grid .wpcf7-list-item-label::before { content: none; }
.sa-q .wpcf7 .cf-turnstile { margin: 0; }

/* ---- tabs (Elementor "tabs" widget): titles on top from 768px, an accordion below ---- */
.sa-q .sa-tabs__nav { display: none; }
.sa-q .sa-tabs__title { box-sizing: border-box; display: block; width: 100%; margin: 0; padding: 10px 34px; border: .8px solid #d5d8dc; border-bottom: 0; background: none; color: var(--sa-orange); font: 500 17px/30.6px 'Roboto', sans-serif; text-align: left; cursor: pointer; }
.sa-q .sa-tabs__title.is-active { color: #898989; }
.sa-q .sa-tabs__panel { display: none; box-sizing: border-box; padding: 10px; border: .8px solid #d5d8dc; border-bottom: 0; }
.sa-q .sa-tabs__panel.is-active { display: block; }
.sa-q .sa-tabs__body { margin: 0; border-bottom: .8px solid #d5d8dc; }
@media (min-width: 768px) {
	.sa-q .sa-tabs__nav { display: flex; }
	.sa-q .sa-tabs__body > .sa-tabs__title { display: none; }
	.sa-q .sa-tabs__title { position: relative; z-index: 1; width: auto; height: 58.6px; margin-bottom: -.8px; padding: 20px 25px; border: .8px solid transparent; line-height: 17px; }
	.sa-q .sa-tabs__nav .sa-tabs__title.is-active { border-color: #d5d8dc; border-bottom-color: transparent; background: #fff; }
	.sa-q .sa-tabs__body { border: .8px solid #d5d8dc; background: #fff; }   /* the top line runs under the inactive tabs; the active tab (white) covers it */
	.sa-q .sa-tabs__panel { padding: 20px; border: 0; }
}
.sa-q .sa-tabs { margin: 0; }

/* ---- contact details next to the map ---- */
.sa-q.sa-cinfo { display: flex; flex-direction: column; margin-top: 60px; background: var(--sa-grey-bg); }
.sa-q .sa-cinfo__map { display: flex; flex-direction: column; justify-content: center; }
.sa-q .sa-cinfo__map > div { display: flex; flex: 1 1 auto; flex-direction: column; }
/* block, not inline: no grey strip under the map (the live site has a 10px one, removed at Thom's request) */
.sa-q .sa-cinfo__map iframe { display: block; flex: 1 1 auto; width: 100%; height: 500px; min-height: 500px; border: 0; }   /* side by side, the map also fills a taller address column */
.sa-q .sa-cinfo__text { display: flex; flex-direction: column; justify-content: center; padding: 40px 0 40px 40px; }
.sa-q .contact-info__description { padding: 0 15px; }
.sa-q .contact-info__description address { margin: 0; padding: 0 0 14px; color: #898989; font-style: normal; }
.sa-q .contact-info__description address strong { display: block; padding-bottom: 11px; color: var(--sa-blue); font-size: 15px; line-height: 18px; }
.sa-q .contact-info__description address a { color: var(--sa-navy); }
@media (min-width: 576px) { .sa-q.sa-cinfo { margin-top: 148px; } }
@media (min-width: 576px) { .sa-q.sa-cinfo { flex-direction: row; } .sa-q.sa-cinfo > * { flex: 0 0 50%; max-width: 50%; } }
@media (max-width: 1024px) { .sa-q.sa-cinfo { margin-top: 90px; } }
@media (max-width: 791px) { .sa-q.sa-cinfo { margin-top: 60px; } }
@media (min-width: 1025px) { .sa-q .sa-cinfo__text { padding-left: 130px; } }

/* ---- custom select (jQuery nice-select of the Quadron theme, rebuilt without jQuery: see pages.js) ---- */
.sa-q .form-default .form-group .wrapper-select-for-title { position: relative; min-height: 65px; }
.sa-q .form-default .form-group .wrapper-select-for-title .placeholder-label { top: 15px; font-size: 12px; z-index: 3; }
.sa-q .form-default select.js-init-select { display: none; }
.sa-q .nice-select { position: relative; display: block; float: left; clear: both; box-sizing: border-box; width: 100%; height: 65px; padding: 32px 0 10px 24px; border: 1px solid #dbdbdb; border-radius: 3px; background-color: #fff; color: #898989; cursor: pointer; font: 400 17px/1.2 'Roboto', sans-serif; outline: none; text-align: left; white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent; transition: all .2s ease-in-out; }
.sa-q .nice-select:hover, .sa-q .nice-select:active, .sa-q .nice-select:focus, .sa-q .nice-select:focus-visible { border-color: #dbdbdb; }
.sa-q .nice-select::after { content: ''; position: absolute; right: 29px; top: 50%; display: block; width: 9px; height: 9px; margin-top: -6px; border-right: 2px solid var(--sa-blue); border-bottom: 2px solid var(--sa-blue); pointer-events: none; transform: rotate(45deg); transform-origin: 66% 66%; transition: all .15s ease-in-out; }
.sa-q .nice-select.open::after { transform: rotate(-135deg); }
.sa-q .nice-select .current { display: block; overflow: hidden; text-overflow: ellipsis; }
.sa-q .nice-select .list { position: absolute; top: 100%; left: -1px; z-index: 9; box-sizing: border-box; width: calc(100% + 2px); margin: 3px 0 0; padding: 15px 0; overflow: hidden; border: 1px solid #dbdbdb; border-radius: 3px; background: #fff; box-shadow: 0 0 13px rgba(0, 0, 0, 0); opacity: 0; pointer-events: none; transform: scale(.75) translateY(-21px); transform-origin: 50% 0; transition: all .2s cubic-bezier(.5, 0, 0, 1.25), opacity .15s ease-out; }
.sa-q .nice-select.open .list { opacity: 1; pointer-events: auto; transform: scale(1) translateY(0); }
.sa-q .nice-select .option { margin: 0; padding: 10px 15px 10px 24px; color: #898989; cursor: pointer; font-weight: 400; line-height: 1.5; list-style: none; outline: none; text-align: left; transition: all .2s; }
.sa-q .nice-select .option:hover, .sa-q .nice-select .option.focus, .sa-q .nice-select .option:focus-visible { background-color: #f2f2f6; color: #35365b; }
.sa-q .nice-select .option.selected { color: #35365b; }

@media (min-width: 576px) { .sa-q.sa-cinfo--en .sa-cinfo__text { padding-top: 26px; } .sa-q .sa-cinfo__text { padding-right: 15px; } }

/* ---- spam protection (OpenPorte / ALTCHA) ----
   The challenge starts by itself as soon as the form is used, so the tick is a status light and not a box to click:
   a round grey disc with a faint tick that fills with the button blue (white tick) once the visitor is verified.
   (Same idea as the form on funderingscan.nl.) */
.sa-q .wpcf7 altcha-widget {
	--altcha-max-width: 260px; --altcha-border-width: 1px; --altcha-border-radius: 3px;
	--altcha-color-border: #d5d5d5; --altcha-color-border-focus: var(--sa-blue); --altcha-color-text: var(--sa-text);
	--altcha-color-base: #fff; --altcha-color-footer-bg: var(--sa-grey-bg); --altcha-color-error-text: #dc3232;
}
.sa-q .wpcf7 .altcha-widget-wrap { margin: 0 0 15px; }
.sa-q .wpcf7 .altcha-main { line-height: 1; }
.sa-q .wpcf7 .altcha-label { display: block; width: auto; max-width: none; margin: 0; font-size: 15px; font-weight: 500; line-height: 1.2; cursor: default; }
.sa-q .wpcf7 .altcha:not([data-state="verified"]) .altcha-label { color: var(--sa-text); }
.sa-q .wpcf7 .altcha-checkbox input[type="checkbox"] { -webkit-appearance: none; appearance: none; box-sizing: border-box; display: grid; place-content: center; width: 24px; height: 24px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #e8eaec; cursor: default; transition: background-color .2s; }
.sa-q .wpcf7 .altcha-checkbox input[type="checkbox"]::before { content: ''; width: 14px; height: 14px; background: var(--sa-text); opacity: .5; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.sa-q .wpcf7 .altcha[data-state="verified"] .altcha-checkbox input[type="checkbox"] { background: var(--sa-blue); }
.sa-q .wpcf7 .altcha[data-state="verified"] .altcha-checkbox input[type="checkbox"]::before { background: #fff; opacity: 1; }

/* contact and dealer forms: spam check and button side by side in a row under both columns (wraps on narrow screens) */
.sa-q .form-default .form-submit--row { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 30px; margin: 15px 0 0; }
.sa-q .form-default .form-submit--row > p, .sa-q .form-default .form-submit--row .sa-antispam p { margin: 0; }
.sa-q .form-default .form-submit--row .altcha-widget-wrap { margin: 0; }
.sa-q .form-default .form-submit--row .btn { margin-top: 0; }
.sa-q .form-default .form-submit--row .wpcf7-spinner { top: 0; margin: 0 0 0 -15px; }

/* Contact and dealer forms with the columns side by side: the "* - Velden zijn vereist" line (left) and the newsletter
   checkbox (right) are the same size and stand on one line, 6px under the last field of their column. The textarea is as
   high as the four fields next to it (4 x 65px + 3 x 20px = 320px) and no longer has the line gap of an inline box under it. */
@media (min-width: 1025px) {
	.sa-q .form-default.contact-form .col-md-7 textarea { height: 320px; vertical-align: top; }
	.sa-q .form-default .col-md-7 .wpcf7-form-control-wrap { display: block; }
	.sa-q .form-default .col-md-5 > .form-group:nth-last-child(2), .sa-q .form-default .col-md-7 > .form-group:first-child { margin-bottom: 0; }
	.sa-q .form-default .col-md-5 > .form-group:nth-last-child(2) p, .sa-q .form-default .col-md-7 > .form-group:first-child p { margin-bottom: 0; }
	.sa-q .form-default .col-md-5 > .notes.d-md-block { margin: 6px 0 0; line-height: 27px; }
	.sa-q .form-default .col-md-5 > .notes.d-md-block p { margin: 0; }
	.sa-q .form-default .col-md-7 > .form-group:last-child { margin: 6px 0 0; }
	.sa-q .form-default .col-md-7 > .form-group:last-child p { margin: 0; line-height: 27px; }
	.sa-q .form-default .col-md-7 > .form-group:last-child label { margin-bottom: 0; }
}
