*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --cream:   #c4bdab;
      --dark:    #1f1f1f;
      --text:    #2c1e14;
      --muted:   #7a6a58;
      --gold:    #8b6b45;
      --border:  rgba(44,30,20,0.18);
      --serif:   'Cormorant Garamond', Georgia, serif;
      --sans:    'Montserrat', sans-serif;
    }

    html, body { height: 100%; overflow: hidden; background: transparent; }

    body {
      color: var(--text);
      font-family: var(--sans);
      font-weight: 300;
      display: flex;
      flex-direction: column;
    }

    /* ── HEADER ─────────────────────────────────────────────── */
    header {
      background: var(--dark);
      height: 52px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      flex-shrink: 0;
      z-index: 10;
    }

		.content-inner input:-webkit-autofill,
.content-inner input:-webkit-autofill:hover,
.content-inner input:-webkit-autofill:focus,
.content-inner input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #C4BDAB inset !important;
    -webkit-text-fill-color: #333 !important;
    transition: background-color 5000s ease-in-out 0s;
}

    .hdr-back {
      position: absolute;
      left: 36px;
      font-family: var(--sans);
      font-size: 8px;
      font-weight: 500;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.45);
      text-decoration: none;
    }
    .hdr-back:hover { color: rgba(255,255,255,0.75); }

    .hdr-title {
      font-family: var(--sans);
      font-size: 9px;
      font-weight: 500;
      letter-spacing: 0.26em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.45);
    }

    /* ── BODY LAYOUT ────────────────────────────────────────── */
    .app-layout {
      display: flex;
      flex: 1;
      overflow: hidden;
      background: var(--cream);
    }

    /* ── SIDEBAR ────────────────────────────────────────────── */
    .sidebar {
      width: 23.8%;
      min-width: 220px;
      max-width: 320px;
      position: relative;
      flex-shrink: 0;
      overflow: visible;
      background: transparent;
      /* shadow only from the leather image's drop-shadow */
      z-index: 5;
    }

    /* Leather image fills sidebar, preserving rounded corners + alpha */
    .sidebar-leather {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: right top;
      margin-top: -4px;
      display: block;
      z-index: 0;
      /* drop-shadow respects alpha — shadow follows leather shape, not the box */
      filter: drop-shadow(12px 0 28px rgba(0,0,0,0.75)) drop-shadow(4px 0 10px rgba(0,0,0,0.5));
    }

    /* Sidebar content above leather */
    .sidebar-inner {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      height: 100%;
      padding: 48px 0 40px;
    }

    /* Sidebar logo */
    .sidebar-logo {
      width: 55%;
      max-width: 150px;
      margin-bottom: 52px;
    }
    .sidebar-logo img {
      width: 100%;
      height: auto;
      display: block;
    }

    /* Sidebar nav */
    .sidebar-nav {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      padding: 0 18% 0 14%;
      width: 100%;
      gap: 26px;
    }

    .snav-item {
      font-family: var(--sans);
      font-size: clamp(9px, 0.78vw, 11px);
      font-weight: 500;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: rgba(160,110,60,0.6);
      background: none;
      border: none;
      cursor: pointer;
      text-align: left;
      padding: 2px 0;
      transition: color 0.2s;
      width: 100%;
    }
    .snav-item:hover { color: rgba(160,110,60,0.9); }
    .snav-item.active { color: #c8882a; font-size: calc(clamp(9px, 0.78vw, 11px) * 1.15); }

    /* ── CONTENT PANEL ──────────────────────────────────────── */
    .content-panel {
      flex: 1;
      background: var(--cream);
      overflow-y: auto;
      overflow-x: hidden;
      min-width: 0;
    }


    /* Inner content wrapper — matches PSD content width */
    .content-inner {
      max-width: 1280px;
      padding: 56px 60px 100px;
    }

    /* ── PAGE VISIBILITY ────────────────────────────────────── */
    .page { display: none; }
    .page.active { display: block; }

    /* ── COVER PAGE ─────────────────────────────────────────── */
    .cover-logo-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: 22px;
    }

    .cover-logo-mark {
      position: relative;
      width: 130px;
      height: calc(130px * 76.43 / 165);
      margin-bottom: 0;
    }
    .cover-logo-mark svg {
      position: absolute; top:0; left:0;
      width: 100%; height: 100%;
    }

    .cover-wordmark {
      font-family: var(--sans);
      font-size: 8px;
      font-weight: 500;
      letter-spacing: 0.26em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .cover-rule {
      border: none;
      border-top: 1px solid rgba(44,30,20,0.2);
      margin: 18px 0 26px;
    }

    .cover-subtitle {
      font-family: var(--serif);
      font-size: 26px;
      font-style: italic;
      font-weight: 300;
      text-align: center;
      color: var(--muted);
      margin-bottom: 44px;
    }

    .cover-body h2 {
      font-family: var(--sans);
      font-size: 9px;
      font-weight: 600;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--text);
      margin-bottom: 20px;
    }

    .cover-body p {
      font-family: var(--sans);
      font-size: 13px;
      font-weight: 400;
      line-height: 1.9;
      color: var(--text);
      margin-bottom: 18px;
    }

    .cover-body p em {
      font-family: var(--serif);
      font-style: italic;
      font-size: 14px;
    }

    .cover-sig { margin-top: 36px; }
    .cover-sig-name {
      font-family: var(--sans);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.1em;
      color: var(--text);
      margin-top: 10px;
    }
    .cover-sig-title { font-size: 11px; color: var(--muted); margin-top: 4px; }

    .cover-disclaimer {
      margin-top: 36px;
      padding-top: 20px;
      border-top: 1px solid var(--border);
      font-size: 10px;
      font-style: italic;
      color: var(--muted);
      text-align: center;
      line-height: 1.7;
    }

    /* ── REFERRED BY ────────────────────────────────────────── */
    .referred-wrap {
      margin: 36px 0 0;
      border-top: 1px solid var(--border);
      padding-top: 28px;
    }
    .referred-wrap label {
      font-family: var(--sans);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--text);
      display: block;
      margin-bottom: 12px;
    }


    .referred-wrap input {
      width: 100%;
      background: transparent;
      border: none;
      border-bottom: 1px solid #2c1e142e;
      outline: none;
      font-family: var(--sans);
      font-size: 16px;
      font-weight: 300;
      color: var(--text);
      padding: 8px 0 12px;
    }

    /* ── GOLD BUTTON ────────────────────────────────────────── */
    .btn-gold {
      display: inline-block;
      margin-top: 36px;
      font-family: var(--sans);
      font-size: 9px;
      font-weight: 500;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      padding: 14px 32px;
      border: 1px solid var(--gold);
      color: var(--gold);
      background: transparent;
      cursor: pointer;
      transition: all 0.2s;
    }
    .btn-gold:hover { background: var(--gold); color: var(--cream); }

    /* ── SECTION ELEMENTS ───────────────────────────────────── */
    .section-num {
      font-family: var(--sans);
      font-size: 9px;
      font-weight: 500;
      letter-spacing: 0.24em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 12px;
    }
    .section-title {
      font-family: var(--serif);
      font-size: 38px;
      font-weight: 300;
      line-height: 1.1;
      color: var(--text);
      margin-bottom: 12px;
    }
    .section-subtitle {
      font-size: 12px;
      color: var(--muted);
      line-height: 1.7;
      margin-bottom: 40px;
    }
    .section-header { margin-bottom: 40px; }

    /* ── MEMBERSHIP CARDS ───────────────────────────────────── */
    .membership-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2px;
      background: var(--border);
      border: 1px solid var(--border);
    }
    /* Top row cards fill equal height */
    .membership-card {
      display: flex;
      flex-direction: column;
    }
    .mc-desc {
      flex: 1;
    }

    .membership-card {
      background: var(--cream);
      padding: 18px 18px;
      cursor: pointer;
      transition: background 0.2s;
    }
    .membership-card:hover { background: rgba(44,30,20,0.04); }
    .membership-card.selected { background: var(--dark); }
    .membership-card input[type="radio"] { display: none; }
    .mc-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 10px;
    }
    .mc-check {
      width: 12px; height: 12px;
      border: 1px solid var(--border);
      border-radius: 50%;
      flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
    }
    .membership-card.selected .mc-check { border-color: var(--gold); background: var(--gold); }
    .mc-check::after {
      content: ''; width: 5px; height: 5px;
      border-radius: 50%; background: white; display: none;
    }
    .membership-card.selected .mc-check::after { display: block; }
    .mc-name { font-family: var(--serif); font-size: 16px; font-weight: 400; color: var(--text); margin-bottom: 0; line-height: 1.2; }
    .membership-card.selected .mc-name { color: var(--cream); }
    .mc-desc { font-size: 10.5px; font-weight: 400; line-height: 1.5; color: var(--muted); margin-bottom: 12px; }
    .mc-desc p { font-size: 10.5px; font-weight: 400; line-height: 1.5; color: var(--muted); margin-bottom: 4px; }
    .membership-card.selected .mc-desc p { color: rgba(196,189,171,0.7); }
    .membership-card.selected .mc-desc { color: rgba(196,189,171,0.7); }
    .mc-fees {
      display: grid; grid-template-columns: 1fr 1fr;
      gap: 10px; border-top: 1px solid var(--border); padding-top: 12px;
    }
    .membership-card.selected .mc-fees { border-top-color: rgba(196,189,171,0.2); }
    .mc-fee-label, .mc-dues-label {
      font-size: 8px; font-weight: 500; letter-spacing: 0.16em;
      text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
    }
    .membership-card.selected .mc-fee-label,
    .membership-card.selected .mc-dues-label { color: rgba(196,189,171,0.5); }
    .mc-fee-value, .mc-dues-value { font-family: var(--serif); font-size: 18px; color: var(--text); }
    .membership-card.selected .mc-fee-value,
    .membership-card.selected .mc-dues-value { color: var(--cream); }

    /* ── FORM FIELDS ────────────────────────────────────────── */
    .form-section { margin-bottom: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--border); }
    .form-section:last-of-type { border-bottom: none; }
    .form-section-title {
      font-family: var(--serif); font-size: 20px; font-weight: 400;
      color: var(--text); margin-bottom: 22px; padding-bottom: 12px;
      border-bottom: 1px solid var(--border);
    }
    .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border); }
    .form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
    .form-grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
    .field {
      position: relative;
      border-bottom: 1px solid var(--border);
      border-right: 1px solid var(--border);
    }
    .field:nth-child(even) { border-right: none; }
    .field.full { grid-column: 1/-1; border-right: none; }
    .field.col-3:nth-child(3n) { border-right: none; }
    .field.col-4:nth-child(4n) { border-right: none; }
    .field label {
      position: absolute; top: 14px; left: 16px;
      font-size: 10px; font-weight: 500;
      letter-spacing: 0.14em; text-transform: uppercase; color: var(--text);
    }
    /* Custom cream-background checkboxes */
    input[type="checkbox"] {
      appearance: none;
      -webkit-appearance: none;
      width: 14px;
      height: 14px;
      min-width: 14px;
      border: 1px solid rgba(44,30,20,0.35);
      background: var(--cream);
      cursor: pointer;
      position: relative;
      vertical-align: middle;
      border-radius: 2px;
      flex-shrink: 0;
    }
    input[type="checkbox"]:checked {
      background: var(--gold);
      border-color: var(--gold);
    }
    input[type="checkbox"]:checked::after {
      content: '';
      position: absolute;
      left: 3px;
      top: 0px;
      width: 5px;
      height: 9px;
      border: 2px solid var(--cream);
      border-top: none;
      border-left: none;
      transform: rotate(45deg);
    }
		 #page-5 > .content-inner {
    padding: 0 !important;
  }
.field-error {
    color: #c0392b;
    font-size: 11px;
    margin-top: 6px;
    letter-spacing: 0.05em;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    padding: 4px 16px;
    background: rgba(192, 57, 43, 0.05);
    border-left: 2px solid #c0392b;
}

        .field input, .field textarea, .field select {
      width: 100%; background: transparent; border: none; outline: none;
      font-family: var(--sans); font-size: 13px; font-weight: 300;
      color: var(--text); padding: 36px 16px 13px; resize: none; appearance: none;
    }
    .field textarea { min-height: 95px; }

    /* ── CHECK/RADIO GROUPS ─────────────────────────────────── */
    .check-group { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px 12px; }
    .check-item {
      display: flex; align-items: center; gap: 8px;
      cursor: pointer; font-size: 11px; font-weight: 400; color: var(--text);
      padding: 7px 12px; border: 1px solid var(--border);
      transition: all 0.15s; user-select: none;
    }
    .check-item:hover { border-color: var(--dark); }
    .check-item input { display: none; }
    .check-dot { width: 9px; height: 9px; border: 1px solid var(--border); border-radius: 50%; flex-shrink: 0; }
    .check-item.active { background: var(--dark); border-color: var(--dark); color: var(--cream); }
    .check-item.active .check-dot { background: var(--gold); border-color: var(--gold); }

    /* ── REFERENCES ─────────────────────────────────────────── */
    .reference-block { border: 1px solid var(--border); margin-bottom: 2px; }
    .reference-num {
      font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
      text-transform: uppercase; color: var(--text); padding: 14px 18px 8px;
      border-bottom: 1px solid var(--border);
    }

    /* ── ACKNOWLEDGMENTS ────────────────────────────────────── */
    .ack-item { display: grid; grid-template-columns: 76px 1fr; gap: 0; border: 1px solid var(--border); margin-bottom: 2px; }
    .ack-initials {
      border-right: 1px solid var(--border);
      display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px;
    }
    .ack-initials label { font-size: 7px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
    .ack-initials input {
      width: 44px; text-align: center; font-family: var(--serif); font-size: 17px;
      color: var(--text); background: transparent; border: none;
      border-bottom: 1px solid var(--border); outline: none; padding: 3px 0; text-transform: uppercase;
    }
    .ack-text { padding: 18px 22px; font-size: 12px; line-height: 1.72; color: var(--text); }
    .ack-text strong {
      font-weight: 600; font-size: 9px; letter-spacing: 0.1em;
      text-transform: uppercase; display: block; margin-bottom: 5px; color: var(--dark);
    }

    /* ── SIGNATURE ──────────────────────────────────────────── */
    .sig-block { border: 1px solid var(--border); padding: 26px; margin-top: 24px; background: rgba(44,30,20,0.02); }
    .sig-intro { font-size: 12px; line-height: 1.72; color: var(--muted); margin-bottom: 22px; font-style: italic; }
    .sig-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 22px; }
    .sig-field label { font-size: 8px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
    .sig-field input { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--border); outline: none; font-family: var(--sans); font-size: 13px; color: var(--text); padding: 6px 0; }

    /* ── BUTTONS ────────────────────────────────────────────── */
    .btn {
      font-family: var(--sans); font-size: 9px; font-weight: 500;
      letter-spacing: 0.2em; text-transform: uppercase;
      padding: 13px 28px; border: 1px solid var(--dark);
      color: var(--dark); background: transparent; cursor: pointer; transition: all 0.2s;
    }
    .btn:hover { background: var(--dark); color: var(--cream); }
    .btn-primary { background: var(--dark); color: var(--cream); }
    .btn-primary:hover { background: transparent; color: var(--dark); }
    .btn:disabled { opacity: 0.35; cursor: not-allowed; }

    /* ── PAGE NAV ───────────────────────────────────────────── */
    .page-nav {
      display: flex; align-items: center; justify-content: space-between;
      margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
    }
    .page-indicator { font-size: 9px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }

    /* ── SUCCESS SCREEN ─────────────────────────────────────── */
    #success-screen { display: none; text-align: center; padding: 90px 0; }
    #success-screen h2 { font-family: var(--serif); font-size: 38px; font-weight: 300; color: var(--text); margin-bottom: 18px; }
    #success-screen p { font-size: 13px; line-height: 1.8; color: var(--muted); }

    /* ── RESPONSIVE ─────────────────────────────────────────── */
    @media only screen and  (max-width: 700px) {
      html, body { overflow: auto; height: auto; }
      .app-layout { flex-direction: column; overflow: visible; }
/*       .sidebar { width: 100%; max-width: none; height: auto; min-height: 220px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); } */
		.sidebar { display: none !important; }
      .sidebar-inner { flex-direction: row; padding: 24px 28px; gap: 32px; height: auto; }
      .sidebar-logo { margin-bottom: 0; width: 100px; }
      .sidebar-nav { flex-direction: row; flex-wrap: wrap; padding: 0; gap: 16px; align-items: center; }
      .snav-item { font-size: 8px; }
      .content-panel { overflow: visible; }
      .content-inner { padding: 50px 20px 50px 20px!important; }
    }
	
 
    @media (max-width: 600px) {
      .membership-grid { grid-template-columns: 1fr; }
      .form-grid { grid-template-columns: 1fr; }
      .form-grid-3, .form-grid-4 { grid-template-columns: 1fr; }
      .field { border-right: none !important; }
      .sig-grid { grid-template-columns: 1fr; gap: 14px; }
      .ack-item { grid-template-columns: 64px 1fr; }
    }

/* Client-approved asterisk size + color — all forms */
label span[style*="#c0392b"] {
    font-size: 20px !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    position: relative !important;
    top: -2px !important;
    color: #c0392b !important;
}

/* Darker placeholder — Referred By field */
.referred-wrap input::placeholder {
    color: #2c1e14 !important;
    opacity: 0.55 !important;
}