/* ========================================
   CSS VARIABLES & DESIGN TOKENS
   ======================================== */

:root {
  /* Colors */
  --primary: #6c5ce7;
  --primary-dark: #5a4eb8;
  --primary-light: #e8e4f7;
  --secondary: #f8f9fa;
  --success: #27ae60;
  --success-light: #d4edda;
  --text: #333333;
  --text-light: #666666;
  --text-lighter: #999999;
  --border: #e0e0e0;
  --border-light: #f0f0f0;
  --white: #ffffff;

  /* Spacing Scale */
  --spacing-1: 4px;
  --spacing-2: 8px;
  --spacing-3: 12px;
  --spacing-4: 16px;
  --spacing-5: 20px;
  --spacing-6: 24px;
  --spacing-8: 32px;
  --spacing-10: 40px;
  --spacing-12: 48px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.12);

  /* Typography */
  --font-primary: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-size-base: 16px;
  --font-size-sm: 14px;
  --font-size-xs: 12px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 32px;

  --line-height-tight: 1.4;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;
}

/* ========================================
     BASE STYLES
     ======================================== */

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}


input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="reset"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus,
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  background-color: rgb(from var(--primary) r g b / 0.1);
}



body {
  font-family: var(--font-primary);
  color: var(--text);
  background-color: var(--secondary);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
     LAYOUT STRUCTURE
     ======================================== */

.wizard-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  min-height: 100vh;
  gap: var(--spacing-6);
  padding: var(--spacing-4) var(--spacing-6);
  max-width: 1800px;
  margin: 0 auto;
}

.wizard-main {
  flex: 1;
}

.wizard-sidebar {
  position: sticky;
  top: var(--spacing-6);
  height: fit-content;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-6);
  box-shadow: var(--shadow-md);
}

/* Hide mobile step counter on desktop */
.mobile-step-counter {
  display: none;
}

/* Hide sidebar on step 5 (final confirmation step) */
#step-5.step-content.active~.wizard-sidebar {
  display: none !important;
}

/* Adjust grid layout when step 5 is active */
.wizard-container:has(#step-5.step-content.active) {
  grid-template-columns: 1fr !important;
}

/* Alternative selector for browsers that don't support :has() */
.wizard-container .wizard-sidebar {
  display: block;
}

body:has(#step-5.step-content.active) .wizard-sidebar {
  display: none !important;
}

/* ========================================
     STEP CONTENT
     ======================================== */

.step-content {
  display: none;
  /* background: var(--white); */
  border-radius: var(--radius-lg);
  padding: var(--spacing-8);
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.3s ease-in-out;
  max-width: 100%;
  overflow-x: hidden;
}

.step-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-header {
  margin-bottom: var(--spacing-8);
}

.step-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--spacing-2);
}

.step-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

.form-section {
  margin-bottom: var(--spacing-8);
}

.section-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--spacing-4);
}

/* ========================================
     RADIO CARDS & SELECTION
     ======================================== */

.business-type-grid,
.turnover-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-3);
  max-width: 900px;
}

.radio-card {
  display: flex;
  align-items: center;
  padding: var(--spacing-4);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--white);
}

.radio-card input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.radio-card input[type="radio"]:hover {
  border-color: var(--primary);
}

.radio-card input[type="radio"]:checked {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 3px var(--white);
}

.radio-card:has(input[type="radio"]:checked) {
  border-color: var(--primary);
  /* background: var(--primary-light); */
}

.radio-card:hover {
  border-color: var(--primary);
  /* background: var(--primary-light); */
}

.radio-content {
  margin-left: var(--spacing-3);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-1);
}

.radio-label {
  font-weight: 500;
  color: var(--text);
}

/* ========================================
     PROFESSIONAL PHONE INPUT WITH COUNTRY SELECTOR
     ======================================== */

/* Container */
.bw-phone-input-container {
  position: relative;
  border: none;
  width: 100%;
}

/* Main Input Wrapper */
.bw-phone-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: all 0.2s ease;
  overflow: hidden;
}

.bw-phone-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

/* Country Selector Button */
.bw-country-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: var(--font-primary);
}

.bw-country-selector:hover {
  background-color: #f8f9fa;
}

.bw-country-flag {
  font-size: 20px;
  line-height: 1;
}

.bw-country-code {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  min-width: 32px;
}

.bw-dropdown-arrow {
  color: #666;
  transition: transform 0.2s ease;
}

.bw-country-selector.active .bw-dropdown-arrow {
  transform: rotate(180deg);
}

/* Phone Input Field */
.bw-phone-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--font-primary);
  color: var(--text);
  background: transparent;
  padding: 12px 16px;
  min-width: 0;
}

.bw-phone-input::placeholder {
  color: #999;
}

/* Phone Input Validation States */
.bw-phone-input.valid {
  border-color: #10b981 !important;
}

.bw-phone-input.invalid {
  border-color: #ef4444 !important;
}

.bw-phone-input-wrapper:has(.bw-phone-input.valid) {
  border-color: #10b981;
}

.bw-phone-input-wrapper:has(.bw-phone-input.invalid) {
  border-color: #ef4444;
}

/* Country Dropdown */
.bw-country-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: 300px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  max-height: 300px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 230px;
}

/* Search Wrapper */
.bw-country-search-wrapper {
  position: relative;
  padding: 10px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.bw-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
}

.bw-country-search {
  width: 100%;
  padding: 8px 10px 8px 32px !important;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--font-primary);
  outline: none;
  transition: border-color 0.2s ease;
}

.bw-country-search:focus {
  border-color: var(--primary);
}

/* Country List */
.bw-country-list {
  overflow-y: auto;
  max-height: 240px;
  flex: 1;
}

.bw-country-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: var(--font-primary);
}

.bw-country-item:hover {
  background-color: #f8f9fa;
}

.bw-country-item.selected {
  background-color: #e8e4f7;
}

.bw-country-item-flag {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.bw-country-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bw-country-item-name {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.bw-country-item-code {
  font-size: 13px;
  color: #666;
  font-weight: 500;
  flex-shrink: 0;
  min-width: 45px;
  text-align: right;
}

/* Scrollbar Styles */
.bw-country-list::-webkit-scrollbar {
  width: 6px;
}

.bw-country-list::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.bw-country-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.bw-country-list::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Error State */
.bw-phone-input-wrapper.error {
  border-color: #ff3860;
}

.bw-phone-input-wrapper.error:focus-within {
  box-shadow: 0 0 0 3px rgba(255, 56, 96, 0.1);
}


/* ========================================
     COMPARISON TABLE STYLES
     ======================================== */

/* Comparison Wrapper */
.bw-comparison-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
  padding-right: 10px;
}

.bw-comparison-section {
  display: inline-flex;
  align-items: flex-end;
  gap: 0;
  padding-top: 40px;
}

/* Feature Labels (Left Column) */
.bw-feature-labels {
  position: sticky;
  left: 0;
  z-index: 15;
  background: var(--ast-comment-inputs-background);
  padding-bottom: 70px;
  padding-right: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 200px;
}

.bw-labels-header-spacer {
  height: 160px;
  flex-shrink: 0;
}

.bw-label-row {
  height: 45px;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-main, #1A202C);
  border-bottom: 1px solid transparent;
  line-height: 1.2;
  padding-right: 8px;
}

/* Cards Container */
.bw-cards-container {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

/* Comparison Card */
.bw-comp-card {
  background: var(--white, #FFFFFF);
  border-radius: 16px;
  width: 240px;
  border: 1px solid var(--border, #E2E8F0);
  overflow: visible;
  box-shadow: 0 1px 2px 0 rgb(0, 0, 0, 0.05);
  transition: box-shadow 0.3s, transform 0.2s;
  display: flex;
  flex-direction: column;
  position: relative;
  flex-shrink: 0;
  margin-right: 5px;
}

.bw-comp-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.bw-comp-card.inclusive {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.bw-comp-card.selected {
  border-color: var(--primary-dark);
}

/* Card Header */
.bw-comp-header {
  padding: 30px 16px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border, #E2E8F0);
  height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  background: var(--white, #FFFFFF);
  overflow: visible;
  border-radius: 16px 16px 0 0;
}

.bw-comp-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary, #6B46C1);
  color: var(--white, #FFFFFF);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 9px;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(107, 70, 193, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  white-space: nowrap;
}

.bw-comp-card .bw-sale-badge {
  display: none;
  /* Removed diagonal badge from comparison layout */
}

.bw-comp-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main, #1A202C);
}

.bw-comp-subtitle {
  color: var(--text-light, #718096);
  font-size: 11px;
  margin-bottom: 10px;
  font-weight: 400;
}

.bw-comp-price-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bw-comp-original-price {
  font-size: 14px;
  color: var(--text-light, #718096);
  text-decoration: line-through;
  font-weight: 500;
  opacity: 0.8;
}

.bw-comp-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main, #1A202C);
  line-height: 1;
}

.bw-comp-card.inclusive .bw-comp-price {
  color: var(--primary, #6B46C1);
}

.bw-comp-price-sub {
  font-size: 10px;
  color: var(--text-light, #718096);
  font-weight: 400;
  display: block;
  margin-top: 4px;
}

.bw-comp-sale-text {
  padding-bottom: 5px;
  font-size: 11px;
  color: var(--primary, #6B46C1);
  font-weight: 700;
  margin-top: 6px;
  text-align: center;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.bw-comp-sale-text i {
  font-size: 10px;
}

/* Card Body */
.bw-comp-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.bw-comp-row {
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--border, #E2E8F0);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main, #1A202C);
  background: var(--white, #FFFFFF);
  padding: 0 12px;
}

.bw-comp-row:last-child {
  border-bottom: none;
}

.bw-comp-row svg {
  width: 18px;
  height: 18px;
}

.bw-check-icon {
  color: var(--primary, #6B46C1);
}

.bw-cross-icon {
  color: #2c3238;
}

/* Card Footer */
.bw-comp-footer {
  padding: 16px;
  background: var(--white, #FFFFFF);
  border-top: 1px solid var(--border, #E2E8F0);
  border-radius: 0 0 16px 16px;
}

.bw-comp-btn {
  width: 100%;
  padding: 10px;
  background: var(--primary, #6B46C1);
  color: var(--white, #FFFFFF);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  text-transform: none;
}

.bw-comp-btn:hover {
  background: var(--primary-dark, #553C9A);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(107, 70, 193, 0.3);
}

.bw-comp-btn:active {
  transform: translateY(0);
}

.bw-comp-card.selected .bw-comp-btn {
  background: var(--primary-dark, #553C9A);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 900px) {
  .bw-comparison-wrapper {
    margin: 0;
    overflow-x: auto;
    padding-bottom: 20px;
  }

  .bw-comparison-section {
    padding-left: 10px;
    padding-top: 30px;
    /* Increased to give space for badge */
  }

  .bw-feature-labels {
    min-width: 110px;
    max-width: 120px;
    padding-right: 8px;
    padding-bottom: 60px;
  }

  .bw-labels-header-spacer {
    height: 130px;
  }

  .bw-label-row {
    height: 40px;
    font-size: 10px;
    line-height: 1.1;
    padding-right: 6px;
  }

  .bw-comp-card {
    width: 45vw;
    max-width: 120px;
    min-width: 110px;
    overflow: visible;
    /* Ensure badge is visible outside card */
  }

  .bw-cards-container {
    gap: 10px;
  }

  .bw-comp-header {
    height: 130px;
    padding: 24px 12px 12px;
    overflow: visible;
    /* Allow badge to show outside header */
  }

  .bw-comp-badge {
    padding: 4px 10px;
    font-size: 8px;
    top: -11px;
    /* Adjusted for better positioning */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
  }

  .bw-comp-card .bw-sale-badge {
    display: none;
    /* Hidden on mobile */
  }

  .bw-comp-title {
    font-size: 11px;
    margin-bottom: 2px;
  }

  .bw-comp-subtitle {
    font-size: 8px;
    margin-bottom: 5px !important;
  }

  .bw-comp-original-price {
    font-size: 11px;
  }

  .bw-comp-price {
    font-size: 14px;
  }

  .bw-comp-price-sub {
    font-size: 9px;
    margin-top: 3px;
  }

  .bw-comp-sale-text {
    font-size: 9px;
    margin-top: 4px;
    font-weight: 700;
  }

  .bw-comp-sale-text i {
    font-size: 8px;
  }

  .bw-comp-row {
    height: 40px;
    font-size: 11px;
    padding: 0 10px;
  }

  .bw-comp-row svg {
    width: 16px;
    height: 16px;
  }

  .bw-comp-footer {
    padding: 12px;
  }

  .bw-comp-btn {
    padding: 6px;
    font-size: 10px;
  }
}

/* Tablet-specific adjustments (600px - 900px) */
@media (min-width: 600px) and (max-width: 900px) {
  .bw-comp-card {
    width: 40vw;
    max-width: 180px;
    min-width: 150px;
  }

  .bw-comp-header {
    height: 150px;
    padding: 28px 14px 14px;
  }

  .bw-comp-badge {
    padding: 5px 12px;
    font-size: 9px;
    top: -12px;
  }

  .bw-comp-card .bw-sale-badge {
    display: none;
    /* Hidden on tablet */
  }

  .bw-comp-title {
    font-size: 13px;
    margin-bottom: 3px;
  }

  .bw-comp-subtitle {
    font-size: 10px;
  }

  .bw-comp-original-price {
    font-size: 12px;
  }

  .bw-comp-price {
    font-size: 18px;
  }

  .bw-comp-sale-text {
    font-size: 10px;
    margin-top: 5px;
    font-weight: 700;
  }

  .bw-comp-row {
    height: 45px;
    font-size: 12px;
  }

  .bw-comp-row svg {
    width: 18px;
    height: 18px;
  }
}

/* Small mobile adjustments (< 600px) */
@media (max-width: 599px) {
  .bw-comparison-section {
    padding-top: 35px;
    /* Extra space for badge on small screens */
  }

  .bw-comp-card {
    width: 50vw;
    max-width: 140px;
    min-width: 120px;
  }

  .bw-comp-header {
    height: 140px;
    padding: 26px 14px 12px;
  }

  .bw-comp-badge {
    padding: 4px 11px;
    font-size: 8.5px;
    top: -11px;
    border-radius: 14px;
  }

  .bw-comp-card .bw-sale-badge {
    display: none;
    /* Hidden on small mobile */
  }

  .bw-comp-title {
    font-size: 12px;
  }

  .bw-comp-subtitle {
    font-size: 9px;
  }

  .bw-comp-original-price {
    font-size: 10px;
  }

  .bw-comp-price {
    font-size: 16px;
  }

  .bw-comp-sale-text {
    font-size: 8.5px;
    margin-top: 4px;
    font-weight: 700;
  }

  .bw-comp-row {
    height: 42px;
  }
}

/* Scrollbar */
.bw-comparison-wrapper::-webkit-scrollbar {
  height: 8px;
}

.bw-comparison-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.bw-comparison-wrapper::-webkit-scrollbar-thumb {
  background: var(--primary, #6B46C1);
  border-radius: 10px;
}

.bw-comparison-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark, #553C9A);
}

/* Popular Badge */
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: var(--spacing-1) var(--spacing-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
  z-index: 5;
}

/* Package Name */
.comparison-package-name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--spacing-1);
}

.comparison-features-col .comparison-package-name {
  color: var(--text);
  font-weight: 700;
  font-size: var(--font-size-xl);
  visibility: visible !important;
}

/* Package Subtitle */
.comparison-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  margin-bottom: var(--spacing-3);
}

/* Package Price */
.comparison-package-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--spacing-1);
  font-weight: 600;
  color: var(--text);
}

.comparison-currency {
  font-size: var(--font-size-base);
  color: var(--text-light);
}

.comparison-amount {
  font-size: var(--font-size-2xl);
  color: var(--primary);
}

.comparison-period {
  font-size: var(--font-size-xs);
  color: var(--text-light);
}

/* Feature Rows */
.comparison-feature-row {
  padding: var(--spacing-4) var(--spacing-5);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  min-height: 60px;
  max-height: 60px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text);
  text-align: center;
  overflow: hidden;
}

.comparison-features-col .comparison-feature-row {
  padding-left: var(--spacing-6);
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  border-right: 2px solid var(--border);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

/* Feature Icons */
.comparison-check,
.comparison-cross {
  width: 20px;
  height: 20px;
  stroke-width: 3;
}

.comparison-check {
  color: var(--success);
}

.comparison-cross {
  /* color: var(--text-lighter); */
  color: rgb(213, 63, 63);
}

/* Unique Feature Indicators */
.feature-unique {
  background: #fffbea;
  font-weight: 700;
}

.feature-unique-highlight {
  /* background: #fffbea; */
  position: relative;
}

.unique-badge {
  display: inline-block;
  margin-left: 8px;
  color: #f59e0b;
  font-size: 16px;
  line-height: 1;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* Select Button Row */
.comparison-select-row {
  padding: var(--spacing-5);
  text-align: center;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-features-col .comparison-select-row {
  border-right: 2px solid var(--border);
}

.comparison-package-col .comparison-select-row {
  background: var(--white);
}

/* Select Button */
.comparison-select-btn {
  width: 100%;
  padding: var(--spacing-3) var(--spacing-4);
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-select-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.comparison-package-col.featured .comparison-select-btn {
  background: var(--primary);
  box-shadow: var(--shadow-sm);
}

.comparison-package-col.selected .comparison-select-btn {
  background: var(--primary);
}

.comparison-package-col.selected .comparison-select-btn:hover {
  background: var(--primary-dark);
}

/* Hover Effects */
.comparison-package-col:hover {
  background: var(--primary-light);
}

.comparison-package-col:hover .comparison-header {
  background: var(--primary-light);
}

.comparison-package-col.selected .comparison-header {
  background: var(--primary-light);
}

/* ========================================
   INFO TOOLTIPS
   ======================================== */

/* Tooltip Icon */
.bw-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  /* background: rgb(from var(--primary) r g b / 0.15); */
  /* color: var(--primary); */
  font-size: 12px;
  font-weight: 500;
  cursor: help;
  margin-left: 6px;
  transition: all 0.2s ease;
  /* border: 1px solid rgb(from var(--primary) r g b / 0.3); */
  position: relative;
  vertical-align: middle;
}

.bw-tooltip:hover {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(from var(--primary) r g b / 0.3);
}

/* Tooltip Text - Desktop Hover */
.bw-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(0, 0, 0, 0.85);
  color: var(--white);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.4;
  white-space: normal;
  width: 180px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Tooltip Arrow */
.bw-tooltip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}

.bw-tooltip:hover::after,
.bw-tooltip:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Tooltip for labels */
.form-label-with-tooltip {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Special tooltip for form sections */
.section-header-with-tooltip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: var(--spacing-4);
}

.section-header-with-tooltip h3 {
  margin: 0;
}

/* Tooltip variants */
.bw-tooltip.success {
  background: rgb(from var(--success) r g b / 0.15);
  color: var(--success);
  border-color: rgb(from var(--success) r g b / 0.3);
}

.bw-tooltip.success:hover {
  background: var(--success);
  color: var(--white);
}

.bw-tooltip.warning {
  background: rgb(from #f59e0b r g b / 0.15);
  color: #f59e0b;
  border-color: rgb(from #f59e0b r g b / 0.3);
}

.bw-tooltip.warning:hover {
  background: #f59e0b;
  color: var(--white);
}

/* Mobile Tooltip Adjustments */
@media (max-width: 768px) {
  .bw-tooltip::after {
    white-space: normal;
    width: 160px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(5px);
    bottom: calc(100% + 12px);
    z-index: 10000;
    font-size: 10px;
    padding: 5px 8px;
  }

  .bw-tooltip::before {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(5px);
    z-index: 10001;
  }

  .bw-tooltip:hover::after,
  .bw-tooltip:hover::before {
    transform: translateX(-50%) translateY(0);
  }

  /* Click to show tooltip on mobile */
  .bw-tooltip.active::after,
  .bw-tooltip.active::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .comparison-table-wrapper {
    margin: var(--spacing-4) 0;
    border-radius: var(--radius-md);
  }

  .comparison-col {
    min-width: 180px;
  }

  .comparison-features-col {
    flex: 0 0 200px;
    background: var(--white);
  }

  .comparison-header {
    padding: var(--spacing-4);
    min-height: 160px;
  }

  .comparison-package-name {
    font-size: var(--font-size-base);
  }

  .comparison-amount {
    font-size: var(--font-size-xl);
  }

  .comparison-feature-row {
    padding: var(--spacing-3) var(--spacing-4);
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    font-size: var(--font-size-xs);
    justify-content: center;
    text-align: center;
    overflow: hidden;
  }

  .comparison-features-col .comparison-feature-row {
    padding-left: var(--spacing-4);
    justify-content: flex-start;
    text-align: left;
    background: var(--white);
  }

  .comparison-select-row {
    padding: var(--spacing-4);
    min-height: 70px;
  }
}

@media (max-width: 768px) {
  .comparison-table-wrapper {
    margin: var(--spacing-3) -var(--spacing-3);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .comparison-col {
    min-width: 160px;
  }

  .comparison-features-col {
    flex: 0 0 180px;
    background: var(--white);
  }

  .comparison-header {
    padding: var(--spacing-3);
    min-height: 140px;
  }

  .comparison-package-name {
    font-size: var(--font-size-sm);
  }

  .comparison-subtitle {
    font-size: var(--font-size-xs);
    margin-bottom: var(--spacing-2);
  }

  .comparison-amount {
    font-size: var(--font-size-lg);
  }

  .comparison-feature-row {
    padding: var(--spacing-2) var(--spacing-3);
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    font-size: var(--font-size-xs);
    justify-content: center;
    text-align: center;
    overflow: hidden;
  }

  .comparison-features-col .comparison-feature-row {
    padding-left: var(--spacing-3);
    justify-content: flex-start;
    text-align: left;
    background: var(--white);
  }

  .comparison-select-btn {
    padding: var(--spacing-2) var(--spacing-3);
    font-size: var(--font-size-xs);
  }

  .comparison-select-row {
    min-height: 60px;
  }
}

/* ========================================
     RESPONSIVE DESIGN
     ======================================== */

.selected-package-dropdown {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--spacing-4);
}

.package-dropdown-toggle {
  width: 100%;
  background: transparent;
  border: none;
  padding: var(--spacing-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: var(--spacing-3);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.package-dropdown-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.package-dropdown-toggle:not(:disabled):hover {
  background: var(--primary-light);
  box-shadow: var(--shadow-xs);
  transform: translateY(-1px);
}

.package-dropdown-toggle:not(:disabled):focus {
  background: var(--primary-light);
  box-shadow: var(--shadow-xs);
  transform: translateY(-1px);
}

.package-dropdown-toggle:not(:disabled):active,
.package-dropdown-toggle.open {
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

.toggle-text-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toggle-label {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  font-weight: 600;
}

.toggle-value {
  font-size: var(--font-size-md);
  color: var(--text);
  font-weight: 600;
}

.toggle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: var(--primary);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.package-dropdown-toggle:not(:disabled):hover .toggle-icon,
.package-dropdown-toggle.open .toggle-icon {
  background: var(--primary);
  color: var(--white);
}

.package-dropdown-toggle.open .toggle-icon {
  transform: rotate(180deg);
}

.package-dropdown-panel {
  background: var(--white);
  border-top: 1px solid var(--border-light);
  padding: var(--spacing-4);
}

.package-summary-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-4);
  box-shadow: var(--shadow-xs);
  background: var(--white);
}

.package-summary-card .package-summary-header {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-4);
  align-items: flex-start;
  margin-bottom: var(--spacing-3);
}

.package-summary-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text);
}

.package-summary-description {
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

.package-summary-price {
  text-align: right;
  font-weight: 700;
  color: var(--primary);
}

.package-summary-price .currency {
  font-size: var(--font-size-sm);
}

.package-summary-price .amount {
  font-size: var(--font-size-xl);
}

.package-summary-price .period {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--text-light);
}

.package-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border-light);
}

.package-feature-list li {
  display: flex;
  gap: var(--spacing-3);
  align-items: center;
  padding: var(--spacing-2) 0;
  border-bottom: 1px solid var(--border-light);
}

.package-feature-list li:last-child {
  border-bottom: none;
}

.package-feature-list .feature-indicator svg {
  width: 18px;
  height: 18px;
  color: var(--success);
}

.package-feature-list li.excluded .feature-indicator svg {
  color: var(--danger);
}

.package-feature-list .feature-text {
  font-size: var(--font-size-sm);
  color: var(--text);
}

.package-card.selected .btn-primary,
.package.selected .btn,
.package.selected .btn-primary,
.package-card.selected .btn-package,
.package.selected .btn-package {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-color: var(--primary) !important;
}

.package-card.selected .btn-primary:hover,
.package.selected .btn:hover,
.package.selected .btn-primary:hover,
.package-card.selected .btn-package:hover,
.package.selected .btn-package:hover {
  background: var(--primary-dark) !important;
}

.btn-package {
  width: 100%;
  padding: var(--spacing-4) var(--spacing-3);
  background: var(--primary);
  color: var(--white);
  font-size: var(--font-size-sm);
}

.btn-package-primary {
  background: var(--white);
  color: var(--primary);
}

/* Wizard button overrides */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.btn-primary:disabled,
.btn-primary.disabled {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--text-light);
}

.btn-small {
  padding: var(--spacing-2) var(--spacing-4);
  font-size: var(--font-size-sm);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* ========================================
     SIGNATURE CANVAS
     ======================================== */

.signature-box {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--secondary);
  padding: var(--spacing-4);
  margin-bottom: var(--spacing-4);
  overflow: hidden;
}

#signatureCanvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
  background: var(--white);
  border-radius: var(--radius-sm);
  touch-action: none;
}

.signature-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-lighter);
  font-size: var(--font-size-sm);
  pointer-events: none;
}

/* ========================================
     PAYMENT METHODS
     ======================================== */

.payment-summary {
  background: rgb(from var(--primary) r g b / 0.2);

  padding: var(--spacing-6);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-8);
}

.payment-title {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  margin-bottom: var(--spacing-2);
}

.payment-amount {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--spacing-2);
}

.payment-period {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  margin-left: var(--spacing-1);
}

.payment-date {
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

/* Payment Method Cards - Clean & Minimal Design */
.payment-method-card {
  transition: all 0.2s ease;
  border: 2px solid #e5e7eb !important;
}

.payment-method-card:hover {
  border-color: #d1d5db !important;
}

.payment-method-card:has(input[type="radio"]:checked) {
  /* Keep card appearance the same - only radio button changes */
  border-color: #e5e7eb !important;
  border-width: 2px !important;
}

/* Radio button styling - Force visibility and native appearance */
.payment-method-card input[type="radio"] {
  flex-shrink: 0;
  appearance: auto !important;
  -webkit-appearance: auto !important;
  -moz-appearance: auto !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  cursor: pointer !important;
  position: relative !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block !important;
}

.payment-method-card input[type="radio"]:focus {
  /* outline: 2px solid var(--primary); */
  outline-offset: 2px;
}

.paypal-icon {
  background: #003087;
}

.gocard-icon {
  background: #ff5f00;
}

.debit-icon {
  font-size: var(--font-size-2xl);
}

.payment-method-text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-1);
}

.payment-method-name {
  font-weight: 600;
  color: var(--text);
}

.payment-method-desc {
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

/* ========================================
     COMPANY INFO BOX
     ======================================== */

.company-info-box {
  display: flex;
  gap: var(--spacing-4);
  padding: var(--spacing-6);
  background: var(--secondary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-8);
}

.company-icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  flex-shrink: 0;
}

.company-info-content {
  flex: 1;
}

.company-info-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--spacing-2);
}

.company-info-text {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  margin-bottom: var(--spacing-1);
}

/* ========================================
     FEE BREAKDOWN
     ======================================== */

.fee-breakdown {
  background: var(--secondary);
  padding: var(--spacing-4);
  border-radius: var(--radius-md);
  margin-top: var(--spacing-4);
}

.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-2) 0;
  font-size: var(--font-size-sm);
}

.fee-label {
  color: var(--text-light);
}

.fee-amount {
  font-weight: 600;
  color: var(--text);
}

.fee-row.total {
  border-top: 2px solid var(--border);
  padding-top: var(--spacing-4);
  margin-top: var(--spacing-4);
  font-size: var(--font-size-base);
}

.fee-row.total .fee-label {
  color: var(--text);
  font-weight: 600;
}

.fee-row.total .fee-amount {
  color: var(--primary);
  font-size: var(--font-size-lg);
}

/* ========================================
     CHECKBOXES
     ======================================== */

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-3);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: var(--spacing-1);
  transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:hover {
  border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: "✔";
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-text {
  font-size: var(--font-size-sm);
  color: var(--text);
  line-height: var(--line-height-relaxed);
}

.link {
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
}

/* ========================================
     NOTES & INFO BOXES
     ======================================== */

.note-box {
  background: var(--secondary);
  padding: var(--spacing-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-6);
  font-size: var(--font-size-sm);
  color: var(--text);
  line-height: var(--line-height-relaxed);
}

/* ========================================
     CONFIRMATION PAGE
     ======================================== */

.confirmation-header {
  text-align: center;
  margin-bottom: var(--spacing-8);
}

.success-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: 50%;
  margin: 0 auto var(--spacing-4);
}

.success-icon svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
  stroke-width: 2;
}

.summary-box {
  background: rgb(from var(--primary-light) r g b / 0.2);
  padding: var(--spacing-6);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-8);
}

.summary-section {
  margin-bottom: var(--spacing-6);
}

.summary-section:last-child {
  margin-bottom: 0;
}

.summary-section.total {
  border-top: 2px solid var(--border);
  padding-top: var(--spacing-6);
  margin-top: var(--spacing-6);
}

.summary-heading {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--spacing-3);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-2) 0;
  font-size: var(--font-size-sm);
}

.summary-label {
  color: var(--text-light);
}

.summary-value {
  font-weight: 600;
  color: var(--text);
}

.summary-section.total .summary-value {
  font-size: var(--font-size-lg);
  color: var(--primary);
}

.what-happens-next {
  margin-bottom: var(--spacing-6);
}

.next-steps-list {
  list-style: none;
}

.next-steps-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-3);
  font-size: var(--font-size-sm);
  color: var(--text);
  margin-bottom: var(--spacing-3);
  line-height: var(--line-height-relaxed);
}

.step-icon {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: var(--spacing-1);
}

/* ========================================
     STEP ACTIONS
     ======================================== */

.step-actions {
  display: flex;
  gap: var(--spacing-4);
  margin-top: var(--spacing-8);
  padding-top: var(--spacing-6);
  border-top: 1px solid var(--border);
}

.step-actions .btn-secondary {
  flex: 1;
}

.step-actions .btn-primary {
  flex: 1;
}

/* ========================================
     SIDEBAR STEPPER
     ======================================== */

.sidebar-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--spacing-6);
}

.stepper {
  list-style: none;
}

.step-item {
  display: flex;
  gap: var(--spacing-3);
  position: relative;
  padding-bottom: var(--spacing-6);
  margin-bottom: var(--spacing-4);
}

.step-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 40px;
  width: 2px;
  height: calc(100% + 8px);
  background: var(--border);
}

.step-item.completed::before {
  background: var(--success);
}

.step-item.active::before {
  background: var(--primary);
}

.step-dot {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--text-light);
  font-weight: 700;
  font-size: var(--font-size-xs);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: all 0.2s ease;
}

.step-item.completed .step-dot {
  background: var(--success);
  border-color: var(--success);
  color: var(--white);
}

/* Force horizontal stepper when JS toggles .mobile-stepper on sidebar */
.wizard-sidebar.mobile-stepper .stepper {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  gap: var(--spacing-4);
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: var(--spacing-2) 0;
  border-bottom: 1px solid var(--border);
}

.wizard-sidebar.mobile-stepper .step-item:not(:last-child)::before {
  display: none !important;
}

.wizard-sidebar.mobile-stepper .step-item {
  flex: 0 0 auto !important;
  display: none;
  align-items: center;
  gap: var(--spacing-3);
  padding: var(--spacing-3) var(--spacing-4);
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  scroll-snap-align: center;
}

.wizard-sidebar.mobile-stepper .step-item.visible-mobile {
  display: inline-flex !important;
}

/* Clickable steps */
.step-item.clickable {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.step-item.clickable:hover {
  opacity: 0.8;
}

.step-item.clickable:hover .step-dot {
  transform: scale(1.1);
}

.step-item.clickable:hover .step-label {
  color: var(--primary);
}

/* Substep Details - Minimal compact design */
.substep-details {
  margin-top: var(--spacing-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.substep-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 4px 0;
  transition: all 0.2s ease;
  cursor: pointer;
  opacity: 0.6;
}

.substep-detail-item.completed {
  opacity: 1;
}

.substep-detail-item.active {
  opacity: 1;
}

.substep-detail-item.clickable:hover {
  opacity: 0.8;
}

.substep-detail-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  color: var(--success);
  font-size: 9px;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.substep-detail-item.completed .substep-detail-icon {
  display: flex;
}

.substep-detail-content {
  flex: 1;
  min-width: 0;
}

.substep-detail-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 2px;
}

.substep-detail-item.active .substep-detail-label {
  color: var(--primary);
}

.substep-detail-value {
  font-size: 12px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
  word-wrap: break-word;
}

/* Hide subsection if no value */
.substep-detail-item:not(.completed) {
  display: none;
}

/* ========================================
   PHONE INPUT WITH COUNTRY CODE
   ======================================== */

.phone-input-wrapper {
  display: flex;
  gap: var(--spacing-3);
  align-items: stretch;
}

.country-code-select {
  /* min-width: 140px; */
  width: auto;
  /* padding: var(--spacing-3) var(--spacing-4); */
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--white);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  line-height: 1.5;
}

.country-code-select:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.country-code-select:focus {
  outline: none;
  border-color: var(--primary);
}

.country-code-select option {
  padding: var(--spacing-2);
  font-size: 14px;
}

.phone-number-input {
  flex: 1;
  min-width: 0;
}

/* Make phone input work in the flex layout */
.phone-input-wrapper .form-input {
  margin-bottom: 0;
}

/* Payment Methods */
.payment-method-card {
  position: relative;
  padding-bottom: 2px;
  padding-top: 2px;
  border: 1px solid var(--border) var(--primary);
  border-radius: var(--radius-md);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-method-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.payment-method-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* .payment-method-card input[type="radio"]:checked+.payment-method-content {
  border-color: var(--primary);
  background-color: var(--primary-light);
} */

.payment-method-content {
  display: flex;
  align-items: center;
  padding: var(--spacing-3);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.payment-method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: var(--spacing-4);
  border-radius: var(--radius-md);
  background: var(--secondary);
  color: var(--primary);
  font-size: 24px;
  flex-shrink: 0;
}

.payment-method-text {
  flex: 1;
}

.payment-method-name {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--spacing-1);
}

.payment-method-desc {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

/* Recommended badge */
.recommended-badge {
  position: absolute;
  top: -8px;
  right: 16px;
  padding: 2px 8px;
  background: var(--success);
  color: white;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Payment form container */
.payment-form-container {
  margin-top: var(--spacing-6);
  padding: var(--spacing-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
}

/* Stripe Elements */
#card-element {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  transition: border-color 0.2s ease;
}

#card-element.StripeElement--focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

#card-element.StripeElement--invalid {
  border-color: #ff3860;
}

#card-errors {
  color: #ff3860;
  font-size: var(--font-size-sm);
  padding: var(--spacing-2) 0;
}

#card-errors-mobile {
  color: #ff3860;
  font-size: var(--font-size-sm);
  padding: var(--spacing-2) 0;
}

/* Desktop: Show combined card element, hide mobile fields */
.card-wrapper-desktop {
  display: block;
}

.card-wrapper-mobile {
  display: none;
}

/* Mobile card fields styling */
.card-fields-mobile {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.card-row-mobile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3);
}

.card-fields-mobile .form-group {
  margin-bottom: 0;
}

.card-fields-mobile .form-label {
  display: block;
  margin-bottom: var(--spacing-2);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text);
}

.card-fields-mobile .form-control {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  transition: border-color 0.2s ease;
  min-height: 44px;
}

.card-fields-mobile .form-control:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}


/* Bank transfer details */
#bank-transfer-details {
  margin-top: var(--spacing-3);
  padding: var(--spacing-3);
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

#bank-transfer-details p:last-child {
  margin-bottom: 0;
}

/* Payment summary */
.payment-summary {
  text-align: center;
  margin-bottom: var(--spacing-8);
  padding: var(--spacing-6);
  background: rgb(from var(--primary-light) r g b / 0.5);
  border-radius: var(--radius-lg);
}

.payment-title {
  margin: 0 0 var(--spacing-2);
  color: var(--text);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.payment-amount {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 var(--spacing-2);
  line-height: 1.2;
}

.payment-date {
  color: var(--text-light);
  margin: 0;
  font-size: var(--font-size-sm);
}

/* Payment method icons */
.payment-method-icon i {
  color: inherit;
}

.stripe-icon {
  background: linear-gradient(135deg, #6772e5 0%, #5a67d8 100%);
  color: white;
}

.bank-icon {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {

  /* Horizontal stepper on small devices only */
  .wizard-container .wizard-sidebar .stepper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: var(--spacing-3);
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: var(--spacing-2) 0;
  }

  /* Remove vertical connectors */
  .wizard-container .wizard-sidebar .step-item:not(:last-child)::before {
    display: none !important;
  }

  /* Step block layout: dot above, label below */
  .wizard-container .wizard-sidebar .step-item {
    flex: 0 0 auto !important;
    /* display: none is controlled above by user; we keep layout compact regardless */
    flex-direction: column !important;
    align-items: center !important;
    gap: var(--spacing-1);
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    scroll-snap-align: center;
    min-width: 72px;
  }

  .wizard-container .wizard-sidebar .step-item.visible-mobile {
    display: flex !important;
  }

  /* Dot style */
  .wizard-container .wizard-sidebar .step-item .step-dot {
    width: 28px;
    height: 28px;
    border-width: 2px;
    border-radius: 999px;
    background: #eef2f7;
    color: var(--text-light);
    display: grid;
    place-items: center;
    font-weight: 700;
    position: relative;
  }

  .wizard-container .wizard-sidebar .step-item.completed .step-dot {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
  }

  .wizard-container .wizard-sidebar .step-item.active .step-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
  }

  /* Horizontal connector to next visible item */
  .wizard-container .wizard-sidebar .step-item.visible-mobile .step-dot::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    height: 3px;
    width: 36px;
    border-radius: 2px;
    background: var(--border);
  }

  .wizard-container .wizard-sidebar .step-item.completed .step-dot::after {
    background: var(--success);
  }

  /* Hide connector on last visible */
  .wizard-container .wizard-sidebar .step-item.mobile-tail .step-dot::after {
    display: none;
  }

  /* Text below dot */
  .wizard-container .wizard-sidebar .step-item .step-info {
    text-align: center;
    align-items: center;
  }

  .wizard-container .wizard-sidebar .step-item .step-label {
    font-weight: 600;
    color: var(--text);
    font-size: 11px;
  }

  .wizard-container .wizard-sidebar .step-item.active .step-label {
    color: var(--primary);
  }

  .wizard-container .wizard-sidebar .step-item .step-status {
    display: none;
  }

  /* Reduce sidebar title spacing on mobile */
  .wizard-sidebar .sidebar-title {
    margin-bottom: 8px;
    font-size: 14px;
  }

  /* Compress the inline-styled reset section below the stepper */
  .sidebar-reset {
    margin-top: var(--spacing-2) !important;
    padding-top: 0 !important;
    border-top: none !important;
    text-align: right !important;
  }

  .sidebar-reset .btn-reset-link {
    font-size: 12px !important;
  }

  .sidebar-reset__hint {
    display: none !important;
  }
}

/* ========================================
   RESPONSIVE: TABLET AND MOBILE
   ======================================== */

/* Tablets and below (1024px) - Hide desktop sidebar, show mobile counter */
@media (max-width: 1024px) {

  /* Hide desktop sidebar on tablets and mobile */
  .wizard-sidebar {
    display: none !important;
  }

  /* Show mobile step counter on tablets and mobile */
  .mobile-step-counter {
    display: block !important;
  }

  /* Hide step counter on last step */
  .wizard-step-5 .mobile-step-counter,
  #step-5 .mobile-step-counter,
  .step-5 .mobile-step-counter,
  [data-step="5"] .mobile-step-counter {
    display: none !important;
  }

  /* Adjust grid layout - full width without sidebar */
  .wizard-container {
    grid-template-columns: 1fr !important;
    padding: var(--spacing-3) var(--spacing-4);
  }

  /* Adjust main content padding */
  .wizard-main {
    padding: 0;
  }

  .step-content {
    padding: var(--spacing-6);
  }
}

@media (max-width: 768px) {
  #step-2 .company-search {
    flex-direction: column;
    align-items: stretch;
  }

  #step-2 .company-search .btn {
    width: 100%;
  }

  #step-2 .company-summary__grid {
    font-size: 12px;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }

  .step-content {
    padding: var(--spacing-4);
  }
}

.step-item.active .step-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 0 0 3px var(--primary);
}

.step-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--spacing-1);
}

.step-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text);
}

.step-status {
  font-size: var(--font-size-xs);
  color: var(--text-light);
}

.step-item.active .step-label {
  color: var(--primary);
}

/* ========================================
     RESPONSIVE DESIGN
     ======================================== */

@media (max-width: 1024px) {

  /* Place sidebar on top */
  .wizard-container {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--spacing-4) !important;
  }

  .wizard-container {
    grid-template-columns: 1fr !important;
  }

  .wizard-sidebar {
    order: 1 !important;
    width: 100% !important;
    position: relative !important;
    top: 0 !important;
  }

  .wizard-main {
    order: 2 !important;
    width: 100% !important;
  }

  /* Ensure horizontal stepper fills width */
  .wizard-sidebar {
    padding: var(--spacing-4) !important;
  }

  .wizard-sidebar .stepper {
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .wizard-container {
    gap: var(--spacing-3);
    padding: var(--spacing-3);
  }

  .wizard-main {
    order: -1;
  }

  .step-content {
    padding: var(--spacing-6) var(--spacing-4);
  }

  .wizard-sidebar {
    padding: var(--spacing-4);
  }

  .step-title {
    font-size: var(--font-size-xl);
  }

  /* Package grid - 3 columns on desktop, auto-wraps to new rows - ONLY for Card Layout */
  .packages-grid[data-layout="cards"] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-6);
    margin-bottom: var(--spacing-6);
    max-width: 1200px;
  }

  /* Package grid - Comparison Layout */
  .packages-grid[data-layout="comparison"] {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  /* Tablet - 2 columns - ONLY for Card Layout */
  @media (max-width: 1024px) {
    .packages-grid[data-layout="cards"] {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* Mobile override - 1 column - ONLY for Card Layout */
  .packages-grid[data-layout="cards"] {
    grid-template-columns: 1fr;
  }
}

/* Mobile - 1 column for business type and turnover */
@media (max-width: 768px) {

  .business-type-grid,
  .turnover-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .step-actions {
    flex-direction: column;
  }

  .step-actions .btn {
    width: 100%;
  }

  .payment-method-card {
    padding: var(--spacing-3);
  }

  .payment-method-card input[type="radio"] {
    width: 18px;
    height: 18px;
  }

  .payment-method-content {
    gap: var(--spacing-3);
    margin-left: var(--spacing-6);
  }

  .payment-method-icon {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-base);
  }

  /* Mobile-specific styles for Stripe card element */
  #card-element {
    padding: 14px 12px !important;
    min-height: 44px;
    font-size: 16px !important;
  }

  .payment-form-container {
    padding: var(--spacing-4) !important;
    margin-top: var(--spacing-4) !important;
  }

  /* Ensure card errors are visible on mobile */
  #card-errors {
    font-size: 13px;
    margin-top: var(--spacing-2);
  }

  /* Mobile: Hide desktop card element, show mobile fields */
  .card-wrapper-desktop {
    display: none !important;
  }

  .card-wrapper-mobile {
    display: block !important;
  }

  /* Ensure mobile card fields are properly sized */
  .card-fields-mobile .form-control {
    font-size: 16px !important;
  }
}

@media (max-width: 480px) {
  .wizard-container {
    padding: var(--spacing-2);
  }

  .step-content {
    padding: var(--spacing-4);
    border-radius: var(--radius-md);
  }

  .wizard-sidebar {
    padding: var(--spacing-4);
    border-radius: var(--radius-md);
  }

  .step-title {
    font-size: var(--font-size-lg);
  }

  .step-subtitle {
    font-size: var(--font-size-xs);
  }

  .form-label {
    font-size: var(--font-size-xs);
  }

  .form-input {
    padding: var(--spacing-2) var(--spacing-3);
    font-size: 16px;
    /* Prevents zoom on iOS */
  }

  .package-card {
    padding: var(--spacing-4);
  }

  .btn {
    padding: var(--spacing-2) var(--spacing-4);
    font-size: var(--font-size-sm);
  }

  #signatureCanvas {
    height: 120px;
  }
}

/* ========================================
     SERVICE OPTION
     ======================================== */

.service-option {
  padding: var(--spacing-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--secondary);
}

.service-name {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--spacing-2);
}

.service-description {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  margin-bottom: var(--spacing-4);
}

/* Service Cards Container - Step 3 */


.package {
  background: white;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.package:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.package.selected {
  border: 2px solid var(--primary);
  box-shadow: 0 6px 15px rgba(0, 115, 230, 0.15);
}

.package h2 {
  margin-top: 0;
  color: var(--primary);
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-3);
  font-weight: 600;
}

.package p {
  color: #444;
  margin-bottom: 10px;
  font-size: var(--font-size-sm);
}

.package .dynamic-fields {
  margin-top: 15px;
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.package.selected .dynamic-fields {
  display: block;
}

.package .dynamic-fields label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text);
  font-size: var(--font-size-sm);
}

.package .dynamic-fields select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  font-family: var(--font-primary);
}

/* Full Year Checkboxes Styling */
.full-year-select-label {
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
  color: #333;
  font-size: var(--font-size-sm);
}

#fullYearCheckboxes {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  background: #f9f9f9;
}

#fullYearCheckboxes .loading-years {
  color: #666;
  font-size: 14px;
  margin: 0;
}

.full-year-help-text {
  margin-top: 8px;
  font-size: 12px;
  color: #666;
  font-style: italic;
}

.full-year-checkbox-label {
  display: flex;
  align-items: center;
  padding: 8px;
  margin-bottom: 4px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}

.full-year-checkbox-label:hover {
  background: #f0f0f0;
}

.full-year-checkbox {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.full-year-checkbox-label span {
  font-size: 14px;
  color: #333;
  user-select: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Service Summary Card */
.service-summary-card {
  display: flex;
  gap: var(--spacing-4);
  padding: var(--spacing-6);
  background: var(--secondary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-8);
  /*background: white;*/
  /*border-radius: 14px;*/
  /*padding: 20px;*/
  /*box-shadow: 0 4px 10px rgba(0,0,0,0.05);*/
  /*margin-bottom: var(--spacing-6);*/
}




.summary-card-content {
  display: flex;
  flex-direction: column;
  /* gap: var(--spacing-2); */
}

.summary-card-title {
  margin: 0 0 var(--spacing-3) 0;
  color: var(--primary);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.summary-card-text {
  margin-bottom: 0px !important;
  margin: 0;
  color: var(--text);
  font-size: var(--font-size-sm);
}

.summary-card-text strong {
  color: var(--text);
  font-weight: 600;
}






/* Modern Design CSS - Paste this in your plugin's CSS file or enqueue */
.step-content {
  font-family: var(--font-primary);
  /* background: #f5f7fa; */
  padding: 40px 20px;
}

.step-title {
  text-align: center;
  margin-bottom: 10px;
  color: #222;
  font-size: 28px;
}

.step-subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 30px;
}

.package-container {
  display: grid;
  grid-template-columns: 1fr;
  /* Forces only 1 column */
  gap: 20px;
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
}

.package {
  background: white;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.package:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.package.selected {
  border: 2px solid #6A5DE6;
  box-shadow: 0 6px 15px rgba(0, 115, 230, 0.15);
}

.package h2 {
  margin: 0 0 10px 0;
  color: var(--primary);
  font-size: 20px;
}

.package p {
  color: #444;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.5;
}

.dynamic-fields {
  margin-top: 15px;
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.dynamic-fields label {
  display: block;
  margin: 12px 0 5px;
  font-size: 14px;
  color: #333;
}

select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  background: white;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
}

.fee-label {
  color: #444;
}

@media (max-width: 768px) {
  .fee-value {
    font-size: 10px;
    font-weight: 500 !important;
  }

  .toggle-value {
    font-size: 12px;
    color: var(--text);
    font-weight: 500;
  }

  .toggle-label {
    font-size: 14px;
  }
}

.fee-value {
  font-weight: 600;
  color: #222;
}

.fee-divider {
  border-top: 1px solid #eee;
  margin: 10px 0;
}

.total-row {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-main);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button styling (if not already defined) */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  margin: 0 10px;
}

/*.btn-secondary { background: #6c757d; color: white; }*/
/*.btn-primary { background: #6A5DE6; color: white; }*/

@media (max-width: 768px) {
  .package-container {
    grid-template-columns: 1fr;
  }
}

/* ========================================
     STEP 1 COMPACT UI OVERRIDES
     (Scoped to #step-1 only; keeps design but smaller)
     ======================================== */
#step-1.step-content {
  padding: var(--spacing-4);
}

#step-1 .step-header {
  margin-bottom: var(--spacing-4);
}

#step-1 .step-title {
  font-size: var(--font-size-lg);
}

#step-1 .step-subtitle {
  font-size: var(--font-size-xs);
}

#step-1 .form-section {
  margin-bottom: var(--spacing-4);
}

#step-1 .section-title {
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-2);
}

/* Radios and grids */
#step-1 .business-type-grid,
#step-1 .turnover-grid {
  gap: var(--spacing-2);
}

#step-1 .radio-card {
  padding: var(--spacing-3);
  border-radius: var(--radius-md);
}

#step-1 .radio-card input[type="radio"] {
  width: 16px;
  height: 16px;
}

#step-1 .radio-content {
  gap: var(--spacing-1);
}

#step-1 .radio-label {
  font-size: var(--font-size-sm);
}

/* Package grid and cards */
#step-1 .packages-grid {
  gap: var(--spacing-4);
  margin-bottom: var(--spacing-4);
}

#step-1 .package-card {
  padding: var(--spacing-4);
  border-radius: var(--radius-md);
}

#step-1 .package-card.featured {
  transform: none;
}

#step-1 .package-badge {
  top: -10px;
  padding: var(--spacing-1) var(--spacing-3);
  font-size: 10px;
}

#step-1 .package-name {
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-1);
}

#step-1 .package-price {
  font-size: var(--font-size-xs);
}

#step-1 .currency {
  font-size: var(--font-size-base);
}

#step-1 .amount {
  font-size: var(--font-size-xl);
}

#step-1 .period {
  font-size: var(--font-size-xs);
}

#step-1 .package-description {
  font-size: var(--font-size-xs);
  margin-bottom: var(--spacing-3);
}

#step-1 .package-features {
  margin-bottom: var(--spacing-4);
}

#step-1 .package-features li {
  gap: var(--spacing-1);
  font-size: var(--font-size-xs);
  margin-bottom: var(--spacing-1);
}

#step-1 .feature-icon {
  width: 16px;
  height: 16px;
}

/* Buttons */
#step-1 .btn {
  padding: var(--spacing-2) var(--spacing-4);
  font-size: var(--font-size-sm);
}

#step-1 .btn-package {
  padding: var(--spacing-3) var(--spacing-3);
}

/* Step actions */
#step-1 .step-actions {
  gap: var(--spacing-3);
  margin-top: var(--spacing-4);
  padding-top: var(--spacing-3);
}

#step-1 .step-actions .btn {
  padding: var(--spacing-2) var(--spacing-4);
}

/* Step 2 company lookup */
#step-2 .company-search {
  display: flex;
  gap: var(--spacing-2);
  align-items: center;
}

#step-2 .company-search .form-input {
  flex: 1;
}

#step-2 .company-search .btn {
  flex: 0 0 auto;
  padding: var(--spacing-2) var(--spacing-4);
}

#step-2 .company-results {
  margin-top: var(--spacing-3);
}

#step-2 .company-summary {
  margin-top: var(--spacing-4);
  margin-bottom: var(--spacing-4);
  padding: var(--spacing-4);
  background: rgb(from var(--primary-light) r g b / 0.5);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

#step-2 .company-summary__title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--spacing-3);
}

#step-2 .company-summary__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-3);
}

#step-2 .company-summary__item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-2);
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--text);
}

#step-2 .company-summary__label {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  text-transform: none;
  font-weight: 500;
  flex-shrink: 0;
}

#step-2 .company-summary__value {
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--text);
  flex: 1;
}

/* ========================================
     STEPS 2–6 COMPACT UI OVERRIDES
     ======================================== */
#step-2.step-content,
#step-3.step-content,
#step-4.step-content,
#step-5.step-content,
#step-6.step-content {
  padding: var(--spacing-4);
}

#step-2 .step-header,
#step-3 .step-header,
#step-4 .step-header,
#step-5 .step-header,
#step-6 .step-header {
  margin-bottom: var(--spacing-4);
}

#step-2 .step-title,
#step-3 .step-title,
#step-4 .step-title,
#step-5 .step-title,
#step-6 .step-title {
  font-size: var(--font-size-lg);
}

#step-2 .step-subtitle,
#step-3 .step-subtitle,
#step-4 .step-subtitle,
#step-5 .step-subtitle,
#step-6 .step-subtitle {
  font-size: var(--font-size-xs);
}

#step-2 .form-section,
#step-3 .form-section,
#step-4 .form-section,
#step-5 .form-section,
#step-6 .form-section {
  margin-bottom: var(--spacing-4);
}

#step-2 .section-title,
#step-3 .section-title,
#step-4 .section-title,
#step-5 .section-title,
#step-6 .section-title {
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-2);
}

#step-2 .form-label,
#step-3 .form-label,
#step-4 .form-label,
#step-5 .form-label,
#step-6 .form-label {
  font-size: var(--font-size-xs);
  margin-bottom: var(--spacing-1);
}

#step-2 .form-input,
#step-3 .form-input,
#step-4 .form-input,
#step-5 .form-input,
#step-6 .form-input {
  padding: var(--spacing-2) var(--spacing-3);
}

#step-2 .step-actions,
#step-3 .step-actions,
#step-4 .step-actions,
#step-5 .step-actions,
#step-6 .step-actions {
  gap: var(--spacing-3);
  margin-top: var(--spacing-4);
  padding-top: var(--spacing-3);
}

#step-2 .step-actions .btn,
#step-3 .step-actions .btn,
#step-4 .step-actions .btn,
#step-5 .step-actions .btn,
#step-6 .step-actions .btn {
  padding: var(--spacing-2) var(--spacing-4);
  font-size: var(--font-size-sm);
}

/* Step 3 specific compacting for fee boxes */
#step-3 .fee-summary-box {
  padding: var(--spacing-4) !important;
}

/* Step 5 (Payment) compacting */
#step-5 .payment-summary {
  padding: var(--spacing-4);
  margin-bottom: var(--spacing-6);
}

#step-5 .payment-title {
  font-size: var(--font-size-base);
}

#step-5 .payment-amount {
  font-size: var(--font-size-2xl);
}

#step-5 .payment-method-card {
  padding: var(--spacing-3);
}

#step-5 .payment-method-content {
  padding: var(--spacing-2);
}

#step-5 .payment-method-icon {
  width: 40px;
  height: 40px;
  font-size: var(--font-size-base);
}

#step-5 #card-element {
  padding: 10px;
}

/* Step 6 (Confirmation) compacting */
#step-6 .success-icon {
  width: 56px;
  height: 56px;
}

#step-6 .success-icon svg {
  width: 32px;
  height: 32px;
}

#step-6 .summary-box {
  padding: var(--spacing-4);
}

#step-6 .summary-section {
  margin-bottom: var(--spacing-4);
}

#step-6 .summary-heading {
  font-size: var(--font-size-base);
}

#step-6 .summary-row {
  font-size: var(--font-size-xs);
}

/* ========================================
     SIDEBAR + STEPPER COMPACT OVERRIDES
     ======================================== */
.wizard-sidebar {
  padding: var(--spacing-4);
  border-radius: var(--radius-md);
}

.wizard-sidebar .sidebar-title {
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-4);
}

.stepper .step-item {
  padding-bottom: var(--spacing-4);
  margin-bottom: var(--spacing-3);
}

.stepper .step-item:not(:last-child)::before {
  left: 9px;
  top: 28px;
  height: calc(100% + 4px);
}

.stepper .step-dot {
  width: 18px;
  height: 18px;
  font-size: var(--font-size-xs);
}

.stepper .step-info {
  gap: var(--spacing-1);
}

.stepper .step-label {
  font-size: var(--font-size-xs);
}

.stepper .step-status {
  text-transform: capitalize;
  font-size: var(--font-size-xs);
}

/* ========================================
     GLOBAL COMPACT TUNING
     ======================================== */
.wizard-container {
  gap: var(--spacing-4);
  padding: var(--spacing-4);
  grid-template-columns: 1fr 280px;
  max-width: 1200px;
  min-height: auto;
}

.wizard-sidebar {
  top: var(--spacing-4);
}

.sidebar-reset {
  margin-top: var(--spacing-4);
  padding-top: var(--spacing-3);
  border-top: 1px solid var(--border);
  text-align: center;
}

.btn-reset-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-1);
  padding: 0;
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  box-shadow: none;
}

.btn-reset-link svg {
  width: 14px;
  height: 14px;
}

.btn-reset-link:hover,
.btn-reset-link:focus {
  color: var(--primary-dark);
  text-decoration: underline;
  transform: none;
  background-color: transparent !important;
}

.sidebar-reset__hint {
  font-size: var(--font-size-xs);
  color: var(--text-lighter);
  margin-top: var(--spacing-2);
}

/* Soften hovers to match compact feel */
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.package-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.package-card.featured {
  transform: scale(1.02);
}

/* ========================================
   PACKAGE CARDS - MODERN DESIGN (Reference Image Match)
   ======================================== */

/* Package Grid Container - ONLY for Card Layout */
.packages-grid[data-layout="cards"] {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
  padding: 0;
}

/* Base Package Card */
.package-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Featured Package Card - Purple Gradient */
.package-card.featured {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(108, 92, 231, 0.3);
  z-index: 2;
}

.package-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 16px 40px rgba(108, 92, 231, 0.4);
}

/* Featured card text colors */
.package-card.featured .package-name,
.package-card.featured .package-price,
.package-card.featured .package-description,
.package-card.featured .package-features li {
  color: #ffffff;
}

/* Package Badge - "MOST POPULAR" */
.package-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Package Header */
.package-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.package-card.featured .package-header {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* Package Price */
.package-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 16px;
}

.package-price .currency {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
}

.package-price .amount {
  font-size: 48px;
  font-weight: 800;
  color: #1f2937;
  line-height: 1;
}

.package-price .period {
  font-size: 16px;
  font-weight: 500;
  color: #6b7280;
}

.package-card.featured .package-price .currency,
.package-card.featured .package-price .amount,
.package-card.featured .package-price .period {
  color: #ffffff;
}

/* Package Name/Title */
.package-name {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

/* Package Description */
.package-description {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 24px 0;
  line-height: 1.6;
}

.package-card.featured .package-description {
  color: rgba(255, 255, 255, 0.9);
}

/* Package Features List */
.package-features {
  list-style: none;
  margin: 0 0 32px 0;
  padding: 0;
  flex-grow: 1;
}

.package-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}

.package-features li.feature-included {
  color: #374151;
}

.package-card.featured .package-features li.feature-included {
  color: #ffffff;
}

/* Feature Icon - Checkmark */
.package-features .feature-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--primary);
  stroke-width: 2.5;
}

.package-card.featured .package-features .feature-icon {
  stroke: #ffffff;
}

/* Package Button */
.package-card .btn,
.package-card .btn-primary,
.package-card button {
  width: 100%;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: auto;
}

/* Non-featured card button */
.package-card:not(.featured) .btn,
.package-card:not(.featured) .btn-primary,
.package-card:not(.featured) button {
  background: var(--primary);
  color: #ffffff;
}

.package-card:not(.featured) .btn:hover,
.package-card:not(.featured) .btn-primary:hover,
.package-card:not(.featured) button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

/* Featured card button - White */
.package-card.featured .btn,
.package-card.featured .btn-primary,
.package-card.featured button {
  background: #ffffff;
  color: var(--primary);
}

.package-card.featured .btn:hover,
.package-card.featured .btn-primary:hover,
.package-card.featured button:hover {
  background: #f9fafb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Selected State */
.package-card.selected {
  border-color: var(--primary);
}

.package-card.featured.selected {
  border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .packages-grid[data-layout="cards"] {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .package-card.featured {
    transform: scale(1);
  }

  .package-card.featured:hover {
    transform: translateY(-8px);
  }
}

@media (max-width: 768px) {
  .packages-grid[data-layout="cards"] {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .package-card {
    min-height: auto;
  }

  .package-card.featured {
    transform: none;
  }

  .package-card.featured:hover {
    transform: translateY(-4px);
  }
}

/* ========================================
   MODERN PACKAGE CARDS (v2.0 Design)
   ======================================== */

.packages-grid[data-layout="cards"] {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .packages-grid[data-layout="cards"] {
    grid-template-columns: 1fr;
  }
}

/* Base Package Card */
.bw-pricing-card {
  background: var(--white, #FFFFFF);
  border-radius: 16px;
  padding: 30px 20px;
  border: 1px solid var(--border, #E2E8F0);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  overflow: hidden;
  cursor: pointer;
}

.bw-pricing-card:not(.bw-pro):hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Pro/Recommended Card */
.bw-pricing-card.bw-pro {
  background: linear-gradient(135deg, var(--primary, #6B46C1) 0%, var(--primary-dark, #553C9A) 100%);
  color: var(--white, #FFFFFF);
  border: none;
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 1;
}

/* Most Popular Badge */
.bw-most-popular {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* Sale Badge (Diagonal Ribbon) */
.bw-sale-badge {
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--primary-dark);
  color: white;
  padding: 3px 30px;
  transform: rotate(45deg);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.bw-pricing-card.bw-pro .bw-sale-badge {
  background: #FFD700;
  color: #000;
}

/* Regular Price (No Sale) */
.bw-card-price {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--primary, #6B46C1);
}

.bw-card-price span {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.8;
}

.bw-pricing-card.bw-pro .bw-card-price {
  color: var(--white, #FFFFFF);
}

/* Sale Price Container */
.bw-price-container {
  position: relative;
  margin: 10px 0;
}

.bw-original-price {
  text-decoration: line-through;
  color: #718096;
  font-size: 18px;
  margin-right: 10px;
  display: inline-block;
}

.bw-sale-price {
  color: var(--primary, #6B46C1);
  font-size: 28px;
  font-weight: 700;
  display: inline-block;
}

.bw-period {
  color: var(--primary, #6B46C1);
  font-size: 14px;
  display: inline-block;
  margin-left: 4px;
}

.bw-sale-text {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 10px;
}

/* Card Title & Description */
.bw-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text, #1A202C);
}

.bw-pricing-card.bw-pro .bw-card-title {
  color: var(--white, #FFFFFF);
}

.bw-card-desc {
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 24px;
  opacity: 0.8;
  min-height: 34px;
  color: var(--text-light, #718096);
}

.bw-pricing-card.bw-pro .bw-card-desc {
  color: rgba(255, 255, 255, 0.9);
}

/* Features List */
.bw-card-features {
  list-style: none;
  margin: 0 0 24px 0;
  padding: 0;
  flex: 1;
}

.bw-card-features li {
  display: flex;
  align-items: center;
  font-size: 12px;
  margin-bottom: 10px;
  color: var(--text, #1A202C);
}

.bw-pricing-card.bw-pro .bw-card-features li {
  color: var(--white, #FFFFFF);
}

.bw-card-features li svg {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  flex-shrink: 0;
  color: var(--primary, #6B46C1);
}

.bw-pricing-card.bw-pro .bw-card-features li svg {
  color: var(--white, #FFFFFF);
}

/* Select Button */
.bw-card-btn {
  width: 100%;
  padding: 12px;
  border-radius: 24px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: opacity 0.2s ease;
  background: var(--primary, #6B46C1);
  color: var(--white, #FFFFFF);
}

.bw-card-btn:hover {
  opacity: 0.9;
  background-color: var(--primary-dark);
}

.bw-card-btn:focus {

  /* Pro/Recommended Card */
  .bw-pricing-card.bw-pro {
    background: linear-gradient(135deg, var(--primary, #6B46C1) 0%, var(--primary-dark, #553C9A) 100%);
    color: var(--white, #FFFFFF);
    border: none;
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1;
  }

  /* Most Popular Badge */
  .bw-most-popular {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
  }

  /* Sale Badge (Diagonal Ribbon) */
  .bw-sale-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary-dark);
    color: white;
    padding: 3px 30px;
    transform: rotate(45deg);
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
  }

  .bw-pricing-card.bw-pro .bw-sale-badge {
    background: #FFD700;
    color: #000;
  }

  /* Regular Price (No Sale) */
  .bw-card-price {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--primary, #6B46C1);
  }

  .bw-card-price span {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.8;
  }

  .bw-pricing-card.bw-pro .bw-card-price {
    color: var(--white, #FFFFFF);
  }

  /* Sale Price Container */
  .bw-price-container {
    position: relative;
    margin: 10px 0;
  }

  .bw-original-price {
    text-decoration: line-through;
    color: #718096;
    font-size: 18px;
    margin-right: 10px;
    display: inline-block;
  }

  .bw-sale-price {
    color: var(--primary, #6B46C1);
    font-size: 28px;
    font-weight: 700;
    display: inline-block;
  }

  .bw-period {
    color: var(--primary, #6B46C1);
    font-size: 14px;
    display: inline-block;
    margin-left: 4px;
  }

  .bw-sale-text {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding-top: 10px;
  }

  /* Card Title & Description */
  .bw-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text, #1A202C);
  }

  .bw-pricing-card.bw-pro .bw-card-title {
    color: var(--white, #FFFFFF);
  }

  .bw-card-desc {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 24px;
    opacity: 0.8;
    min-height: 34px;
    color: var(--text-light, #718096);
  }

  #confirmTotal {
    font-size: 12px;
  }

  #confirmTotalLabel {
    font-size: 12px;
  }

  #confirmVAT {
    font-size: 10px;
  }

  /* ========================================
   RESPONSIVE STYLES FOR FEES SECTION (STEP 3)
   ======================================== */

  /* Tablet styles (max-width: 1024px) */
  @media (max-width: 1024px) {

    /* Adjust the service sections layout */
    .service-selection-container {
      padding: 0 10px;
    }

    .service-section {
      margin-bottom: 20px !important;
      padding: 15px !important;
    }

    /* Make fee rows stack on smaller screens */
    .fee-row {
      flex-direction: column !important;
      gap: 8px !important;
      align-items: flex-start !important;
    }

    .fee-value {
      width: 100%;
      text-align: right !important;
    }

    /* Adjust summary box padding */
    .fee-summary-box {
      padding: 15px !important;
      margin-top: 20px !important;
    }

    /* Make the promo code section full width */
    .promo-code-section {
      width: 100%;
    }

    /* Adjust button sizes */
    .btn {
      padding: 10px 16px !important;
      font-size: 14px !important;
    }
  }

  /* Mobile styles (max-width: 768px) */
  @media (max-width: 768px) {

    /* Make form sections full width */
    .form-section {
      max-width: 100% !important;
      padding: 0 10px;
    }

    /* Adjust the service sections */
    .service-section {
      border-radius: 6px !important;
      margin-bottom: 16px !important;
      padding: 12px !important;
    }

    /* Fee summary box improvements - using more specific selectors */
    #step-3 .fee-summary-box,
    #company-step-3 .fee-summary-box {
      padding: 10px 8px !important;
      margin: 12px 0 !important;
      border-radius: 6px !important;
    }

    #step-3 .fee-summary-box h3,
    #company-step-3 .fee-summary-box h3 {
      font-size: 13px !important;
      margin: 0 0 10px 0 !important;
      padding-bottom: 6px !important;
      border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    }

    #step-3 .fee-row,
    #company-step-3 .fee-row,
    #step-3 .fee-summary-box>div:not(.total-row):not(.subtotal-row),
    #company-step-3 .fee-summary-box>div:not(.total-row):not(.subtotal-row) {
      font-size: 11px !important;
      margin-bottom: 6px !important;
      padding: 3px 0 !important;
      display: flex !important;
      justify-content: space-between !important;
    }

    #step-3 .fee-label,
    #company-step-3 .fee-label {
      font-size: 11px !important;
      color: #4a5568 !important;
      font-weight: 500 !important;
    }

    #step-3 .fee-value #summaryDueYear #summaryDueYearFee #summaryDueYearFee #company-step-3 .fee-value {
      font-size: 11px !important;
      font-weight: 500 !important;
    }

    #step-3 .subtotal-row,
    #company-step-3 .subtotal-row,
    #step-3 .total-row,
    #company-step-3 .total-row {
      padding: 8px 6px !important;
      margin: 10px -6px 6px -6px !important;
      border-radius: 4px !important;
    }

    #step-3 .total-row,
    #company-step-3 .total-row {
      font-size: 12px !important;
      padding: 10px 8px !important;
      margin: 12px -6px 0 -6px !important;
      font-weight: 600 !important;
    }

    /* Override inline styles for fee rows */
    #step-3 [style*="margin-bottom:"],
    #company-step-3 [style*="margin-bottom:"] {
      margin-bottom: 6px !important;
    }

    #step-3 [style*="padding:"],
    #company-step-3 [style*="padding:"] {
      padding: 3px 0 !important;
    }

    .fee-divider {
      margin: 10px 0 !important;
    }

    .section-title {
      font-size: 13px !important;
    }

    .section-description {
      font-size: 11px !important;
      margin-bottom: 8px !important;
    }

    /* Adjust fee summary box */
    .fee-summary-box {
      margin-top: 16px !important;
      padding: 12px !important;
      border-radius: 8px !important;
    }

    .fee-summary-box h3 {
      font-size: 16px !important;
      margin-bottom: 12px !important;
    }

    /* Make buttons full width on mobile */
    .step-actions {
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding: 0 10px;
    }

    .btn {
      width: 100% !important;
      margin: 0 !important;
      justify-content: center;
    }

    /* Adjust form inputs and selects */
    .form-input,
    select {
      width: 100% !important;
      padding: 10px 12px !important;
      font-size: 14px !important;
    }

    /* Adjust the promo code input */
    #promoCodeInput {
      flex-direction: column;
      gap: 8px;
    }

    #applyPromoCode {
      width: 100% !important;
      margin-left: 0 !important;
    }

    /* Adjust the total payment section */
    .total-row {
      padding: 10px !important;
    }

    /* Make sure tooltips are visible on mobile */
    .bw-tooltip {
      display: inline-block !important;
    }
  }

  .bw-pricing-card.bw-pro .bw-card-desc {
    color: rgba(255, 255, 255, 0.9);
  }

  /* Features List */
  .bw-card-features {
    list-style: none;
    margin: 0 0 24px 0;
    padding: 0;
    flex: 1;
  }

  .bw-card-features li {
    display: flex;
    align-items: center;
    font-size: 12px;
    margin-bottom: 10px;
    color: var(--text, #1A202C);
  }

  .bw-pricing-card.bw-pro .bw-card-features li {
    color: var(--white, #FFFFFF);
  }

  .bw-card-features li svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    flex-shrink: 0;
    color: var(--primary, #6B46C1);
  }

  .bw-pricing-card.bw-pro .bw-card-features li svg {
    color: var(--white, #FFFFFF);
  }

  /* Select Button */
  .bw-card-btn {
    width: 100%;
    padding: 12px;
    border-radius: 24px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s ease;
    background: var(--primary, #6B46C1);
    color: var(--white, #FFFFFF);
  }

  .bw-card-btn:hover {
    opacity: 0.9;
    background-color: var(--primary-dark);
  }

  .bw-card-btn:focus {
    opacity: 0.9;
    background-color: var(--primary-dark);
  }

  .bw-card-btn.bw-pro-btn {
    background: var(--white, #FFFFFF);
    color: var(--primary, #6B46C1);
  }

  .bw-pricing-card.bw-pro .bw-card-btn.bw-pro-btn {
    background: var(--white, #FFFFFF);
    color: var(--primary, #6B46C1);
  }

  /* Selected State */
  .bw-pricing-card.selected {
    box-shadow: inset 0 0 0 3px var(--primary, #6B46C1);
  }

  .bw-pricing-card.bw-pro.selected {
    box-shadow: inset 0 0 0 3px var(--white, #FFFFFF);
  }

}

/* ========================================
   ADDITIONAL RESPONSIVE STYLES FOR STEPS 3, 4, 5
   (Mobile and Tablet Only - Desktop Unaffected)
   ======================================== */

/* Tablet styles (max-width: 1024px) */
@media (max-width: 1024px) {

  /* Step 4 - Review/Summary Page */
  #step-4 .company-info-box {
    flex-direction: column;
    padding: var(--spacing-4);
  }

  #step-4 .company-icon {
    width: 40px;
    height: 40px;
  }

  #step-4 .service-summary-card {
    flex-direction: column;
    padding: var(--spacing-4);
    gap: var(--spacing-3);
  }

  #step-4 .summary-box {
    padding: var(--spacing-4);
  }

  #step-4 .summary-section {
    margin-bottom: var(--spacing-4);
  }

  /* Step 5 - Payment Page */
  #step-5 .payment-summary {
    padding: var(--spacing-4);
    margin-bottom: var(--spacing-6);
  }

  #step-5 .payment-amount {
    font-size: var(--font-size-2xl);
  }

  #step-5 .payment-method-card {
    padding: var(--spacing-3);
    margin-bottom: var(--spacing-3);
  }

  #step-5 .payment-method-content {
    gap: var(--spacing-3);
  }

  #step-5 .fee-breakdown {
    padding: var(--spacing-3);
  }

  #step-5 .company-info-box {
    flex-direction: column;
    padding: var(--spacing-4);
  }
}

/* Mobile styles (max-width: 768px) */
@media (max-width: 768px) {

  /* Step 3 - Services Selection - Additional Mobile Improvements */
  #step-3 .step-title,
  #company-step-3 .step-title {
    font-size: var(--font-size-lg) !important;
    margin-bottom: var(--spacing-3) !important;
  }

  #step-3 .step-subtitle,
  #company-step-3 .step-subtitle {
    font-size: var(--font-size-sm) !important;
    margin-bottom: var(--spacing-4) !important;
  }

  #step-3 .package-container,
  #company-step-3 .package-container {
    gap: 16px !important;
    margin-top: 20px !important;
  }

  #step-3 .package,
  #company-step-3 .package {
    padding: 16px !important;
    border-radius: 10px !important;
  }

  #step-3 .package h2,
  #company-step-3 .package h2 {
    font-size: var(--font-size-base) !important;
    margin-bottom: var(--spacing-2) !important;
  }

  #step-3 .package p,
  #company-step-3 .package p {
    font-size: 13px !important;
    margin-bottom: 10px !important;
  }

  #step-3 .dynamic-fields label,
  #company-step-3 .dynamic-fields label {
    font-size: 13px !important;
  }

  #step-3 .dynamic-fields select,
  #company-step-3 .dynamic-fields select {
    padding: 8px !important;
    font-size: 13px !important;
  }

  #step-3 .service-summary-card,
  #company-step-3 .service-summary-card {
    flex-direction: column !important;
    padding: var(--spacing-3) !important;
    gap: var(--spacing-2) !important;
    margin-bottom: var(--spacing-4) !important;
  }

  #step-3 .summary-card-title,
  #company-step-3 .summary-card-title {
    font-size: var(--font-size-base) !important;
    margin-bottom: var(--spacing-2) !important;
  }

  #step-3 .summary-card-text,
  #company-step-3 .summary-card-text {
    margin-bottom: 0px !important;
    font-size: 12px !important;
  }

  #step-3 .summary-card-text,
  #company-step-3 .summary-card-text p {
    margin-bottom: 0px !important;
  }

  /* Step 4 - Review/Summary Page - Mobile Optimizations */
  #step-4 .step-title {
    font-size: var(--font-size-lg) !important;
    margin-bottom: var(--spacing-3) !important;
  }

  #step-4 .step-subtitle {
    font-size: var(--font-size-sm) !important;
    margin-bottom: var(--spacing-4) !important;
  }

  #step-4 .company-info-box {
    flex-direction: column !important;
    padding: var(--spacing-3) !important;
    gap: var(--spacing-2) !important;
    margin-bottom: var(--spacing-4) !important;
  }

  #step-4 .company-icon {
    width: 36px !important;
    height: 36px !important;
  }

  #step-4 .company-info-title {
    font-size: var(--font-size-sm) !important;
    margin-bottom: var(--spacing-1) !important;
  }

  #step-4 .company-info-text {
    font-size: 12px !important;
  }

  #step-4 .service-summary-card {
    flex-direction: column !important;
    padding: var(--spacing-3) !important;
    gap: var(--spacing-2) !important;
    margin-bottom: var(--spacing-4) !important;
  }

  #step-4 .summary-box {
    padding: var(--spacing-3) !important;
    margin-bottom: var(--spacing-4) !important;
  }

  #step-4 .summary-section {
    margin-bottom: var(--spacing-3) !important;
  }

  #step-4 .summary-heading {
    font-size: var(--font-size-sm) !important;
    margin-bottom: var(--spacing-2) !important;
  }

  #step-4 .summary-row {
    font-size: 12px !important;
    padding: var(--spacing-1) 0 !important;
    flex-wrap: wrap !important;
  }

  #step-4 .summary-label {
    font-size: 12px !important;
  }

  #step-4 .summary-value {
    font-size: 12px !important;
    font-weight: 600 !important;
  }

  #step-4 .fee-breakdown {
    padding: var(--spacing-3) !important;
    margin-top: var(--spacing-3) !important;
  }

  #step-4 .fee-row {
    padding: var(--spacing-1) 0 !important;
    font-size: 12px !important;
  }

  #step-4 .fee-label {
    font-size: 12px !important;
  }

  #step-4 .fee-amount {
    font-size: 12px !important;
  }

  #step-4 .fee-row.total {
    padding-top: var(--spacing-3) !important;
    margin-top: var(--spacing-3) !important;
    font-size: 13px !important;
  }

  #step-4 .fee-row.total .fee-amount {
    font-size: var(--font-size-base) !important;
  }

  #step-4 .note-box {
    padding: var(--spacing-3) !important;
    margin-bottom: var(--spacing-4) !important;
    font-size: 12px !important;
  }

  /* Step 5 - Payment Page - Mobile Optimizations */
  #step-5 .step-title {
    font-size: var(--font-size-lg) !important;
    margin-bottom: var(--spacing-3) !important;
  }

  #step-5 .step-subtitle {
    font-size: var(--font-size-sm) !important;
    margin-bottom: var(--spacing-4) !important;
  }

  #step-5 .payment-summary {
    padding: var(--spacing-3) !important;
    margin-bottom: var(--spacing-4) !important;
    border-radius: var(--radius-md) !important;
  }

  #step-5 .payment-title {
    font-size: 12px !important;
    margin-bottom: var(--spacing-1) !important;
  }

  #step-5 .payment-amount {
    font-size: var(--font-size-xl) !important;
    margin-bottom: var(--spacing-1) !important;
  }

  #step-5 .payment-period {
    font-size: 12px !important;
  }

  #step-5 .payment-date {
    font-size: 12px !important;
  }

  #step-5 .payment-method-card {
    padding: var(--spacing-2) !important;
    margin-bottom: var(--spacing-2) !important;
    border-radius: var(--radius-md) !important;
  }

  #step-5 .payment-method-content {
    gap: var(--spacing-2) !important;
    flex-direction: row !important;
    align-items: center !important;
  }

  #step-5 .payment-method-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: var(--font-size-sm) !important;
    flex-shrink: 0 !important;
  }

  #step-5 .payment-method-text {
    gap: 4px !important;
    flex: 1 !important;
  }

  #step-5 .payment-method-name {
    font-size: 13px !important;
    font-weight: 600 !important;
  }

  #step-5 .payment-method-desc {
    font-size: 11px !important;
  }

  #step-5 .payment-method-card input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    margin-left: auto !important;
  }

  #step-5 .fee-breakdown {
    padding: var(--spacing-3) !important;
    margin-top: var(--spacing-3) !important;
    border-radius: var(--radius-md) !important;
  }

  #step-5 .fee-row {
    padding: var(--spacing-1) 0 !important;
    font-size: 12px !important;
  }

  #step-5 .fee-label {
    font-size: 12px !important;
  }

  #step-5 .fee-amount {
    font-size: 12px !important;
    font-weight: 600 !important;
  }

  #step-5 .fee-row.total {
    padding-top: var(--spacing-3) !important;
    margin-top: var(--spacing-3) !important;
    font-size: 13px !important;
  }

  #step-5 .fee-row.total .fee-amount {
    font-size: var(--font-size-base) !important;
  }

  #step-5 .company-info-box {
    flex-direction: column !important;
    padding: var(--spacing-3) !important;
    gap: var(--spacing-2) !important;
    margin-bottom: var(--spacing-4) !important;
  }

  #step-5 .company-icon {
    width: 36px !important;
    height: 36px !important;
  }

  #step-5 .company-info-title {
    font-size: var(--font-size-sm) !important;
    margin-bottom: var(--spacing-1) !important;
  }

  #step-5 .company-info-text {
    font-size: 12px !important;
  }

  #step-5 .checkbox-label {
    gap: var(--spacing-2) !important;
    margin-bottom: var(--spacing-3) !important;
  }

  #step-5 .checkbox-label input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin-top: 2px !important;
  }

  #step-5 .checkbox-text {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  #step-5 .note-box {
    padding: var(--spacing-3) !important;
    margin-bottom: var(--spacing-4) !important;
    font-size: 12px !important;
  }

  #step-5 #card-element {
    padding: 12px !important;
    font-size: 14px !important;
  }

  /* Payment form specific mobile styles */
  #step-5 .payment-form-container {
    padding: 0 !important;
  }

  #step-5 .form-section {
    margin-bottom: var(--spacing-3) !important;
  }

  #step-5 .section-title {
    font-size: var(--font-size-sm) !important;
    margin-bottom: var(--spacing-2) !important;
  }

  #step-5 .form-label {
    font-size: 12px !important;
    margin-bottom: var(--spacing-1) !important;
  }

  #step-5 .form-input {
    padding: 10px 12px !important;
    font-size: 14px !important;
  }
}

/* Extra small mobile (max-width: 480px) */
@media (max-width: 480px) {

  /* Step 3 - Extra compact for small phones */
  #step-3 .fee-summary-box,
  #company-step-3 .fee-summary-box {
    padding: 8px 6px !important;
    margin: 10px 0 !important;
  }

  #step-3 .fee-summary-box h3,
  #company-step-3 .fee-summary-box h3 {
    font-size: 12px !important;
    margin-bottom: 8px !important;
    padding-bottom: 4px !important;
  }

  #step-3 .fee-row,
  #company-step-3 .fee-row {
    font-size: 10px !important;
    padding: 2px 0 !important;
  }

  #step-3 .total-row,
  #company-step-3 .total-row {
    font-size: 11px !important;
    padding: 8px 6px !important;
  }

  /* Step 4 - Extra compact for small phones */
  #step-4 .step-title {
    font-size: var(--font-size-base) !important;
  }

  #step-4 .summary-box {
    padding: var(--spacing-2) !important;
  }

  #step-4 .summary-row,
  #step-4 .fee-row {
    font-size: 11px !important;
  }

  /* Step 5 - Extra compact for small phones */
  #step-5 .step-title {
    font-size: var(--font-size-base) !important;
  }

  #step-5 .payment-amount {
    font-size: var(--font-size-lg) !important;
  }

  #step-5 .payment-method-card {
    padding: 10px !important;
  }

  #step-5 .payment-method-icon {
    width: 32px !important;
    height: 32px !important;
  }

  #step-5 .payment-method-name {
    font-size: 12px !important;
  }

  #step-5 .payment-method-desc {
    font-size: 10px !important;
  }
}