/* -------------Dream-Life-Calculator-Section-Css-Start------------- */
:root {
  --brand-gold: #c7a52b;
  --brand-light-grey: #f0f0f0;
  --brand-border-grey: #e0e0e0;
  --brand-text-grey: #6c757d;
  --brand-purple: #4a0e82;
  --font-family-main: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.calculator_section {
  padding: 40px 0;
  background-color: #f6f7fb;
  display: flex;
  align-items: center;
}
.calculator-wrapper {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background-color: #ffffff;
}
.calculator-promo-panel {
  flex: 0 0 45%;
  background: linear-gradient(to bottom, #FAF7EA, #ffffff);
  /* Removed color: #ffffff; to prevent white text on light bg */
  padding: 0;
  display: flex;
  flex-direction: column; /* Stacks content vertically (Text Top, Image Bottom) */
  justify-content: space-between; /* Ensures spacing */
  position: relative;
  overflow: hidden; /* Keeps image rounded corners */
}
.promo-text {
  position: relative; /* Changed from absolute to relative */
  top: auto;
  left: auto;
  right: auto;
  z-index: 2;
  padding: 40px 40px 0 40px; /* Add padding directly here */
  width: 100%;
}
.promo-text .star-logo {
  width: 60px;
  margin-bottom: 20px;
  /* This filter turns a white PNG to the Brand Gold color. 
     Remove this line if you upload a Gold colored PNG instead. */
  /* filter: invert(66%) sepia(81%) saturate(407%) hue-rotate(5deg) brightness(92%) contrast(90%); */
}
.promo-text h1 {
  font-size: 2.8rem;
  color: var(--brand-gold); /* Changed from #ffffff to Gold */
  font-weight: 700;
  line-height: 1.2;
}
.promo-image {
  width: 100%;
  display: block;
  margin-top: auto; /* Pushes the image to the very bottom */
  object-fit: cover; /* Ensures image covers width nicely */
}
.calculator-container {
  flex: 1;
  padding: 40px 50px;
  background-color: #ffffff;
  border-top-left-radius: 30px;
  font-family: var(--font-family-main);
}
.progress-bar-container {
  width: 100%;
  height: 6px;
  background-color: var(--brand-light-grey);
  border-radius: 3px;
  margin-bottom: 20px;
  overflow: hidden;
}
.progress-bar {
  width: 0%;
  height: 100%;
  background-color: var(--brand-gold);
  transition: width 0.4s ease-in-out;
}
.error-message {
  color: #d9534f;
  background-color: #f2dede;
  border: 1px solid #ebccd1;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 20px;
  text-align: center;
  display: none;
}
.quiz-step h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 30px;
  line-height: 1.2;
}
.form-group {
  margin-bottom: 25px;
}
label,
.step-subtitle {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--brand-text-grey);
}
.step-subtitle {
  margin-top: -20px;
  margin-bottom: 20px;
}
.form-control {
  height: 55px;
  border: 1px solid var(--brand-border-grey);
  border-radius: 8px;
  transition: border-color 0.3s;
  background-color: var(--brand-light-grey);
  padding: 0 20px;
  font-size: 1rem;
  font-weight: 500;
}
.form-control:focus {
  border-color: var(--brand-purple);
  background-color: #fdfaff;
  box-shadow: none;
}
select.form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}
.quiz-step {
  display: none;
  animation: fadeIn 0.5s;
}
.quiz-step.active {
  display: block;
}
.choice-box {
  border: 1px solid transparent;
  padding: 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 15px;
  position: relative;
  background-color: var(--brand-light-grey);
}
.choice-box.selected {
  border-color: var(--brand-gold);
  background-color: #fefbf0;
}
.choice-box h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #000000;
  margin: 0 0 5px 0;
}
.choice-box p {
  margin: 0;
  color: var(--brand-text-grey);
  font-size: 0.9rem;
}
.choice-box::after {
  content: "→";
  font-size: 1.5rem;
  color: var(--brand-gold);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.choice-box.selected::after {
  opacity: 1;
}
.number-stepper {
  display: flex;
  align-items: center;
  background-color: var(--brand-light-grey);
  border: 1px solid var(--brand-border-grey);
  border-radius: 8px;
}
.number-stepper .form-control {
  border: none;
  text-align: center;
  flex-grow: 1;
  background: none;
}
.number-stepper .stepper-btn {
  border: none;
  background: none;
  font-size: 1.5rem;
  font-weight: 300;
  padding: 0 20px;
  cursor: pointer;
  color: #000;
}
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}
.radio-group label {
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #333333;
  margin-bottom: 0;
  cursor: pointer;
}
.radio-group input[type="radio"] {
  display: none;
}
.custom-radio {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--brand-border-grey);
  border-radius: 4px;
  transition: all 0.2s;
}
.radio-group input[type="radio"]:checked + .custom-radio {
  background-color: var(--brand-gold);
  border-color: var(--brand-gold);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'%3e%3c/polyline%3e%3c/svg%3e");
}
.navigation-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 40px;
}
#next-btn-step1 {
  width: 100%;
}
.shared-nav {
  display: none;
}
.shared-nav.visible {
  display: flex;
}
.btn {
  padding: 15px 30px;
  font-weight: 600;
  min-width: 140px;
  border-radius: 8px;
  font-size: 1rem;
  transition: opacity 0.2s ease-in-out;
}
.btn-primary {
  background-color: var(--brand-gold);
  border-color: var(--brand-gold);
  color: #333333;
}
.btn-primary:hover {
  background-color: var(--brand-gold);
  border-color: var(--brand-gold);
  color: #333333;
  opacity: 0.9;
}
.btn-secondary {
  background-color: #fff;
  border: 1px solid var(--brand-border-grey);
  color: var(--brand-text-grey);
}
#back-btn {
  margin-right: auto;
}
.hidden {
  display: none;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.input-with-icon {
  position: relative;
}
.input-with-icon .form-control {
  padding-right: 40px;
}
.input-with-icon i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-text-grey);
  cursor: pointer;
}

@media (max-width: 991px) {
  .calculator-wrapper {
    flex-direction: column;
  }
  .calculator-promo-panel {
    flex: 0 0 auto;
    min-height: 300px;
    border-radius: 24px 24px 0 0;
  }
  .calculator-container {
    border-radius: 0 0 24px 24px;
    padding: 30px 25px;
  }
}

@media (max-width: 767px) {
  .calculator-container {
    padding: 20px;
  }
  .quiz-step h2 {
    font-size: 2rem;
  }
}

/* Original Result Styles */
#result-container {
  padding: 20px;
}

#result-container.hidden {
  display: none !important;
}

#result-container h2 {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: left;
  margin-bottom: 20px;
}

.final-result-card {
  padding: 20px;
  border-radius: 16px;
  background-color: var(--brand-purple);
  background-image: url("../images/download_bg.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100%;
  color: #fff;
  text-align: center;
}

.final-result-card h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-gold);
  margin-bottom: 10px;
}

.final-result-card p {
  font-size: 1.1rem;
  line-height: 1.5;
  max-width: 90%;
  margin: 0 auto;
}

.final-result-card .result-year {
  color: var(--brand-gold);
  font-weight: 700;
}

.result-cta-button {
  display: block;
  width: 80%;
  padding: 12px;
  margin: 25px auto;
  color: #fff;
}

.chart-container {
  margin: 25px 0;
  padding: 20px;
  border: 1px solid var(--brand-border-grey);
  border-radius: 16px;
}

.share-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 25px;
  padding: 10px 0;
  border-bottom: 1px solid var(--brand-border-grey);
}

.share-section p {
  font-weight: 500;
  color: var(--brand-text-grey);
  margin: 0;
}

.share-buttons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  margin-left: 8px;
  transition: all 0.3s;
  text-decoration: none;
}

.share-buttons .facebook {
  background-color: #1877f2;
}

.share-buttons .instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.share-buttons .x-twitter {
  background-color: #000000;
}

.share-buttons .link {
  background-color: #cccccc;
}

.share-buttons .download {
  background-color: #333333;
}

.result-actions {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.result-actions .btn {
  padding: 15px 20px;
  font-size: 0.9rem;
}

#calculate-another-btn {
  color: #fff;
  background-color: #212529;
  border-color: #212529;
}