:root { --blue: #2478c8; --dark-blue: #1a5ea0; --yellow: #f7c948; }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: 'Nunito', sans-serif; background: #f0f8fd; color: #1a2e45; }

  .page-hero {
    background: linear-gradient(135deg, #0d2035 0%, #1a5ea0 50%, #2478c8 100%);
    padding: 80px 24px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .page-hero::before {
    content: '✍️';
    position: absolute;
    font-size: 14rem;
    opacity: .04;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }
  .page-hero-badge {
    display: inline-block;
    background: rgba(247,201,72,.2);
    border: 1.5px solid rgba(247,201,72,.5);
    color: #f7c948;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 30px;
    margin-bottom: 16px;
  }
  .page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 12px; }
  .page-hero p { font-size: .95rem; color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto; line-height: 1.65; }
  .hero-wave { line-height: 0; background: #f0f8fd; }
  .hero-wave svg { display: block; width: 100%; }

  .doc-wrap { max-width: 860px; margin: 0 auto; padding: 48px 24px 80px; }

  .back-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; background: var(--blue); color: #fff;
    border-radius: 30px; font-size: .88rem; font-weight: 800;
    text-decoration: none; margin-bottom: 28px; transition: background .2s;
  }
  .back-btn:hover { background: var(--dark-blue); }

  /* The formal consent document */
  .consent-doc {
    background: #fff;
    border-radius: 20px;
    padding: 40px 44px;
    box-shadow: 0 4px 24px rgba(36,120,200,.10);
    margin-bottom: 24px;
    border-top: 5px solid var(--blue);
  }
  .consent-doc-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e8f0fb;
  }
  .consent-doc-header .org-name {
    font-size: .85rem;
    font-weight: 700;
    color: #7a95aa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
  }
  .consent-doc-header h2 {
    font-size: 1.35rem;
    font-weight: 900;
    color: #1a2e45;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  .consent-doc-header .doc-num {
    font-size: .8rem;
    color: #7a95aa;
    font-weight: 600;
  }

  .consent-body p {
    font-size: .93rem;
    line-height: 1.8;
    color: #2a3d52;
    margin-bottom: 14px;
    text-align: justify;
  }
  .consent-body p strong { color: #1a2e45; }
  .consent-body ul {
    padding-left: 22px;
    margin: 10px 0 14px;
  }
  .consent-body li {
    font-size: .93rem;
    line-height: 1.8;
    color: #2a3d52;
    margin-bottom: 4px;
  }
  .consent-body .section-title {
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue);
    margin: 20px 0 8px;
  }

  /* Inline consent block for booking */
  .consent-inline-demo {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fb 100%);
    border: 2px solid #c8dff5;
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 24px;
  }
  .consent-inline-demo h3 {
    font-size: 1rem;
    font-weight: 900;
    color: var(--dark-blue);
    margin-bottom: 6px;
  }
  .consent-inline-demo p {
    font-size: .85rem;
    color: #445;
    margin-bottom: 16px;
    line-height: 1.6;
  }
  .consent-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 10px;
    border: 1.5px solid #c8dff5;
    margin-bottom: 10px;
  }
  .consent-checkbox-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
    cursor: pointer;
    accent-color: var(--blue);
  }
  .consent-checkbox-row label {
    font-size: .88rem;
    line-height: 1.55;
    color: #2a3d52;
    cursor: pointer;
  }
  .consent-checkbox-row label a { color: var(--blue); font-weight: 700; }

  .doc-section {
    background: #fff; border-radius: 20px; padding: 28px 32px;
    margin-bottom: 20px; box-shadow: 0 2px 16px rgba(36,120,200,.07);
  }
  .doc-section h2 {
    font-size: 1.1rem; font-weight: 900; color: var(--dark-blue);
    margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid #e8f0fb;
  }
  .doc-section p { font-size: .9rem; line-height: 1.72; color: #2a3d52; margin-bottom: 10px; }
  .doc-section p:last-child { margin-bottom: 0; }

  /* Code snippet */
  .code-block {
    background: #1a2e45;
    border-radius: 12px;
    padding: 20px 22px;
    margin: 16px 0;
    overflow-x: auto;
  }
  .code-block pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: .8rem;
    color: #a8d8ea;
    line-height: 1.6;
    white-space: pre-wrap;
  }
  .code-block pre .tag { color: #f7c948; }
  .code-block pre .attr { color: #90ee90; }
  .code-block pre .val { color: #ffb6c1; }
  .code-block pre .comment { color: #6a8fa8; font-style: italic; }

  .info-box {
    background: #f0f7ff; border: 1.5px solid #c8dff5; border-radius: 12px;
    padding: 14px 18px; margin: 16px 0; font-size: .88rem; color: #1a4a7a; line-height: 1.65;
  }

  @media (max-width: 640px) {
    .consent-doc { padding: 24px 20px; }
    .doc-section { padding: 20px 18px; }
  }