.roi-page {
  font-size: 24px;
  color: #324158;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  background-color: #ffffff !important; /* White background */
}

.roi-step {
  display: none;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

.roi-page h2 {
  font-size: 30px;
  color: #00BF63;
  font-weight: bold;
  margin: 0 0 8px 0 !important; /* Reduced from 12px to 8px */
  text-align: left !important;
}

.roi-step.active-step {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
  text-align: left !important;
}

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

/* SPECIAL STYLING FOR WELCOME STEP - CENTER TOP */
#welcome-step {
  position: relative;
  height: auto !important;
  min-height: 60vh;
  text-align: center !important;
  padding: 10px !important; /* Reduced from 15px to 10px */
  background-color: #ffffff !important;
}

#welcome-step.active-step {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start !important;
  align-items: center !important;
  text-align: center !important;
}

#welcome-step .text-center {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  text-align: center !important;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 15px !important; /* Reduced from 20px to 15px */
}

p.mb-4.text-center.main-point-title {
    color: #00BF63;
}

#welcome-step .lead {
  font-size: 20px !important;
  color: #324158;
  font-weight: 600;
  text-align: center !important;
  margin: 0 0 10px 0 !important; /* Reduced from 15px to 10px */
  line-height: 1.4;
}

#welcome-step .btn-primary {
  display: inline-block !important;
  margin: 0 auto !important;
  text-align: center;
}

/* SPECIAL STYLING FOR THANK YOU STEP - CENTER TOP */
#thankyou-step {
  position: relative;
  height: auto !important;
  min-height: 60vh;
  text-align: center !important;
  padding: 10px !important; /* Reduced from 15px to 10px */
  background-color: #ffffff !important;
}

#thankyou-step.active-step {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start !important;
  align-items: center !important;
  text-align: center !important;
}

#thankyou-step .card,
#thankyou-step .card-body {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  text-align: center !important;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

#thankyou-step .card-body {
  padding-top: 15px !important; /* Reduced from 20px to 15px */
}

#thankyou-step .card-title,
#thankyou-step .lead,
#thankyou-step p {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#thankyou-step .step-navigation {
  justify-content: center !important;
  text-align: center !important;
}

/* ALL OTHER STEPS - TOP LEFT ALIGNMENT WITH REDUCED MARGINS */
#disclaimer-step,
#form-step,
#questions-step,
#results-step,
#contact-step {
  text-align: left !important;
  padding: 8px !important; /* Reduced from 10px to 8px */
  margin: 0 !important;
  background-color: #ffffff !important;
}

#disclaimer-step.active-step,
#form-step.active-step,
#questions-step.active-step,
#results-step.active-step,
#contact-step.active-step {
  display: block !important;
  text-align: left !important;
  padding: 8px !important; /* Reduced from 10px to 8px */
  margin: 0 !important;
}

#disclaimer-step .card,
#disclaimer-step .card-body,
.disclaimer-content {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
}

.disclaimer-content {
  padding: 15px 0 !important; /* Reduced from 20px to 15px */
  margin-bottom: 15px; /* Reduced from 20px to 15px */
  color: #324158;
  text-align: left !important;
}

#disclaimer-step .form-check {
  margin-top: 10px; /* Reduced from 15px to 10px */
  margin-bottom: 10px; /* Reduced from 15px to 10px */
  text-align: left !important;
}

/* Fixed button alignment */
#proceed-btn {
  margin: 8px 0 !important; /* Reduced from 12px to 8px */
  display: inline-block !important;
  width: auto !important;
  text-align: left !important;
}

.disclaimer-content p {
  color: #324158;
  font-size: 20px;
  line-height: 1.6;
  text-align: left !important;
  margin: 0 0 8px 0; /* Reduced from 12px to 8px */
}

.form-group {
  margin-top: 1rem; /* Reduced from 1.5rem to 1rem */
  margin-bottom: 0.8rem; /* Reduced from 1.2rem to 0.8rem */
  transition: all 0.3s ease;
  text-align: left !important;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem; /* Reduced from 0.8rem to 0.5rem */
  font-weight: 600;
  color: #324158;
  font-size: 20px;
  transition: 0.2s;
  text-align: left !important;
}

.form-control {
  border-radius: 8px;
  border: 2px solid var(--eben-border);
  padding: 0.85rem 1rem;
  height: auto;
  transition: all 0.25s ease;
  width: 100%;
  font-size: 1rem;
  color: var(--eben-text);
  background-color: var(--eben-light);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.form-control:hover {
  border-color: rgba(0, 166, 90, 0.4);
}

.form-control:focus {
  border-color: var(--eben-green);
  box-shadow: var(--eben-glow);
  outline: none;
}

#marketingStrategiesOptions,
#countryOptions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.8rem; /* Reduced from 1rem to 0.8rem */
  justify-content: start !important;
}

.btn-group {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  width: 100%;
  display: flex;
  border: 1px solid var(--eben-border);
}

.btn-group .btn {
  flex: 1;
}

.btn-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.btn-outline-primary {
  border: none;
  color: var(--eben-text);
  font-weight: 600;
  padding: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-outline-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--eben-hover);
  z-index: -1;
  transition: width 0.3s ease;
}

.btn-outline-primary:hover {
  color: var(--eben-dark);
}

.btn-outline-primary:hover::before {
  width: 100%;
}

.btn-check:checked + .btn-outline-primary {
  background: var(--eben-gradient);
  color: white;
  font-weight: 700;
}

.btn-check:checked + .btn-outline-primary::before {
  display: none;
}

.btn-check:focus + .btn-outline-primary {
  box-shadow: 0 0 0 0.25rem var(--eben-hover);
}

.input-group {
  margin-top: 0.3rem; /* Reduced from 0.4rem to 0.3rem */
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: stretch; 
  width: 100%; 
}

.input-group .form-control {
  border-radius: 8px 0 0 8px;
  border: 2px solid var(--eben-border);
  border-right: none;
  padding: 0.85rem 1rem;  
  font-size: 1rem;
  flex: 1 1 auto; 
  min-width: 200px; 
  height: auto;
}

.input-group-text {
  background-color: var(--eben-light);
  color: var(--eben-text);
  border: 2px solid var(--eben-border);
  border-left: none;
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1rem; 
  font-weight: 600;
  display: flex;
  align-items: center;
  white-space: nowrap; 
}

/* Fixed button alignment - remove centering */
.btn-primary {
  background: var(--eben-gradient);
  border: none;
  padding: 1rem 1.5rem;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.3s ease;
  color: white;
  font-size: 1.1rem;
  width: auto !important;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: var(--eben-glow);
  margin: 0.8rem 0 !important; /* Reduced from 1.2rem to 0.8rem */
  display: inline-block !important;
  text-align: center;
  white-space: nowrap;
  min-width: fit-content;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  z-index: -1;
}

.btn-primary:hover {
  background: var(--eben-gradient-reverse);
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 166, 90, 0.25);
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(0, 166, 90, 0.2);
}

.btn-primary:focus {
  box-shadow: 0 0 0 0.25rem var(--eben-hover), var(--eben-glow);
}

.text-danger {
  color: var(--eben-error) !important;
}

/* Fixed container alignment */
.button-container {
  text-align: left !important;
  margin: 0.8rem 0; /* Reduced from 1.2rem to 0.8rem */
}

.button-container .btn-primary {
  margin: 0.3rem 0.25rem 0.3rem 0 !important; /* Reduced from 0.4rem to 0.3rem */
  display: inline-block;
}

.currency-selector {
  border-radius: 0 8px 8px 0 !important;
  border: 2px solid var(--eben-border) !important;
  border-left: none !important;
  background-color: var(--eben-light) !important;
  color: var(--eben-text) !important;
  font-weight: 600 !important;
  padding: 0.85rem 0.5rem !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
}

.currency-selector:hover {
  border-color: rgba(0, 166, 90, 0.4) !important;
}

.currency-selector:focus {
  border-color: var(--eben-green) !important;
  box-shadow: var(--eben-glow) !important;
  outline: none !important;
}

.input-group .form-control {
  border-radius: 8px 0 0 8px !important;
  border-right: none !important;
}

.input-group-text {
  min-width: 60px;
  justify-content: center;
}

/* Remove any default centering */
.container, .container-fluid {
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  background-color: #ffffff !important;
}

/* Remove any default Bootstrap centering */
.mx-auto {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.d-flex.justify-content-center {
  justify-content: flex-start !important;
}

@media (max-width: 991.98px) {
  .card-header h4 {
    font-size: 1.25rem;
  }
  
  .btn-primary {
    width: auto !important;
  }
  
  #proceed-btn {
    width: auto !important;
  }

  #welcome-step .lead {
    font-size: 20px !important;
  }

  #welcome-step .text-center {
    padding-top: 12px !important; /* Reduced for tablet */
  }

  #thankyou-step .card-body {
    padding-top: 12px !important; /* Reduced for tablet */
  }
}

@media (max-width: 767.98px) {
  .card-body {
    padding: 0 !important;
    text-align: left !important;
  }
  
  .btn-primary {
    width: auto !important;
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }
  
  #marketingStrategiesOptions,
  #countryOptions {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .result-item h2 {
    font-size: 2rem;
    text-align: left !important;
  }

  #welcome-step .lead {
    font-size: 20px !important;
  }

  #welcome-step .text-center {
    padding-top: 8px !important; /* Reduced for mobile */
  }

  #thankyou-step .card-body {
    padding-top: 8px !important; /* Reduced for mobile */
  }
}

@media (max-width: 575.98px) {
  #marketingStrategiesOptions,
  #countryOptions {
    grid-template-columns: 1fr;
    gap: 0.4rem; /* Reduced from 0.6rem to 0.4rem */
  }

  .btn-primary {
    padding: 0.85rem 1rem;
    font-size: 1rem;
    width: auto !important;
    margin: 0.3rem 0 !important; /* Reduced from 0.4rem to 0.3rem */
  }
  
  .form-control {
    padding: 0.75rem;
  }
  
  .roi-page {
    padding: 0 !important;
  }

  #welcome-step .lead {
    font-size: 20px !important;
  }

  #welcome-step .text-center {
    padding-top: 5px !important; /* Reduced for small screens */
  }

  #thankyou-step .card-body {
    padding-top: 5px !important; /* Reduced for small screens */
  }
}
