.item {
  display: flex;
  flex-direction: row;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  /*background-color: #2e1b59;*/
}

.timeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  /*padding: 60px;*/
  padding-top:10px;
  padding-left:8%;
  padding-right:8%;
  color: #fff;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 36%; /* Move horizontal line farther upward */
  left: 14%;
  right: 14%;
  height: 2px;
  background-color: #00a99d; /* Line color */
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
  z-index: 1;
}




/* Existing CSS remains the same until the media queries */

/* Mobile First Approach - Base styles for small screens */
@media (max-width: 767px) {
  .timeline {
    flex-direction: column;
    padding: 20px 5%;
  }
  
  .timeline::before {
    display: none; /* Hide the horizontal line on mobile */
  }
  
  .step {
    margin-bottom: 30px;
    width: 100%;
  }
  
  .circle, .circle-checked {
    width: 50px;
    height: 50px;
    font-size: 16px;
    margin-top: 10px;
  }
  
  .step-title {
    font-size: 16px;
    margin-top: 12px;
  }
  
  .step-details {
    font-size: 13px;
  }
  
  .row {
    flex-direction: column;
  }
  
  .col-4, .col-8, .col-12 {
    width: 100%;
    padding: 0 15px;
  }
  
  .reg-card-head, .reg-card, .reg-card-price {
    padding: 15px;
    margin-top: 15px;
  }
  
  .reg-block {
    margin-bottom: 20px;
  }
  
  .card-header {
    font-size: 16px;
  }
  
  .radio-group label {
    font-size: 14px;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-control, .form-select {
    font-size: 14px;
  }
  
  .summery-invisible {
    font-size: 14px;
  }
  
  #displayprice {
    font-size: 24px;
    width: 200px;
  }
  
  .btn-primary {
    padding: 8px 15px;
    font-size: 14px;
  }
  
  /* Adjust the registration cards for mobile */
  .reg-block {
    width: 100%;
  }
  
  /* Make form fields stack vertically */
  .mb-3 {
    min-width: 100% !important;
  }
  
  /* Timeline adjustments for mobile */
  .step {
    position: relative;
    padding-left: 30px;
  }
  
  .step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 30px;
    height: 100%;
    width: 2px;
    background-color: #00a99d;
  }
  
  .step:last-child::before {
    display: none;
  }
  
  .circle, .circle-checked {
    position: absolute;
    left: -25px;
    top: 0;
  }
}

/* Tablet Styles (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .timeline {
    padding-left: 5%;
    padding-right: 5%;
  }
  
  .timeline::before {
    left: 8%;
    right: 8%;
  }
  
  .circle, .circle-checked {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }
  
  .step-title {
    font-size: 16px;
  }
  
  .step-details {
    font-size: 14px;
  }
  
  .col-4 {
    width: 100%;
  }
  
  .col-8 {
    width: 100%;
  }
  
  .reg-card-head, .reg-card, .reg-card-price {
    padding: 20px;
  }
  
  /* Adjust form layout for tablets */
  .mb-3 {
    min-width: 45% !important;
  }
}

/* Small Desktop Styles (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .timeline {
    padding-left: 8%;
    padding-right: 8%;
  }
  
  .timeline::before {
    left: 10%;
    right: 10%;
  }
  
  .col-4 {
    width: 35%;
  }
  
  .col-8 {
    width: 65%;
  }
}

/* Hide arrows from number input */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* Make date inputs more mobile-friendly */
input[type="date"] {
    -webkit-appearance: none;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
}

/* Improve button touch targets on mobile */
button, .btn {
    min-height: 44px; /* Recommended minimum touch target size */
}

/* Ensure form elements are easily tappable */
input, select, textarea, button {
    font-size: 16px; /* Prevents iOS zooming on focus */
}

.circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #fff; /* Circle background */
  border: 5px solid #215C5C; /* Border color */
  display: flex;
  justify-content: center;
  align-items: center;
  color: #00a99d;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px; /* Space below the horizontal line */
}

.circle-checked {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  /*background-color: #00a99d; */
  background-color: #215C5C;
  border: 5px solid #215C5C;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffff;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px; /* Space below the horizontal line */
  
  
}

.circle::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #215C5C; /* White inner circle */
  }


.step-title {
  font-weight: bold;
  font-size: 18px;
  margin-top: 18px; /* Push the title farther down from the circle */
  /*color: #64dacd; */
  color:#215C5C;
  font-style: italic;
}

.step-details {
  font-size: 14px;
  margin-top: 10px;
  line-height: 1.4;
  color:#000;
}
.reg-card-head{
  border-radius: 18px;
  padding: 20px;
  /* margin: 20px; */
  border: 2px solid rgb(107, 85, 85);
  /*background-color: #a3e3de;*/
  background-color: #215C5C;
}
.reg-card{
  border-radius: 18px;
  padding: 20px;
  /* margin: 20px; */
  border: 2px solid rgb(107, 85, 85);
}

.card-name{
    color:#ffffff;
}

.main-card-wrapper {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  /*margin: 40px auto;*/
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.info-box
{
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 20px;
  flex: 1;
  min-width: 300px;
}
.payment-summary-box {
  background: #215C5C;
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  /*padding: 20px;*/
  flex: 1;
  min-width: 410px;
}

.info-box {
  background: #f4fcf6;
  border: 1px solid #eee;
}

.info-title {
  font-size: 18px;
  font-weight: bold;
  color: #215C5C;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.info-text {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

.info-text ul {
  padding-left: 20px;
  margin-top: 10px;
}

.info-text ul li {
  margin-bottom: 6px;
}

.payment-summary-box {
  background: #215C5C;
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: none;
}

.payment-summary-box h3 {
  margin-top: 0;
  font-weight: 400;
  font-size: 20px;
  border-bottom: 1px solid #9daaa7;
  padding-bottom: 10px;
  text-align: center;
}

.flex-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.flex-columns > div {
  flex: 1;
  min-width: 260px;
}

.row-item {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  padding: 6px 0;
  border-bottom: 1px solid #9daaa7;
  color: #bdc3c7;
  font-size: 14px;
}

.row-item span:last-child {
  color: white;
}

.highlight-price {
  width: 100%;
  max-width: 260px;
  margin: 16px auto;
  text-align: center;
  font-weight: 700;
  font-size: 22px;
  color: #ffffff;
  background-color: #000;
  border-radius: 8px;
  padding: 10px;
}

.summary-note {
  font-size: 0.75em;
  color: #7f8c8d;
  text-align: center;
  line-height: 1.4;
  margin: 15px auto;
  max-width: 600px;
}

.summary-note a {
  color: #1abc9c;
  text-decoration: none;
}

.btn-wrapper {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.btn-primary {
  border: none;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  min-width: 140px;
}

.btn-confirm {
  background: #1abc9c;
  color: white;
}

.btn-reset {
  background: transparent;
  color: #bdc3c7;
  border: 1px solid #bdc3c7;
}

@media screen and (max-width: 768px) {
  .main-card-wrapper {
    flex-direction: column;
  }
}
  