/* Utility classes */
.hidden {
  display: none !important;
}

/* Global scrollbar settings - only show when necessary */
html, body {
  overflow-x: hidden; /* Prevent horizontal scrolling */
  overflow-y: auto; /* Only show vertical scrollbar when needed */
  font-family: 'Inter', Arial, sans-serif;
  background-color: #f5f5f9;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background: #f6f2ed;
}

/* Header styles */
.getstarted-header {
  width: 100%;
  background:  #f5f5f9;
  padding: 1.5rem 0 0.5rem 0;
  border-bottom: none;
}

.container-header {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 32px;
  width: 100%;
  box-sizing: border-box;
}

.brand-left {
  padding-left: 0;
  color: #1976d2;
  font-size: 1.4rem;
  font-weight: 600;
  font-family: 'Inter', Arial, sans-serif;
  letter-spacing: 0.02em;
}

.lang-selector {
  position: relative;
  margin-left: auto;
}

.lang-btn {
  background: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 1rem;
  color: #222;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s;
}

.lang-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  min-width: 180px;
  z-index: 10;
  margin-top: 4px;
  padding: 8px 0;
}

.lang-option {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1rem;
  color: #333;
  transition: background 0.2s;
}

.lang-option:hover {
  background: #f0f4fa;
}

/* Progress bar */
.progress-bar-wrapper {
  max-width: 600px;
  width: 100%;
  margin: 25px auto 40px auto; /* Increased top margin and added bottom margin */
  padding: 0 20px;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.progress-bar-container {
  width: 100%;
  margin: 0 auto 32px auto;
  max-width: 480px;
  display: none; /* Hidden by default on step 1 */
  position: relative;
  z-index: 10;
}

.progress-bar-container.show {
  display: block !important; /* Show from step 2 onwards */
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1976d2 0%, #42a5f5 100%);
  border-radius: 4px;
  transition: width 0.3s;
}

/* Main layout */
.main-centered {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px; /* Reduced from 100vw to make it smaller */
  margin: 0 auto;
  padding: 0 20px; /* Added horizontal padding */
  box-sizing: border-box;
}

/* Specific layout for country selection page (get-started.html) */
.main-centered.country-selection {
  min-height: calc(100vh - 80px); /* Reduce height to account for header */
  padding: 20px 0;
  justify-content: flex-start;
  padding-top: 80px; /* Add top padding instead of centering */
  max-height: 100vh; /* Ensure it doesn't exceed viewport height */
  overflow: hidden; /* Prevent any overflow that could cause scrollbars */
}

.country-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 120px; /* Increased top margin for proper spacing from header */
  text-align: center;
}

/* Country title specific to get-started.html page */
.country-selection .country-title {
  margin-top: 40px; /* Reduced top margin for country selection page */
  margin-bottom: 32px; /* Increased bottom margin for better spacing */
  font-size: 1.8rem; /* Slightly smaller font size to save space */
}

/* Ensure country selection page fits in viewport */
.country-selection #step1 {
  max-height: calc(100vh - 160px); /* Account for header and padding */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.country-desc {
  font-size: 1rem;
  color: #666;
  margin-bottom: 24px;
  text-align: center;
  line-height: 1.5;
}

.back-to-login {
  text-align: center;
  margin-top: 32px;
}

/* Country selection */
.country-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  width: 100%;
  max-width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Compact country options for get-started.html */
.country-selection .country-options {
  gap: 20px; /* Reduced gap between buttons */
  margin-bottom: 20px; /* Reduced bottom margin */
}

.country-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 280px;
  max-width: 420px;
  height: 64px;
  margin: 0;
  padding: 0 32px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-size: 1.2rem;
  font-weight: 500;
  gap: 18px;
  box-sizing: border-box;
}
.country-card:hover,
.country-card.selected {
  border-color: #1976d2;
  box-shadow: 0 4px 16px rgba(25, 118, 210, 0.08);
}

/* More compact country cards for get-started.html */
.country-selection .country-card {
  height: 56px; /* Slightly shorter cards */
  padding: 0 28px; /* Reduced horizontal padding */
  max-width: 380px; /* Slightly narrower max width */
}

.country-label {
  margin-top: 0;
  font-size: 1.2rem;
  font-weight: 500;
  color: #222;
}

.flag-icon {
  width: 32px;
  height: 32px;
  display: inline-block;
  background-size: cover;
  border-radius: 50%;
  margin-bottom: 0;
  flex-shrink: 0;
}

.flag-icon-hk {
  background-image: url('../img/flag/flag-hk.png');
}

.flag-icon-mo {
  background-image: url('../img/flag/flag-mo.png');
}

.flag-icon-ch {
  background-image: url('../img/flag/flag-ch.png');
}

/* Service selection */
.step {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  padding: 2.5rem 2rem 2rem 2rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 800px; /* Reduced from 100% to make it smaller */
  margin: 0 auto 2rem auto; /* Center the step container */
  box-sizing: border-box;
}

/* Add top margin to step headings for proper spacing */
.step h2 {
  margin-top: 0;
}

/* Special spacing for step 1 when no progress bar is visible */
#step1 h2 {
  margin-top: 40px;
}

.service-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-items: center;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.service-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 24px;
  padding: 3rem 2rem 2rem 2rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #222;
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.2s, border-color 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 400px;
  min-height: 280px;
  text-align: center;
}

.service-btn:hover {
  background: #f8f9ff;
  border-color: #1976d2;
  box-shadow: 0 8px 24px rgba(25, 118, 210, 0.12);
}

.service-img {
  width: 120px;
  height: 120px;
  margin-bottom: 1.5rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.service-img-register {
  background-image: url('../img/flag/register-illus.png');
}

.service-img-support {
  background-image: url('../img/flag/support-illus.png');
}

.service-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
  margin-top: auto;
  text-align: center;
}

/* Step 3: Company Name */
.step-description {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.step-subdesc {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2.5rem;
  line-height: 1.4;
}

.company-name-input {
  position: relative;
  max-width: 500px;
  margin: 0 auto 3rem auto;
}

.company-input {
  width: 100%;
  padding: 16px 100px 16px 20px;
  font-size: 1.1rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.company-input:focus {
  border-color: #1976d2;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.company-input::placeholder {
  color: #aaa;
  font-style: italic;
}

.input-suffix {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 1rem;
  font-weight: 500;
  pointer-events: none;
}

.step3-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-left {
  flex: 0 0 auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}

.skip-btn {
  background: none;
  border: none;
  color: #1976d2;
  font-size: 1rem;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.skip-btn:hover {
  background: #f0f4fa;
  color: #1565c0;
}

/* Step 3: Address Selection Cards */
.address-options {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto 3rem auto;
  justify-content: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.address-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 24px;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  text-align: center;
  width: 320px;
  min-height: 260px;
  flex: 1;
  max-width: 350px;
}

.address-btn:hover {
  border-color: #1976d2;
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.12);
}

.address-btn.selected {
  border-color: #1976d2;
  background: #f8f9ff;
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.15);
}

.address-img {
  width: 80px;
  height: 80px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.address-img-corser {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120"><circle cx="30" cy="35" r="10" fill="%234285f4"/><circle cx="90" cy="35" r="10" fill="%234285f4"/><circle cx="60" cy="70" r="10" fill="%234285f4"/><circle cx="30" cy="85" r="6" fill="%234285f4"/><circle cx="90" cy="85" r="6" fill="%234285f4"/><path d="M15 25 L105 25 L105 45 L15 45 Z" fill="none" stroke="%234285f4" stroke-width="2" rx="8"/><path d="M45 45 L75 45 L75 95 L45 95 Z" fill="none" stroke="%234285f4" stroke-width="2" rx="6"/><circle cx="60" cy="60" r="3" fill="%23ffffff" stroke="%234285f4" stroke-width="2"/></svg>');
}

.address-img-own {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120"><path d="M20 45 L60 15 L100 45 L100 95 L20 95 Z" fill="none" stroke="%234285f4" stroke-width="3"/><rect x="45" y="65" width="18" height="25" fill="%234285f4" rx="2"/><rect x="70" y="50" width="15" height="12" fill="none" stroke="%234285f4" stroke-width="2" rx="1"/><path d="M75 50 L80 45" stroke="%234285f4" stroke-width="2"/><circle cx="77" cy="56" r="1.5" fill="%234285f4"/></svg>');
}

.address-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.address-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.address-subtitle {
  font-size: 1rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* Back button positioning and styling - responsive design */
.step3-nav.nav-arrow-back-only {
  /* Positioning - properly centered */
  position: fixed;
  left: 50px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  
  /* Button styling */
  background: #195ad2 !important;
  color: #fff !important;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(25, 90, 210, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  outline: none;
  user-select: none;
  text-align: center;
}

.step3-nav.nav-arrow-back-only svg {
  pointer-events: none;
  width: 32px;
  height: 54px;
  flex-shrink: 0;
  color: #fff !important;
  display: block;
  margin: 0 auto;
}

.step3-nav.nav-arrow-back-only svg path {
  stroke: #fff !important;
  fill: none !important;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Interactive states for back button */
.step3-nav.nav-arrow-back-only:hover {
  background: #1248a8 !important; /* Darker shade of brand blue for hover */
  box-shadow: 0 4px 12px rgba(25, 90, 210, 0.4);
  transform: translateY(-50%) scale(1.05);
  color: #fff !important; /* Keep white arrow on hover */
}

.step3-nav.nav-arrow-back-only:active {
  background: #0f3d8c !important; /* Even darker for active state */
  transform: translateY(-50%) scale(0.95);
  box-shadow: 0 2px 6px rgba(25, 90, 210, 0.3);
  color: #fff !important; /* Keep white arrow on active */
}

.step3-nav.nav-arrow-back-only:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Ensure proper button behavior */
.step3-nav.nav-arrow-back-only:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Step 4: Finances and Compliance */
.finances-options {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 700px;
  width: 100%;
  margin: 0 auto 2rem auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.finance-content {
  flex: 1;
}

.finance-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.finance-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.finance-features li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color: #666;
  line-height: 1.4;
}

.finance-features li::before {
  content: '✓';
  color: #4285f4;
  font-weight: bold;
  margin-right: 0.8rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.finance-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1976d2;
  margin: 0;
}

.finance-price-subtitle {
  font-size: 0.9rem;
  color: #888;
  margin: 0.2rem 0 0 0;
}

.finance-img {
  width: 80px;
  height: 80px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-left: 1.5rem;
  flex-shrink: 0;
}

.finance-img-accounting {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="15" y="20" width="70" height="60" fill="none" stroke="%234285f4" stroke-width="2" rx="4"/><rect x="25" y="30" width="20" height="3" fill="%234285f4"/><rect x="25" y="38" width="15" height="2" fill="%23ccc"/><rect x="25" y="44" width="18" height="2" fill="%23ccc"/><rect x="25" y="50" width="12" height="2" fill="%23ccc"/><rect x="55" y="30" width="20" height="3" fill="%234285f4"/><rect x="55" y="38" width="15" height="2" fill="%23ccc"/><rect x="55" y="44" width="18" height="2" fill="%23ccc"/><rect x="55" y="50" width="12" height="2" fill="%23ccc"/><circle cx="75" cy="65" r="8" fill="%234285f4"/><path d="M70 65 L73 68 L80 61" stroke="white" stroke-width="2" fill="none"/></svg>');
}

.finance-img-later {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="35" fill="none" stroke="%234285f4" stroke-width="2"/><path d="M50 20 L50 50 L70 65" stroke="%234285f4" stroke-width="3" stroke-linecap="round"/><circle cx="50" cy="50" r="3" fill="%234285f4"/></svg>');
}

/* Additional responsive breakpoint for tablets */
@media (max-width: 1024px) {
  .container-header {
    padding: 0 24px;
  }
  
  .service-options {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
  
  .address-options {
    max-width: 800px;
  }
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  .container-header {
    padding: 0 16px;
  }
  
  .country-options {
    padding: 0 16px;
  }
  
  .country-card {
    width: 100%;
    max-width: 100%;
    padding: 0 24px;
  }
  
  /* Country selection page mobile adjustments */
  .country-selection {
    padding-top: 60px; /* Reduced padding on mobile */
  }
  
  .country-selection .country-title {
    font-size: 1.6rem; /* Even smaller on mobile */
    margin-top: 20px;
    margin-bottom: 24px;
  }
  
  .country-selection .country-options {
    gap: 16px; /* Further reduced gap on mobile */
    margin-bottom: 16px;
  }
  
  .country-selection .country-card {
    height: 52px; /* Even more compact on mobile */
    padding: 0 20px;
    max-width: 90vw; /* Use viewport width */
  }
  
  .service-options {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
  
  .address-options {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 16px;
  }

  .address-btn {
    width: 100%;
    max-width: 100%;
  }

  /* General step3-nav - but preserve back button behavior */
  .step3-nav:not(.nav-arrow-back-only) {
    position: static;
    transform: none;
    margin-bottom: 2rem;
  }
  
  .finances-options {
    padding: 0 16px;
  }
  
  .main-centered {
    padding: 0 16px;
  }
  
  .step {
    padding: 1.5rem 1rem;
    margin: 0 0 2rem 0;
  }
  
  .revenue-options,
  .involvement-options,
  .audit-options,
  .finance-options {
    padding: 0 16px;
  }
  
  /* Revenue options: 2 columns on mobile for better fit */
  .revenue-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    max-width: 500px;
  }
  
  /* Adjust revenue button sizing for mobile */
  .revenue-btn {
    width: 180px;
    height: 70px;
    padding: 1rem 0.5rem;
  }
  
  .bracket-range {
    font-size: 0.8rem;
  }
}

/* Step 4: Finance and Compliance */
.finance-options {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  width: 100%;
  margin: 0 auto 3rem auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.finance-btn {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 24px;
  padding: 2rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  text-align: left;
  width: 100%;
  min-height: 200px;
  position: relative;
}

.finance-btn:hover {
  border-color: #1976d2;
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.12);
}

.finance-btn.selected {
  border-color: #1976d2;
  background: #f8f9ff;
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.15);
}

.finance-content-main {
  flex: 1;
  padding-right: 2rem;
}

.finance-content-simple {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.finance-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 1.5rem 0;
  line-height: 1.3;
}

.finance-title-simple {
  font-size: 1.3rem;
  font-weight: 600;
  color: #222;
  margin: 0;
  text-align: center;
}

.finance-features {
  margin-bottom: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
}

.feature-check {
  color: #4285f4;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.feature-text {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
}

.finance-pricing {
  margin-top: 1rem;
}

.price-main {
  color: #4285f4;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.price-sub {
  color: #666;
  font-size: 0.9rem;
}

.finance-img {
  width: 120px;
  height: 120px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* Navigation */
.nav-arrow {
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 0.7rem 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(25, 118, 210, 0.08);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-arrow:disabled {
  background: #bfcfff;
  color: #fff;
  cursor: not-allowed;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 1.2rem;
}

.mt-4 {
  margin-top: 2rem;
}

/* Decide Later Link */
.decide-later-link {
  color: #4285f4;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  transition: color 0.2s ease;
  cursor: pointer;
}

.decide-later-link:hover {
  color: #1976d2;
  text-decoration: none;
}

/* Step 4: Revenue Selection */
.revenue-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 900px;
  width: 100%;
  margin: 2rem auto;
  padding: 0 20px;
  box-sizing: border-box;
  justify-items: center;
}

.revenue-option {
  display: flex;
  justify-content: center;
  align-items: center;
}

.revenue-btn {
  background: #fff;
  border: 2px solid #e8eaed;
  border-radius: 16px;
  padding: 1rem 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  color: #333;
  width: 240px;
  height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.revenue-btn:hover {
  border-color: #1976d2;
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.1);
}

.revenue-btn.selected {
  border-color: #1976d2;
  background: #f8f9ff;
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.15);
}

.bracket-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bracket-range {
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

/* Step 7: Accountant Involvement */
.involvement-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  width: 100%;
  margin: 2rem auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.involvement-btn {
  background: #fff;
  border: 2px solid #e8eaed;
  border-radius: 24px;
  padding: 1.5rem 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.involvement-btn:hover {
  border-color: #1976d2;
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.1);
}

.involvement-btn.selected {
  border-color: #1976d2;
  background: #f8f9ff;
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.15);
}

.involvement-btn.popular {
  border-color: #ff6b6b;
  background: #fff8f8;
}

.involvement-btn.popular:hover,
.involvement-btn.popular.selected {
  border-color: #ff6b6b;
  background: #fff0f0;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.15);
}

.involvement-content {
  flex: 1;
}

.involvement-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.involvement-subtitle {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.popular-badge {
  background: #ff6b6b;
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Step 5: Audit Services */
.audit-options {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 700px;
  width: 100%;
  margin: 0 auto 2rem auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.audit-btn {
  background: #fff;
  border: 2px solid #e8eaed;
  border-radius: 24px;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
  display: block;
}

.audit-btn:hover {
  border-color: #1976d2;
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.12);
}

.audit-btn.selected {
  border-color: #1976d2;
  background: #f8f9ff;
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.15);
}

.audit-content {
  position: relative;
}

.audit-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.audit-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.audit-features li {
  padding: 0.5rem 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.4;
}

.audit-package {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.package-text {
  color: #1976d2;
  font-weight: 500;
  font-size: 1rem;
}

.audit-icon {
  width: 48px;
  height: 48px;
  background: #e3f2fd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Step 6: Account Form */
.account-form {
  max-width: 400px;
  margin: 2rem auto;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-input {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid #e8eaed;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #1976d2;
}

.form-input::placeholder {
  color: #9aa0a6;
}

.phone-group {
  position: relative;
}

.phone-input {
  display: flex;
  gap: 0;
}

.country-code {
  padding: 1rem 1.2rem;
  border: 2px solid #e8eaed;
  border-right: none;
  border-radius: 8px 0 0 8px;
  background: #fff;
  font-size: 1rem;
  cursor: pointer;
  min-width: 120px;
}

.phone-number {
  border-radius: 0 8px 8px 0;
  flex: 1;
}

.continue-btn {
  width: 100%;
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  margin: 1.5rem 0;
}

.continue-btn:hover {
  background: #1565c0;
}

.social-login {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.social-btn {
  width: 48px;
  height: 48px;
  border: 2px solid #e8eaed;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-btn:hover {
  border-color: #1976d2;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1);
}

.social-icon {
  font-size: 1.2rem;
  font-weight: bold;
}

.google-btn .social-icon {
  color: #4285f4;
}

.apple-btn .social-icon {
  font-size: 1.4rem;
}

.terms-text {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
  margin: 1.5rem 0;
}

.terms-text a {
  color: #1976d2;
  text-decoration: none;
}

.terms-text a:hover {
  text-decoration: underline;
}

.login-link {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 2rem;
}

.login-link a {
  color: #1976d2;
  text-decoration: none;
  font-weight: 500;
}

.login-link a:hover {
  text-decoration: underline;
}

/* Company Secretary Plan Styles - Row-by-row Layout */

/* Step 6 Container - organize content in clear rows */
#step6 {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

#step6 .step-description {
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #666;
}

/* Row 2: Shareholders Section */
.shareholders-section {
  margin-bottom: 2rem;
}

.shareholders-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.shareholders-dropdown {
  position: relative;
}

.shareholders-dropdown .form-select {
  width: 100%;
  max-width: 300px;
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: white;
  cursor: pointer;
}

.shareholders-dropdown .form-select:focus {
  border-color: #0066cc;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Row 3: Plan Selection - Side by Side Cards */
.secretary-plans {
  margin-bottom: 2rem;
}

.plans-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
}

.plan-options {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.plan-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  flex: 1;
  max-width: 280px;
  min-width: 240px;
}

.plan-card:hover {
  border-color: #0066cc;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.plan-card.selected {
  border-color: #0066cc;
  background: #f8fbff;
}

.plan-header .plan-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.5rem 0;
}

.plan-header .plan-desc {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 1rem 0;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

/* Row 4: What's Included Section */
.whats-included-section {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
}

.whats-included-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.whats-included-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.included-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
  min-width: 250px;
}

.checkmark {
  color: #28a745;
  font-weight: bold;
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.feature-text {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Hide any "REQUIRED" badges in Step 6 */
#step6 .required-badge,
#step6 .badge-success,
#step6 [style*="color: green"],
#step6 [class*="required"] {
  display: none !important;
}

.price-currency {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.price-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
}

.price-period {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.additional-services {
  border-top: 1px solid #e0e0e0;
  padding-top: 1.5rem;
}

/* Step 7: New Design */
.step7-container {
  max-width: 900px; 
  margin: 0 auto;
  /* padding: 0 20px; */
  position: relative;
}

.step7-header {
  text-align: center;
  margin-bottom: 3rem;
}

.step7-title {
  font-size: 2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.step7-subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.step7-content {
  display: block;
  position: relative;
}

/* Services Section (Main Content) */
.services-section {
  max-width: 800px;
  margin: 0 auto;
  padding-right: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.main-service-card,
.secretary-service-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  position: relative;
}

.main-service-card .service-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.main-service-card .service-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.main-service-card .service-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #195ad2;
  text-align: right;
}

.original-price {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: #9ca3af;
  text-decoration: line-through;
  margin-top: 0.25rem;
}

.main-service-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.service-included {
  display: inline-block;
  background: #d1fae5;
  color: #065f46;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: #4b5563;
  border-bottom: 1px solid #f3f4f6;
}

.service-features li:last-child {
  border-bottom: none;
}

/* Secretary Service */
.secretary-service-card .service-header {
  margin-bottom: 1rem;
}

.secretary-service-card .service-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
}

.service-info {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.service-duration {
  font-size: 1rem;
  font-weight: 500;
  color: #195ad2;
}

.service-price-note {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Add-ons Section */
.addons-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.addons-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.addon-services {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.addon-service-card {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
}

.addon-service-card .service-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.addon-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  flex: 1;
}

.service-billing {
  font-size: 0.875rem;
  color: #6b7280;
  margin-right: 1rem;
}

.addon-service-card .service-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #195ad2;
}

.service-description {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.revenue-selector {
  margin-bottom: 1rem;
  max-width: 300px;
  transition: opacity 0.2s ease;
}

.revenue-selector.disabled {
  opacity: 0.6;
}

.revenue-selector label {
  transition: color 0.2s ease;
}

.revenue-selector label,
.shareholders-selector label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.revenue-dropdown,
.shareholders-dropdown {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: white;
  color: #374151;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23007bff" d="m0 1 2 2 2-2z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.revenue-dropdown:hover,
.shareholders-dropdown:hover {
  border-color: #9ca3af;
}

.revenue-dropdown:focus,
.shareholders-dropdown:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.revenue-dropdown:disabled,
.shareholders-dropdown:disabled {
  background-color: #f9fafb;
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: not-allowed;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23d1d5db" d="m0 1 2 2 2-2z"/></svg>');
}

.shareholders-selector {
  margin-bottom: 1rem;
}

/* Revenue Features List */
.revenue-features {
  margin-top: 1rem;
  padding: 1rem 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-item .checkmark {
  color: #16a34a;
  font-weight: bold;
  margin-right: 0.75rem;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.feature-item span:last-child {
  color: #374151;
  flex: 1;
}

.show-more {
  margin: 1rem 0;
}

.show-more-btn {
  background: none;
  border: none;
  color: #195ad2;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;
}

.show-more-btn:hover {
  color: #1e40af;
}

/* Toggle Switch */
.service-toggle-wrapper {
  position: absolute;
  bottom: 1.5rem; /* Changed from top to bottom */
  right: 1.5rem;
}

.service-toggle {
  display: none;
}

.toggle-slider {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  background-color: #e2e8f0;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.service-toggle:checked + .toggle-slider {
  background-color: #3b82f6;
  border-color: #2563eb;
}

.service-toggle:checked + .toggle-slider::after {
  transform: translateX(22px);
}

.toggle-slider:hover {
  background-color: #f1f5f9;
}

.service-toggle:checked + .toggle-slider:hover {
  background-color: #2563eb;
}

/* Dropdown selectors styling - REMOVED DUPLICATE - Using earlier definition with enhanced styling */

/* Required service styling */
.required-service {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
}

/* Addon Service Cards Styling */
.addon-service-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    position: relative;
}

.addon-service-card .service-content {
    flex: 1;
    padding-right: 20px;
}

.addon-service-card .step-badge {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    margin-bottom: 8px;
}

.addon-service-card .service-title {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
}

.addon-service-card .service-billing {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.addon-service-card .service-pricing {
    margin-bottom: 15px;
}

.addon-service-card .price-label {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 2px;
}

.addon-service-card .price-value {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.addon-service-card .service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.addon-service-card .service-features li {
    padding: 3px 0;
    font-size: 0.9rem;
    color: #4b5563;
}

.addon-service-card .service-description {
    font-size: 0.9rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.4;
}

.toggle-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 10;
}

.required-badge {
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Checkout Section (Floating/Fixed) */
.checkout-section {
  position: fixed;
  top: 120px; /* Fixed position from top instead of center */
  right: 2rem;
  z-index: 1000;
  max-height: calc(100vh - 140px); /* Prevent overflow */
  overflow-y: auto;
}

/* Checkout card - compact, rounded, elevated */
.checkout-box {
  background: #ffffff;
  border: none;
  border-radius: 18px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 8px 30px rgba(22, 28, 37, 0.08);
  width: 380px;
  max-height: 80vh;
  overflow-y: auto;
}

.checkout-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1rem 0;
}

.checkout-breakdown {
  margin-bottom: 1.25rem;
}

/* Individual checkout rows */
.checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* allow multi-line left column */
  padding: 0.55rem 0;
  font-size: 1rem; /* slightly larger for readability */
  color: #374151;
  gap: 0.5rem;
}

.checkout-item + .checkout-item {
  margin-top: 0.35rem;
}

.checkout-item .item-name {
  color: #374151;
  display: block;
  flex: 1 1 auto; /* allow name to take available space and wrap */
  min-width: 0; /* allow flex children to shrink on narrow viewports */
  overflow: visible;
  text-overflow: clip;
  word-break: break-word; /* wrap long text, keep visible */
  line-height: 1.2;
}

.checkout-item .item-price {
  flex: 0 0 auto; /* keep price on the right and do not wrap */
  margin-left: 0.75rem;
  white-space: nowrap;
  color: #111827;
}

/* Discount pill style that spans the width */

.checkout-item.discount {
  background: #e6f9ef;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  color: #065f46;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.5rem 0;
}

.checkout-item.discount .item-price {
  color: #065f46;
}

.checkout-total {
  border-top: 1px solid #eef2f5;
  padding-top: 1rem;
  margin-bottom: 1.25rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-label,
.total-amount {
  font-size: 1.5rem; /* keep label and amount same visible size */
  font-weight: 700;
  color: #111827;
}

/* Add a clearer separator above the total to match reference */
.checkout-total { border-top: 2px solid #e6e9ee; padding-top: 1rem; }

/* Hide internal step badges and internal debug labels when on Step 7 */
.step7-container .step-label,
.step7-container .included-badge,
.step7-container .price-label {
  display: none !important;
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}


.btn-checkout {
  background: #0b63ff;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.5rem; /* taller pill for visual weight */
  font-size: 1.08rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  width: 100%;
  box-shadow: 0 10px 26px rgba(11, 99, 255, 0.14);
}

.btn-checkout:active {
  transform: translateY(1px);
}

.btn-expert {
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.btn-expert:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* Step 7 Secretary Card Row-by-row Layout */
.step7-secretary-card .secretary-rows {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.secretary-row {
  width: 100%;
}

.secretary-row.description-row {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.secretary-row.shareholders-row {
  padding-bottom: 0.5rem;
}

.secretary-row.plans-row {
  padding-bottom: 0.5rem;
}

/* Plan cards responsive behavior */
.plan-cards-container {
  display: flex;
  gap: 1rem;
}

.plan-cards-container .plan-option {
  flex: 1;
  min-width: 180px;
  max-width: none;
}

/* Responsive behavior for mobile */
@media (max-width: 768px) {
  .step7-secretary-card .secretary-rows {
    gap: 1rem;
  }
  
  .plan-cards-container {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .plan-cards-container .plan-option {
    min-width: 100%;
    max-width: 100%;
  }
}

/* Responsive Design */
@media (max-width: 1400px) {
  .checkout-section {
    position: static;
    transform: none;
    margin-top: 3rem;
    display: flex;
    justify-content: center;
  }
  
  .checkout-box {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .step7-container {
    /* padding: 0 15px; */
    margin-left: 0; /* Reset left margin on mobile */
    margin-right: 0; /* Reset right margin on mobile */
    max-width: 100%;
  }
  
  .checkout-section {
    position: static; /* Stack on mobile */
    top: auto;
    right: auto;
    width: 100%;
    margin-top: 2rem;
  }
  
  .services-section {
    max-width: none;
  }
  
  .checkout-box {
    padding: 1.5rem;
    width: 100%;
    max-width: none;
  }
  
  .addon-service-card .service-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .service-toggle-wrapper {
    position: static;
    margin-top: 1rem;
    text-align: right;
  }
}
/* Container to align skip card next to finance card */
.finance-skip-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Make decide-later card visually identical to finance card */
.decide-later-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 665px;
  background: #fff;
  border: 2px solid #e0e0e0; /* match finance card border */
  border-radius: 24px;
  padding: 1rem 1.5rem;
  color: #1976d2;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  text-align: center;
  min-height: 64px; /* pill height */
}

.decide-later-btn:hover {
  border-color: #1976d2;
  box-shadow: 0 12px 24px rgba(25, 118, 210, 0.06);
  transform: translateY(-1px);
}

.decide-later-btn:active {
  transform: translateY(0);
}


@media (max-width: 980px) {
  /* stacked layout on smaller screens */
  .finance-options,
  .audit-options {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* keep finance options stacked; step3 has full-width pill skip below the card */

/* ===== End Custom ===== */

/* ===== Brand color override: switch hover/selected border color to #195ad2 ===== */
:root {
  --brand-blue: #195ad2;
}

/* Apply the brand blue to hover / selected borders and important accents */
.finance-btn:hover,
.finance-btn.selected,
.plan-card:hover,
.plan-card.selected,
.revenue-btn:hover,
.revenue-btn.selected,
.involvement-btn:hover,
.involvement-btn.selected,
.audit-btn:hover,
.audit-btn.selected,
.decide-later-btn:hover,
.decide-later-btn.selected,
.service-btn:hover,
.service-btn.selected {
  border-color: var(--brand-blue) !important;
}

/* Buttons / text that used the previous blue for text should use the new brand color */
.finance-price,
.package-text,
.login-link a,
.price-main,
.decide-later-link,
.decide-later-btn{
  color: var(--brand-blue) !important;
}

/* Update shadows to better match the new blue tone (subtle) */
.finance-btn:hover,
.finance-btn.selected,
.decide-later-btn:hover,
.decide-later-btn.selected,
.plan-card:hover,
.plan-card.selected {
  box-shadow: 0 6px 20px rgba(25, 90, 210, 0.12) !important; /* rgba for #195ad2 */
}

/* Nav arrow primary background update where relevant */
.nav-arrow,
.continue-btn {
  background: var(--brand-blue) !important;
}

/* Keep legacy link hover behaviour but with new blue */
.decide-later-link:hover {
  color: var(--brand-blue) !important;
}

/* ===== End Brand override ===== */
.cart-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
}

/* Removed duplicate .back-btn styles - using nav-arrow-back-only instead */

.cart-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  width: 100%;
  text-align: center;
}

.guidance-btn {
  background: none;
  border: none;
  color: #0066cc;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.guidance-btn:hover {
  background: #f0f8ff;
}

.cart-summary {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* Ensure step 7 has the same structure as other steps */
#step7 {
  position: relative;
}

.package-summary {
  margin-bottom: 2rem;
}

.package-summary h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.selected-services {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.price-breakdown {
  border-top: 1px solid #e0e0e0;
  padding-top: 1.5rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.price-row:last-child {
  border-bottom: none;
}

.total-row {
  border-top: 2px solid #e0e0e0;
  margin-top: 1rem;
  padding-top: 1rem;
  font-weight: 600;
}

.service-price {
  font-weight: 600;
  color: #333;
}

.service-price small {
  font-weight: 400;
  color: #666;
  font-size: 0.8rem;
}

.total-price {
  font-size: 1.2rem;
  color: #28a745;
}

.action-buttons {
  margin-top: 2rem;
  text-align: center;
}

.btn {
  padding: 12px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: #0066cc;
  color: white;
}

.btn-primary:hover {
  background: #0052a3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-lg {
  padding: 16px 48px;
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cart-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cart-title {
    text-align: left;
    order: -1;
  }
  
  .plan-options {
    grid-template-columns: 1fr;
  }
  
  .service-options {
    grid-template-columns: 1fr;
  }
}

/* Step 7 Interactive Service List Styles */
.cart-subtitle {
  text-align: center;
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.service-category {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.service-category:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.category-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-icon {
  font-size: 1.2rem;
}

.category-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  background: #e3f2fd;
  color: #1976d2;
  font-weight: 500;
  margin-left: auto;
}

.category-badge.optional {
  background: #f3e5f5;
  color: #7b1fa2;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-item {
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #c0c0c0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: all 0.2s ease;
  cursor: pointer;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.service-item:hover:not(.core-service) {
  border-color: var(--brand-blue, #195ad2);
  box-shadow: 0 2px 8px rgba(25, 90, 210, 0.1);
}

.service-item.selected {
  border-color: var(--brand-blue, #195ad2);
  background: rgba(25, 90, 210, 0.02);
}

.service-item.core-service {
  cursor: default;
  border-color: #4caf50;
  background: rgba(76, 175, 80, 0.02);
}

.service-item.core-service:hover {
  border-color: #4caf50;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}

.core-checkbox {
  background: #4caf50 !important;
  border-color: #4caf50 !important;
  color: white !important;
  font-size: 12px;
  font-weight: bold;
}

.service-checkbox {
  margin-right: 1rem;
  width: 20px;
  height: 20px;
  border: 2px solid #bbb;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  transition: all 0.2s ease;
}

.service-item.selected .service-checkbox {
  background: var(--brand-blue, #195ad2);
  border-color: var(--brand-blue, #195ad2);
  color: white;
}

.service-checkbox::after {
  content: '✓';
  font-size: 12px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.service-item.selected .service-checkbox::after {
  opacity: 1;
}

.core-checkbox::after {
  content: '✓' !important;
  opacity: 1 !important;
  font-size: 12px !important;
  font-weight: bold !important;
}

.service-content {
  flex: 1;
  /* display: flex; */
  justify-content: space-between;
  align-items: center;
}

.service-info {
  flex: 1;
}

.service-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

.service-details {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

.service-price-info {
  text-align: right;
  color: #333;
  font-weight: 600;
}

.price-period {
  font-size: 0.8rem;
  color: #666;
  font-weight: normal;
}

.price-summary {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #f0f0f0;
}

.price-breakdown {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.price-row:not(:last-child) {
  border-bottom: 1px solid #e9ecef;
}

.subtotal-row {
  font-size: 1rem;
  color: #666;
}

.total-row {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 2px solid #dee2e6 !important;
}

/* Required service indicator */
.service-item.required .service-name::after {
  content: ' (Required)';
  font-size: 0.8rem;
  color: #666;
  font-weight: normal;
}

/* Checkout button styling */
.btn-primary {
  background: var(--brand-blue, #195ad2);
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: white;
}

.btn-primary:hover {
  background: #1565c0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(25, 90, 210, 0.3);
}

.action-buttons {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .service-item {
    padding: 0.875rem 1rem;
  }
  
  .service-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .service-price-info {
    text-align: left;
    align-self: flex-end;
  }
}

.decide-later-audit{
  max-width: 600px;
}

/* Mobile Responsive Styles for Company Secretary Section */
@media (max-width: 768px) {
  #step6 {
    padding: 1rem;
    gap: 1.5rem;
  }
  
  .plan-options {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .plan-card {
    max-width: 100%;
    width: 100%;
  }
  
  .feature-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .feature-item {
    min-width: auto;
  }
  
  .whats-included-section {
    padding: 1.5rem;
  }
  
  .shareholders-dropdown .form-select {
    max-width: 100%;
  }
}