/* =========================================================
   The Outset – Fluent Forms skin (matches Carella's design)
   Scope: wrap every form in <div class="ot-form">…</div>
   so this never touches forms elsewhere on the site.
   Uses the site tokens from Carella's :root, with fallbacks.
   ========================================================= */

.ot-form{
  --ff-ground:var(--ground,#EDEFEA);
  --ff-paper:var(--paper,#FBFBF8);
  --ff-ink:var(--ink,#1F2823);
  --ff-ink-2:var(--ink-2,#4E5A52);
  --ff-ink-3:var(--ink-3,#7D877F);
  --ff-line:var(--line,#CDD3CA);
  --ff-accent:var(--accent,#2F4A3A);
  --ff-accent-d:var(--accent-d,#22382B);
  --ff-on-accent:var(--on-accent,#F1F4EE);
  --ff-soft:var(--soft,#E2E8DD);
  --ff-body:var(--body,"Hanken Grotesk","Helvetica Neue",Arial,sans-serif);
  /* Fluent Forms' own colour variables, so its built-in styles follow ours */
  --fluentform-primary:var(--ff-accent);
  --fluentform-secondary:var(--ff-ink-2);
  --fluentform-border-color:var(--ff-line);
  --fluentform-border-radius:0;
  font-family:var(--ff-body);
  color:var(--ff-ink);
}

/* Card (same as .book-form) */
.ot-form.ot-card{background:var(--ff-paper);padding:40px;display:grid;gap:20px}
@media (max-width:720px){.ot-form.ot-card{padding:24px}}

/* ---------- Layout ---------- */
.ot-form .fluentform .ff-el-group{margin:0 0 20px}
.ot-form .fluentform fieldset{margin:0;padding:0;border:0}
.ot-form .fluentform .ff-t-container{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:16px;width:100%}
.ot-form .fluentform .ff-t-container .ff-t-cell{width:auto!important;padding:0!important;margin:0!important;flex:none}
.ot-form .fluentform .ff-t-container .ff-el-group{margin-bottom:20px}
@media (max-width:720px){
  .ot-form .fluentform .ff-t-container{grid-auto-flow:row;grid-template-columns:1fr;gap:0}
}

/* ---------- Labels ---------- */
.ot-form .fluentform .ff-el-input--label{margin:0 0 8px;padding:0;display:block}
.ot-form .fluentform .ff-el-input--label label{
  font-size:11px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;
  color:var(--ff-ink-3);line-height:1.4;margin:0;display:inline
}
/* Carella shows no asterisks; required fields are marked "(optional)" the other way round */
.ot-form .fluentform .ff-el-is-required.asterisk-right label:after,
.ot-form .fluentform .ff-el-is-required.asterisk-left label:before{content:none!important}

/* ---------- Inputs, selects, textarea ---------- */
.ot-form .fluentform .ff-el-form-control{
  width:100%;min-height:50px;height:auto;
  border:1px solid var(--ff-line);border-radius:0;background:var(--ff-paper);
  padding:0 16px;font:inherit;font-size:16px;line-height:1.4;color:var(--ff-ink);
  box-shadow:none;transition:border-color .2s;-webkit-appearance:none;appearance:none
}
.ot-form .fluentform .ff-el-form-control::placeholder{color:var(--ff-ink-3);opacity:1}
.ot-form .fluentform .ff-el-form-control:focus{outline:none;border-color:var(--ff-ink);box-shadow:none}
.ot-form .fluentform textarea.ff-el-form-control{min-height:110px;padding:12px 16px;resize:vertical}
.ot-form .fluentform select.ff-el-form-control{
  padding-right:44px;cursor:pointer;
  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 1.5l5 5 5-5' fill='none' stroke='%231F2823' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 16px center;background-size:12px 8px
}
.ot-form .fluentform input[type=number]{-moz-appearance:textfield}
.ot-form .fluentform input[type=number]::-webkit-inner-spin-button,
.ot-form .fluentform input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

/* ---------- Radio / checkbox groups -> segmented pills (.seg) ----------
   Applies to every choice group except the consent box.
   Works for radios (single choice) and checkboxes (multi choice). */
.ot-form .fluentform .ff-el-group:not(.ot-check) .ff-el-input--content:has(> .ff-el-form-check:not(.ff-el-tc)){
  display:flex;flex-wrap:wrap;gap:8px
}
.ot-form .fluentform .ff-el-group:not(.ot-check) .ff-el-form-check:not(.ff-el-tc){margin:0;padding:0;display:block}
.ot-form .fluentform .ff-el-group:not(.ot-check) .ff-el-form-check:not(.ff-el-tc) .ff-el-form-check-label{
  position:relative;display:inline-flex;align-items:center;min-height:42px;padding:0 16px;margin:0;
  border:1px solid var(--ff-line);background:var(--ff-paper);color:var(--ff-ink);
  font-size:14px;line-height:1.2;cursor:pointer;transition:background .15s,color .15s,border-color .15s
}
.ot-form .fluentform .ff-el-group:not(.ot-check) .ff-el-form-check:not(.ff-el-tc) .ff-el-form-check-input{
  position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none
}
.ot-form .fluentform .ff-el-group:not(.ot-check) .ff-el-form-check:not(.ff-el-tc) .ff-el-form-check-label:hover{border-color:var(--ff-ink)}
.ot-form .fluentform .ff-el-group:not(.ot-check) .ff-el-form-check:not(.ff-el-tc) .ff-el-form-check-label:has(input:checked){
  background:var(--ff-ink);color:var(--ff-ground);border-color:var(--ff-ink)
}
.ot-form .fluentform .ff-el-group:not(.ot-check) .ff-el-form-check:not(.ff-el-tc) .ff-el-form-check-label:has(input:focus-visible){
  outline:2px solid var(--ff-accent);outline-offset:3px
}

/* ---------- Plain tick boxes (.check): consent + any group given the class ot-check ---------- */
.ot-form .fluentform .ff-el-tc .ff-el-form-check-label,
.ot-form .fluentform .ot-check .ff-el-form-check-label{
  display:flex;gap:12px;align-items:flex-start;font-size:15px;line-height:1.5;cursor:pointer;margin:0;color:var(--ff-ink)
}
.ot-form .fluentform .ff-el-tc{margin:0}
.ot-form .fluentform .ff-el-tc .ff_tc_checkbox{display:flex;padding-top:2px}
.ot-form .fluentform .ff-el-tc .ff_t_c{font-size:13px;color:var(--ff-ink-2);padding:0}
.ot-form .fluentform .ff-el-tc a{color:var(--ff-ink);text-decoration:underline}
.ot-form .fluentform .ff-el-tc .ff-el-form-check-input,
.ot-form .fluentform .ot-check .ff-el-form-check-input{
  -webkit-appearance:none;appearance:none;flex:none;width:20px;height:20px;margin:0;
  border:1.5px solid var(--ff-ink-3);border-radius:3px;background:#fff;
  display:grid;place-items:center;cursor:pointer;transition:background .15s,border-color .15s
}
.ot-form .fluentform .ff-el-tc .ff-el-form-check-input:checked,
.ot-form .fluentform .ot-check .ff-el-form-check-input:checked{background:var(--ff-accent);border-color:var(--ff-accent)}
.ot-form .fluentform .ff-el-tc .ff-el-form-check-input:checked::after,
.ot-form .fluentform .ot-check .ff-el-form-check-input:checked::after{
  content:"";width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg)
}
.ot-form .fluentform .ot-check .ff-el-form-check{margin:0}

/* ---------- Submit (.btn.primary.wide) ---------- */
.ot-form .fluentform .ff_submit_btn_wrapper{margin:4px 0 0}
.ot-form .fluentform .ff-btn-submit,
.ot-form .fluentform .ff-btn-submit.ff_btn_style{
  display:flex;align-items:center;justify-content:center;width:100%;min-height:50px;padding:0 24px;
  border:1px solid var(--ff-accent)!important;border-radius:0!important;background:var(--ff-accent)!important;color:var(--ff-on-accent)!important;
  font:inherit;font-size:13px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;line-height:1.2;
  cursor:pointer;box-shadow:none;opacity:1;transition:background .2s,border-color .2s
}
.ot-form .fluentform .ff-btn-submit:hover,
.ot-form .fluentform .ff-btn-submit:focus-visible{background:var(--ff-accent-d)!important;border-color:var(--ff-accent-d)!important;opacity:1}
.ot-form .fluentform .ff-btn-submit.disabled,
.ot-form .fluentform .ff-btn-submit[disabled]{opacity:.6;cursor:wait}

/* ---------- Errors and success (.err / .ok) ---------- */
.ot-form .fluentform .ff-el-is-error .ff-el-form-control{border-color:var(--ff-accent)}
.ot-form .fluentform .error.text-danger,
.ot-form .fluentform .ff-el-is-error .error{color:var(--ff-accent);font-size:14px;margin-top:6px;line-height:1.4}
.ot-form .ff-errors-in-stack{color:var(--ff-accent);font-size:14px;margin-top:12px}
.ot-form .ff-message-success{
  background:var(--ff-soft);color:var(--ff-ink);border:0;box-shadow:none;border-radius:0;
  padding:16px;font-size:14px;line-height:1.5;margin:0
}

/* ---------- Help text ---------- */
.ot-form .fluentform .ff-el-help-message{font-size:13px;color:var(--ff-ink-2);font-style:normal;margin-top:6px}

/* ---------- Date picker (flatpickr) ---------- */
.flatpickr-calendar{border-radius:0!important;box-shadow:0 12px 32px rgba(31,40,35,.14)!important;font-family:var(--body,"Hanken Grotesk",Arial,sans-serif)}
.flatpickr-day.selected,.flatpickr-day.selected:hover,.flatpickr-day.today.selected{background:var(--accent,#2F4A3A)!important;border-color:var(--accent,#2F4A3A)!important;color:#fff!important}
.flatpickr-day.today{border-color:var(--ink-3,#7D877F)!important}
.flatpickr-day{border-radius:0!important}

/* ---------- Notes under the form (reply time, privacy) ---------- */
.ot-form .ot-note{font-size:13px;line-height:1.5;color:var(--ff-ink-2);margin:0}
.ot-form .ot-note + .ot-note{margin-top:-8px}

/* Deck link in the "Check your date" band (replaces the preview deck form) */
.cta-grid .deck-link{white-space:normal;text-align:center}

/* Elementor popups (e.g. the L&K Nov 2026 popup) are not used on Outset pages; Elementor's scripts are not loaded there, so hide their markup */
.elementor-location-popup,[data-elementor-type="popup"]{display:none!important}

/* Guest guide: the guest link opens the real guest page */
#gLink{display:block;color:inherit;text-decoration:underline;text-underline-offset:3px;word-break:break-all}
#gLink:hover{color:var(--accent,#2F4A3A)}

/* New Fluent Forms: cost guide quote (6) and fair waitlist (7) */
.cg-form{margin-top:8px}
.fx-wait .fx-form{margin:4px 0 16px;background:transparent;padding:0}
.fx-wait .fx-form .ff-el-form-control{background:rgba(255,255,255,.7)}

/* Mobile menu (phones): full-screen, one column, collapsible groups, clears the bottom action bar */
@media (max-width:640px){
  .site-head .menu-panel{position:fixed;left:0;right:0;bottom:0;top:64px;max-height:none;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;box-shadow:none;border-bottom:0;padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
  .site-head .menu-panel .wrap{display:block;columns:auto;padding-block:0 8px}
  .menu-panel .mg{display:block;margin:0;border-bottom:1px solid var(--line)}
  .menu-panel .mg b{display:flex;justify-content:space-between;align-items:center;padding:20px 0;font-size:12px;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .menu-panel .mg b::after{content:"+";font-size:22px;font-weight:300;letter-spacing:0;line-height:1;color:var(--ink-2)}
  .menu-panel .mg.open b::after{content:"\2013"}
  .menu-panel .mg a{display:none;font-size:17px;padding:14px 0 14px 12px;border-bottom:0;border-top:1px solid var(--line)}
  .menu-panel .mg.open a{display:block}
  .menu-panel .mg.open{padding-bottom:6px}
  .menu-panel .mg a[aria-current="page"]{color:var(--accent);font-weight:600}
  .menu-panel .mg-cta{display:none}
  html.menu-open{overflow:hidden}
}
