/*! Bamboo Wealth — Contact & Support form styles. Everything is scoped under .bwf */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@500,700,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

.bwf {
  --bw-green: #085e39;
  --bw-green-dark: #053521;
  --bw-green-light: #489f7b;
  --bw-green-tint: #c4e5d7;
  --bw-green-wash: #eef7f2;
  --bw-purple: #4d0d7f;
  --bw-purple-dark: #3b0a61;
  --bw-purple-light: #8952b3;
  --bw-purple-tint: #bf9ed9;
  --bw-purple-wash: #f5effa;
  --bw-ink: #0f1a14;
  --bw-body: #33403a;
  --bw-muted: #5f6b65;
  --bw-grey: #7a7a7a;
  --bw-line: #dfe6e2;
  --bw-line-strong: #c3cec8;
  --bw-surface: #ffffff;
  --bw-canvas: #f6f8f7;
  --bw-error: #ce1f00;
  --bw-error-wash: #fdf0ed;
  --bw-warn-wash: #fff7e6;
  --bw-warn-line: #f0c36d;
  --bw-radius: 16px;
  --bw-radius-sm: 10px;
  --bw-shadow: 0 1px 2px rgba(15, 26, 20, .04), 0 12px 32px -12px rgba(5, 53, 33, .14);
  --bw-focus: 0 0 0 3px rgba(72, 159, 123, .45);
  --bw-display: 'Satoshi', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bw-text: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  font-family: var(--bw-text);
  font-size: 16px;
  line-height: 1.55;
  color: var(--bw-body);
  -webkit-font-smoothing: antialiased;
  max-width: 880px;
  margin: 0 auto;
}
.bwf *, .bwf *::before, .bwf *::after { box-sizing: border-box; }
/* Reset at class-level specificity (0,1,0): beats Webflow's element defaults (p, h2, label…)
   but loses to the component classes below, which come later in the file. */
.bwf :where(h1, h2, h3, p, fieldset, legend, ul, ol, dl, dt, dd, label, input, select, textarea, button) { margin: 0; padding: 0; }
.bwf :where(label) { display: block; font-weight: 400; max-width: none; }
.bwf :where(h1, h2, h3) { font-size: inherit; line-height: inherit; }
.bwf fieldset { border: 0; min-width: 0; }
.bwf button { font: inherit; }
.bwf a { color: var(--bw-purple); text-underline-offset: 3px; }
.bwf a:hover { color: var(--bw-purple-dark); }
.bwf .bwf-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Shell ---------- */
.bwf-card {
  background: var(--bw-surface);
  border: 1px solid var(--bw-line);
  border-radius: 24px;
  box-shadow: var(--bw-shadow);
  overflow: hidden;
}
.bwf-head { padding: 28px 20px 0; }
.bwf-brandrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.bwf-logo { height: 34px; width: auto; display: block; }
.bwf-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--bw-muted); font-weight: 500; }
.bwf-secure svg { width: 14px; height: 14px; color: var(--bw-green); flex: none; }

/* Progress */
.bwf-progress { margin-bottom: 4px; }
.bwf-progress-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--bw-muted); margin-bottom: 8px; }
.bwf-progress-meta strong { color: var(--bw-purple); font-weight: 600; letter-spacing: .02em; }
.bwf-bar { height: 6px; border-radius: 99px; background: var(--bw-green-wash); overflow: hidden; }
.bwf-bar > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--bw-green), var(--bw-green-light)); transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.bwf-steps { display: none; }

.bwf-body { padding: 24px 20px 8px; }
.bwf-eyebrow { font-family: var(--bw-display); font-weight: 700; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--bw-purple); margin-bottom: 10px; }
.bwf-title { font-family: var(--bw-display); font-weight: 900; font-size: 28px; line-height: 1.12; letter-spacing: -.02em; color: var(--bw-ink); margin-bottom: 10px; outline: none; }
.bwf-intro { font-size: 16px; color: var(--bw-muted); max-width: 60ch; margin-bottom: 28px; }

/* ---------- Fields ---------- */
.bwf-grid { display: grid; grid-template-columns: 1fr; gap: 22px 16px; }
.bwf-field { min-width: 0; }
.bwf-label, .bwf-legend { display: block; font-weight: 600; font-size: 15px; color: var(--bw-ink); margin-bottom: 8px; line-height: 1.35; }
.bwf-opt { font-weight: 400; color: var(--bw-muted); font-size: 13.5px; margin-left: 6px; }
.bwf-req { color: var(--bw-error); margin-left: 2px; }
.bwf-help { font-size: 13.5px; color: var(--bw-muted); margin-top: -2px; margin-bottom: 10px; }
.bwf-help.after { margin: 8px 0 0; }

.bwf-input, .bwf-select, .bwf-textarea {
  width: 100%;
  font: inherit; font-size: 16px; /* 16px stops iOS zoom */
  color: var(--bw-ink);
  background: #fff;
  border: 1.5px solid var(--bw-line-strong);
  border-radius: var(--bw-radius-sm);
  padding: 13px 14px;
  min-height: 50px;
  transition: border-color .15s, box-shadow .15s;
  appearance: none; -webkit-appearance: none;
}
.bwf-textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.bwf-select {
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23085e39' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.bwf-input::placeholder, .bwf-textarea::placeholder { color: #8d9792; }
.bwf-input:hover, .bwf-select:hover, .bwf-textarea:hover { border-color: var(--bw-green-light); }
.bwf-input:focus, .bwf-select:focus, .bwf-textarea:focus { outline: none; border-color: var(--bw-green); box-shadow: var(--bw-focus); }
.bwf-money { position: relative; }
.bwf-money > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--bw-muted); font-weight: 500; pointer-events: none; }
.bwf-money .bwf-input { padding-left: 28px; }
.bwf-count { font-size: 12.5px; color: var(--bw-muted); text-align: right; margin-top: 6px; }

/* Invalid */
.bwf-field.is-invalid .bwf-input, .bwf-field.is-invalid .bwf-select, .bwf-field.is-invalid .bwf-textarea { border-color: var(--bw-error); background: var(--bw-error-wash); }
.bwf-field.is-invalid .bwf-card-opt, .bwf-field.is-invalid .bwf-radio, .bwf-field.is-invalid .bwf-chip { border-color: #e7a597; }
.bwf-error { display: flex; gap: 6px; align-items: flex-start; color: var(--bw-error); font-size: 13.5px; font-weight: 500; margin-top: 8px; }
.bwf-error svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.bwf-error:empty { display: none; }

/* Option cards (single + multi) */
.bwf-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.bwf-card-opt {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border: 1.5px solid var(--bw-line); border-radius: var(--bw-radius);
  background: #fff; cursor: pointer; text-align: left;
  transition: border-color .15s, background-color .15s, box-shadow .15s, transform .15s;
}
.bwf-card-opt:hover { border-color: var(--bw-green-light); box-shadow: 0 6px 18px -10px rgba(5, 53, 33, .35); }
.bwf-card-opt input { position: absolute; opacity: 0; pointer-events: none; }
.bwf-card-opt:has(input:focus-visible) { box-shadow: var(--bw-focus); border-color: var(--bw-green); }
.bwf-card-opt.is-on { border-color: var(--bw-green); background: var(--bw-green-wash); }
.bwf-ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bw-green-wash); color: var(--bw-green); transition: background-color .15s, color .15s;
}
.bwf-ico svg { width: 22px; height: 22px; }
.bwf-card-opt.is-on .bwf-ico { background: var(--bw-green); color: #fff; }
.bwf-card-txt { min-width: 0; padding-right: 22px; }
.bwf-card-title { display: block; font-family: var(--bw-display); font-weight: 700; font-size: 16.5px; color: var(--bw-ink); line-height: 1.3; margin-bottom: 3px; }
.bwf-card-desc { display: block; font-size: 14px; color: var(--bw-muted); line-height: 1.45; }
.bwf-tick {
  position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--bw-line-strong); display: grid; place-items: center; color: #fff; background: #fff;
  transition: background-color .15s, border-color .15s;
}
.bwf-tick.sq { border-radius: 6px; }
.bwf-tick svg { width: 14px; height: 14px; opacity: 0; transition: opacity .15s; }
.bwf-card-opt.is-on .bwf-tick { background: var(--bw-green); border-color: var(--bw-green); }
.bwf-card-opt.is-on .bwf-tick svg { opacity: 1; }
.bwf-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; position: relative; top: -1px; }
.bwf-cards.compact .bwf-card-opt { padding: 14px; gap: 12px; }
.bwf-cards.compact .bwf-ico { width: 38px; height: 38px; border-radius: 10px; }
.bwf-cards.compact .bwf-ico svg { width: 19px; height: 19px; }
.bwf-cards.compact .bwf-card-title { font-size: 15.5px; }
.bwf-cards.compact .bwf-card-desc { font-size: 13px; }

/* Radio list */
.bwf-radios { display: grid; gap: 10px; }
.bwf-radios.inline { display: flex; flex-wrap: wrap; gap: 10px; }
.bwf-radio {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; min-height: 50px; border: 1.5px solid var(--bw-line); border-radius: var(--bw-radius-sm);
  background: #fff; cursor: pointer; font-size: 15px; color: var(--bw-ink);
  transition: border-color .15s, background-color .15s;
}
.bwf-radios.inline .bwf-radio { padding: 11px 16px; min-height: 46px; }
.bwf-radio:hover { border-color: var(--bw-green-light); }
.bwf-radio input { position: absolute; opacity: 0; pointer-events: none; }
.bwf-radio .bwf-pip { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--bw-line-strong); display: grid; place-items: center; background: #fff; transition: border-color .15s; }
.bwf-radio .bwf-pip::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--bw-green); transform: scale(0); transition: transform .15s; }
.bwf-radio.is-on { border-color: var(--bw-green); background: var(--bw-green-wash); }
.bwf-radio.is-on .bwf-pip { border-color: var(--bw-green); }
.bwf-radio.is-on .bwf-pip::after { transform: scale(1); }
.bwf-radio:has(input:focus-visible) { box-shadow: var(--bw-focus); border-color: var(--bw-green); }

/* Chips (multi) */
.bwf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bwf-chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 15px; min-height: 44px; border: 1.5px solid var(--bw-line); border-radius: 999px;
  background: #fff; cursor: pointer; font-size: 14.5px; color: var(--bw-ink); line-height: 1.2;
  transition: border-color .15s, background-color .15s, color .15s;
}
.bwf-chip:hover { border-color: var(--bw-green-light); }
.bwf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.bwf-chip svg { width: 15px; height: 15px; display: none; }
.bwf-chip.is-on { border-color: var(--bw-green); background: var(--bw-green); color: #fff; }
.bwf-chip.is-on svg { display: block; }
.bwf-chip:has(input:focus-visible) { box-shadow: var(--bw-focus); }

/* Consent checkbox */
.bwf-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14.5px; color: var(--bw-body); line-height: 1.5; padding: 14px 16px; border: 1.5px solid var(--bw-line); border-radius: var(--bw-radius-sm); background: #fff; }
.bwf-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--bw-green); cursor: pointer; }
.bwf-check.is-on { border-color: var(--bw-green); background: var(--bw-green-wash); }

/* Notices */
.bwf-notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--bw-radius-sm); font-size: 14px; line-height: 1.5; color: var(--bw-ink); background: var(--bw-purple-wash); border: 1px solid #e3d4f0; }
.bwf-notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--bw-purple); }
.bwf-notice.warn { background: var(--bw-warn-wash); border-color: var(--bw-warn-line); }
.bwf-notice.warn svg { color: #9a5b00; }
.bwf-sens { display: none; margin-top: 8px; }
.bwf-sens.show { display: flex; }

/* Honeypot */
.bwf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Review ---------- */
.bwf-summary { display: grid; gap: 14px; margin-bottom: 26px; }
.bwf-sum-sec { border: 1px solid var(--bw-line); border-radius: var(--bw-radius); padding: 16px 18px; background: var(--bw-canvas); }
.bwf-sum-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.bwf-sum-head h3 { font-family: var(--bw-display); font-weight: 700; font-size: 16px; color: var(--bw-ink); }
.bwf-edit { background: none; border: 0; padding: 6px 2px; color: var(--bw-purple); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bwf-edit:hover { color: var(--bw-purple-dark); }
.bwf-sum-sec dl { display: grid; grid-template-columns: 1fr; gap: 2px 18px; }
.bwf-sum-sec dt { font-size: 13px; color: var(--bw-muted); margin-top: 8px; }
.bwf-sum-sec dd { font-size: 15px; color: var(--bw-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.bwf-sla { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--bw-radius-sm); background: var(--bw-green-wash); color: var(--bw-green-dark); font-size: 14.5px; margin-bottom: 18px; }
.bwf-sla svg { width: 20px; height: 20px; flex: none; color: var(--bw-green); }
.bwf-consents { display: grid; gap: 10px; }

/* ---------- Footer / nav ---------- */
.bwf-nav { display: flex; flex-direction: column-reverse; gap: 10px; padding: 24px 20px 24px; border-top: 1px solid var(--bw-line); margin-top: 28px; background: #fff; }
.bwf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 12px; border: 1.5px solid transparent;
  font-family: var(--bw-display); font-weight: 700; font-size: 16px; letter-spacing: .005em;
  cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s, transform .1s, box-shadow .15s;
}
.bwf-btn svg { width: 18px; height: 18px; }
.bwf-btn:focus-visible { outline: none; box-shadow: var(--bw-focus); }
.bwf-btn:active { transform: translateY(1px); }
.bwf-btn-primary { background: var(--bw-green); color: #fff; }
.bwf-btn-primary:hover { background: var(--bw-green-dark); color: #fff; }
.bwf-btn-primary[disabled] { opacity: .7; cursor: progress; }
.bwf-btn-ghost { background: #fff; color: var(--bw-ink); border-color: var(--bw-line-strong); }
.bwf-btn-ghost:hover { border-color: var(--bw-green); color: var(--bw-green); }
.bwf-btn-purple { background: var(--bw-purple); color: #fff; }
.bwf-btn-purple:hover { background: var(--bw-purple-dark); color: #fff; }
.bwf-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: bwf-spin .8s linear infinite; }
@keyframes bwf-spin { to { transform: rotate(360deg); } }

.bwf-foot { padding: 18px 20px 22px; background: var(--bw-canvas); border-top: 1px solid var(--bw-line); font-size: 12px; line-height: 1.55; color: var(--bw-muted); }
.bwf-foot p + p { margin-top: 6px; }

.bwf-alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--bw-radius-sm); background: var(--bw-error-wash); border: 1px solid #f2b8ab; color: #7a1300; font-size: 14.5px; margin: 0 20px; }
.bwf-alert svg { width: 20px; height: 20px; flex: none; color: var(--bw-error); }
.bwf-saved { font-size: 13px; color: var(--bw-muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.bwf-saved svg { width: 14px; height: 14px; color: var(--bw-green-light); }

/* ---------- Success ---------- */
.bwf-done { padding: 40px 20px 32px; text-align: left; }
.bwf-done-badge { width: 64px; height: 64px; border-radius: 20px; background: var(--bw-green); color: #fff; display: grid; place-items: center; margin-bottom: 22px; }
.bwf-done-badge svg { width: 32px; height: 32px; }
.bwf-ref { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--bw-purple-wash); border: 1px solid #e3d4f0; font-size: 14px; color: var(--bw-purple-dark); margin: 6px 0 26px; }
.bwf-ref code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; font-size: 15px; letter-spacing: .04em; }
.bwf-next { list-style: none; display: grid; gap: 16px; margin: 0 0 28px; padding: 0; counter-reset: bwf; }
.bwf-next li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; counter-increment: bwf; }
.bwf-next li::before { content: counter(bwf); width: 34px; height: 34px; border-radius: 50%; background: var(--bw-green-wash); color: var(--bw-green); font-family: var(--bw-display); font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.bwf-next strong { display: block; color: var(--bw-ink); font-weight: 600; font-size: 15.5px; }
.bwf-next strong { line-height: 1.35; padding-top: 6px; }
.bwf-next span { display: block; font-size: 14.5px; line-height: 1.5; color: var(--bw-muted); margin-top: 3px; }
.bwf-done-ctas { display: flex; flex-direction: column; gap: 10px; }

/* Step transition */
.bwf-stage { animation: bwf-in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes bwf-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .bwf-head { padding: 36px 40px 0; }
  .bwf-body { padding: 30px 40px 8px; }
  .bwf-nav { flex-direction: row; justify-content: space-between; align-items: center; padding: 22px 40px; }
  .bwf-nav .bwf-btn-primary { min-width: 200px; }
  .bwf-foot { padding: 20px 40px 24px; }
  .bwf-alert { margin: 0 40px; }
  .bwf-done { padding: 52px 40px 40px; }
  .bwf-done-ctas { flex-direction: row; }
  .bwf-title { font-size: 34px; }
  .bwf-grid { grid-template-columns: 1fr 1fr; }
  .bwf-field { grid-column: 1 / -1; }
  .bwf-field.half { grid-column: auto; }
  .bwf-cards.c2, .bwf-cards.c3 { grid-template-columns: 1fr 1fr; }
  .bwf-sum-sec dl { grid-template-columns: minmax(150px, 34%) 1fr; }
  .bwf-sum-sec dt { margin-top: 0; padding: 6px 0; }
  .bwf-sum-sec dd { padding: 6px 0; }
  .bwf-logo { height: 40px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .bwf-cards.c3 { grid-template-columns: repeat(3, 1fr); }
  .bwf-cards.c3:not(.compact) .bwf-card-opt { flex-direction: column; padding: 22px; min-height: 196px; }
  .bwf-cards.c3:not(.compact) .bwf-ico { width: 52px; height: 52px; margin-bottom: 6px; }
  .bwf-cards.c3:not(.compact) .bwf-ico svg { width: 26px; height: 26px; }
  .bwf-cards.c3:not(.compact) .bwf-card-title { font-size: 18px; }
  .bwf-cards.c3:not(.compact) .bwf-card-txt { padding-right: 0; }
  .bwf-steps { display: flex; gap: 4px; margin-top: 12px; }
  .bwf-steps li { list-style: none; flex: 1; font-size: 12.5px; color: var(--bw-grey); font-weight: 500; }
  .bwf-steps li.is-current { color: var(--bw-green); font-weight: 600; }
  .bwf-steps li.is-done { color: var(--bw-green-dark); }
}

@media (prefers-reduced-motion: reduce) {
  .bwf *, .bwf *::before, .bwf *::after { animation: none !important; transition: none !important; }
}
