    :root{
      --accent:#2b6cb0;
      --muted:#6b7280;
      --card-bg:#ffffff;
      --page-bg:#f3f4f6;
      --radius:12px;
      --max-width:980px;
      --pad:20px;
      font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    }

    html,body{ margin:0; padding:0; background:var(--page-bg); color:#0f172a; -webkit-font-smoothing:antialiased; }
    .wrap{ width:100%; max-width:var(--max-width); margin:28px auto; padding:var(--pad); box-sizing:border-box; }
    .card{ background:linear-gradient(180deg,#fff,#fbfbfb); border-radius:var(--radius); padding:22px; box-shadow:0 8px 30px rgba(15,23,42,0.06); border:1px solid rgba(15,23,42,0.04); box-sizing:border-box; overflow:hidden; }

    /* Header layout: left stacked logo + title, right empty for balance on wide screens */
    .header {
      display:flex;
      gap:18px;
      align-items:flex-start;
      margin-bottom:16px;
      flex-wrap:wrap;
    }

    .header-left {
      display:flex;
      flex-direction:column;
      gap:8px;
      align-items:flex-start;
      min-width:220px;
      box-sizing:border-box;
    }

    /* Code-based logo (top-left) */
 .logo-stack {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      gap: 15px;
      padding-top: 1px;
      width: 100%;
      box-sizing: border-box;
      text-align: center;
    }

    .code-logo-wrapper { width: 100%; display: flex; justify-content: center; }
    /* .code-logo-box {
      width: 150px;
      height: 52px;
      border-radius: 12px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 2px 8px;
      box-sizing: border-box;
      box-shadow: 0 6px 18px rgba(0,0,0,0.12);
      margin: 0 auto;
    } */
/* Increase logo size */
img {
        display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 2px 8px;
  width: 400px;
  height: auto;
}
    /* Title below logo (left aligned on wide screens, centered on small screens) */
    .connect-title {
      margin:0;
      font-family: "Montserrat", sans-serif;
      font-weight:700;
      font-size:60px;
      line-height:1.15;
      color:#1f3a5f;
      text-align:left;
    }

    .connect-sub {
      margin:0;
      font-size:13px;
      color:var(--muted);
      text-align:left;
    }

    /* Language switcher (top-right floating inside page) */
    .lang-switcher { position:fixed; top:12px; right:12px; display:flex; gap:8px; z-index:9999; }
    .lang-btn { padding:8px 10px; border-radius:8px; border:1px solid rgba(15,23,42,0.06); background:#fff; cursor:pointer; font-weight:700; }
    .lang-btn[aria-pressed="true"] { outline:2px solid rgba(43,108,176,0.18); box-shadow:0 4px 12px rgba(43,108,176,0.06); }

    /* Form layout */
    form { margin-top:6px; display:grid; gap:14px; }
    .row { display:flex; gap:12px; }
    .col { flex:1; display:flex; flex-direction:column; gap:8px; }
    label { font-weight:700; font-size:13px; color:#0f172a; }
    input[type="text"], input[type="tel"], input[type="email"], textarea, select, input[type="number"], input[type="date"] {
      padding:10px 12px; border-radius:10px; border:1px solid rgba(15,23,42,0.06); background:#fff; font-size:14px; color:#0f172a;
      box-sizing:border-box;
    }
    textarea { min-height:160px; resize:vertical; width:100%; }
    .large-textarea { min-height:200px; font-size:15px; padding:14px; }

    .small-muted{ font-size:13px; color:var(--muted); }

    .group { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
    .checkbox, .radio { display:inline-flex; align-items:center; gap:8px; padding:8px 10px; border-radius:10px; background:#fff; border:1px solid rgba(15,23,42,0.04); cursor:pointer; }
    .checkbox input, .radio input { margin:0; }

    .actions { display:flex; gap:12px; align-items:center; margin-top:6px; }
    .btn { background:var(--accent); color:#fff; padding:10px 14px; border-radius:10px; border:0; cursor:pointer; font-weight:800; text-decoration:none; display:inline-flex; align-items:center; gap:8px; }
    .btn-ghost { background:#fff; border:1px solid rgba(15,23,42,0.06); color:#0f172a; padding:10px 12px; border-radius:10px; cursor:pointer; }

    .field-error { color:#b91c1c; font-size:13px; display:none; margin-top:6px; }

    .thankyou {
      display:none;
      margin-top:12px;
      padding:14px;
      border-radius:10px;
      background: linear-gradient(180deg, rgba(43,108,176,0.08), rgba(43,108,176,0.04));
      border:1px solid rgba(43,108,176,0.12);
      color:#0f172a;
      font-weight:700;
    }

    .address-row { display:flex; gap:8px; align-items:center; position:relative; }
    .suggestions { position:absolute; top:44px; left:0; right:0; background:#fff; border:1px solid rgba(15,23,42,0.08); border-radius:8px; max-height:220px; overflow:auto; z-index:40; box-shadow:0 8px 20px rgba(15,23,42,0.06); }
    .suggestion-item { padding:8px 10px; cursor:pointer; border-bottom:1px solid rgba(15,23,42,0.03); }
    .suggestion-item:last-child { border-bottom:0; }
    .suggestion-item:hover { background:rgba(43,108,176,0.04); }

    .kids-block { margin-top:8px; padding:10px; border-radius:10px; background:linear-gradient(180deg,#fff,#fbfbfb); border:1px solid rgba(15,23,42,0.04); }
    .kid-row { display:flex; gap:8px; align-items:center; margin-top:8px; flex-wrap:wrap; }
    .kid-row input[type="text"], .kid-row input[type="number"], .kid-row select { padding:8px 10px; }

    .teams-block { margin-top:8px; padding:10px; border-radius:10px; background:linear-gradient(180deg,#fff,#fbfbfb); border:1px solid rgba(15,23,42,0.04); display:none; }
    footer.site-footer { margin-top:18px; padding:18px 0; text-align:center; color:var(--muted); font-size:13px; }

    /* Footer placement handled outside .card in markup */

    /* Replace the global img rule with a scoped, responsive logo rule */
.logo-stack img,
.code-logo-wrapper img {
  max-width: 100%;
  width: 320px; /* default logo width */
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

/* Reduce title size on small screens so it doesn't force horizontal overflow */
.connect-title {
  font-size: 40px; /* safer default for mobile */
  line-height: 1.08;
}

/* Restore larger title only on wide screens */
@media (min-width: 1100px) {
  .logo-stack img,
  .code-logo-wrapper img { width: 400px; }
  .connect-title { font-size: 60px; }
}

/* Ensure header children can shrink on narrow viewports */
.header { align-items:flex-start; }
.header-left { min-width: 0; }

/* Prevent accidental horizontal overflow from any element */
html, body {
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
}

/* Keep address suggestions and other absolute elements inside the container */
.address-row, .suggestions {
  max-width: 100%;
  box-sizing: border-box;
}

/* Optional: make the language switcher avoid overlapping content on very small screens */
.lang-switcher { right: 8px; top: 10px; }
@media (max-width:420px) {
  .lang-switcher { transform: scale(0.95); }
}

    /* Responsive adjustments */
    @media (max-width:720px){
      .header { gap:12px; }
      .header-left { min-width:0; width:100%; align-items:center; }
      .code-logo-wrapper { justify-content:center; }
      .connect-title, .connect-sub { text-align:center; }
      .row { flex-direction:column; }
      .code-logo-box { width:96px; height:46px; padding:2px 6px; }
      .code-logo-cmr, .code-logo-hub { font-size:18px; }
    }

    @media (min-width:900px){
      .header { align-items:flex-start; }
      .header-left { align-items:flex-start; }
      .connect-title { text-align:left; }
      .connect-sub { text-align:left; }
    }

    /* small visual helpers */
    .visually-hidden { position:absolute !important; height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }
