/* Bonding Calculator V3 Styles */
.bonding-calculator-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.bonding-calculator-container * {
    box-sizing: border-box;
}

.bonding-calculator-container .calculator-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bonding-calculator-container h1 {
    color: #2d3561;
    text-align: center;
    margin: 0 0 10px 0;
    font-size: 2.5em;
    background: linear-gradient(135deg, #2d3561 0%, #1a1f3a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bonding-calculator-container .subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.bonding-calculator-container .section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bonding-calculator-container .section:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.bonding-calculator-container .section h2 {
    color: #4a5568;
    margin: 0 0 15px 0;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bonding-calculator-container .icon {
    width: 24px;
    height: 24px;
    fill: #2d3561;
}

.bonding-calculator-container .input-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.bonding-calculator-container .input-field {
    display: flex;
    flex-direction: column;
}

.bonding-calculator-container label {
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.bonding-calculator-container input[type="number"],
.bonding-calculator-container select {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: white;
}

.bonding-calculator-container input[type="number"]:focus,
.bonding-calculator-container select:focus {
    outline: none;
    border-color: #2d3561;
    box-shadow: 0 0 0 3px rgba(45, 53, 97, 0.1);
}

.bonding-calculator-container .calculate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #2d3561 0%, #1a1f3a 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.bonding-calculator-container .calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(45, 53, 97, 0.3);
}

.bonding-calculator-container .calculate-btn:active {
    transform: translateY(0);
}

.bonding-calculator-container .tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    margin-left: 5px;
}

.bonding-calculator-container .tooltip .tooltiptext {
    visibility: hidden;
    width: 250px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85em;
}

.bonding-calculator-container .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Modal styles */
.bonding-calculator-container .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.bonding-calculator-container .modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bonding-calculator-container .modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.bonding-calculator-container .progress-container {
    text-align: center;
}

.bonding-calculator-container .progress-container h3 {
    color: #4a5568;
    margin-bottom: 30px;
}

.bonding-calculator-container .progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.bonding-calculator-container .progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #2d3561 0%, #1a1f3a 100%);
    border-radius: 4px;
    width: 0%;
    animation: progressAnimation 3s ease-out forwards;
}

@keyframes progressAnimation {
    0% { width: 0%; }
    30% { width: 45%; }
    60% { width: 75%; }
    100% { width: 100%; }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bonding-calculator-container .progress-text {
    color: #718096;
    font-size: 0.9em;
}

.bonding-calculator-container .contact-form {
    display: none;
}

.bonding-calculator-container .contact-form h3 {
    color: #4a5568;
    margin-bottom: 10px;
    text-align: center;
}

.bonding-calculator-container .contact-form p {
    color: #718096;
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.95em;
}

.bonding-calculator-container .form-group {
    margin-bottom: 20px;
}

.bonding-calculator-container .form-group label {
    display: block;
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.bonding-calculator-container .form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.bonding-calculator-container .form-group input:focus {
    outline: none;
    border-color: #2d3561;
    box-shadow: 0 0 0 3px rgba(45, 53, 97, 0.1);
}

.bonding-calculator-container .form-group input.error {
    border-color: #c53030;
    box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.1);
}

.bonding-calculator-container .submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #2d3561 0%, #1a1f3a 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.bonding-calculator-container .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(45, 53, 97, 0.3);
}

.bonding-calculator-container .error-message {
    color: #c53030;
    font-size: 0.85em;
    margin-top: 5px;
    display: none;
}

/* Success Message Styles */
.bonding-calculator-container .success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.bonding-calculator-container .success-icon {
    width: 60px;
    height: 60px;
    fill: #48bb78;
    margin: 0 auto 20px;
    display: block;
}

.bonding-calculator-container .success-message h3 {
    color: #2d3561;
    margin-bottom: 15px;
    font-size: 2em;
}

.bonding-calculator-container .success-message p {
    color: #718096;
    margin-bottom: 10px;
    line-height: 1.6;
}

.bonding-calculator-container .consultation-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #2d3561 0%, #1a1f3a 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.bonding-calculator-container .consultation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(45, 53, 97, 0.3);
}

@media (max-width: 600px) {
    .bonding-calculator-container .calculator-wrapper {
        padding: 20px;
    }
    
    .bonding-calculator-container h1 {
        font-size: 2em;
    }
    
    .bonding-calculator-container .input-group {
        grid-template-columns: 1fr;
    }
    
    .bonding-calculator-container .modal-content {
        padding: 25px;
    }
}
/* Button group for success message */
.bonding-calculator-container .button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.bonding-calculator-container .close-btn {
    display: inline-block;
    padding: 15px 30px;
    background: #e2e8f0;
    color: #4a5568;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bonding-calculator-container .close-btn:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive */
@media (max-width: 600px) {
    .bonding-calculator-container .button-group {
        flex-direction: column;
        width: 100%;
    }
    
    .bonding-calculator-container .consultation-btn,
    .bonding-calculator-container .close-btn {
        width: 100%;
    }
}
/* Update the label styles to ensure proper alignment */
.bonding-calculator-container .input-field label {
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    min-height: 24px; /* Ensure consistent height */
}

/* Ensure tooltips don't affect layout */
.bonding-calculator-container .tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
    margin-left: 5px;
}

/* If some labels don't have tooltips, ensure they still align */
.bonding-calculator-container .input-field {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align fields from the bottom */
}

/* Make all input fields align at the same level */
.bonding-calculator-container .input-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    align-items: end; /* This aligns the bottom of all input fields */
}

.bonding-calculator-container .privacy-notice {
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.5;
    color: #718096;
    text-align: left;
}

.bc-v2 {
  --bc-navy: #0f2e4a;
  --bc-blue: #1a6fb5;
  --bc-blue-dark: #145a94;
  --bc-green: #1f8a4c;
  --bc-green-soft: #e8f5ee;
  --bc-green-line: #bfe3cd;
  --bc-ink: #1f2933;
  --bc-muted: #5b6b7b;
  --bc-border: #d7dee6;
  --bc-bg: #f5f8fb;
  --bc-card: #ffffff;
  --bc-error: #c0392b;
  --bc-radius: 12px;
  --bc-shadow: 0 6px 24px rgba(15, 46, 74, 0.08);
  color: var(--bc-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Card shell ---------- */
.bc-v2 .bc-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bc-card);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow);
  padding: 32px 32px 24px;
  box-sizing: border-box;
}

.bc-v2 .bc-header { text-align: center; margin-bottom: 22px; }
.bc-v2 .bc-headline {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--bc-navy);
  margin: 0 0 8px;
}
.bc-v2 .bc-sub {
  font-size: 15px;
  line-height: 1.5;
  color: var(--bc-muted);
  margin: 0;
}

/* ---------- Progress stepper ---------- */
.bc-v2 .bc-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 26px;
}
.bc-v2 .bc-progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bc-muted);
}
.bc-v2 .bc-progress-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bc-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--bc-muted);
  transition: all 0.25s ease;
}
.bc-v2 .bc-progress-label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.bc-v2 .bc-progress-line {
  flex: 1 1 auto;
  max-width: 46px;
  height: 2px;
  background: var(--bc-border);
}
.bc-v2 .bc-progress-step.is-active .bc-progress-dot {
  border-color: var(--bc-blue);
  background: var(--bc-blue);
  color: #fff;
}
.bc-v2 .bc-progress-step.is-active .bc-progress-label { color: var(--bc-navy); }
.bc-v2 .bc-progress-step.is-complete .bc-progress-dot {
  border-color: var(--bc-green);
  background: var(--bc-green);
  color: #fff;
}
.bc-v2 .bc-progress-step.is-complete .bc-progress-label { color: var(--bc-ink); }

/* ---------- Steps ---------- */
.bc-v2 .bc-step { display: none; animation: bcFade 0.25s ease; }
.bc-v2 .bc-step.is-active { display: block; }
@keyframes bcFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.bc-v2 .bc-step-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--bc-navy);
  margin: 0 0 18px;
  line-height: 1.3;
}

/* ---------- Fields ---------- */
.bc-v2 .bc-field { margin-bottom: 16px; }
.bc-v2 .bc-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--bc-ink);
  margin-bottom: 6px;
}
.bc-v2 .bc-req { color: var(--bc-blue); }
.bc-v2 .bc-optional { color: var(--bc-muted); font-weight: 500; }

.bc-v2 .bc-field input[type="text"],
.bc-v2 .bc-field input[type="email"],
.bc-v2 .bc-field input[type="tel"],
.bc-v2 .bc-field input[type="number"],
.bc-v2 .bc-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--bc-ink);
  background: #fff;
  border: 1.5px solid var(--bc-border);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.bc-v2 .bc-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b6b7b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.bc-v2 .bc-field input:focus,
.bc-v2 .bc-field select:focus {
  outline: none;
  border-color: var(--bc-blue);
  box-shadow: 0 0 0 3px rgba(26, 111, 181, 0.15);
}
.bc-v2 .bc-field input.error,
.bc-v2 .bc-field select.error {
  border-color: var(--bc-error);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}
.bc-v2 .error-message {
  display: none;
  color: var(--bc-error);
  font-size: 13px;
  margin-top: 6px;
}

/* Two-up grid for the core numbers */
.bc-v2 .bc-core-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.bc-v2 .bc-core-inputs .bc-field:last-child { grid-column: 1 / -1; }

/* ---------- Tooltip (kept compatible with v1 markup) ---------- */
.bc-v2 .tooltip { position: relative; display: inline-block; cursor: help; color: var(--bc-blue); font-weight: 700; margin-left: 4px; }
.bc-v2 .tooltip .tooltiptext {
  visibility: hidden;
  opacity: 0;
  width: 240px;
  background: var(--bc-navy);
  color: #fff;
  text-align: left;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  position: absolute;
  z-index: 20;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.15s ease;
}
.bc-v2 .tooltip:hover .tooltiptext { visibility: visible; opacity: 1; }

/* ---------- Refine (optional) disclosure ---------- */
.bc-v2 .bc-refine-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 6px 0;
  margin: 4px 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bc-blue);
  cursor: pointer;
}
.bc-v2 .bc-refine-note { color: var(--bc-muted); font-weight: 500; }
.bc-v2 .bc-refine-chevron { display: inline-block; transition: transform 0.2s ease; }
.bc-v2 .bc-refine-toggle[aria-expanded="true"] .bc-refine-chevron { transform: rotate(90deg); }
.bc-v2 .bc-refine {
  border: 1px solid var(--bc-border);
  border-radius: 10px;
  padding: 18px 18px 4px;
  margin: 4px 0 20px;
  background: #fbfcfe;
}
.bc-v2 .bc-refine[hidden] { display: none; }
.bc-v2 .bc-refine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.bc-v2 .bc-refine-group-label {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bc-muted);
  margin: 6px 0 10px;
}

/* ---------- Buttons ---------- */
.bc-v2 .bc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  padding: 14px 22px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  text-decoration: none;
  line-height: 1.2;
}
.bc-v2 .bc-btn:active { transform: translateY(1px); }
.bc-v2 .bc-btn-primary {
  width: 100%;
  background: var(--bc-blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 111, 181, 0.28);
}
.bc-v2 .bc-btn-primary:hover { background: var(--bc-blue-dark); }
.bc-v2 .bc-btn-ghost {
  background: #fff;
  color: var(--bc-muted);
  border-color: var(--bc-border);
}
.bc-v2 .bc-btn-ghost:hover { color: var(--bc-navy); border-color: var(--bc-muted); }

.bc-v2 .bc-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.bc-v2 .bc-actions .bc-btn-ghost { flex: 0 0 auto; }
.bc-v2 .bc-actions .bc-btn-primary { flex: 1 1 auto; }

.bc-v2 .bc-trust {
  text-align: center;
  font-size: 12.5px;
  color: var(--bc-muted);
  margin: 14px 0 0;
}

/* ---------- Step 3: results ---------- */
.bc-v2 .bc-results-title { text-align: center; }
.bc-v2 .bc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 4px 0 20px;
}
.bc-v2 .bc-result-card {
  border: 1px solid var(--bc-border);
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
  background: #fff;
}
.bc-v2 .bc-result-primary {
  grid-column: 1 / -1;
  background: var(--bc-green-soft);
  border-color: var(--bc-green-line);
}
.bc-v2 .bc-result-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--bc-muted);
  margin-bottom: 6px;
}
.bc-v2 .bc-result-primary .bc-result-label { color: var(--bc-green); }
.bc-v2 .bc-result-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--bc-navy);
  line-height: 1.1;
}
.bc-v2 .bc-result-primary .bc-result-value { font-size: 40px; color: var(--bc-green); }

.bc-v2 .bc-results-sub {
  text-align: center;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--bc-muted);
  margin: 0 0 22px;
}
.bc-v2 .bc-results-sub strong { color: var(--bc-ink); }

.bc-v2 .bc-cta-block {
  background: var(--bc-navy);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
}
.bc-v2 .bc-cta-lead {
  color: #eaf1f8;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 14px;
}
.bc-v2 .bc-btn-cta {
  background: #ffb100;
  color: var(--bc-navy);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.bc-v2 .bc-btn-cta:hover { background: #ffc233; }

/* ---------- Persistent expert off-ramp (every step) ---------- */
.bc-v2 .bc-offramp {
  max-width: 640px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--bc-muted);
}
.bc-v2 .bc-offramp-link {
  color: var(--bc-blue);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.bc-v2 .bc-offramp-link:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .bc-v2 .bc-card { padding: 22px 18px 18px; border-radius: 0; }
  .bc-v2 .bc-headline { font-size: 22px; }
  .bc-v2 .bc-core-inputs,
  .bc-v2 .bc-refine-grid,
  .bc-v2 .bc-results { grid-template-columns: 1fr; }
  .bc-v2 .bc-progress-label { display: none; }
  .bc-v2 .bc-progress-line { max-width: 30px; }
  .bc-v2 .bc-result-primary .bc-result-value { font-size: 34px; }
}


.bc-v3 {
  --bc-navy: #0f2e4a;
  --bc-blue: #1a6fb5;
  --bc-blue-dark: #145a94;
  --bc-green: #1f8a4c;
  --bc-green-soft: #e8f5ee;
  --bc-green-line: #bfe3cd;
  --bc-ink: #1f2933;
  --bc-muted: #5b6b7b;
  --bc-border: #d7dee6;
  --bc-bg: #f5f8fb;
  --bc-card: #ffffff;
  --bc-error: #c0392b;
  --bc-radius: 12px;
  --bc-shadow: 0 6px 24px rgba(15, 46, 74, 0.08);
  color: var(--bc-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Card shell ---------- */
.bc-v3 .bc-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bc-card);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  box-shadow: var(--bc-shadow);
  padding: 32px 32px 24px;
  box-sizing: border-box;
}

.bc-v3 .bc-header { text-align: center; margin-bottom: 22px; }
.bc-v3 .bc-headline {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--bc-navy);
  margin: 0 0 8px;
}
.bc-v3 .bc-sub {
  font-size: 15px;
  line-height: 1.5;
  color: var(--bc-muted);
  margin: 0;
}

/* ---------- Progress stepper ---------- */
.bc-v3 .bc-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 26px;
}
.bc-v3 .bc-progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bc-muted);
}
.bc-v3 .bc-progress-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bc-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--bc-muted);
  transition: all 0.25s ease;
}
.bc-v3 .bc-progress-label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.bc-v3 .bc-progress-line {
  flex: 1 1 auto;
  max-width: 46px;
  height: 2px;
  background: var(--bc-border);
}
.bc-v3 .bc-progress-step.is-active .bc-progress-dot {
  border-color: var(--bc-blue);
  background: var(--bc-blue);
  color: #fff;
}
.bc-v3 .bc-progress-step.is-active .bc-progress-label { color: var(--bc-navy); }
.bc-v3 .bc-progress-step.is-complete .bc-progress-dot {
  border-color: var(--bc-green);
  background: var(--bc-green);
  color: #fff;
}
.bc-v3 .bc-progress-step.is-complete .bc-progress-label { color: var(--bc-ink); }

/* ---------- Steps ---------- */
.bc-v3 .bc-step { display: none; animation: bcFade 0.25s ease; }
.bc-v3 .bc-step.is-active { display: block; }
@keyframes bcFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.bc-v3 .bc-step-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--bc-navy);
  margin: 0 0 18px;
  line-height: 1.3;
}

/* ---------- Fields ---------- */
.bc-v3 .bc-field { margin-bottom: 16px; }
.bc-v3 .bc-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--bc-ink);
  margin-bottom: 6px;
}
.bc-v3 .bc-req { color: var(--bc-blue); }
.bc-v3 .bc-optional { color: var(--bc-muted); font-weight: 500; }

.bc-v3 .bc-field input[type="text"],
.bc-v3 .bc-field input[type="email"],
.bc-v3 .bc-field input[type="tel"],
.bc-v3 .bc-field input[type="number"],
.bc-v3 .bc-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--bc-ink);
  background: #fff;
  border: 1.5px solid var(--bc-border);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.bc-v3 .bc-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b6b7b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.bc-v3 .bc-field input:focus,
.bc-v3 .bc-field select:focus {
  outline: none;
  border-color: var(--bc-blue);
  box-shadow: 0 0 0 3px rgba(26, 111, 181, 0.15);
}
.bc-v3 .bc-field input.error,
.bc-v3 .bc-field select.error {
  border-color: var(--bc-error);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}
.bc-v3 .error-message {
  display: none;
  color: var(--bc-error);
  font-size: 13px;
  margin-top: 6px;
}

/* Two-up grid for the core numbers */
.bc-v3 .bc-core-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.bc-v3 .bc-core-inputs .bc-field:last-child { grid-column: 1 / -1; }

/* ---------- Tooltip (kept compatible with v1 markup) ---------- */
.bc-v3 .tooltip { position: relative; display: inline-block; cursor: help; color: var(--bc-blue); font-weight: 700; margin-left: 4px; }
.bc-v3 .tooltip .tooltiptext {
  visibility: hidden;
  opacity: 0;
  width: 240px;
  background: var(--bc-navy);
  color: #fff;
  text-align: left;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  position: absolute;
  z-index: 20;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.15s ease;
}
.bc-v3 .tooltip:hover .tooltiptext { visibility: visible; opacity: 1; }

/* ---------- Core-inputs lead + optional (visible) section ---------- */
.bc-v3 .bc-core-lead {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bc-blue);
  margin: 0 0 12px;
}
.bc-v3 .bc-optional-section {
  border-top: 1px solid var(--bc-border);
  margin: 6px 0 18px;
  padding-top: 16px;
}
.bc-v3 .bc-optional-lead {
  font-size: 14px;
  font-weight: 600;
  color: var(--bc-ink);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.bc-v3 .bc-optional-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bc-muted);
  background: var(--bc-bg);
  border: 1px solid var(--bc-border);
  border-radius: 999px;
  padding: 2px 10px;
}
.bc-v3 .bc-optional-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.bc-v3 .bc-optional-group-label {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bc-muted);
  margin: 6px 0 10px;
}

/* ---------- RECOMMENDED optional field (Largest Completed Project) ----------
   Visually distinct from the plain-optional fields because it unlocks the single-project
   limit (a headline number). Subtle blue-tinted card + a "Recommended" pill. */
.bc-v3 .bc-field-recommended {
  background: #f2f8fd;
  border: 1.5px solid #bcd6ec;
  border-radius: 10px;
  padding: 12px 14px 10px;
  margin-bottom: 16px;
}
.bc-v3 .bc-rec-tag {
  display: inline-block;
  vertical-align: middle;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--bc-blue);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 4px;
}
.bc-v3 .bc-rec-hint {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--bc-blue);
  margin-top: 6px;
}

/* ---------- PROMINENT Step-2 off-ramp (the "I don't have my numbers" escape hatch) ---------- */
.bc-v3 .bc-step2-offramp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #eef5fb;
  border: 1.5px solid #bcd6ec;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 4px 0 20px;
}
.bc-v3 .bc-step2-offramp-copy { flex: 1 1 240px; line-height: 1.4; }
.bc-v3 .bc-step2-offramp-copy strong { display: block; font-size: 15px; color: var(--bc-navy); margin-bottom: 2px; }
.bc-v3 .bc-step2-offramp-copy span { font-size: 13px; color: var(--bc-muted); }
.bc-v3 .bc-step2-offramp .bc-btn-secondary { flex: 0 0 auto; }

/* Secondary CTA button — clearly an alternative path, not competing with the primary blue button */
.bc-v3 .bc-btn-secondary {
  background: #fff;
  color: var(--bc-navy);
  border-color: var(--bc-navy);
  font-size: 15px;
  padding: 12px 18px;
}
.bc-v3 .bc-btn-secondary:hover { background: var(--bc-navy); color: #fff; }

/* ---------- Buttons ---------- */
.bc-v3 .bc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  padding: 14px 22px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  text-decoration: none;
  line-height: 1.2;
}
.bc-v3 .bc-btn:active { transform: translateY(1px); }
.bc-v3 .bc-btn-primary {
  width: 100%;
  background: var(--bc-blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 111, 181, 0.28);
}
.bc-v3 .bc-btn-primary:hover { background: var(--bc-blue-dark); }
.bc-v3 .bc-btn-ghost {
  background: #fff;
  color: var(--bc-muted);
  border-color: var(--bc-border);
}
.bc-v3 .bc-btn-ghost:hover { color: var(--bc-navy); border-color: var(--bc-muted); }

.bc-v3 .bc-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.bc-v3 .bc-actions .bc-btn-ghost { flex: 0 0 auto; }
.bc-v3 .bc-actions .bc-btn-primary { flex: 1 1 auto; }

.bc-v3 .bc-trust {
  text-align: center;
  font-size: 12.5px;
  color: var(--bc-muted);
  margin: 14px 0 0;
}

/* ---------- Step 3: results ---------- */
.bc-v3 .bc-results-title { text-align: center; }
.bc-v3 .bc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 4px 0 20px;
}
.bc-v3 .bc-result-card {
  border: 1px solid var(--bc-border);
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
  background: #fff;
}
.bc-v3 .bc-result-primary {
  grid-column: 1 / -1;
  background: var(--bc-green-soft);
  border-color: var(--bc-green-line);
}
.bc-v3 .bc-result-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--bc-muted);
  margin-bottom: 6px;
}
.bc-v3 .bc-result-primary .bc-result-label { color: var(--bc-green); }
.bc-v3 .bc-result-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--bc-navy);
  line-height: 1.1;
}
.bc-v3 .bc-result-primary .bc-result-value { font-size: 40px; color: var(--bc-green); }

/* A result card whose value isn't computable yet (e.g. single-project limit with no largest project) */
.bc-v3 .bc-result-card.bc-result-pending { background: var(--bc-bg); border-style: dashed; }
.bc-v3 .bc-result-pending .bc-result-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--bc-blue);
  line-height: 1.3;
}

/* ---------- "Add X to sharpen" nudge block ---------- */
.bc-v3 .bc-sharpen {
  border: 1px solid var(--bc-border);
  border-radius: 10px;
  background: #fbfcfe;
  padding: 16px 18px;
  margin: 0 0 20px;
}
.bc-v3 .bc-sharpen[hidden] { display: none; }
.bc-v3 .bc-sharpen-lead { font-size: 14px; font-weight: 700; color: var(--bc-navy); margin: 0 0 10px; }
.bc-v3 .bc-sharpen-list { list-style: none; margin: 0 0 14px; padding: 0; }
.bc-v3 .bc-sharpen-list li {
  position: relative;
  padding: 4px 0 4px 22px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--bc-muted);
}
.bc-v3 .bc-sharpen-list li::before {
  content: "+";
  position: absolute;
  left: 4px;
  top: 3px;
  font-weight: 800;
  color: var(--bc-blue);
}
.bc-v3 .bc-sharpen-list strong { color: var(--bc-ink); font-weight: 700; }
.bc-v3 .bc-sharpen-rec {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--bc-blue);
  border-radius: 999px;
  padding: 1px 7px;
  margin-right: 6px;
  vertical-align: 1px;
}
.bc-v3 .bc-sharpen-back { width: 100%; }

.bc-v3 .bc-results-sub {
  text-align: center;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--bc-muted);
  margin: 0 0 22px;
}
.bc-v3 .bc-results-sub strong { color: var(--bc-ink); }

/* ---------- Completeness notice (incomplete-estimate nudge / complete confirmation) ---------- */
.bc-v3 .bc-notice {
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 16px;
}
.bc-v3 .bc-notice[hidden] { display: none; }
/* INCOMPLETE — amber "starting estimate" nudge, prominent next to the CPA CTA */
.bc-v3 .bc-notice-incomplete {
  background: #fff8e8;
  border: 1.5px solid #f2d488;
}
.bc-v3 .bc-notice-incomplete .bc-notice-count {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9a6b00;
  margin: 0 0 6px;
}
.bc-v3 .bc-notice-incomplete .bc-notice-body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--bc-ink);
  margin: 0 0 10px;
}
.bc-v3 .bc-notice-incomplete .bc-notice-cta {
  font-size: 14px;
  font-weight: 700;
  color: var(--bc-navy);
  margin: 0;
  line-height: 1.5;
}
.bc-v3 .bc-notice-link {
  color: var(--bc-blue);
  font-weight: 800;
  text-decoration: underline;
}
.bc-v3 .bc-notice-link:hover { color: var(--bc-blue-dark); }
/* COMPLETE — positive green confirmation */
.bc-v3 .bc-notice-complete {
  background: var(--bc-green-soft);
  border: 1.5px solid var(--bc-green-line);
}
.bc-v3 .bc-notice-complete .bc-notice-count {
  font-size: 13px;
  font-weight: 800;
  color: var(--bc-green);
  margin: 0 0 4px;
}
.bc-v3 .bc-notice-complete .bc-notice-body {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--bc-ink);
  margin: 0;
}

.bc-v3 .bc-cta-block {
  background: var(--bc-navy);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
}
.bc-v3 .bc-cta-lead {
  color: #eaf1f8;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 14px;
}
.bc-v3 .bc-btn-cta {
  background: #ffb100;
  color: var(--bc-navy);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.bc-v3 .bc-btn-cta:hover { background: #ffc233; }

/* ---------- Persistent expert off-ramp (every step) ---------- */
.bc-v3 .bc-offramp {
  max-width: 640px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--bc-muted);
}
.bc-v3 .bc-offramp-link {
  color: var(--bc-blue);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.bc-v3 .bc-offramp-link:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .bc-v3 .bc-card { padding: 22px 18px 18px; border-radius: 0; }
  .bc-v3 .bc-headline { font-size: 22px; }
  .bc-v3 .bc-core-inputs,
  .bc-v3 .bc-optional-grid,
  .bc-v3 .bc-results { grid-template-columns: 1fr; }
  .bc-v3 .bc-progress-label { display: none; }
  .bc-v3 .bc-progress-line { max-width: 30px; }
  .bc-v3 .bc-result-primary .bc-result-value { font-size: 34px; }
  .bc-v3 .bc-step2-offramp { flex-direction: column; align-items: stretch; text-align: left; }
  .bc-v3 .bc-step2-offramp .bc-btn-secondary { width: 100%; }
}

}
