/* ==========================================================================
   VivreFR France Salary Calculator - V1.2.010.16 (WordPress Plugin Stylesheet)
   Aesthetic: Premium Warm Minimalist Glassmorphism (VivreFR Design System)
   ========================================================================== */


/* Design Tokens Definitions (Matching VivreFR Global Variables) */
:root {
  --vf-bg:               #f6f2ec;     /* Warm beige */
  --vf-brand-beige:      #dcd6cc;
  --vf-surface:          #ffffff;     /* Card background */
  --vf-surface-soft:     #ece6de;
  --vf-navy:             #1c3281;     /* Primary brand color */
  --vf-navy-dark:        #14245c;
  --vf-navy-deep:        #0c1a40;
  --vf-red-ui:           #c8321a;     /* Negative adjustments / warning */
  --vf-red-flag:         #e1000f;
  --vf-green-ui:         #16a34a;     /* High Comfort / positive savings */
  --vf-orange-ui:        #ea580c;     /* Moderate Comfort */
  --vf-ink:              #080f1e;     /* Body text */
  --vf-muted:            #64748b;     /* Subtext */
  --vf-espresso:         #6b5e4e;
  --vf-line:             rgba(0,0,0,0.08);
  --vf-line-strong:      rgba(0,0,0,0.12);
  --vf-shadow:           0 10px 30px rgba(0,0,0,0.06);
  --vf-shadow-hover:     0 18px 50px rgba(28,50,129,0.10);
  --vf-hero-panel-start: rgba(28,50,129,0.96);
  --vf-hero-panel-end:   rgba(20,36,92,0.98);
  --vf-r-sm:             10px;
  --vf-r-md:             18px;
  --vf-r-lg:             26px;
  --vf-r-xl:             36px;
  --vf-display:          "Plus Jakarta Sans", sans-serif;
  --vf-body:             "Plus Jakarta Sans", sans-serif;
}

/* Base Body Resets */
body {
  margin: 0;
  padding: 0;
  font-family: var(--vf-body);
  color: var(--vf-ink);
  background-color: var(--vf-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Box sizing namespace reset (forces border-box inside our wrapper to prevent padding clipping) */
.pp-page-wrapper,
.pp-page-wrapper *,
.pp-page-wrapper *::before,
.pp-page-wrapper *::after {
  box-sizing: border-box !important;
}

/* Page Wrapper */
.pp-page-wrapper {
  box-sizing: border-box;
}

/* Container */
.pp-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.pp-hero {
  text-align: center;
  margin-bottom: 50px;
}

.pp-main-title {
  font-family: var(--vf-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 500;
  margin: 0 0 15px;
  color: var(--vf-navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.pp-meta {
  color: var(--vf-muted);
  font-size: 1rem;
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  font-weight: 500;
}

.pp-brand {
  color: var(--vf-red-ui);
  font-weight: 700;
}

.pp-divider {
  opacity: 0.5;
}

/* Card Wrapper Styles */
.pp-card {
  background: var(--vf-surface);
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-r-lg);
  padding: 50px;          /* Comfortable on desktop, tablet-friendly */
  box-shadow: var(--vf-shadow);
  transition: box-shadow 0.3s ease;
}

.pp-card:hover {
  box-shadow: var(--vf-shadow-hover);
}

.vf-intro {
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 40px;
  color: var(--vf-ink);
  line-height: 1.6;
}

/* Sections */
.vf-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--vf-line);
}

.vf-section h2 {
  font-family: var(--vf-display);
  color: var(--vf-navy-deep);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 15px;
  letter-spacing: -0.01em;
}

/* Grids */
.vf-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .vf-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Fields & Inputs */
.vf-field {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vf-field label {
  font-weight: 600;
  font-size: 15px;
  color: var(--vf-ink);
}

.vf-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--vf-line-strong);
  border-radius: var(--vf-r-sm);
  background: var(--vf-surface);
  font-family: var(--vf-body);
  font-size: 16px;
  color: var(--vf-ink);
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.vf-input:focus {
  outline: none;
  border-color: var(--vf-navy);
  box-shadow: 0 0 0 3px rgba(28, 50, 129, 0.12);
}

.vf-input:disabled {
  background: var(--vf-bg);
  color: var(--vf-muted);
  cursor: not-allowed;
  border-color: var(--vf-brand-beige);
}

/* Input wrappers with suffix */
.vf-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.vf-input-wrapper .vf-input {
  padding-right: 50px;
}

.vf-input-suffix {
  position: absolute;
  right: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--vf-muted);
  pointer-events: none;
}

/* Radio button selections */
.vf-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vf-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--vf-line-strong);
  border-radius: var(--vf-r-sm);
  cursor: pointer;
  background: var(--vf-surface);
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 14px;
  color: var(--vf-muted);
  user-select: none;
}

.vf-radio-label input[type="radio"] {
  margin: 0;
  accent-color: var(--vf-navy);
}

.vf-radio-label:hover {
  border-color: var(--vf-navy);
  color: var(--vf-navy);
}

.vf-radio-label:has(input:checked) {
  border-color: var(--vf-navy);
  background: rgba(28, 50, 129, 0.04);
  color: var(--vf-navy);
  font-weight: 600;
}

.vf-field-help {
  font-size: 12px;
  color: var(--vf-muted);
  margin: 4px 0 0 0;
}

.vf-field-warning {
  font-size: 13px;
  color: var(--vf-orange-ui);
  font-weight: 500;
  margin-top: 5px;
}

.vf-field-error {
  font-size: 13px;
  color: var(--vf-red-ui);
  font-weight: 500;
  margin-top: 5px;
}

/* ─── Other Profession Banner ─────────────────────────────────────────── */
.vf-other-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(234, 88, 12, 0.06);
  border: 1px solid rgba(234, 88, 12, 0.20);
  border-radius: var(--vf-r-sm);
  padding: 14px 16px;
  margin-top: 10px;
  animation: fadeIn 0.25s ease-out;
}

.vf-other-banner-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.vf-other-banner-body {
  flex: 1;
}

.vf-other-banner-body strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--vf-espresso);
  margin-bottom: 4px;
}

.vf-other-banner-body p {
  font-size: 12.5px;
  color: var(--vf-muted);
  line-height: 1.5;
  margin: 0;
}

/* ─── Other Profession Feedback Form ─────────────────────────────────── */
.vf-other-feedback {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(28, 50, 129, 0.03);
  border: 1px solid rgba(28, 50, 129, 0.08);
  border-radius: var(--vf-r-sm);
  animation: fadeIn 0.3s ease-out;
}

.vf-other-feedback-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--vf-muted);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.vf-other-feedback-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.vf-other-feedback-input {
  flex: 1;
  min-height: 38px;
  font-size: 13px;
  padding: 0 12px;
}

.vf-other-feedback-btn {
  flex-shrink: 0;
  height: 38px;
  padding: 0 16px;
  background: var(--vf-navy);
  color: #fff;
  border: none;
  border-radius: var(--vf-r-sm);
  font-family: var(--vf-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease;
}

.vf-other-feedback-btn:hover {
  background: var(--vf-navy-dark);
}

.vf-other-feedback-thanks {
  font-size: 12px;
  color: var(--vf-green-ui);
  font-weight: 600;
  margin-top: 8px;
}

/* Collapsible Panel */
.vf-collapse-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.vf-collapse-header h2 {
  margin-bottom: 0;
}

.vf-collapse-icon {
  font-size: 14px;
  color: var(--vf-muted);
  transition: transform 0.3s ease;
}

.vf-collapse-header.active .vf-collapse-icon {
  transform: rotate(180deg);
}

.vf-collapse-body {
  padding-top: 20px;
}

/* Action button bar */
.vf-action-bar {
  border-top: 1px solid var(--vf-line);
  padding-top: 28px;
  margin-top: 28px;
}

.vf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 32px;
  border-radius: 30px; /* Capsule design */
  font-family: var(--vf-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  box-sizing: border-box;
}

.vf-btn--primary {
  background: var(--vf-navy);
  color: #ffffff;
  width: 100%;
}

.vf-btn--primary:hover {
  background: var(--vf-navy-dark);
  box-shadow: 0 8px 24px rgba(28, 50, 129, 0.15);
}

/* ==========================================================================
   Results Dashboard Styles
   ========================================================================== */
.vf-results-card {
  border-color: var(--vf-navy);
  animation: fadeIn 0.4s ease-out;
  margin-top: 30px;
}

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

.vf-results-header {
  margin-bottom: 30px;
}

.vf-results-header h2 {
  font-family: var(--vf-display);
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: var(--vf-navy-deep);
}

.vf-results-subtitle {
  font-size: 15px;
  color: var(--vf-muted);
  margin-top: 6px;
}

.vf-results-subtitle span {
  font-weight: 600;
  color: var(--vf-navy);
}

/* Scorecard */
.vf-scorecard {
  background: linear-gradient(145deg, var(--vf-hero-panel-start) 0%, var(--vf-hero-panel-end) 100%);
  color: #ffffff;
  border-radius: var(--vf-r-lg);
  padding: 40px;
  text-align: center;
  margin-bottom: 35px;
  box-shadow: var(--vf-shadow-hover);
}

.vf-scorecard-value {
  font-family: var(--vf-display);
  font-size: 60px;
  font-weight: 600;
  line-height: 1;
}

.vf-scorecard-label {
  font-size: 15px;
  font-weight: 500;
  margin-top: 12px;
  opacity: 0.85;
}

.vf-scorecard-details {
  font-size: 14px;
  margin-top: 16px;
  opacity: 0.75;
}

/* Step-by-Step Breakdown */
.vf-step-card {
  display: block !important;
  background: var(--vf-bg) !important;
  border-radius: var(--vf-r-md) !important;
  padding: 30px !important;
  margin-bottom: 35px !important;
}

.vf-step-card h3 {
  font-family: var(--vf-display);
  font-size: 20px;
  margin: 0 0 20px;
  color: var(--vf-navy-deep);
}

.vf-pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 15px;
}

.vf-pay-row:first-child {
  padding-top: 0;
}

.vf-pay-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.vf-pay-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vf-pay-row-highlight {
  border-radius: var(--vf-r-sm);
  padding: 16px 0;
  border-bottom: none;
  position: relative;
}

.vf-pay-row-highlight::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: -30px;
  right: -30px;
  background: rgba(0,0,0,0.02);
  border-radius: var(--vf-r-sm);
  z-index: 0;
  pointer-events: none;
}

.vf-pay-row-highlight > * {
  position: relative;
  z-index: 1;
}

.vf-pay-row-total {
  font-weight: 700;
  font-size: 18px;
  border-top: 2px solid var(--vf-navy);
  padding-top: 20px;
  border-bottom: none;
}

.vf-bold {
  font-weight: 700;
}

.vf-red {
  color: var(--vf-red-ui);
  font-weight: 600;
}

.vf-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.vf-badge-neutral {
  background: rgba(0,0,0,0.06);
  color: var(--vf-ink);
}

.vf-info-note {
  background: rgba(28, 50, 129, 0.05);
  border: 1px solid rgba(28, 50, 129, 0.10);
  border-radius: var(--vf-r-sm);
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--vf-navy-dark);
  margin: 15px 0;
}

/* Employer Cost Module */
.vf-employer-cost-section {
  margin-top: 25px;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 20px;
}

.vf-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--vf-navy);
}

.vf-checkbox-label input[type="checkbox"] {
  accent-color: var(--vf-navy);
}

.vf-pay-row-employer {
  font-weight: 700;
  font-size: 16px;
  border-bottom: none;
  padding: 16px 0;
  position: relative;
}

.vf-pay-row-employer::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: -30px;
  right: -30px;
  background: rgba(28, 50, 129, 0.04);
  border-radius: var(--vf-r-sm);
  z-index: 0;
  pointer-events: none;
}

.vf-pay-row-employer > * {
  position: relative;
  z-index: 1;
}

/* Comparison Widget */
.vf-comparison-widget {
  border-top: 1px solid var(--vf-line);
  padding-top: 30px;
  margin-bottom: 35px;
}

.vf-comparison-widget h3 {
  font-family: var(--vf-display);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 20px;
  color: var(--vf-navy-deep);
}

.vf-comparison-card {
  background: var(--vf-bg);
  border-radius: var(--vf-r-md);
  padding: 24px;
}

.vf-comp-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--vf-muted);
  letter-spacing: 0.05em;
}

.vf-comp-value {
  font-family: var(--vf-display);
  font-size: 32px;
  font-weight: 600;
  margin: 8px 0;
  color: var(--vf-navy-deep);
}

.vf-comp-text {
  font-size: 13px;
  color: var(--vf-muted);
  margin: 0;
}

/* Benchmarks Table */
.vf-comparison-table-wrapper {
  margin-top: 25px;
}

.vf-comparison-table-wrapper h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.vf-comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.vf-comp-table th {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--vf-line-strong);
  font-weight: 700;
  color: var(--vf-muted);
}

.vf-comp-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--vf-line);
}

.vf-comp-table tbody tr:hover {
  background: rgba(28, 50, 129, 0.02);
}

.vf-comp-table tr.vf-current-city-row {
  background: rgba(28, 50, 129, 0.05);
  font-weight: 600;
}

.vf-green-text {
  color: var(--vf-green-ui);
  font-weight: 600;
}

.vf-red-text {
  color: var(--vf-red-ui);
  font-weight: 600;
}

/* Cost of Living / Savings Gauge */
.vf-col-integration {
  border-top: 1px solid var(--vf-line);
  padding: 28px 25px;
  margin-top: 28px;
  margin-bottom: 35px;
  background: rgba(28, 50, 129, 0.03);
  border: 1px dashed var(--vf-navy);
  border-radius: var(--vf-r-md);
  text-align: center;
  box-shadow: var(--vf-shadow);
  transition: all 0.3s ease;
}

.vf-col-integration:hover {
  transform: translateY(-2px);
  box-shadow: var(--vf-shadow-hover);
  background: rgba(28, 50, 129, 0.05);
  border-style: solid;
}

.vf-col-integration h3 {
  font-family: var(--vf-display);
  font-size: 20px;
  font-weight: 600;
  margin: 10px 0 10px;
  color: var(--vf-navy-deep);
}

.vf-col-integration p {
  color: var(--vf-ink);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.vf-col-integration .vf-btn-cta {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 16px;
  border-radius: 30px; /* Capsule design */
  background: var(--vf-navy);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(28, 50, 129, 0.2);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.vf-col-integration .vf-btn-cta:hover {
  background: var(--vf-navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(28, 50, 129, 0.3);
}

.vf-savings-gauge {
  background: var(--vf-bg);
  border-radius: var(--vf-r-md);
  padding: 30px;
  text-align: center;
  margin-bottom: 16px;
}

.vf-savings-value {
  font-family: var(--vf-display);
  font-size: 40px;
  font-weight: 600;
  color: var(--vf-navy-deep);
}

.vf-savings-label {
  font-size: 14px;
  color: var(--vf-muted);
  margin-top: 8px;
  font-weight: 500;
}

.vf-savings-status {
  padding: 14px 20px;
  border-radius: var(--vf-r-sm);
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 20px;
}

.vf-status-green {
  background: rgba(22, 163, 74, 0.08);
  color: var(--vf-green-ui);
  border: 1px solid rgba(22, 163, 74, 0.15);
}

.vf-status-orange {
  background: rgba(234, 88, 12, 0.08);
  color: var(--vf-orange-ui);
  border: 1px solid rgba(234, 88, 12, 0.15);
}

.vf-status-red {
  background: rgba(200, 50, 26, 0.08);
  color: var(--vf-red-ui);
  border: 1px solid rgba(200, 50, 26, 0.15);
}

.vf-savings-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px;
}

.vf-savings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.vf-col-help-text {
  font-size: 12px;
  color: var(--vf-muted);
  margin-top: 15px;
  text-align: center;
}

/* Guides recommendation lists */
.vf-recommendations {
  border-top: 1px solid var(--vf-line);
  padding-top: 28px;
  margin-top: 28px;
  margin-bottom: 30px;
}

.vf-recommendations h3 {
  font-family: var(--vf-display);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 20px;
  color: var(--vf-navy-deep);
}

.vf-guide-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .vf-guide-cards {
    grid-template-columns: 1fr;
  }
}

.vf-guide-card {
  border: 1px solid var(--vf-line);
  border-radius: var(--vf-r-md);
  padding: 24px;
  text-decoration: none;
  background: var(--vf-surface);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vf-guide-card:hover {
  border-color: var(--vf-navy);
  box-shadow: var(--vf-shadow);
  transform: translateY(-2px);
}

.vf-guide-icon {
  font-size: 24px;
}

.vf-guide-card h4 {
  font-family: var(--vf-display);
  font-size: 16px;
  margin: 0;
  color: var(--vf-navy-deep);
}

.vf-guide-card p {
  font-size: 13px;
  color: var(--vf-muted);
  margin: 0;
  line-height: 1.5;
}

.vf-guide-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--vf-navy);
  margin-top: auto;
}

/* Trust footer disclaimer */
.vf-trust-footer {
  border-top: 1px solid var(--vf-line);
  padding-top: 25px;
  margin-top: 10px;
}

.vf-trust-disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: var(--vf-muted);
  margin: 0 0 15px;
}

.vf-trust-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--vf-muted);
  letter-spacing: 0.02em;
}

.vf-trust-divider {
  opacity: 0.4;
}

/* Money flow indicators */
.vf-pay-flow-arrow {
  text-align: center;
  color: var(--vf-muted);
  font-size: 18px;
  margin: -10px 0;
  opacity: 0.6;
  font-weight: 800;
  user-select: none;
}

/* Collapsible detailed tax breakdown details container */
.vf-tax-details-wrapper {
  margin-top: 25px;
  border-top: 1px solid var(--vf-line);
  padding-top: 20px;
}

.vf-tax-details-toggle {
  cursor: pointer;
  font-family: var(--vf-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--vf-navy);
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
  outline: none;
}

.vf-tax-details-toggle:hover {
  color: var(--vf-navy-dark);
}

.vf-tax-details-toggle::-webkit-details-marker {
  color: var(--vf-muted);
}

.vf-tax-breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.vf-tax-breakdown-title-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.vf-tax-icon-wrapper {
  background: rgba(22, 163, 74, 0.08);
  color: var(--vf-green-ui);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.vf-tax-breakdown-title-block h3 {
  font-family: var(--vf-display);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--vf-navy-deep);
}

.vf-tax-breakdown-title-block p {
  font-size: 14px;
  color: var(--vf-muted);
  margin: 0;
}

.vf-btn-export {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--vf-ink);
  background: var(--vf-surface);
  border: 1px solid var(--vf-line-strong);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vf-btn-export:hover {
  background: var(--vf-bg);
  border-color: var(--vf-navy);
  color: var(--vf-navy);
}

.vf-tax-breakdown-subtitle {
  font-size: 15px;
  font-weight: 600;
  color: var(--vf-muted);
  margin-bottom: 20px;
}

.vf-tax-table-container {
  overflow-x: auto;
}

.vf-tax-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.vf-tax-table th {
  font-family: var(--vf-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--vf-muted);
  padding: 12px 16px;
  border-bottom: 2px solid var(--vf-line-strong);
  text-align: left;
}

.vf-tax-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--vf-line);
  color: var(--vf-ink);
}

.vf-tax-section-row td {
  font-family: var(--vf-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--vf-navy-deep);
  background: rgba(0, 0, 0, 0.01);
  padding-top: 18px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--vf-line-strong);
}

.vf-bracket-row td {
  font-size: 15px;
}

.vf-tax-rate, .vf-tax-amount {
  text-align: right;
}

.vf-subtotal-row td {
  font-weight: 700;
  border-bottom: 2px solid var(--vf-line-strong);
  padding-top: 16px;
  padding-bottom: 16px;
}

.vf-subtotal-row td:last-child {
  text-align: right;
  font-size: 16px;
}

.vf-deductions-row td {
  font-weight: 700;
  color: var(--vf-red-ui);
  border-bottom: 2px solid var(--vf-line-strong);
  padding-top: 16px;
  padding-bottom: 16px;
}

.vf-deductions-row td:last-child {
  text-align: right;
  font-size: 17px;
}

.vf-net-pay-row td {
  font-family: var(--vf-display);
  font-weight: 700;
  color: var(--vf-green-ui);
  background: rgba(22, 163, 74, 0.04);
  border-bottom: none;
  padding-top: 18px;
  padding-bottom: 18px;
}

.vf-net-pay-row td:last-child {
  text-align: right;
  font-size: 20px;
}

.vf-tooltip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--vf-line-strong);
  color: var(--vf-muted);
  font-size: 11px;
  font-weight: bold;
  cursor: help;
  margin-left: 6px;
  vertical-align: middle;
}

/* ==========================================================================
   Desktop / Mobile Visibility Utilities
   ========================================================================== */

/* Hidden on mobile, visible on desktop */
.vf-desk-only { display: block; }

/* Hidden on desktop, visible on mobile */
.vf-mob-only  { display: none; }

/* Mobile search wrapper: hidden on desktop by default */
/* Custom Searchable Profession Dropdown (V1.2.010.1) */
.vf-select-search-wrapper {
  position: relative;
  width: 100%;
}

.vf-select-search-input-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--vf-line-strong);
  border-radius: var(--vf-r-sm);
  background: var(--vf-surface);
  box-sizing: border-box;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.vf-select-search-input-wrap:focus-within {
  outline: none;
  border-color: var(--vf-navy);
  box-shadow: 0 0 0 3px rgba(28, 50, 129, 0.12);
}

.vf-select-search-icon {
  flex-shrink: 0;
  padding: 0 12px;
  font-size: 15px;
  color: var(--vf-muted);
}

.vf-select-search-input {
  flex: 1;
  height: 100%;
  min-height: 48px;
  font-size: 16px;
  font-family: var(--vf-body);
  border: none !important;
  outline: none !important;
  background: transparent;
  color: var(--vf-ink);
  padding: 0 36px 0 0; /* space for clear button */
}

.vf-select-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  font-size: 11px;
  color: var(--vf-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  z-index: 10;
}

.vf-select-search-clear:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--vf-ink);
}

.vf-select-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1.5px solid var(--vf-line-strong);
  border-radius: var(--vf-r-sm);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  z-index: 999;
  max-height: 280px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: none; /* toggled via JS */
  animation: fadeIn 0.18s ease-out;
}

.vf-select-search-results.is-open {
  display: block;
}

.vf-select-sr-group-label {
  padding: 10px 14px 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--vf-muted);
  background: var(--vf-surface-soft);
  position: sticky;
  top: 0;
  z-index: 5;
}

.vf-select-sr-item {
  display: block;
  width: 100%;
  padding: 11px 16px;
  border: none;
  background: none;
  text-align: left;
  font-family: var(--vf-body);
  font-size: 14px;
  color: var(--vf-ink);
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  transition: background 0.12s ease;
}

.vf-select-sr-item:last-child {
  border-bottom: none;
}

.vf-select-sr-item:hover,
.vf-select-sr-item--highlighted {
  background: rgba(28, 50, 129, 0.05);
  outline: none;
}

.vf-select-sr-item--selected {
  background: rgba(28, 50, 129, 0.08);
  font-weight: 600;
  color: var(--vf-navy);
}

.vf-select-sr-item--other {
  color: var(--vf-espresso);
  font-style: italic;
}

.vf-select-sr-empty {
  padding: 18px 16px;
  text-align: center;
  color: var(--vf-muted);
  font-size: 14px;
}

/* Mobile timeline: hidden on desktop by default */
.vf-mob-timeline { display: none; }

/* ==========================================================================
   V1.2.010.1 — Tablet Responsive Layer  (768px – 1024px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {

  /* Reduce card padding — 50px is too wide on a 768px viewport */
  .pp-card { padding: 32px 28px; }

  /* Shrink hero title slightly for mid-range tablets */
  .pp-main-title { font-size: clamp(2rem, 4.5vw, 2.8rem); }

  /* Tighten vertical rhythm */
  .vf-intro { margin-bottom: 28px; }
  .vf-section { margin-top: 22px; padding-top: 22px; }
  .vf-action-bar { margin-top: 22px; padding-top: 22px; }
  .vf-section h2,
  .vf-results-header h2 { font-size: 22px; }
  .vf-comparison-widget h3,
  .vf-recommendations h3,
  .vf-col-integration h3 { font-size: 18px; }

  /* Comparison cards: 2-col still works fine on tablet */
  .vf-comparison-card { padding: 18px 16px; }

  /* Step card: comfortable but not overpadded */
  .vf-step-card { padding: 24px 20px !important; }

  /* Action button — good tap target */
  .vf-btn { min-height: 56px; font-size: 16px; }

  /* Page wrapper horizontal padding on tablet */
  .pp-page-wrapper { padding: 32px 24px; }

  /* Results scorecard */
  .vf-scorecard { padding: 36px 24px; }
  .vf-scorecard-value { font-size: clamp(3rem, 8vw, 4.5rem); }
  .vf-results-card { margin-top: 24px; }

}

/* ==========================================================================
   V1.2.010.1 — Mobile Responsive Layer  (@media < 768px)
   ========================================================================== */
@media (max-width: 767px) {

  /* ── Utility toggles ──────────────────────────────────────────────────── */
  .vf-desk-only { display: none !important; }
  .vf-mob-only  { display: block !important; }

  /* ── Page wrapper / Container ────────────────────────────────────────── */
  .pp-page-wrapper { padding: 0 16px; }
  .pp-container    { padding: 16px 0 40px; }
  .vf-section      { margin-top: 16px; padding-top: 16px; }
  .vf-action-bar   { margin-top: 16px; padding-top: 16px; }
  .vf-recommendations { margin-top: 16px; padding-top: 16px; }

  /* ── Hero ─────────────────────────────────────────────────────────────── */
  .pp-hero { padding: 24px 20px 0; margin-bottom: 24px; }
  .pp-main-title { font-size: 26px; line-height: 1.25; }
  .pp-meta { flex-direction: column; gap: 5px; font-size: 13px; }
  .pp-divider { display: none; }

  /* ── Cards ────────────────────────────────────────────────────────────── */
  .pp-card {
    padding: 20px 16px;
    border-radius: 16px;
    margin: 0 0 16px;
  }
  .vf-results-card { margin-top: 20px; }

  /* ── Grids → single column ────────────────────────────────────────────── */
  .vf-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* ── Inputs — thumb-friendly, prevent iOS auto-zoom (font-size ≥ 16px) ─ */
  .vf-input {
    min-height: 52px;
    font-size: 16px;
    padding: 0 14px;
  }

  select.vf-input { padding-right: 36px; }

  .vf-select-search-input {
    min-height: 52px;
    font-size: 16px;
  }

  .vf-select-sr-item {
    padding: 14px 16px;
    font-size: 15px;
  }

  /* ── Section headings ─────────────────────────────────────────────────── */
  .vf-section h2 { font-size: 18px; margin-bottom: 14px; }

  /* ── Radio options — full-width tap targets ───────────────────────────── */
  .vf-options { gap: 10px; }
  .vf-radio-label {
    padding: 12px 14px;
    border: 1.5px solid var(--vf-line-strong);
    border-radius: var(--vf-r-sm);
    background: #fff;
  }

  /* ── Action button ────────────────────────────────────────────────────── */
  .vf-btn { min-height: 58px; font-size: 17px; }

  /* ── Results card ─────────────────────────────────────────────────────── */
  .vf-results-header h2 { font-size: 18px; }
  .vf-scorecard { padding: 30px 20px; border-radius: 16px; }
  .vf-scorecard-value { font-size: 52px; }

  /* ── Mobile Accordion System ──────────────────────────────────────────── */
  /* Inserted by JS around each [data-mob-section] element */
  .vf-mob-accordion {
    border-top: 1px solid var(--vf-line);
    margin-top: 0;
  }

  .vf-mob-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 0;
    background: none;
    border: none;
    font-family: var(--vf-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--vf-navy-deep);
    cursor: pointer;
    text-align: left;
  }

  .vf-mob-accordion-chevron {
    font-size: 13px;
    color: var(--vf-muted);
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 12px;
  }

  .vf-mob-accordion--open .vf-mob-accordion-chevron {
    transform: rotate(180deg);
  }

  .vf-mob-accordion-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
    opacity: 0;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .vf-mob-accordion--open .vf-mob-accordion-body {
    max-height: 3000px; /* large enough for any section */
    opacity: 1;
    padding: 16px 16px 24px 16px;
  }

  /* Sections wrapped in accordion: remove top border/padding (accordion handles it) */
  .vf-mob-accordion .vf-step-card,
  .vf-mob-accordion .vf-comparison-widget,
  .vf-mob-accordion .vf-col-integration,
  .vf-mob-accordion .vf-recommendations {
    padding-top: 0;
    border-top: none;
    margin-top: 0;
  }

  /* On mobile, the desktop step-card background becomes transparent */
  .vf-step-card { background: transparent !important; padding: 0 !important; }

  /* Tax breakdown header (Export button stays visible but compact) */
  .vf-tax-breakdown-header { flex-wrap: wrap; gap: 10px; padding-bottom: 14px; margin-bottom: 16px; }
  .vf-tax-icon-wrapper { display: none; }

  /* Hide the desktop pay rows inside step-card on mobile */
  .vf-step-card .vf-pay-row,
  .vf-step-card .vf-pay-row-highlight,
  .vf-step-card .vf-pay-row-total,
  .vf-step-card .vf-employer-cost-section,
  #alsaceSurchargeBadge {
    display: none;
  }

  /* ── Mobile Timeline ──────────────────────────────────────────────────── */
  .vf-mob-timeline {
    display: flex;
    flex-direction: column;
    gap: 4px !important;
    padding: 8px 0 20px;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .vf-mob-tl-node {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--vf-bg) !important;
    border-radius: 14px !important;
    padding: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .vf-mob-tl-start { border-color: var(--vf-line-strong) !important; }

  .vf-mob-tl-end {
    background: linear-gradient(135deg, var(--vf-navy), var(--vf-navy-dark)) !important;
    border: none !important;
    color: #fff !important;
  }

  .vf-mob-tl-end .vf-mob-tl-label { color: rgba(255,255,255,0.80) !important; }
  .vf-mob-tl-end .vf-mob-tl-value { color: #fff !important; font-size: 22px !important; }

  .vf-mob-tl-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--vf-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em !important;
  }

  .vf-mob-tl-value {
    font-family: var(--vf-display);
    font-size: 20px !important;
    font-weight: 650;
    color: var(--vf-navy-deep);
  }

  .vf-mob-tl-connector {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    position: relative;
    box-sizing: border-box !important;
  }

  .vf-mob-tl-line {
    width: 2px !important;
    height: 12px !important;
    background: var(--vf-line-strong) !important;
    margin: 6px auto !important;
    align-self: center;
  }

  .vf-mob-tl-deduction {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    background: rgba(200, 50, 26, 0.03) !important;
    border: 1px solid rgba(200, 50, 26, 0.10) !important;
    border-radius: 14px !important;
    padding: 16px !important;
    box-sizing: border-box !important;
  }

  .vf-mob-tl-deduct-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--vf-red-ui);
    text-transform: uppercase;
    letter-spacing: 0.05em !important;
  }

  .vf-mob-tl-deduct-value {
    font-family: var(--vf-display);
    font-size: 20px !important;
    font-weight: 650;
    color: var(--vf-red-ui);
  }

  /* ── Mobile City Card Strip ───────────────────────────────────────────── */
  .vf-mob-city-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 16px;
    /* hide scrollbar but keep scroll */
    scrollbar-width: none;
  }
  .vf-mob-city-strip::-webkit-scrollbar { display: none; }

  .vf-mob-city-card {
    flex-shrink: 0;
    width: 158px;
    scroll-snap-align: start;
    background: #fff;
    border: 1.5px solid var(--vf-line-strong);
    border-radius: 14px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .vf-mob-city-card--selected {
    border-color: var(--vf-navy);
    background: rgba(28,50,129,0.04);
  }

  .vf-mob-city-card-pin {
    font-size: 16px;
    margin-bottom: 2px;
  }

  .vf-mob-city-card-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--vf-navy-deep);
  }

  .vf-mob-city-card-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--vf-muted);
    margin-top: 4px;
  }

  .vf-mob-city-card-salary {
    font-family: var(--vf-display);
    font-size: 19px;
    font-weight: 650;
    color: var(--vf-navy-deep);
  }

  .vf-mob-city-card-diff {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    align-self: flex-start;
    margin-top: 2px;
  }

  .vf-mob-city-card-diff--pos  { background: rgba(22,163,74,0.10);  color: var(--vf-green-ui); }
  .vf-mob-city-card-diff--neg  { background: rgba(200,50,26,0.08);  color: var(--vf-red-ui); }
  .vf-mob-city-card-diff--zero { background: rgba(0,0,0,0.06);      color: var(--vf-muted); }

  /* ── Comparison widget header ──────────────────────────────────────────── */
  .vf-comparison-widget h3 { font-size: 15px; margin-bottom: 12px; }

  /* ── Comparison summary cards (top 2: City Average / National Median) ─── */
  .vf-comparison-widget .vf-grid-2 {
    display: flex;
    flex-direction: column;
    gap: 16px !important;
  }
  .vf-comparison-card {
    padding: 18px 16px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    background: var(--vf-bg) !important;
  }
  .vf-comp-label { font-size: 11px !important; letter-spacing: 0.06em !important; }
  .vf-comp-value { font-size: 24px !important; margin: 6px 0 !important; }
  .vf-comp-text  { font-size: 12px !important; }

  /* ── CTA card ─────────────────────────────────────────────────────────── */
  .vf-col-integration { padding: 20px 16px; border-radius: 14px; margin-top: 16px; }
  .vf-col-integration h3 { font-size: 15px; margin-bottom: 10px; }
  .vf-recommendations h3 { font-size: 15px; margin-bottom: 12px; }

  /* ── Guide cards ──────────────────────────────────────────────────────── */
  .vf-guide-cards { gap: 10px; }
  .vf-guide-card  { padding: 14px; }

  /* ── Tax details table (still shown in mobile accordion, just narrower) ─ */
  .vf-tax-table { font-size: 11px; }
  .vf-tax-table th,
  .vf-tax-table td { padding: 6px 4px; }

  /* ── Disclaimer / footer ──────────────────────────────────────────────── */
  .vf-trust-footer { padding: 16px; }
  .vf-trust-meta   { flex-direction: column; gap: 4px; font-size: 11px; }
  .vf-trust-divider { display: none; }
}

/* ==========================================================================
   V1.2.010.1 — Layout Note
   Single-column design is intentional on all screen sizes.
   Results appear below the calculator card in natural reading order.
   ========================================================================== */