.optionsDiv {
  height: 80vh;
}

.pageTitle {
  font: 700 24px / normal "Kalpurush";
  color: #000;
  border-bottom: 2px solid var(--orange);
  /*margin-top: 0.5rem;*/
}
.fnt-30 {
   font-size: 30px !important;
 }

.nav .nav-item a {
  font: 500 19px / normal "Kalpurush";
  color: #000;
}

.contentDiv {
  max-height: 80vh;
  background-color: var(--rightColumn);
}

.contentSection {
  padding: 0.5rem 1rem;
  background-color: #f5f5f5;
  margin-bottom: 0.5rem;
  /*border-radius: 0.5rem;*/

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.2rem;

  height: fit-content;
}

.firstStepTitle {
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
}

.back-btn span,
.next-btn span,
.reset-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
}

.icon-img {
	margin: 0px;
	padding: 0px;
	border: none;
	height: auto;
	width: auto;
	display: block;
	cursor: pointer;
	max-height: 500px;
}

.completed-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  margin-top: 60px;
}

.completed-text {
  display: inline-block;
  transform: rotate(-65deg);
  transform-origin: center;
  white-space: nowrap;
  text-align: center;
}

.card-header {
  background: var(--rightColumn);
  border: none;
}
.card-body {
  background: var(--rightColumn);
  border: none;
}

.card-footer {
  background: var(--rightColumn);
  border: none;
}

/* .firstStepTextList {
  font: 500 17px / normal "Kalpurush";
  color: #000;
}
.custom-radio-black input[type="radio"].form-check-input {
  accent-color: #000000 !important;
  transform: scale(1.5);
}

.contentSection .contentTitle {
  font: 700 22px / normal "Kalpurush";
  color: #000;
}

.contentSection .contentInfo {
  font: 500 18px / normal "Kalpurush";
  color: #000;
} */


/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {

  /* Sidebar -> Top horizontal scroll (Removed, using Accordion now) */
  .optionsDiv {
    height: auto;
    width: 100%;
    margin-bottom: 10px;
  }

  /* Title smaller */
  .pageTitle {
    font-size: 24px;
  }


  .completed-text{
    display: inline-block;
    margin-top: 10px;
    font-size: 20px;
    color: #28a745;
    font-weight: 600;
    width: fit-content;
    margin: 10px auto 0;
    transform: rotate(-45deg);
  }

  /* Content full height */
  .contentDiv {
    max-height: none;
    height: auto;
    padding-left: 20px;
  }

  /* Cards spacing */
  .card-body {
    padding: 10px;
    background-color: #f5f5f5;
    color: var(--font);
  }

  /* Fix Member Type Cards text overflow on mobile */
  .carousel-item[data-step="1"] label.h-100,
  .carousel-item[data-step="1"] .row.h-100,
  .carousel-item[data-step="1"] .col-md-2.h-100,
  .carousel-item[data-step="1"] .col-md-5.h-100 {
    height: auto !important;
  }

  label.w-100 {
    padding: 10px !important;
    border-bottom: 2px solid var(--orange);
  }

  /* Step 1 UI */
  .firstStepTitle {
    font-size: 1rem;
  }

  .firstStepTextList {
    font-size: 12px;
    text-align: center;
  }

  img {
    max-height: 100px !important;
  }

  /* Buttons */
  .card-footer {
    flex-direction: column;
    gap: 8px;
    background: var(--rightColumn);
  }

  .card-footer .btn {
    width: 100%;
  }

  .back-btn span,
  .next-btn span,
  .reset-btn span {
    width: auto;
    font-size: 13px;
  }

  /* Form */
  .form-control {
    font-size: 14px;
    border: var(--green) 1px solid;
  }

  .form-label {
    font-size: 18px;
  }
}
@media (max-width: 768px) {

  /* Member Type Cards */
  .firstStepCard {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px !important;
  }

  .firstStepCard img {
    max-height: 70px !important;
  }

  .firstStepContent {
    flex: 1;
  }

  .firstStepTitle {
    font-size: 15px;
    text-align: left;
    margin-bottom: 5px;
  }

  .firstStepTextList {
    font-size: 12px;
    text-align: left;
    margin: 0;
  }

  .firstStepRadio {
    transform: scale(1.5);
  }
}

.form-control {
  border: 2px solid var(--green);
  /*border-bottom: 1px solid #aaa;*/
  border-radius: 0;
  background: transparent;
  transition: all 0.3s ease;
  box-shadow: none;
}

.form-control:hover {
  border: 2px solid var(--green);
  /*border-bottom: 2px solid #07530a;*/
}

.form-control:focus {
  border: 2px solid var(--green);
  /*border-bottom: 2px solid #07530a;*/
  box-shadow: 0 4px 10px rgb(7 83 10 / 0.76);
  background: var(--bg);
}

#infoMemberType {
  pointer-events: none;
  background-color: var(--bg); /* optional: disabled look */
}

.next-btn,
.back-btn,
.reset-btn {
  transition: all 0.3s ease;
}

.next-btn:hover,
.back-btn:hover,
.reset-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  background: #0a53be;
}

/* Error state */
.form-control.error {
  border: 2px solid var(--orange) !important;
  /*border-bottom: 2px solid #dc3545 !important;*/
  box-shadow: 0 0 5px rgba(220, 53, 69, 0.2);
}

/* Focus on invalid field */
.form-control.error:focus {
  border-color: var(--orange) !important;
  box-shadow: 0 0 8px rgba(220, 53, 69, 0.3);
}

/* Validation message */
label.error,
span.error {
  color: var(--orange) !important;
  font-size: 0.875rem;
  margin-top: 4px;
  display: block;
}

.bg-orange {
  background:  var(--orange);
}

.bg-orange:hover {
  background:  var(--orange);
}

.border-blue {
  border: 2px solid var(--blue) !important;
}
.password-wrapper {
  position: relative;
}

.password-wrapper .form-control {
  padding-right: 40px; /* space for icon */
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #6c757d;
  font-size: 12px; /* smaller icon */
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.toggle-password:hover {
  color: #07530a;
  background: rgba(7, 83, 10, 0.08);
}

.toggle-password i {
  font-size: 13px;
}

.password-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
}

.password-wrapper .form-control {
  padding-right: 40px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 18px; /* fixed position */
  transform: translateY(-50%);
  z-index: 2;
}

/*custom popup replaced swal*/
.custom-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  padding: 16px; /* prevents touching screen edges */
}

.custom-popup.visible {
  display: flex;
}

.hidden {
  display: none !important;
}

.popup-box {
  width: 100%;
  max-width: 500px;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.popup-logo-container {
  border-bottom: 1px solid var(--cardBorder);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.popup-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.popup-message {
  border-bottom: 1px solid var(--cardBorder);
  padding: 20px;
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-line;
  word-break: break-word;
}

.popup-line {
  margin-bottom: 8px;
}

.popup-line:last-child {
  margin-bottom: 0;
}

.popup-ok-btn {
  width: 100%;
  padding: 14px;
  border: none;
  background: var(--primaryButton);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.popup-ok-btn:hover {
  background: var(--green);
  color: var(--bg);
}

/* Mobile */
@media (max-width: 576px) {
  .popup-box {
    max-width: 100%;
    border-radius: 0;
  }

  .popup-logo {
    width: 60px;
    height: 60px;
  }

  .popup-message {
    padding: 16px;
    font-size: 14px;
  }

  .popup-ok-btn {
    padding: 12px;
    font-size: 14px;
  }
}

/* Very small devices */
@media (max-width: 360px) {
  .popup-message {
    font-size: 13px;
    padding: 14px;
  }

  .popup-logo {
    width: 50px;
    height: 50px;
  }
}
