/* LumaSign theme additions to the v3 home (loaded after lsg-home-v3.css, which stays byte-identical to 02-normalized).
   Rules, all scoped:
   1. Hero video with the plugin: size / position only. No colour, no animation.
   2. Quote form: Fluent Forms default markup styled with the v3 look (unverified until Fluent Forms is on staging).
   3. Language switcher: minimal layout of the plugin's <nav> of links. */

/* 1. Hero video (plugin markup: <div class="lds-video lsg-hero__video-frame" style="aspect-ratio:..."><video style="...">)
   The wrapper fills .lsg-hero__media exactly like the bare <video class="lsg-hero__video"> did. With top/right/bottom/left
   and width/height all set, the inline aspect-ratio does not apply. */
.lsg-hero__media .lds-video { position: absolute; inset: 0; width: 100%; height: 100%; }
.lsg-hero__media .lds-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* the plugin sets one object-position inline (50% 50%); v3 shows the left side of the frame on phones */
@media (max-width: 767px) { .lsg-hero__media .lds-video video { object-position: 18% 50% !important; } }
/* edit mode (studio only, contract B section 7.3): nothing may cover the video field. The hero leaves the overlap:
   the media box is in flow below the header, with a bounded height; the title block follows in normal flow.
   Pure CSS, independent of the JS teardown. The visitor view is not touched by these rules. */
html.lds-selection-active .lsg-hero__media,
body.lds-editing .lsg-hero__media,
body.lds-selection-active .lsg-hero__media { position: relative; inset: auto; z-index: 0; height: min(56.25vw, 70vh); height: min(56.25vw, 70svh); margin-top: var(--lsg-header-h); }
html.lds-selection-active .lsg-hero__screen,
body.lds-editing .lsg-hero__screen,
body.lds-selection-active .lsg-hero__screen { min-height: 0; padding-top: var(--lsg-hero-gap); }
/* the scrim ::after of .lsg-hero__media sits above the video inside the box: lift the video wrapper above it */
html.lds-selection-active .lsg-hero__media .lds-video,
body.lds-editing .lsg-hero__media .lds-video,
body.lds-selection-active .lsg-hero__media .lds-video { z-index: 1; }

/* 3. Language switcher in .lsg-lang-slot */
.lsg-lang { display: inline-flex; align-items: center; gap: 4px; }
.lsg-lang__link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 6px; font-family: var(--lsg-mono); font-size: 0.875rem; text-decoration: none; color: var(--lsg-muted); }
.lsg-lang__link:hover { color: var(--lsg-text); }
.lsg-lang__link.lsg-is-current, .lsg-lang__link[aria-current="page"] { color: var(--lsg-gold); }

/* 2. Quote form: Fluent Forms default markup (.frm-fluent-form, .ff-el-group, .ff-el-form-control, .ff-btn-submit ...) */
.lsg-form-slot .fluentform { color: var(--lsg-text); font-family: var(--lsg-font); }
.lsg-form-slot .fluentform .ff-el-group { margin-bottom: 22px; }
.lsg-form-slot .fluentform .ff-el-input--label label { font-size: 0.9375rem; font-weight: 600; color: var(--lsg-text); }
.lsg-form-slot .fluentform .ff-el-is-required.asterisk-right label::after,
.lsg-form-slot .fluentform .ff-el-input--label.ff-el-is-required.asterisk-right label::after { content: " *"; color: var(--lsg-gold); margin-left: 0; }
.lsg-form-slot .fluentform .ff-el-form-control {
  width: 100%; min-height: 48px; padding: 12px 16px;
  font: inherit; font-size: 1rem; line-height: 1.4; color: var(--lsg-text);
  background-color: rgba(244, 245, 250, 0.05); border: 1.5px solid rgba(244, 245, 250, 0.45); border-radius: 14px; box-shadow: none;
}
.lsg-form-slot .fluentform textarea.ff-el-form-control { min-height: 140px; resize: vertical; }
.lsg-form-slot .fluentform select.ff-el-form-control {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--lsg-gold) 50%), linear-gradient(135deg, var(--lsg-gold) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.lsg-form-slot .fluentform select.ff-el-form-control option { background: var(--lsg-navy); color: var(--lsg-text); }
.lsg-form-slot .fluentform .ff-el-form-control::placeholder { color: var(--lsg-muted); opacity: 0.7; }
.lsg-form-slot .fluentform .ff-el-form-control:hover { border-color: rgba(244, 245, 250, 0.75); }
.lsg-form-slot .fluentform .ff-el-form-control:focus,
.lsg-form-slot .fluentform .ff-el-form-control:focus-visible { outline: 2px solid var(--lsg-gold); outline-offset: 2px; border-color: var(--lsg-gold); box-shadow: none; background-color: rgba(244, 245, 250, 0.05); color: var(--lsg-text); }
.lsg-form-slot .fluentform .ff-el-form-check { display: flex; align-items: center; min-height: 44px; }
.lsg-form-slot .fluentform .ff-el-form-check-label { display: inline-flex; align-items: center; gap: 12px; color: var(--lsg-text); line-height: 1.4; cursor: pointer; }
.lsg-form-slot .fluentform .ff-el-form-check-input { flex: none; width: 24px; height: 24px; min-height: 0; margin: 0; accent-color: var(--lsg-gold); }
.lsg-form-slot .fluentform .ff-el-form-check-input:focus-visible { outline: 2px solid var(--lsg-gold); outline-offset: 3px; }
.lsg-form-slot .fluentform a { color: var(--lsg-gold); font-weight: 600; text-underline-offset: 5px; }
.lsg-form-slot .fluentform a:hover { color: var(--lsg-text); }
/* primary button, same look as .lsg-btn.lsg-btn--primary.lsg-btn--lg */
.lsg-form-slot .fluentform .ff-btn-submit {
  display: inline-flex; align-items: center; justify-content: center; padding: 18px 34px; cursor: pointer;
  font-family: var(--lsg-font); font-size: 1.0625rem; font-weight: 600; line-height: 1.2; text-decoration: none;
  background: var(--lsg-gold); color: var(--lsg-black); border: 1.5px solid var(--lsg-gold); border-radius: 999px; box-shadow: none;
}
.lsg-form-slot .fluentform .ff-btn-submit:hover,
.lsg-form-slot .fluentform .ff-btn-submit:focus { background: var(--lsg-text); border-color: var(--lsg-text); color: var(--lsg-black); }
.lsg-form-slot .fluentform .ff-btn-submit:focus-visible { outline: 2px solid var(--lsg-gold); outline-offset: 3px; }
/* messages */
.lsg-form-slot .fluentform .ff-message-success { color: var(--lsg-muted); font-size: 0.9375rem; padding: 0 0 0 12px; border: 0; border-left: 2px solid var(--lsg-gold); background: transparent; box-shadow: none; }
.lsg-form-slot .fluentform .error.text-danger,
.lsg-form-slot .fluentform .ff-el-is-error .text-danger { color: var(--lsg-text); font-size: 0.9375rem; }
.lsg-form-slot .fluentform .ff-el-is-error .ff-el-form-control { border-color: var(--lsg-gold); }
