.container {
  display: flex;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  width: 1200px;
  max-width: 95%;
  overflow: hidden;
}

.simulator-panel,
.result-panel {
  padding: 30px;
}

.simulator-panel {
  flex: 1;
  border-right: 1px solid #eee;
  position: relative;
}

.result-panel {
  flex: 1.5;
  background-color: #fcfcfc;
}

h2 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-top: 0;
  margin-bottom: 25px;
}

.setting-icon {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 24px;
  color: #888;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #555;
}

.input-with-unit {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
}

.input-with-unit input[type="number"],
.input-with-unit input[type="text"] {
  flex-grow: 1;
  padding: 12px 15px;
  border: none;
  outline: none;
  font-size: 16px;
  color: #333;
}

.input-with-unit .unit {
  padding: 12px 15px;
  background-color: #f8f8f8;
  border-left: 1px solid #eee;
  font-size: 15px;
  color: #777;
}

.switch-button-group {
  display: flex;
  background-color: #eee;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 10px;
}

.switch-button {
  flex: 1;
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #777;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.switch-button.active {
  background-color: #fff;
  color: #e91e63;
  /* Pink color */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.info-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1px solid #bbb;
  border-radius: 50%;
  text-align: center;
  font-size: 10px;
  line-height: 14px;
  margin-left: 5px;
  color: #bbb;
  cursor: pointer;
}

select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  background-color: #fff;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23777%22%20d%3D%22M287%2C197.9%20c5.3%2C5.3%2C5.3%2C13.8%2C0%2C19.1%20s-13.8%2C5.3%2C-19.1%2C0%20L146.2%2C77.4%20l-121.7%2C121.7%20c-5.3%2C5.3%2C-13.8%2C5.3%2C-19.1%2C0%20s-5.3%2C-13.8%2C0%2C-19.1%20l131.2%2C-131.2%20c5.3%2C-5.3%2C13.8%2C-5.3%2C19.1%2C0%20L287%2C197.9%20z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 10px;
}

input[type="range"] {
  width: calc(103% - 20px);
  -webkit-appearance: none;
  height: 8px;
  background: #e0e0e0;
  border-radius: 5px;
  outline: none;
  margin: 10px 0;
  position: relative;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: #e91e63;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  margin-top: -7px;
  position: relative;
  z-index: 2;
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: #e91e63;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  border: none;
  position: relative;
  z-index: 2;
}

input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(to right,
      #e91e63 var(--thumb-position, 0%),
      #e0e0e0 var(--thumb-position, 0%));
  height: 8px;
  border-radius: 5px;
}

input[type="range"]::-moz-range-track {
  background: #e0e0e0;
  height: 8px;
  border-radius: 5px;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #777;
  margin-top: -5px;
  padding: 0 10px;
}

.range-labels span {
  position: relative;
  display: block;
}

.range-labels span.active-label {
  font-weight: 600;
  color: #333;
}

.result-panel h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.result-affordance {
  background-color: #fef0f4;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
  text-align: center;
}

.result-affordance p {
  font-size: 16px;
  color: #555;
  margin-bottom: 10px;
}

.result-affordance .amount {
  font-size: 32px;
  font-weight: 700;
  color: #e91e63;
  /* Pink color */
}

.price-details {
  margin-bottom: 30px;
}

.price-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  font-size: 15px;
  color: #555;
}

.price-item:last-of-type {
  border-bottom: none;
  font-weight: 600;
  color: #333;
  font-size: 16px;
  margin-top: 15px;
}

.price-item span:first-child {
  display: flex;
  align-items: center;
}

.price-item .value {
  color: #333;
}

.total-purchase-price {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #e91e63 !important;
  border-top: 1px solid #ddd;
  padding-top: 20px !important;
  margin-top: 20px !important;
}

.reserve-note {
  font-size: 13px;
  color: #888;
  margin-top: 20px;
  text-align: right;
}

.bottom-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.button {
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
  text-decoration: none;
  text-align: center;
}

.button.primary {
  background-color: #e91e63;
  color: #fff;
  border: none;
  font-size:15px;
  margin-top: 20px;
}

.button.primary:hover {
  background-color: #d11a56;
  box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

.button.secondary {
  background-color: #f0f2f5;
  color: #555;
  border: 1px solid #ddd;
}

.button.secondary:hover {
  background-color: #e0e2e5;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.disclaimer {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.submit-button-container {
  text-align: center;
  margin-top: 30px;
}

.submit-button-container-1 {
  text-align: right;
  margin-bottom: 20px;
}

.submit-button {
  background-color: #e91e63;
  color: #fff;
  padding: 15px 40px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.submit-button:hover {
  background-color: #d11a56;
  box-shadow: 0 8px 20px rgba(233, 30, 99, 0.4);
}


/* Mortage calculator */
.container-1 {
  max-width: 1200px;
  margin: 40px auto;
  background-color: white;
  padding: 40px;
  display: flex;
  justify-content: space-between;
}

.section-left {
  flex: 2;
}

.section-right {
  flex: 1;
  background-color: #fafafa;
  border-radius: 15px;
  padding: 30px;
  height: 223px;
  margin-left: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 40px;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.text-input-wrapper input[type="text"] {
  background-color: #f2f2f2;
  padding: 10px 20px;
  border-radius: 25px;
  border: none;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: left;
}

.range-slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.range-marks {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #888;
  padding: 0 5px;
  margin-top: 5px;
}

.output-box {
  width: 100%;
}

.output-box h3 {
  color: #e6007e;
  margin-bottom: 20px;
  font-size: 20px;
}

.output-box p {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  font-size: 16px;
}

.monthly-result {
  font-size: 28px;
  font-weight: bold;
  color: #e6007e;
  text-align: right;
  margin-top: 30px;
}

.primary-button {
  margin-top: 30px;
  background-color: #e6007e;
  color: white;
  font-weight: normal;
  font-size: 13px;
  padding: 5px 15px;
  border-radius: 30px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #e6007e;
  cursor: pointer;
  margin-top: -4px;
}

input[type="range"]::-moz-range-thumb {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #e6007e;
  cursor: pointer;
}

.label-display-flex {
  display: flex;
  justify-content: space-between;
}

/* aquistic calculator */
.container-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 20px;
}

.setting-icon {
  font-size: 1.2em;
}

.input-with-unit {
  display: flex;
  align-items: center;
}

.unit {
  margin-left: 8px;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 0.85em;
  color: #888;
}

.submit-button {
  padding: 10px 20px;
  background-color: black;
  border: none;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.multi-color-button {
  display: flex;
  margin: 20px auto;
  border: none;

  background-color: transparent;
  overflow: hidden;
}

.red-section,
.yellow-section,
.green-section {
  padding: 10px 30px;
  color: white;
}

.red-section {
  background-color: #e74c3c;
  border-radius: 20px 0px 0px 20px;
}

.yellow-section {
  background-color: #f1c40f;
  color: black;
}

.green-section {
  background-color: #2ecc71;
  border-radius: 0px 20px 20px 0px;
}

.total-purchase-price {
  font-weight: bold;
  text-align: right;
  margin-top: 10px;
  font-size: 1.1em;
}

.card-section {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.slider-wrapper {
  position: relative;
  padding: 0 5px;
}

.slider {
  width: 100%;
  margin: 10px 0;
}

.slider-value {
  text-align: center;
  font-size: 1.3em;
  color: #ff69b4;
  font-weight: bold;
  margin-top: 20px;
  padding-bottom: 10px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.95em;
  color: #555;
}

.bold {
  font-weight: bold;
}

.dark {
  color: #333;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15em;
  font-weight: normal;
  color: #333;
  margin-top: 0;
  margin-bottom: 15px;
}

.plus-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 20px auto 0 auto;
  padding: 10px 25px;
  background-color: #555;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.95em;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.arrow-down {
  font-size: 0.7em;
  line-height: 1;
}

.summary-section {
  text-align: right;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.total-amount {
  font-size: 2.7em;
  color: #ff69b4;
  font-weight: bold;
  margin-bottom: 5px;
  margin-top: 0;
}

.total-interest {
  font-size: 1.05em;
  color: #999;
  margin-top: 0;
}

.loan-schedule {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  margin-bottom: 20px;
  font-size: 0.9em;
}

.loan-schedule th,
.loan-schedule td {
  padding: 10px 0;
  text-align: left;
  border-bottom: 1px solid #eee;
  color: #555;
}

.loan-schedule th {
  color: #888;
  font-weight: normal;
  padding-bottom: 12px;
}

.loan-schedule th.text-right,
.loan-schedule td.text-right {
  text-align: right;
}

.couts {
  display: flex;
  justify-content: space-between;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
}

.multform-container {
  max-width: 700px;
  margin: auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
  margin-bottom: 10px;
}

.multform-required {
  color: red;
}

.multform-step {
  display: block;
}

.multform-step.hidden {
  display: none;
}

.multform-cards {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  gap: 10px;
  flex-wrap: wrap;
}

.multform-card {
  width: 48%;
  padding: 20px;
  border: 2px solid #ccc;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
  background: white;
}

.multform-card:hover {
  border-color: #007bff;
}

.multform-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.multform-card.selected {
  border-color: #007bff;
  background: #e6f0ff;
}

.multform-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  margin: 10px auto 0;
  transition: background 0.3s;
}

.multform-card:hover .multform-dot,
.multform-card.selected .multform-dot {
  background: #007bff;
}

.multform-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.multform-buttons.right {
  justify-content: flex-end;
}

.multform-back,
.multform-next {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

.multform-back {
  background: #e0e0e0;
}

.multform-next {
  background: #007bff;
  color: white;
}

button i {
  margin: 0 5px;
}

/* Multi Wender From */
.multform-container {
  max-width: 700px;
  margin: auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

h2 {
  margin-bottom: 10px;
}

.multform-required {
  color: red;
}

.multform-step {
  display: none;
}

.multform-step.active {
  display: block;
}

.multform-cards {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  gap: 10px;
  flex-wrap: wrap;
}

.multform-card {
  width: 40%;
  padding: 20px;
  border: 2px solid #ccc;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  background: white;
}

.multform-card:hover {
  border-color: #007bff;
}

.multform-card img {
  width: 100%;

  object-fit: cover;
}

.multform-card-1 img {
  width: 100%;
  object-fit: cover;
}

.multform-card.selected {
  border-color: #007bff;
}

.multform-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  margin: 10px auto 0;
  transition: background 0.3s;
}

.multform-card:hover .multform-dot,
.multform-card.selected .multform-dot {
  background: #007bff;
}

.multform-card-1 {
  width: 40%;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  background: white;
}

.multform-card-1:hover {
  border-color: #007bff;
}

.multform-card-1 img {
  width: 100%;

  object-fit: cover;
}

.multform-card-1.selected {
  border-color: #007bff;
}

.multform-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.multform-buttons.right {
  justify-content: flex-end;
}

.multform-back,
.multform-next {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

.multform-back {
  background: #e0e0e0;
}

.multform-next {
  background: #007bff;
  color: white;
}

.multform-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.multform-row {
  display: flex;
  gap: 10px;
}

.multform-row input {
  flex: 1;
  border-radius: 20px;
  background-color: #e9e8ed;
}

.multform-form input[type="text"],
.multform-form input[type="email"],
.multform-form input[type="tel"],
.multform-form input[type="date"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 20px;
  width: 97%;
  background-color: #e9e8ed;
}

.multform-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.multform-checkbox input {
  margin-top: 5px;
}

#confirmation-message {
  display: none;
  text-align: center;
}

.input-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 86px;
  position: relative;
}

.input-wrapper input {
  border: none;
  border-bottom: 3px dotted #ccc;
  outline: none;
  text-align: right;
  padding-right: 10px;
  font-size: 18px;
}

.input-wrapper span {
  position: absolute;
  right: 0px;
  font-size: 12px;
  color: #333;
}

.helper-text {
  font-size: 12px;
  color: #e62e92;
  margin-top: 4px;
  text-align: left;
  margin-left: 20px;
}

.number-buttons {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 20px;
  margin-top: 20px;
  max-width: fit-content;
}

.number-buttons button {
  width: 60px;
  height: 60px;
  color: black;
  border: 2px solid #eee;
  border-radius: 50%;
  background-color: white;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.number-buttons button:hover {
  border-color: #959495;
}

.one-btn {
  margin-top: 40px;
}

@media (max-width: 768px) {
  .multform-cards {
    flex-direction: column;
    align-items: center;
  }

  .multform-card {
    width: 100% !important;
    max-width: 70%;
  }

  .multform-row {
    flex-direction: column;
  }

  .multform-buttons {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .multform-buttons button {
    width: 100%;
  }

  .number-buttons {
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .number-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  h2 {
    font-size: 20px;
  }

  .multform-next,
  .multform-back {
    font-size: 14px;
    padding: 8px 12px;
  }

  .input-wrapper input {
    font-size: 14px;
  }
}

/* form */

/* --- Advisor Modal Styles --- */
.sg-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sg-modal-content {
    background-color: #444; /* Dark grey background like the image */
    color: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.sg-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}
.sg-modal-close:hover {
    color: #fff;
}

.sg-modal-content h3 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 600;
    letter-spacing: 1px;
}

.sg-advisor-form .sg-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.sg-advisor-form .sg-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.sg-advisor-form label {
    font-size: 14px;
    margin-bottom: 8px;
    color: #ccc;
}

.sg-advisor-form input[type="text"],
.sg-advisor-form input[type="email"],
.sg-advisor-form input[type="tel"],
.sg-advisor-form textarea {
    background-color: #555;
    border: 1px solid #666;
    color: #fff;
    padding: 12px;
    border-radius: 20px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

.sg-advisor-form textarea {
    border-radius: 12px;
}

.sg-advisor-form .sg-checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.sg-advisor-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.sg-advisor-form .submit-button {
    background-color: #fff;
    color: #333;
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    align-self: flex-start;
}

.sg-form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}
.sg-form-status.success {
    background-color: #28a745;
    color: #fff;
}
.sg-form-status.error {
    background-color: #dc3545;
    color: #fff;
}