/* VitaSmile: contact forms, 26 November 2026. Scoped to the selected forms. */
form.vs-contact-form {
  --vs-form-accent: var(--theme-base-color, #79a9cf);
  --vs-form-text: #30383e;
  --vs-form-muted: #5c6871;
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--vs-form-text);
}
.vs-contact-form .form-body__fields { row-gap: 0; }
.vs-contact-form .vs-field {
  position: relative;
  margin: 0 0 20px;
}
.vs-contact-form .vs-field > label:not(.error) {
  position: absolute;
  z-index: 2;
  top: 19px;
  left: 17px;
  max-width: calc(100% - 34px);
  margin: 0;
  padding: 0 4px;
  color: var(--vs-form-muted);
  background: #fff;
  font-size: 15px;
  line-height: 22px;
  pointer-events: none;
  transform-origin: left center;
  transition: top 180ms cubic-bezier(.16,1,.3,1), font-size 180ms cubic-bezier(.16,1,.3,1), color 180ms ease;
}
.vs-contact-form .vs-field:focus-within > label:not(.error),
.vs-contact-form .vs-field.vs-has-value > label:not(.error),
.vs-contact-form .vs-field.vs-select > label:not(.error),
.vs-contact-form .vs-field:has(input:-webkit-autofill) > label:not(.error) {
  top: 0;
  transform: translateY(-50%);
  line-height: 16px;
  font-size: 12px;
  color: var(--vs-form-muted);
}
.vs-contact-form .vs-field:focus-within > label:not(.error) { color: #345d79; }
.vs-contact-form .vs-field .form-control,
.vs-contact-form .vs-field select {
  box-sizing: border-box;
  width: 100%;
  min-height: 60px;
  height: 60px;
  padding: 17px 20px;
  border: 1px solid #ccd5dc;
  border-radius: 12px;
  background-color: #fff;
  color: var(--vs-form-text);
  font: 400 16px/24px "Open Sans", Arial, sans-serif;
  caret-color: #345d79;
  box-shadow: none;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.vs-contact-form .vs-field textarea.form-control {
  min-height: 96px;
  height: 96px;
  padding-top: 24px;
  resize: vertical;
  overflow: auto;
}
.vs-contact-form .vs-field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-left: 20px;
  padding-right: 48px;
  background-color: #fff;
  background-image: none;
  cursor: pointer;
}
.vs-contact-form .vs-field .form-control::placeholder { color: transparent; }
.vs-contact-form .vs-field .form-control:focus,
.vs-contact-form .vs-field select:focus {
  outline: 2px solid var(--vs-form-accent);
  outline-offset: 2px;
  border-color: var(--vs-form-accent);
  background-color: #fff;
  box-shadow: 0 5px 16px rgb(36 63 83 / 8%);
}
.vs-contact-form .vs-field .form-control.error,
.vs-contact-form .vs-field .input.error .form-control { border-color: #b53535; }
.vs-contact-form .vs-field label.error {
  position: static;
  display: block;
  padding: 5px 0 0;
  margin: 0;
  white-space: normal;
  color: #b53535 !important;
  font-size: 12px;
  line-height: 18px;
}
.vs-contact-form .vs-field-hint {
  display: block;
  margin-top: 7px;
  color: var(--vs-form-muted);
  font-size: 12px;
  line-height: 18px;
}
.vs-contact-form .vs-field ::selection { background: #d9e9f5; color: #243c4e; }
.vs-contact-form .licence_block { margin-top: 0; margin-bottom: 20px; padding-bottom: 0; }
.vs-contact-form .form-checkbox__label { color: #515d66; font-size: 13px; line-height: 20px; }
.vs-contact-form .form-checkbox__label a { text-underline-offset: 3px; }
.vs-contact-form .form-checkbox__input:focus-visible + label .form-checkbox__box { outline: 2px solid var(--vs-form-accent); outline-offset: 3px; }
.vs-contact-form .btn[type="submit"] {
  background-color: color-mix(in srgb, var(--vs-form-accent) 55%, #20262b);
  border-color: color-mix(in srgb, var(--vs-form-accent) 55%, #20262b);
  color: #fff;
  min-height: 52px;
  padding: 14px 27px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms cubic-bezier(.16,1,.3,1);
}
.vs-contact-form .btn[type="submit"]:focus-visible { outline: 2px solid #345d79; outline-offset: 4px; }
.vs-contact-form .btn[type="submit"]:active { transform: translateY(0); box-shadow: none; }
.vs-contact-form .btn[type="submit"]:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.jqmWindow:has(form.vs-contact-form) { border-radius: 18px; overflow: hidden; }
.jqmWindow:has(form.vs-contact-form) > .scrollbar { max-height: calc(100dvh - 32px); overflow-y: auto; scrollbar-color: #bbcbd7 #f4f7f9; scrollbar-width: thin; }
.jqmWindow:has(form.vs-contact-form) .form.popup .form-header { padding: 32px 40px 25px; }
.jqmWindow:has(form.vs-contact-form) .form.popup .form-body { padding: 0 40px; }
.jqmWindow:has(form.vs-contact-form) .form.popup .form-footer { padding: 0 40px 32px; }
.jqmWindow:has(form.vs-contact-form) .top-close { border-radius: 50%; transition: background-color 180ms ease; }
@media (hover: hover) {
  .vs-contact-form .vs-field:hover .form-control,
  .vs-contact-form .vs-field:hover select { border-color: var(--vs-form-accent); background-color: #fcfdfe; }
  .vs-contact-form .btn[type="submit"]:hover:not(:disabled) { background-color: color-mix(in srgb, var(--vs-form-accent) 43%, #20262b); border-color: color-mix(in srgb, var(--vs-form-accent) 43%, #20262b); transform: translateY(-2px); box-shadow: 0 6px 16px rgb(36 63 83 / 18%); }
  .jqmWindow:has(form.vs-contact-form) .top-close:hover { background-color: #edf3f7; }
}
@media (max-width: 600px) {
  .jqmWindow:has(form.vs-contact-form) { width: calc(100% - 24px) !important; max-width: 560px; left: 12px !important; margin-left: 0 !important; border-radius: 16px; }
  .jqmWindow:has(form.vs-contact-form) .form.popup .form-header { padding: 26px 24px 23px; }
  .jqmWindow:has(form.vs-contact-form) .form.popup .form-body { padding: 0 24px; }
  .jqmWindow:has(form.vs-contact-form) .form.popup .form-footer { padding: 0 24px 26px; }
  .jqmWindow:has(form.vs-contact-form) .form-header .title { padding-right: 12px; font-size: 23px; line-height: 30px; }
  .vs-contact-form .vs-field { margin-bottom: 19px; }
  .vs-contact-form .vs-field > label:not(.error) { font-size: 14px; }
  .vs-contact-form .vs-field.vs-select > label:not(.error),
  .vs-contact-form .vs-field:focus-within > label:not(.error),
  .vs-contact-form .vs-field.vs-has-value > label:not(.error) { font-size: 12px; }
  .vs-contact-form .btn[type="submit"] { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .vs-contact-form *, .jqmWindow:has(form.vs-contact-form) .top-close { transition: none !important; }
}

@media (min-width: 601px) and (max-height: 780px) {
  .jqmWindow:has(form.vs-contact-form) .form.popup .form-header { padding: 26px 40px 18px; }
  .jqmWindow:has(form.vs-contact-form) .form.popup .form_desc { margin-top: 12px; }
  .jqmWindow:has(form.vs-contact-form) .form.popup .form-footer { padding-bottom: 26px; }
  .jqmWindow .vs-contact-form .vs-field { margin-bottom: 18px; }
  .jqmWindow .vs-contact-form .vs-field textarea.form-control { min-height: 88px; height: 88px; }
}

.vs-contact-form .vs-field .input { display: flex; flex-direction: column; }
.vs-contact-form .vs-field .input > label.error { order: 2; }
.vs-contact-form .licence_block label.error { position: static; display: block; margin: 0 0 6px; padding: 0; text-align: left; white-space: normal; font-size: 12px; }

@media (min-width: 601px) {
  .vs-contact-form.vs-form-extended .form-body__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs-contact-form.vs-form-extended .form-body__fields > div { width: 100%; min-width: 0; }
  .vs-contact-form.vs-form-extended .form-body__fields > .vs-field-wide { grid-column: 1 / -1; }
}

.vs-contact-form .vs-field.vs-label-fixed > label:not(.error) { top: 0; transform: translateY(-50%); line-height: 16px; font-size: 12px; }
.vs-contact-form.vs-form-extended .form-body__fields::before,
.vs-contact-form.vs-form-extended .form-body__fields::after { content: none; display: none; }

.vs-contact-form .vs-select::after {
  content: "";
  display: block;
  position: absolute;
  top: 25px;
  right: 23px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--vs-form-muted);
  border-bottom: 1.5px solid var(--vs-form-muted);
  transform: rotate(45deg);
  pointer-events: none;
  z-index: 1;
}

/* The callback calendar is placed outside the scrolling form. */
.vs-contact-form .vs-callback-time > .input > input { padding-right: 46px; cursor: pointer; }
.vs-callback-calendar-icon { position: absolute; top: 21px; right: 20px; width: 18px; height: 18px; pointer-events: none; color: var(--vs-form-muted); }
.vs-callback-picker {
  --vs-picker-accent: var(--theme-base-color, #63a9db);
  position: fixed; z-index: 4100; box-sizing: border-box;
  width: 340px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow-y: auto;
  padding: 16px; border: 1px solid #d4dde3; border-radius: 16px;
  background: #fff; color: #30383e; box-shadow: 0 12px 36px rgb(30 48 60 / 20%);
  font: 400 14px/1.5 "Open Sans", Arial, sans-serif;
  scrollbar-color: #bbcbd7 #f4f7f9; scrollbar-width: thin;
}
.vs-callback-picker[hidden] { display: none; }
.vs-callback-picker button { font: inherit; cursor: pointer; color: inherit; background: #fff; border: 0; border-radius: 8px; transition: background-color 160ms ease, color 160ms ease; }
.vs-callback-picker button:disabled { opacity: .35; cursor: default; }
.vs-callback-picker button:focus-visible, .vs-callback-picker select:focus-visible { outline: 2px solid var(--vs-picker-accent); outline-offset: 2px; }
.vs-picker-head { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; margin-bottom: 8px; gap: 8px; }
.vs-picker-head button { display: grid; place-items: center; width: 36px; height: 36px; }
.vs-month-title { text-align: center; text-transform: capitalize; font-weight: 600; }
.vs-weekdays, .vs-calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.vs-weekdays { margin-bottom: 3px; color: #5c6871; text-align: center; font-size: 12px; line-height: 22px; }
.vs-calendar-days button { min-width: 0; min-height: 34px; padding: 4px 0; }
.vs-calendar-days button[aria-current="date"] { border: 1px solid var(--vs-picker-accent); }
.vs-calendar-days button[aria-pressed="true"] { background: color-mix(in srgb, var(--vs-picker-accent) 55%, #20262b); color: #fff; }
.vs-picker-timebox { margin-top: 14px; }
.vs-callback-picker .vs-picker-timebox > label { display: block; margin: 0 0 6px; font-size: 12px; line-height: 18px; color: #5c6871; }
.vs-picker-select { position: relative; }
.vs-callback-picker .vs-picker-select select { -webkit-appearance: none; appearance: none; display: block; box-sizing: border-box; width: 100%; height: 44px; padding: 9px 38px 9px 14px; background: #fff; border: 1px solid #ccd5dc; border-radius: 10px; color: #30383e; font: 400 16px/24px "Open Sans", Arial, sans-serif; cursor: pointer; }
.vs-picker-select::after { content: ""; position: absolute; top: 17px; right: 16px; width: 7px; height: 7px; border-right: 1.5px solid #5c6871; border-bottom: 1.5px solid #5c6871; transform: rotate(45deg); pointer-events: none; }
.vs-picker-note { margin: 8px 0 0; color: #5c6871; font-size: 11px; line-height: 17px; }
.vs-picker-status { margin: 8px 0 0; color: #9c3030; font-size: 12px; line-height: 18px; }
.vs-picker-status:empty { display: none; }
.vs-picker-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }
.vs-callback-picker .vs-picker-actions button { min-height: 44px; padding: 9px 12px; font-size: 12px; }
.vs-callback-picker .vs-picker-fast { background: #edf3f7; }
.vs-callback-picker .vs-picker-apply { background: color-mix(in srgb, var(--vs-picker-accent) 55%, #20262b); color: #fff; }
@media (hover: hover) {
  .vs-callback-picker button:hover:not(:disabled):not([aria-pressed="true"]):not(.vs-picker-apply) { background: #eaf1f6; }
  .vs-callback-picker .vs-picker-apply:hover:not(:disabled) { background: color-mix(in srgb, var(--vs-picker-accent) 43%, #20262b); }
}
@media (prefers-reduced-motion: reduce) { .vs-callback-picker * { transition: none !important; } }

/* Keep the chat state intact while contact forms or their calendar are in use. */
body:has(#mobilemenu.show, .mobilephones__menu-dropdown.show, [data-vs-booking-open], .jqmWindow.show form, .jqmWindow.show .form, .vs-callback-picker:not([hidden]), form.vs-contact-form:focus-within) > jdiv,
body:has(#mobilemenu.show, .mobilephones__menu-dropdown.show, [data-vs-booking-open], .jqmWindow.show form, .jqmWindow.show .form, .vs-callback-picker:not([hidden]), form.vs-contact-form:focus-within) #jivo-iframe-container,
body:has(#mobilemenu.show, .mobilephones__menu-dropdown.show, [data-vs-booking-open], .jqmWindow.show form, .jqmWindow.show .form, .vs-callback-picker:not([hidden]), form.vs-contact-form:focus-within) #jivo_container {
  display: none !important;
}

/* Inline forms also need a clear viewport before the visitor focuses a field. */
body.vs-contact-inline-visible > jdiv,
body.vs-contact-inline-visible #jivo-iframe-container,
body.vs-contact-inline-visible #jivo_container,
body.vs-contact-inline-visible #cookie_note,
body:has(.jqmWindow.show form.vs-contact-form, [data-vs-booking-open]) #cookie_note {
  display: none !important;
}

/* SmartCaptcha follows the available field width on narrow phones. */
.vs-contact-form .captcha-row .captcha_image { float: none; width: 100%; overflow: hidden; }
.vs-contact-form .captcha-row .smart-captcha { width: 300px; min-width: 300px; max-width: none; transform-origin: left top; }

/* Keep the medical notice in page flow while the inline form is visible. */
body.vs-contact-inline-visible .warning-banner { position: static; }
