@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap");

body { margin: 0; }
.sbm-wp { overflow-x: clip; }

.sbm-wp {
  --wp-blue: #1578bb;
  --wp-blue-deep: #0f5a8f;
  --wp-sky: #28a4dd;
  --wp-violet: #56348e;
  --wp-magenta: #ed3d83;
  --wp-orange: #f69333;
  --wp-ink: #231f20;
  --wp-ink-2: #58595b;
  --wp-line: #d7d8da;
  --wp-line-strong: #9a9ca0;
  --wp-tint: #f4f2f8;
  --wp-white: #ffffff;
  --wp-light: "helveticaneuecyrlight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wp-text: "helveticaneuecyrroman", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wp-label: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wp-max: 1170px;
  --wp-gutter: clamp(16px, 4vw, 40px);
}

.sbm-wp .webform-client-form label.element-invisible {display:none;}
.form-item-submitted-agreement-Agreement {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-item-submitted-agreement-Agreement .form-checkbox {
  margin: 0;
}

.form-item-submitted-agreement-Agreement label.option {
  margin: 0;
}

.sbm-wp { color: var(--wp-ink); font-family: var(--wp-text); }
.sbm-wp *, .sbm-wp *::before, .sbm-wp *::after,
.sbm-wp .webform-client-form, .sbm-wp .webform-client-form *,
.sbm-wp .webform-client-form *::before, .sbm-wp .webform-client-form *::after { box-sizing: border-box; }

/* Full-bleed band that escapes the theme container */
.sbm-wp .wp-bleed { margin-inline: calc(50% - 50vw); padding-inline: var(--wp-gutter); }
.sbm-wp .wp-wrap { max-width: var(--wp-max); margin-inline: auto; }

/* ---------- Hero ---------- */
.sbm-wp .wp-hero {
  position: relative;
  color: var(--wp-white);
  background:
    linear-gradient(90deg, rgba(21, 120, 187, .97) 0%, rgba(21, 120, 187, .9) 50%, rgba(21, 120, 187, .6) 100%),
    var(--wp-blue) url("img/hero-grid.jpg") center right / cover no-repeat;
  padding-block: clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.sbm-wp .wp-hero .wp-wrap {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.sbm-wp .wp-hero h1 {
  margin: 0 0 28px; color: var(--wp-white);
  font-family: var(--wp-light); font-weight: 300;
  font-size: clamp(32px, 4.4vw, 52px); line-height: 1.12; letter-spacing: -.01em;
  text-wrap: balance;
}
.sbm-wp .wp-hero h1 .wp-h1-a { display: block; }
.sbm-wp .wp-hero h1 .wp-h1-b { display: block; font-family: var(--wp-text); font-weight: 700; }
.sbm-wp .wp-hero p {
  margin: 0 0 16px; max-width: 60ch;
  font-size: clamp(16px, 1.35vw, 18px); line-height: 1.6; color: var(--wp-white);
}
.sbm-wp .wp-hero p.wp-lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--wp-white); }
.sbm-wp .wp-hero .wp-cta { margin-top: 32px; }

/* ---------- Buttons ---------- */
.sbm-wp .wp-btn, .sbm-wp .webform-client-form .webform-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 12px; cursor: pointer;
  font-family: var(--wp-label); font-weight: 700; font-size: 14px; letter-spacing: .08em;
  text-decoration: none; line-height: 1.2;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.sbm-wp .wp-btn--light { background: var(--wp-white); color: var(--wp-blue); }
.sbm-wp .wp-btn--light:hover { background: var(--wp-orange); color: var(--wp-ink); }
.sbm-wp .wp-btn svg { width: 18px; height: 18px; flex: none; }
.sbm-wp .wp-btn:focus-visible { outline: 2px solid var(--wp-white); outline-offset: 3px; }
.sbm-wp .webform-client-form a:focus-visible,
.sbm-wp .webform-client-form .form-checkbox:focus-visible { outline: 2px solid var(--wp-blue); outline-offset: 2px; }

/* ---------- Hero visual: the white paper itself (cover + two inside pages) ---------- */
.sbm-wp .wp-paper {
  position: relative; width: 100%; max-width: 330px; justify-self: center;
  aspect-ratio: 612 / 792; margin-right: 14%;
}
.sbm-wp .wp-paper .wp-pg {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
  border-radius: 6px; background: var(--wp-white);
  box-shadow: 0 2px 4px rgba(3, 22, 44, .25), 0 26px 50px -10px rgba(3, 22, 44, .55);
  transform-origin: 50% 100%;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.sbm-wp .wp-paper .wp-pg--3 { transform: translate(30%, -5%) rotate(9deg); filter: brightness(.9); }
.sbm-wp .wp-paper .wp-pg--2 { transform: translate(15%, -2.5%) rotate(4.5deg); filter: brightness(.96); }
.sbm-wp .wp-paper .wp-pg--1 { transform: rotate(-1.5deg); }
.sbm-wp .wp-hero:hover .wp-pg--3 { transform: translate(38%, -7%) rotate(12deg); }
.sbm-wp .wp-hero:hover .wp-pg--2 { transform: translate(20%, -3.5%) rotate(6deg); }
.sbm-wp .wp-hero:hover .wp-pg--1 { transform: translateY(-6px) rotate(-2.5deg); }

/* ---------- What you'll find ---------- */
.sbm-wp .wp-find { padding-block: clamp(56px, 7vw, 96px); background: var(--wp-white); }
.sbm-wp .wp-find h3 {
  margin: 0 0 40px; color: var(--wp-ink);
  font-family: var(--wp-light); font-weight: 300; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.2;
}
.sbm-wp .wp-find ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--wp-line);
}
.sbm-wp .wp-find li {
  display: grid; grid-template-rows: auto auto 1fr; gap: 12px;
  padding: 28px 28px 8px 0; margin: 0;
}
.sbm-wp .wp-find li + li { padding-left: 28px; border-left: 1px solid var(--wp-line); }
.sbm-wp .wp-find .wp-ico {
  width: 56px; height: 56px; margin-bottom: 8px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--wp-tint); color: var(--c, var(--wp-blue));
}
.sbm-wp .wp-find .wp-ico svg { width: 30px; height: 30px; }
.sbm-wp .wp-find li:nth-child(1) { --c: var(--wp-blue); }
.sbm-wp .wp-find li:nth-child(2) { --c: var(--wp-violet); }
.sbm-wp .wp-find li:nth-child(3) { --c: var(--wp-magenta); }
.sbm-wp .wp-find li:nth-child(4) { --c: var(--wp-orange); }
.sbm-wp .wp-find h4 {
  margin: 0; color: var(--wp-blue);
  font-family: var(--wp-text); font-weight: 700; font-size: 18px; line-height: 1.3;
}
.sbm-wp .wp-find p { margin: 0; color: var(--wp-ink-2); font-size: 15px; line-height: 1.6; }

/* anchor target for the hero button */
.sbm-wp .wp-anchor, .sbm-wp .webform-client-form #register { scroll-margin-top: 100px; }

/* ---------- Registration form ---------- */
.sbm-wp .webform-client-form {
  margin: 0 calc(50% - 50vw); padding: clamp(48px, 7vw, 88px) var(--wp-gutter);
  background: var(--wp-tint); color: var(--wp-ink); font-family: var(--wp-text);
}
.sbm-wp .webform-client-form > div {
  max-width: 860px; margin-inline: auto;
  background: var(--wp-white); border: 1px solid var(--wp-line);
  border-top: 4px solid var(--wp-blue);
  padding: clamp(24px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 24px;
  grid-template-areas:
    "head    head"
    "first   job"
    "last    email"
    "company industry"
    "phone   ."
    "consent consent"
    "actions actions"
    "sponsor sponsor";
}
.sbm-wp .webform-client-form .webform-component { margin: 0; min-width: 0; }
.sbm-wp .webform-component--form-heading  { grid-area: head; }
.sbm-wp .webform-component--first-name     { grid-area: first; }
.sbm-wp .webform-component--job-title      { grid-area: job; }
.sbm-wp .webform-component--last-name      { grid-area: last; }
.sbm-wp .webform-component--business-email { grid-area: email; }
.sbm-wp .webform-component--company-name   { grid-area: company; }
.sbm-wp .webform-component--industry       { grid-area: industry; }
.sbm-wp .webform-component--phone-number   { grid-area: phone; }
.sbm-wp .webform-component--privacy-consent{ grid-area: consent; }
.sbm-wp .webform-client-form .form-actions { grid-area: actions; margin: 4px 0 0; }
.sbm-wp .webform-component--sponsor-line   { grid-area: sponsor; }

.sbm-wp .webform-component--form-heading h3 {
  margin: 0 0 4px; color: var(--wp-ink);
  font-family: var(--wp-light); font-weight: 300; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.25;
}
.sbm-wp .webform-client-form label {
  display: block; margin: 0 0 8px; color: var(--wp-ink);
  font-family: var(--wp-text); font-weight: 700; font-size: 14px; line-height: 1.3;
}
.sbm-wp .webform-client-form .form-required { color: var(--wp-blue); }
.sbm-wp .webform-client-form .form-text,
.sbm-wp .webform-client-form .form-email,
.sbm-wp .webform-client-form .form-select {
  display: block; width: 100%; max-width: 100%; height: 48px; margin: 0;
  padding: 0 14px; border: 1px solid var(--wp-line-strong); border-radius: 4px;
  background: var(--wp-white); color: var(--wp-ink);
  font-family: var(--wp-text); font-size: 15px; line-height: 1.2;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sbm-wp .webform-client-form .form-select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: var(--wp-white) 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='%231578bb' stroke-width='2'/%3E%3C/svg%3E") right 14px center / 12px 8px no-repeat;
}
.sbm-wp .webform-client-form ::placeholder { color: #75777b; opacity: 1; }
.sbm-wp .webform-client-form .form-text:hover,
.sbm-wp .webform-client-form .form-select:hover { border-color: var(--wp-ink-2); }
.sbm-wp .webform-client-form .form-text:focus,
.sbm-wp .webform-client-form .form-email:focus,
.sbm-wp .webform-client-form .form-select:focus {
  outline: none; border-color: var(--wp-blue); box-shadow: 0 0 0 3px rgba(21, 120, 187, .22);
}
.sbm-wp .webform-client-form .error { border-color: #c42a67 !important; }

/* consent checkbox */
.sbm-wp .webform-component--privacy-consent .form-item { display: flex; align-items: flex-start; gap: 10px; margin: 0; }
.sbm-wp .webform-component--privacy-consent > label { display: none; }
.sbm-wp .webform-component--privacy-consent .form-checkbox {
  width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--wp-blue);
}
.sbm-wp .webform-component--privacy-consent label.option {
  margin: 0; font-weight: 400; font-size: 15px; line-height: 1.5; color: var(--wp-ink);
}
.sbm-wp .webform-component--privacy-consent a { color: var(--wp-blue); text-decoration: underline; text-underline-offset: 2px; }

/* submit */
.sbm-wp .webform-client-form .webform-submit {
  width: 100%; white-space: normal; padding-inline: 16px; min-height: 56px; background: var(--wp-blue); color: var(--wp-white); font-size: 15px;
  -webkit-appearance: none; appearance: none;
}
.sbm-wp .webform-client-form .webform-submit:hover { background: var(--wp-blue-deep); }
.sbm-wp .webform-client-form .webform-submit:disabled,
.sbm-wp .webform-client-form .webform-submit[aria-disabled="true"] {
  background: #e3e4e6; color: #6b6d71; cursor: not-allowed;
}
.sbm-wp .webform-client-form.is-submitting .webform-submit { opacity: .7; pointer-events: none; }
.sbm-wp .webform-client-form .wp-invalid .form-text,
.sbm-wp .webform-client-form .wp-invalid .form-email { border-color: #c42a67; }
.sbm-wp .webform-client-form .webform-submit:focus-visible { outline: 2px solid var(--wp-blue); outline-offset: 3px; }

/* sponsor line */
.sbm-wp .webform-component--sponsor-line p {
  margin: 8px 0 0; padding-top: 20px; border-top: 1px solid var(--wp-line);
  text-align: center; color: var(--wp-ink-2); font-size: 13px; line-height: 1.5; letter-spacing: .02em;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .sbm-wp .wp-find ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sbm-wp .wp-find li:nth-child(3) { border-left: 0; padding-left: 0; }
  .sbm-wp .wp-find li:nth-child(n+3) { border-top: 1px solid var(--wp-line); }
}
@media (max-width: 820px) {
  .sbm-wp .wp-hero .wp-wrap { grid-template-columns: 1fr; }
  .sbm-wp .wp-paper { order: -1; max-width: 200px; justify-self: start; margin: 8px 0 12px; }
}
@media (max-width: 640px) {
  .sbm-wp .wp-find ul { grid-template-columns: 1fr; }
  .sbm-wp .wp-find li, .sbm-wp .wp-find li + li { padding: 24px 0 16px; border-left: 0; }
  .sbm-wp .wp-find li + li { border-top: 1px solid var(--wp-line); }
  .sbm-wp .wp-btn { width: 100%; }
  .sbm-wp .webform-client-form > div {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "first" "last" "job" "email" "company" "industry" "phone" "consent" "actions" "sponsor";
  }
}
@media (prefers-reduced-motion: reduce) {
  .sbm-wp .wp-paper .wp-pg { transition: none; }
  .sbm-wp .wp-btn, .sbm-wp .webform-client-form * { transition: none; }
}
