/* Webinar-offer funnel skin for the shared application form.
   Loaded after /apply/application.css on this page only, so the other application pages are unchanged. */
@font-face {
  font-family: "Inter Offer";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/inter-semibold.ttf") format("truetype");
}

@font-face {
  font-family: "Inter Offer";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/inter-bold.ttf") format("truetype");
}

@font-face {
  font-family: "Switzer Offer";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/switzer-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Switzer Offer";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/switzer-medium.woff2") format("woff2");
}

.funnel-application {
  --ink: #14171e;
  --muted: #555864;
  --line: #e3e6ec;
  --surface: #f4f7ff;
  --blue: #065bff;
  --blue-dark: #0048d6;
  --blue-soft: #eef3ff;
  --navy: #0b1220;
  --heading: "Inter Offer", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html:has(.funnel-application) { background: var(--surface, #f4f7ff); }
.funnel-application {
  background: var(--surface);
  font-family: "Switzer Offer", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.funnel-application ::selection { color: #fff; background: var(--blue); }
.funnel-application :focus-visible { outline-color: color-mix(in srgb, var(--blue) 35%, transparent); }

/* Progress bar + header: navy bar like the offer page's attention bar, with the 3-step tracker. */
.funnel-application .application-progress { height: 4px; background: #1d2638; z-index: 41; }
.funnel-application .application-progress span { background: linear-gradient(90deg, var(--blue), #4f8cff); }
.funnel-application .application-header {
  top: 0;
  height: 64px;
  padding: 4px clamp(16px, 4vw, 40px) 0;
  background: var(--navy);
  backdrop-filter: none;
  color: #fff;
}
.funnel-application .application-brand img { width: 44px; filter: none; }
.funnel-application .application-close:hover { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08); }
.funnel-application .application-close span,
.funnel-application .application-close span::after { background: #c9cfdb; }

.funnel-steps {
  position: absolute;
  left: 50%;
  top: calc(50% + 2px);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #8f98aa;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}
.funnel-steps li { display: flex; align-items: center; gap: 8px; }
.funnel-steps li + li::before { content: ""; width: 28px; height: 1px; margin-right: 2px; background: #3a4458; }
.funnel-steps li > span:first-child {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #3a4458;
  border-radius: 50%;
  font-size: 11px;
}
.funnel-steps .is-done { color: #c9cfdb; }
.funnel-steps .is-done > span:first-child {
  border-color: transparent;
  background: #1f6a43 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.funnel-steps .is-apply,
.funnel-application.booking-stage-active .funnel-steps .is-book { color: #fff; }
.funnel-steps .is-apply > span:first-child,
.funnel-application.booking-stage-active .funnel-steps .is-book > span:first-child { border-color: var(--blue); background: var(--blue); color: #fff; }
.funnel-application.booking-stage-active .funnel-steps .is-apply { color: #c9cfdb; }
.funnel-application.booking-stage-active .funnel-steps .is-apply > span:first-child {
  border-color: transparent;
  background: #1f6a43 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  color: transparent;
}

/* Question card */
.funnel-application .application-main { padding: 104px 24px 56px; }
.funnel-application .application-stage,
.funnel-application .application-ending {
  padding: 40px 44px 32px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.06), 0 22px 50px -26px rgba(11, 18, 32, 0.3);
}
.funnel-application .application-step-count {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.funnel-application .application-step legend,
.funnel-application .application-ending h1 {
  font-family: var(--heading);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.funnel-application .application-step legend { margin-bottom: 26px; }
.funnel-application .application-description { margin-top: -12px; font-size: 16px; }

.funnel-application .application-options { width: 100%; gap: 10px; }
.funnel-application .application-option {
  min-height: 60px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
}
.funnel-application .application-option:hover { border-color: color-mix(in srgb, var(--blue) 45%, white); background: #fafbff; }
.funnel-application .application-option:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 0 0 1px var(--blue);
}
.funnel-application .option-key {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface);
  font-family: var(--heading);
  font-size: 12px;
  font-weight: 600;
}

.funnel-application .application-input-wrap,
.funnel-application .application-detail { width: 100%; }
.funnel-application .application-input-wrap input,
.funnel-application .application-input-wrap textarea,
.funnel-application .application-detail input,
.funnel-application .application-field input,
.funnel-application .application-field select {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.funnel-application .application-input-wrap textarea { min-height: 150px; font-size: 17px; }
.funnel-application .application-input-wrap input:focus,
.funnel-application .application-input-wrap textarea:focus,
.funnel-application .application-detail input:focus,
.funnel-application .application-field input:focus,
.funnel-application .application-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 15%, transparent);
}
.funnel-application .application-field { color: var(--ink); font-size: 14px; font-weight: 500; }
.funnel-application .contact-fields { gap: 18px 20px; }
.funnel-application .application-field .iti__country-container { border-bottom: 0; }
.funnel-application .application-field .iti__selected-country { border-radius: 10px 0 0 10px; }

/* Buttons: same chunky blue as the offer page CTA */
.funnel-application .application-controls { margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.funnel-application .application-error { margin-top: 14px; }
.funnel-application .application-next,
.funnel-application .application-ending a {
  min-height: 54px;
  padding: 0 26px;
  border-radius: 8px;
  background: var(--blue);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18), 0 10px 22px -10px rgba(6, 91, 255, 0.7);
  font-family: var(--heading);
  font-size: 16px;
  font-weight: 700;
}
.funnel-application .application-next:hover,
.funnel-application .application-ending a:hover { background: var(--blue-dark); }
.funnel-application .application-back { color: var(--muted); font-size: 15px; font-weight: 500; }

.funnel-application .ending-line { width: 48px; height: 4px; border-radius: 2px; }
.funnel-application .application-ending p { font-size: 17px; }

/* Booking calendar stage keeps its full-width layout under the shorter header. */
.funnel-application.booking-stage-active .application-main { padding-top: 64px; }
.funnel-application .application-booking-stage,
.funnel-application .application-booking-calendar { min-height: calc(100dvh - 64px); }
.funnel-application .application-booking-calendar,
.funnel-application .application-booking-widget { background: var(--surface); }

@media (max-width: 720px) {
  .funnel-application .application-header { height: 58px; padding: 4px 14px 0; }
  .funnel-application .application-brand img { width: 38px; }
  .funnel-steps { gap: 6px; font-size: 12px; }
  .funnel-steps li { gap: 6px; }
  .funnel-steps li + li::before { width: 12px; margin-right: 0; }
  .funnel-step-extra { display: none; }
  .funnel-application .application-main { padding: 76px 12px 32px; }
  .funnel-application .application-stage,
  .funnel-application .application-ending { padding: 26px 18px 20px; border-radius: 14px; }
  .funnel-application .application-step legend,
  .funnel-application .application-ending h1 { margin-bottom: 20px; font-size: 26px; }
  .funnel-application .application-option { min-height: 56px; }
  .funnel-application .application-next { flex: 1; max-width: 240px; min-height: 52px; }
  .funnel-application.booking-stage-active .application-main { padding-top: 58px; }
  .funnel-application .application-booking-stage,
  .funnel-application .application-booking-calendar { min-height: calc(100dvh - 58px); }
}

@media (max-width: 380px) {
  .funnel-steps li:not(.is-apply) { font-size: 0; gap: 0; }
  .funnel-steps li:not(.is-apply) > span:first-child { font-size: 11px; }
  .funnel-steps li + li::before { margin-right: 6px; }
  .funnel-application .application-step legend { font-size: 24px; }
}
