/* Max Dock site additions on top of Wix's own layout CSS */

/* HTML embeds (dealer locator, brochure flipbooks) fill their Wix component box */
.md-embed { width: 100%; height: 100%; }
.md-embed iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Background video fades in once it plays */
wix-video video { transition: opacity .6s ease-out; }

/* Form status / thank-you */
.md-form-msg { font: inherit; margin-top: 12px; }
.md-form-msg[data-kind="error"] { color: #c62828; }
.md-hidden { display: none !important; }

/* Form field errors, styled like Wix Forms */
[data-hook^="field-error-"]:not(:empty) {
  color: #df3131; font-size: 14px; line-height: 20px;
  display: flex; align-items: flex-start; gap: 4px; margin-top: 4px;
}
[data-hook^="field-error-"]:not(:empty)::before {
  content: ""; flex: 0 0 20px; height: 20px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='9.5' cy='9.5' r='6' fill='none' stroke='%23000'/%3E%3Cpath d='M9 6.5h1v4H9zM9 11.5h1v1H9z'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='9.5' cy='9.5' r='6' fill='none' stroke='%23000'/%3E%3Cpath d='M9 6.5h1v4H9zM9 11.5h1v1H9z'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}
[role="alert"].md-form-msg { color: #df3131; font-size: 14px; }

/* Dropdowns rebuilt from a text box: show a chevron like Wix's dropdown */
input.md-select-box {
  cursor: pointer;
  padding-right: 36px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}