/* The homepage demo presentation on migrated pages. Keep the form's original
   controls and validation hooks, and reset only their old layout rules. */
/* Spanish keeps its original form/copy and does not load the homepage sheet.
   Supply only the demo component's missing layout and icon rules. */
.es-lang .demo.demo--page > .demo-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center;
}
.es-lang .demo.demo--page .demo-info { min-width: 0; color: #fff; }
.es-lang .demo.demo--page .demo-info > :is(.demo-eyebrow, .demo-meta),
.es-lang .demo.demo--page .demo-list li { color: rgba(255,255,255,.94); }
.es-lang .demo.demo--page .demo-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 16px; }
.es-lang .demo.demo--page .demo-list li { display: flex; align-items: center; gap: 14px; }
.es-lang .demo.demo--page .check {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: #48b4ff; display: grid; place-items: center;
}
.es-lang .demo.demo--page .check svg {
  width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.es-lang .demo.demo--page .demo-form--legacy {
  min-width: 0; padding: 28px; background: #fff; border-radius: 16px;
}
.es-lang .demo.demo--page .demo-form--legacy form { margin: 0; }
@media (max-width: 900px) {
  .es-lang .demo.demo--page > .demo-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .es-lang .demo.demo--page .demo-form--legacy { padding: 0; background: transparent; }
}
.demo.demo--page { font-family: var(--font-sans); }
.demo.demo--page p { opacity: 1; }
.demo.demo--page .demo-info :is(h1,h2) {
  font-family: var(--font-serif); font-size: clamp(2rem,3.4vw,3rem) !important;
  line-height: 1.08 !important; letter-spacing: -.015em; color: #fff;
  max-width: 16ch; margin: 10px 0 14px !important;
}
.demo.demo--page .demo-info > .demo-meta,
.demo.demo--page .demo-list li { font-family: var(--font-sans); font-weight: 500 !important; }
.demo .demo-trust p { line-height: 1.6 !important; }
.demo.demo--page .demo-form-wrap { min-width: 0; }
.demo.demo--page form.demo-form {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 0; width: 100%; max-width: none;
  padding: 28px; box-sizing: border-box; border-radius: 16px !important;
  font: 400 16px/1.55 var(--font-sans);
}
/* A wrapped form must shrink its grid tracks to the available column width. */
.demo .demo-form > *,
.demo .demo-form .field-row > * { min-width: 0; }
.demo .demo-form .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.demo:not(.demo--page) form.demo-form { grid-template-columns: minmax(0, 1fr); min-width: 0; max-width: 100%; box-sizing: border-box; }
.demo .demo-form :is(input, select, textarea) { min-width: 0; }
.demo.demo--page .c-subscription-form__field {
  width: auto; padding: 0; margin: 0; min-width: 0; gap: 6px;
}
.demo.demo--page .c-subscription-form__field label {
  font-family: var(--font-sans); font-size: 13px; line-height: 1.55;
  font-weight: 600; color: var(--text-muted, #5b6590); margin: 0;
}
.demo.demo--page .demo-form :is(input:not([type="hidden"]),select,textarea) {
  width: 100%; min-width: 0; height: 46px; min-height: 46px; box-sizing: border-box;
  border: 1px solid rgba(21,35,97,.14); border-radius: 12px !important;
  background-color: #fff; padding: 0 14px; color: #152361;
  font-family: var(--font-sans); font-size: 16px; font-weight: 400; line-height: normal;
}
.demo.demo--page .demo-form textarea { min-height: 76px !important; padding: 11px 14px !important; resize: vertical; line-height: 1.5 !important; }
.demo.demo--page .demo-form select {
  appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23152361' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.demo.demo--page .demo-form :is(input,textarea)::placeholder { color: #949cc0; opacity: 1; }
.demo.demo--page .demo-form :is(input,select,textarea):focus {
  outline: 2px solid #48b4ff; outline-offset: 2px;
}
.demo.demo--page .demo-form .iti { width: 100%; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px; }
.demo.demo--page .iti__country-container { position: static; padding: 0; flex: none; }
.demo.demo--page .iti__selected-country {
  height: 46px; padding: 0 10px; border: 1px solid rgba(21,35,97,.14);
  border-radius: 12px; background: #fff; color: #152361; font: 400 13px var(--font-sans);
}
.demo.demo--page .demo-form .iti input { padding-left: 14px !important; min-width: 0; }
.demo.demo--page .demo-form .btn-demo { justify-self: start; margin: 4px 0 0; line-height: normal; height: 52px; }
.demo.demo--page .demo-form .just-validate-error-label {
  position: static !important; margin: 0; max-width: 100%;
  font-size: 13px; font-weight: 400; line-height: 1.5; color: #b3261e !important;
}
.demo.demo--page .iti > .just-validate-error-label { grid-column: 1 / -1; }
/* The country list renders inline under the picker. The dark demo section paints its
   text white (v7-reskin colours every .s-calendly li), so the list gets its own
   dark-blue text, a matching search field and the section's rounded border. */
.demo.demo--page .iti__dropdown-content { color: #152361; border-radius: 12px; border: 1px solid rgba(21,35,97,.14); }
.demo .demo-form .iti__country-list .iti__country { color: #152361 !important; }
.demo.demo--page .iti__dropdown-content .iti__search-input { color: #152361; background: #fff; }
.demo.demo--page .iti__dropdown-content .iti__dial-code { color: #6b7280; }
.demo.demo--page.demo--full-width {
  background: linear-gradient(135deg,#152361,#0e1949) !important;
  padding: 56px 0 72px !important;
}
.demo.demo--full-width > .container {
  background: none !important; border: 0 !important; border-radius: 0 !important;
  box-shadow: none !important; backdrop-filter: none; padding: 0 48px !important;
}
.demo-anchor { position: absolute; top: 0; }
/* Continue the standalone demo background behind the floating white nav. */
@media (min-width: 1061px) {
  main > .demo.demo--page.demo--full-width:first-child {
    margin-top: -98px;
    border-top: 98px solid transparent;
    background-clip: border-box !important;
    background-origin: border-box !important;
  }
}
@media (max-width: 900px) {
  .demo.demo--page form.demo-form { padding: 0; }
  .demo.demo--page .c-subscription-form__field label { color: #fff; }
  .demo.demo--page .demo-form .just-validate-error-label { color: #ffd1d1 !important; }
  .demo.demo--page.demo--full-width { padding: 40px 0 56px !important; }
  .demo.demo--full-width > .container { padding: 0 24px !important; }
}

/* Request failures remain readable on both the pale desktop form panel and
   the navy mobile surface. Keep entered fields in place above the message. */
.demo:not(.demo--page) .demo-form .ou-form-error[role="alert"] {
  color: #b3261e !important;
  background: #fff2f0;
  border: 1px solid #efc6c2;
  border-radius: 8px;
  padding: 12px 14px;
  box-sizing: border-box;
  font-size: 13px;
  line-height: 1.5;
}

/* The standalone demo block and the footer are both navy. A white band keeps the
   two dark surfaces from reading as one, so the demo section still closes off. */
main > .demo.demo--page.demo--full-width:last-child { margin-bottom: 72px; }
@media (max-width: 900px) {
  main > .demo.demo--page.demo--full-width:last-child { margin-bottom: 48px; }
}

/* Spanish demo page: the old site's "Follow us" bar takes the place of the
   client stories the other locales show there (no Spanish stories yet). */
.demo-follow { background: #fff; padding: 40px 0; }
.demo-follow__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; }
.demo-follow__list { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.demo-follow__link { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border: 2px solid #152361; border-radius: 50%; color: #152361; transition: opacity .3s; }
.demo-follow__link:hover { opacity: .7; }
.demo-follow__link svg { width: 26px; height: 26px; }
.demo-follow__text { font-family: "Montserrat", sans-serif; font-size: 18px; line-height: 36px; font-weight: 600; color: #152361; }
@media (max-width: 767px) {
  .demo-follow { padding: 32px 0; }
  .demo-follow__list { order: -1; width: 100%; justify-content: center; }
  .demo-follow__text { font-size: 16px; line-height: 32px; }
  .demo-follow__text::after { content: "."; }
}

/* Event sign-up pages (HR drinks): the demo page's design with a shorter title
   line, no white band before the footer (a hairline separates the two navy
   surfaces instead), and a logo-only header on the navy page. */
.demo.demo--page.demo--event .demo-info h1 { font-size: clamp(2rem, 3.05vw, 2.75rem) !important; line-height: 1.22 !important; max-width: none !important; }
main > .demo.demo--page.demo--full-width.demo--event:last-child { margin-bottom: 0 !important; border-bottom: 1px solid rgba(255,255,255,.14); }
.demo.demo--page.demo--event .demo-privacy { margin-top: 12px; }
html body .nav.nav--logo-only, html[data-copy="reworked"] body[data-brand="glass"] .nav.nav--logo-only, html[data-copy="reworked"] body[data-brand="glass"].is-scrolled .nav.nav--logo-only { background: transparent !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; }
.nav.nav--logo-only .nav-inner { justify-content: flex-start; }
.nav.nav--logo-only .nav-logo img { height: 28px; filter: brightness(0) invert(1); }
body.is-scrolled html body .nav.nav--logo-only, html[data-copy="reworked"] body[data-brand="glass"] .nav.nav--logo-only, html[data-copy="reworked"] body[data-brand="glass"].is-scrolled .nav.nav--logo-only { background: transparent !important; }
@media (max-width: 1060px) { html body .nav.nav--logo-only, html[data-copy="reworked"] body[data-brand="glass"] .nav.nav--logo-only, html[data-copy="reworked"] body[data-brand="glass"].is-scrolled .nav.nav--logo-only { background: transparent !important; } }
/* Event title breaks in two balanced lines ("De OpenUp Wellbeing / Awards komen eraan"). */
.demo.demo--page.demo--event .demo-info h1 { text-wrap: balance; }
/* The engine's thank-you card is white; the demo section paints its text white too. */
.demo.demo--page .ou-form-success, .demo.demo--page .ou-form-success :is(p, strong, b, a, li, span) { color: #152361 !important; }
.demo.demo--page .ou-form-success a { text-decoration: underline; }

/* Event pages: the left column reads like the live page (18px body, roomy
   leading, full column width) instead of the demo page's compact meta line. */
.demo.demo--page.demo--event .demo-info > .demo-meta { font-size: 18px !important; font-weight: 400 !important; line-height: 1.65 !important; max-width: none !important; margin: 0 0 28px !important; }
.demo.demo--page.demo--event .demo-list { display: grid; gap: 14px; margin-bottom: 0; }
.demo.demo--page.demo--event .demo-list li { font-size: 18px !important; font-weight: 400 !important; line-height: 1.5 !important; align-items: flex-start; }
.demo.demo--page.demo--event .demo-list li .check { margin-top: 1px; flex: 0 0 auto; }
.demo.demo--page.demo--event .demo-info h1 { margin-bottom: 24px !important; }
.demo.demo--page.demo--event .demo-form-wrap { margin-top: 44px; }
