/* Shared by all three concepts: sample notice, forms and the feedback button.
   Each concept sets --f-accent, --f-ink, --f-mute, --f-line, --f-field and --f-on-accent. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; display: block; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #C9973F; outline-offset: 2px;
}
.sample-note { background: #1B2238; color: #FFFDF7; font: 400 .84rem/1.4 Arial, sans-serif; text-align: center; padding: 8px 16px; }
.sample-note a { color: #F3D9A8; }

.pic { display: grid; place-items: center; text-align: center; margin: 0; padding: 16px; font: 400 .82rem/1.4 Arial, sans-serif; color: #565C70;
  background: repeating-linear-gradient(135deg, #EFE7D4 0 12px, #F5EEDD 12px 24px); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 60; padding: 12px 16px; font: 700 1rem/1 Arial, sans-serif; color: #FFFDF7; background: #183078; }
.skip:focus { top: 12px; }

/* What happens after each form */
.next { display: grid; gap: 14px; margin-top: 30px; color: inherit; }
.next[hidden] { display: none; }
.next h3 { margin: 0; font-size: clamp(1.4rem, 2vw, 1.7rem); line-height: 1.15; color: inherit; }
.next ol { display: grid; margin: 0; padding: 0; list-style: none; }
.next li { display: grid; grid-template-columns: 34px minmax(0, 1fr); padding-block: 12px; border-top: 1px solid var(--next-line, var(--f-line)); }
.next b { font-weight: 700; color: var(--next-accent, var(--f-accent)); }

/* Forms */
.jf { display: grid; gap: 20px; color: var(--f-ink); }
.jf-field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.jf-label { font-weight: 600; font-size: 1rem; padding: 0; }
.jf-hint { font-size: .9rem; color: var(--f-mute); margin: 0; }
.jf input[type=text], .jf input[type=tel], .jf input[type=date], .jf select {
  width: 100%; min-height: 50px; padding: 10px 12px; font: inherit; color: var(--f-ink); background: var(--f-field); border: 1px solid var(--f-mute); border-radius: 4px;
}
.jf select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%23183078' stroke-width='2'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.jf input[type=text]:focus, .jf input[type=tel]:focus, .jf input[type=date]:focus, .jf select:focus { border-color: var(--f-accent); box-shadow: inset 0 0 0 1px var(--f-accent); }
.jf-opts { display: grid; gap: 2px; }
.jf-opt { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 44px; font-weight: 400; cursor: pointer; }
.jf-opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--f-accent); }
.jf-submit { min-height: 52px; padding: 12px 20px; font: inherit; font-weight: 700; color: var(--f-on-accent); background: var(--f-accent); border: 0; border-radius: var(--f-radius, 4px); cursor: pointer; }
.jf-err { color: #A1221B; font-weight: 700; font-size: .92rem; margin: 0; }
.jf-field.bad input[type=text], .jf-field.bad input[type=tel], .jf-field.bad input[type=date], .jf-field.bad select { border: 2px solid #A1221B; }
.jf-done { display: grid; gap: 8px; padding: 20px; background: var(--f-field); border: 1px solid var(--f-line); color: var(--f-ink); }
.jf-done p { margin: 0; }
.jf-done strong { font-size: 1.1rem; }

/* Phone menu */
.menu-btn, .bar nav.menu-panel { display: none; }
@media (max-width: 1040px) {
  .bar .wrap .btn { margin-left: auto; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 42px; padding: 8px 10px; font: inherit; font-size: .92rem; font-weight: 700; color: var(--f-accent); background: transparent; border: 1px solid var(--f-accent); border-radius: 3px; cursor: pointer; }
  .bar nav.menu-panel:not([hidden]) { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: 4px 20px 12px; background: var(--f-field); box-shadow: 0 14px 28px rgba(16, 31, 82, .2); }
  .menu-panel a { display: flex; align-items: center; min-height: 52px; font-weight: 600; color: var(--f-ink); text-decoration: none; border-top: 1px solid var(--f-line); }
  .menu-panel a:first-child { border-top: 0; }
}
.bar-more { white-space: pre; }
@media (max-width: 480px) { .bar-more { display: none; } }

/* Feedback button */
.fb-open { position: fixed; z-index: 40; right: max(12px, env(safe-area-inset-right, 0px)); bottom: max(12px, env(safe-area-inset-bottom, 0px)); min-height: 44px; padding: 10px 16px;
  font: 700 .92rem/1 Arial, sans-serif; color: #1B2238; background: #FFFDF7; border: 1px solid #1B2238; border-radius: 2px; cursor: pointer; box-shadow: 0 2px 8px rgba(16, 31, 82, .22); }
.top-btn { position: fixed; z-index: 40; right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(max(12px, env(safe-area-inset-bottom, 0px)) + 54px); min-height: 44px; padding: 10px 14px; font: 700 .92rem/1 Arial, sans-serif; color: #183078; background: #FFFDF7; border: 1px solid #183078; border-radius: 2px; cursor: pointer; box-shadow: 0 2px 8px rgba(16, 31, 82, .22); }
.top-btn:hover { background: #FAF5EA; }
.floats-away .fb-open, .floats-away .top-btn { display: none; }
@media (max-width: 860px) { .top-btn { right: calc(max(12px, env(safe-area-inset-right, 0px)) + 104px); bottom: max(12px, env(safe-area-inset-bottom, 0px)); } }
.fb-dialog { width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 20px; border: 0; border-radius: 8px; font: 400 1rem/1.45 Arial, sans-serif; color: #1B2238; background: #FFFDF7; }
.fb-dialog::backdrop { background: rgba(16, 31, 82, .55); }
.fb-dialog form { display: grid; gap: 14px; }
.fb-dialog h2 { margin: 0; font-size: 1.25rem; }
.fb-dialog p { margin: 0; }
.fb-dialog label { display: grid; gap: 6px; font-weight: 700; }
.fb-dialog textarea { width: 100%; min-height: 130px; padding: 10px; font: inherit; border: 1px solid #565C70; border-radius: 4px; }
.fb-dialog input[type=file] { font: inherit; font-weight: 400; }
.fb-previews { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-previews img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; }
.fb-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-actions button { min-height: 46px; padding: 10px 18px; font: 700 1rem/1 Arial, sans-serif; border-radius: 4px; cursor: pointer; }
.fb-send { color: #FFFDF7; background: #183078; border: 1px solid #183078; }
.fb-close { color: #183078; background: transparent; border: 1px solid #183078; }
.fb-status { font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Scroll movement, only when motion is welcome. Without the class everything is simply visible. */
.motion [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .55s cubic-bezier(.23, 1, .32, 1), transform .55s cubic-bezier(.23, 1, .32, 1); transition-delay: var(--d, 0ms); }
.motion [data-reveal].in { opacity: 1; transform: none; }
.motion [data-reveal="clip"] { opacity: 1; transform: none; }
.motion [data-reveal="clip"] img { clip-path: inset(0 0 100% 0); transform: scale(1.14); transition: clip-path .7s cubic-bezier(.23, 1, .32, 1), transform .9s cubic-bezier(.23, 1, .32, 1); transition-delay: var(--d, 0ms); }
.motion [data-reveal="clip"].in img { clip-path: inset(0 0 0 0); transform: none; }
.motion [data-reveal="rule"] { opacity: 1; transform: scaleX(0); transform-origin: 0 50%; }
.motion [data-reveal="rule"].in { transform: none; }
.motion .w { opacity: .18; transition: opacity .15s ease; }
.motion .w.lit { opacity: 1; }
.motion [data-reveal="clip"] { background: none !important; }
