
.demo-header {
  position: sticky;
  top: 0;
  z-index: 20;

  /* Gradient background */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.85),
    rgba(240, 240, 245, 0.5)
  );

  /* Inner and outer shadows */


  /* Glass effect */
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);

  /* Subtle border highlights */
  border-top: 1px solid var(--edge-t, rgba(255, 255, 255, 0.9));
  border-left: 1px solid var(--edge-l, rgba(255, 255, 255, 0.55));
  border-right: 1px solid var(--edge-r, rgba(255, 255, 255, 0.25));
  border-bottom: 1px solid var(--edge-b, rgba(255, 255, 255, 0.18));
}





.demo-header-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;

  display: flex;
  align-items: center;
  gap: 16px;
}


/* =========================================
   BRAND
========================================= */

.brand {
  display: flex;
  align-items: center;

  flex-shrink: 0;

  text-decoration: none;
  color: var(--header-text);
}

.brand-logo {
  display: block;

  width: 34px;
  height: 65px;

  object-fit: contain;
  object-position: left center;
}

.brand-name {
  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 2px;
  padding-left: 6px;
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;

  color: var(--header-text);
}

.brand-name small {
  color: var(--header-muted);

  font-size: 11px;
  font-weight: 500;

  white-space: nowrap;
  line-height: 1.4;
}

.demo-brand {
  display: flex;
  align-items: center;
  gap: 10px;

  color: var(--text, #0f172a);
  text-decoration: none;
  font-weight: 800;
}

.demo-brand-mark {
  width: 34px;
  height: 32px;
  flex-shrink: 0;

  display: grid;
  place-items: center;

  border-radius: 4px 8px 8px 4px;
  background: linear-gradient(135deg, #3a3a3f, #1b1b1e);
  box-shadow:
    0 6px 14px -6px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.demo-brand-mark-inner {
  padding: 3px 6px 4px 5px;
  border-radius: 2px 8px 8px 2px;

  background: #fffdf4;
  color: #2f6df6;

  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.demo-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.demo-brand-copy strong {
  font-size: 1rem;
}

.demo-brand-copy small {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--dim, #5b6474);
}

.demo-header-actions {
  margin-left: auto;

  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-theme-toggle {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;

  border: 1px solid var(--line, rgba(15, 23, 42, 0.12));
  border-radius: 8px;

  background: var(--paper, #fffdf7);
  color: var(--text, #0f172a);

  font-size: 1rem;
  cursor: pointer;
}

.demo-home-link {
  padding: 10px 2px;

  color: var(--dim, #5b6474);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.demo-home-link:hover {
  color: var(--text, #0f172a);
}

.demo-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
  padding: 12px 20px;
  border-radius: 8px;

  background: linear-gradient(135deg, #2b2b30, #1b1b1e);
  color: #fffdf4;

  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.demo-header-cta:hover {
  opacity: 0.9;
}

.demo-header a:focus-visible,
.demo-theme-toggle:focus-visible {
  outline: 3px solid var(--blue, #2f6bd8);
  outline-offset: 3px;
}

body[data-theme="dark"] .demo-brand-mark {
  background: linear-gradient(135deg, #2f6bd8, #1e40af);
}

body[data-theme="dark"] .demo-brand-mark-inner {
  background: #fff;
  color: #111827;
}

body[data-theme="dark"] .demo-header-cta {
  background: linear-gradient(135deg, #2f6bd8, #1e40af);
  color: #fff;
}

@media (max-width: 520px) {
  .demo-header-inner {
    padding: 12px 14px;
    gap: 8px;
  }

  .demo-header-actions {
    gap: 8px;
  }

  .demo-brand {
    gap: 7px;
  }

  .demo-brand-copy strong {
    font-size: 0.88rem;
  }

  .demo-brand-copy small {
    font-size: 0.64rem;
  }

  .demo-theme-toggle {
    min-width: 38px;
    min-height: 40px;
    padding: 8px;
  }

  .demo-home-link {
    font-size: 0.8rem;
  }

  .demo-header-cta {
    min-height: 40px;
    padding: 9px 11px;
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .demo-brand-copy small {
    display: none;
  }

  .demo-header-inner {
    padding-inline: 10px;
  }
}

.demo-footer {
  position: relative;
  z-index: 1;

  padding: 28px 0;

  color: var(--dim, #5b6474);
  font-size: 0.85rem;

  border-top: 1px solid var(--line, rgba(15, 23, 42, 0.12));

  background: var(
    --glass,
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.85),
      rgba(240, 240, 245, 0.5)
    )
  );

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.demo-footer-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.demo-footer a {
  color: inherit;
  text-decoration: underline;
  color: rgba(0, 0, 255, 0.618);
}

.demo-footer a:hover {
  color: var(--text, #0f172a);
  text-decoration: underline;
}

@media (max-width: 480px) {
  .demo-footer-inner {
    padding: 0 14px;
    gap: 7px;
    font-size: 0.8rem;
  }
}
:root {
  color-scheme: light;

  --bg: #f1f5f9;
  --paper: #fffdf7;

  /* Original glass gradient */
 --glass: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.85),
    rgba(240, 240, 245, 0.5)
  ),
  inset 0 1px 1px rgba(255, 255, 255, 1),
  inset 0 -1px 1px rgba(200, 200, 205, 0.3),
  0 40px 100px -20px rgba(17, 24, 39, 0.15),
  0 4px 16px rgba(17, 24, 39, 0.05);

  /* Original inset borders and shadows */
  --glass-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 1),
    inset 0 -1px 1px rgba(200, 200, 205, 0.3),
    0 40px 100px -20px rgba(17, 24, 39, 0.15),
    0 4px 16px rgba(17, 24, 39, 0.05);

  /* Original glass opacity values */
  --glass-white: rgba(255, 255, 255, 0.9);
  --glass-medium: rgba(255, 255, 255, 0.55);
  --glass-light: rgba(255, 255, 255, 0.25);
  --glass-subtle: rgba(255, 255, 255, 0.18);
  --glass-zero: 0;

  --line: rgba(15, 23, 42, 0.12);
  --line-soft: rgba(15, 23, 42, 0.08);
  --edge: rgba(255, 255, 255, 0.7);

  --text: #0f172a;
  --dim: #5b6474;

  --blue: #2f6bd8;
  --green: #059669;
  --green-bg: #e6f7ef;
  --red: #dc2626;

  --radius: 12px;
  --max: 1120px;

  --font: "Inter", system-ui, sans-serif;
  --font-body: "Raleway", "Inter", system-ui, sans-serif;
}


/* Page container */

.signin-page {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 18px 48px;
}

.signin-intro {
  margin-bottom: 39px;
}

.signin-overline {
  margin: 0 0 7px;
  color: #2865ed;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.5;
  text-transform: uppercase;
}

.signin-intro h1 {
  margin: 10px 0;
  color: #111827;
  font-size: clamp(22px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1.7px;
  

  /* Improve text clarity */
  opacity: 1;
  filter: none;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.25);
}

.signin-description {
  max-width: 605px;
  margin: 18px 0;
  color: #6c788b;
  font-size: 18px;
  font-family: "Raleway", "Inter", sans-serif;
  font-weight: 400;
  line-height: 1.75;
  white-space: pre-line;

  opacity: 1;
  filter: none;
  text-shadow: none;
}

/* Two-card layout */

.demo-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.demo-info-card,
.demo-form-card {
  min-width: 0;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba
#ffffff80
(255, 255, 255, .5), 0 20px 50px -20px rgba(15, 23, 42, .25);
}

.demo-info-card {
  padding: 19px 21px 20px;
}

.demo-form-card {
  padding: 26px;
}

/* Directus content: style the HTML returned by demo_meta_data */

.cms-content {
  color: #172238;
}

.cms-content section {
  margin: 0;
}

.cms-content h2 {
  margin: 0 0 17px;
  color: #172238;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.45px;
  
}

.cms-content > section > div {
  margin: 0 0 10px;
  padding: 14px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: var(--glass);
  backdrop-filter: blur(16px);
}

.cms-content > section > div:nth-of-type(n + 4) {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.cms-content h3 {
  margin: 0;
  color: #172238;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
}

.cms-content p {
  margin: 0;
  color: #59667c;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.cms-content > section > div:nth-of-type(n + 4) {
  margin:18px 0 14.4px;
  font-family: "Raleway", "Inter", sans-serif;
}

.cms-content > section > div:nth-of-type(4) p {
  margin-top: 6px;
  font-size: 14px;
  font-family: "Raleway", "Inter", sans-serif;
  line-height: 1.6;
}

.cms-content > section > div:nth-of-type(5) {
  margin-top: 12px;
}

.cms-content > section > div:nth-of-type(5) p {
  color: #778195;
  font-size: 13.4px;
  margin:13.4px 0;
  font-family: "Raleway", "Inter", sans-serif;
  line-height: 1.7;
}

.cms-content a {
  color: #68758b;
  text-decoration: none;
}

.cms-content a:hover {
  text-decoration: underline;
}

/* Progress row */

.progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 3px 0 17px;
}

.progress-track {
  position: relative;
  height: 4px;
  flex: 1;
  overflow: hidden;
  border-radius: 99px;
  background: #d6e3ed;
}

#progress-fill {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: #3268e9;
  transition: width 0.2s ease;
}

.progress-label {
  flex-shrink: 0;
  color: #657187;
  font-family: monospace;
  font-size: 10px;
  white-space: nowrap;
}

/* Form headings */

.form-step-title {
  margin: 0 0 13px;
  color: #172238;
  font-size: 18.72px;
  font-weight: 800;
  line-height: 1.6;
}

/* Fields */

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-bottom: 23px;
}

.field > label {
  margin-bottom: 6px;
  color: #172238;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.required {
  color: #e0444e;
  font-weight: 800;
}

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 12px;
  border: 1px solid #e3ded6;
  border-radius: 7px;
  outline: none;
  background: #fffdf7;
  color: #0f172a;
  font-size: 14.4px;
  line-height: 1.5;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #7b7b7b;
  opacity: 1;
}

.field select {
  padding-right: 25px;
}

.field textarea {
  min-height: 82px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #7196ed;
  box-shadow: 0 0 0 2px rgba(50, 104, 233, 0.09);
}

.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-color: #d93645;
}

.field-error {
  margin-top: 4px;
  color: #c92d3b;
  font-size: 10px;
  line-height: 1.5;
}

.field-error:empty {
  display: none;
}

/* Checkbox */

.consent-field {
  margin-top: 4px;
}

.consent-label {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin: 2px 0 0;
  accent-color: #3268e9;
}

.consent-label > span {
  color: #59667c;
  font-size: 10px;
  font-weight: 500;
}

/* Actions */

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 30px;
}

.continue-button,
.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
  transition: background 0.18s ease, transform 0.18s ease;
}

.continue-button {
  min-width: 165px;
  margin-left: auto;
  background: #242426;
  color: #fff;
}

.continue-button:hover {
  transform: translateY(-1px);
  background: #37373a;
}

.back-button {
  border-color: #d7dce5;
  background: transparent;
  color: #303c50;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.form-testimonial {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 12px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid rgba(115, 131, 157, 0.16);
  color: #626d82;
  font-size: 12.8px;
  line-height: 1.7;
}

.form-step-description {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: #657187;
  font-size: 12px;
  line-height: 1.6;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  background: #ffffff;
  color: #e88712;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  transform: rotate(-2deg);
  white-space: nowrap;
}

/* Successful demo submission card */

.form-success[hidden] {
  display: none !important;
}

.form-success {
  width: 100%;
  min-height: 250px;
  padding: 25px 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  color: #172238;
}

.success-check {
  width: 45px;
  height: 45px;
  margin: 0 auto 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #009b71;
  border: 1px solid #00aa7c;
  border-radius: 50%;
  background: rgba(0, 190, 135, 0.045);
}

.form-success h2 {
  margin: 0 0 17px;
  color: #172238;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}

.success-summary {
  margin: 0 0 13px;
  color: #778195;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.success-engine-button {
  min-height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 7px;
  background: #242426;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.success-engine-button:hover {
  background: #37373a;
  transform: translateY(-1px);
}

.success-note {
  max-width: 300px;
  margin: 13px 0 0;
  color: #778195;
  font-size: 10px;
  line-height: 1.7;
}

.success-note a {
  color: inherit;
  text-decoration: none;
}

.success-note a:hover {
  text-decoration: underline;
}

.success-edit-button {
  margin-top: 13px;
  padding: 5px 10px;
  border: 0;
  background: transparent;
  color: #657187;
  font-size: 10px;
  cursor: pointer;
}

.success-edit-button:hover {
  color: #2865ed;
}

@media (max-width: 480px) {
  .form-success {
    padding: 22px 8px 16px;
  }

  .success-note {
    max-width: 260px;
  }

  .signin-description {
    font-size: 14px;
  }

.cms-content h2 {
    font-size: 20px;
}

.cms-content h3 {
    font-size: 16px;
}

.cms-content p{
    font-size: 14px;
}

.demo-info-card, .demo-form-card {
    padding: 0px;
}

.cms-content > section > div:nth-of-type(4) p{
    font-size: 12px;
}

}

/* Tablet */

@media (max-width: 720px) {
  .demo-page {
    max-width: 560px;
    padding: 28px 18px 36px;
  }

  .demo-intro {
    margin-bottom: 28px;
  }

  .demo-intro h1 {
    font-size: clamp(29px, 6vw, 37px);
  }

  .demo-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .demo-info-card,
  .demo-form-card {
    padding: 21px;
  }
}

/* Mobile */

@media (max-width: 420px) {
  .demo-page {
    padding: 24px 13px 30px;
  }

  .demo-intro {
    margin-bottom: 23px;
  }

  .demo-intro h1 {
    font-size: 30px;
    letter-spacing: -1.2px;
  }

  .demo-description {
    font-size: 12px;
  }

  .demo-info-card,
  .demo-form-card {
    padding: 17px 15px;
  }

  .cms-content h2 {
    font-size: 19px;
  }

  .form-testimonial {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .continue-button {
    min-width: 135px;
  }
}
