/* Track Application Status Page Styles */

.track-application-status-page {

  background-color: rgba(255, 255, 255, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-items: stretch;
  
  .venue-top-baner {
    background-image: linear-gradient(to right, #F1F8F9, #F4FAEC);
  }
  
  section.venue-top-baner {
    padding: 54px 0 20px 0;
  }
  
  section.venue-top-baner p {
    color: #797B83;
    max-width: 591px;
  }

  .baner-h {
    width: 100%;
    margin-top: 20px;
  }
  
  section.venue-top-baner h2 {
    line-height: 70px;
    margin: auto;
    text-align: center;
    font-weight: 500 !important;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
  }

  .unique-code-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: inherit;
    color: rgba(121, 123, 131, 1);
    font-weight: 400;
    padding: 0;
    background: transparent;
    width: 100%;
  }
  
  /* Header Section */
  .page-title {
    color: rgba(0, 0, 0, 1);
    font-size: 32px;
    font-family:
      Helvetica Neue,
      -apple-system,
      Roboto,
      Helvetica,
      sans-serif;
    font-weight: 700;
    text-align: center;
    align-self: center;
    z-index: 0;
  }
  
  .background-image {
    aspect-ratio: 3.8;
    object-fit: contain;
    object-position: center;
    width: 100%;
    max-width: 1440px;
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: -360px;
    height: 379px;
  }
  
  /* Search Assessment Section */
  .search-assessment-wrapper {
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 1);
    border: 1px solid rgba(230, 230, 230, 1);
    display: flex;
    width: 100%;
    max-width: 700px;
    padding: 12px;
    align-items: center;
    gap: 15px;
    justify-content: space-between;
    margin: 20px auto;
    flex-wrap: nowrap; /* Prevent wrapping on same screen */
  }

  /* Make the container look more like a search box */
  .search-assessment-input {
    align-items: center;
    flex: 1; /* Take available space */
    display: flex;
    min-width: 0; /* Allow shrinking below min-width */
    align-items: center;
    gap: 8px;
    color: rgba(121, 123, 131, 1);
    font-weight: 400;
    width: auto; /* Remove fixed width */
    padding: 8px 12px;
    background-color: white;
  }

  .track-button {
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background-color: #70b9c0;
    align-self: stretch;
    display: flex;
    margin-top: auto;
    margin-bottom: auto;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 10px 20px;
    gap: 8px;
    font-family:
      Avenir Next,
      -apple-system,
      Roboto,
      Helvetica,
      sans-serif;
    color: #fff;
    font-weight: 500;
    border: none;
    cursor: pointer;
    height: 100%;
    min-height: 45px;
    max-width: 230px;

    span {
      color: white;
    }
  }

  @media (max-width: 991px) {
    .search-assessment-input {
      white-space: initial;
    }

    .background-image {
      max-width: 100%;
    }

    .search-assessment-wrapper {
      margin: 0 10px 0 10px;
      width: 100%;
      max-width: 100%;
      display: block;
    }

    .track-button {
      max-width: unset;
      margin-top: 10px;
     }

    .application-details-section .container {
      padding: 0px 25px 0 25px;

      .detail-item {
        width: 100%;
      }
    }
  }
  
  .search-icon {
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
    width: 24px;
    align-self: stretch;
    margin-top: auto;
    margin-bottom: auto;
    flex-shrink: 0;
  }
  
  .assessment-number {
    z-index: 10;
    align-self: stretch;
    margin-top: auto;
    margin-bottom: auto;
  }

  
  
  @media (max-width: 991px) {
    .assessment-number {
      white-space: initial;
    }
  }
  
  .track-icon {
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
    width: 20px;
    align-self: stretch;
    margin-top: auto;
    margin-bottom: auto;
    flex-shrink: 0;
  }
  
  /* Breadcrumb Navigation */
  .breadcrumb {
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 1);
    border-color: rgba(239, 239, 239, 1);
    border-style: solid;
    border-width: 2px;
    position: absolute;
    z-index: 0;
    display: flex;
    min-height: 64px;
    width: 1190px;
    max-width: 100%;
    padding: 20px 24px;
    align-items: center;
    gap: 8px;
    font-family:
      Avenir Next,
      -apple-system,
      Roboto,
      Helvetica,
      sans-serif;
    color: #5a949a;
    font-weight: 500;
    justify-content: start;
    flex-wrap: wrap;
    left: 50%;
    top: 32px;
    transform: translate(-50%, 0%);
    height: 64px;
  }
  
  @media (max-width: 991px) {
    .breadcrumb {
      padding: 20px;
    }

    .breadcurm_box {
      display: flex;
      margin-bottom: 0px;
      padding: 8px 8px;
      max-width: 100%;
      margin-right: 25px;
      margin-left: 25px;
    }
  }
  
  .breadcrumb-item {
    align-self: stretch;
    margin-top: auto;
    margin-bottom: auto;
  }
  
  .home-link {
    background-blend-mode: normal;
    align-self: stretch;
    display: flex;
    margin-top: auto;
    margin-bottom: auto;
    align-items: start;
    gap: 4px;
    justify-content: start;
    color: #5a949a;
    text-decoration: none;
  }
  
  .home-icon {
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
    width: 20px;
    flex-shrink: 0;
  }
  
  .breadcrumb-separator {
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
    width: 24px;
    align-self: stretch;
    margin-top: auto;
    margin-bottom: auto;
    flex-shrink: 0;
  }
  
  .current {
    color: #616161;
  }
  
  /* Application Details Section */
  .application-details-section {
    align-self: center;
    z-index: 10;
    width: 929px;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .section-header {
    width: 100%;
    padding-top: 48px;
    font-family:
      Avenir Next,
      -apple-system,
      Roboto,
      Helvetica,
      sans-serif;
  }
  
  @media (max-width: 991px) {
    .section-header {
      max-width: 100%;
    }
  }
  
  .section-title {
    color: rgba(0, 0, 0, 1);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
  }
  
  .details-grid {
    display: flex;
    margin-top: 16px;
    width: 100%;
    align-items: center;
    gap: 40px 100px;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 50px;
    border-color: rgba(239, 239, 239, 1);
    border-bottom-width: 2px;
  }
  
  @media (max-width: 991px) {
    .details-grid {
      max-width: 100%;
    }
  }
  
  .detail-item {
    align-self: stretch;
    display: flex;
    margin-bottom: auto;
    flex-direction: column;
    align-items: stretch;
    font-size: 18px;
    justify-content: center;
  }
  
  .detail-label {
    color: rgba(0, 0, 0, 1);
    font-weight: 500;
    font-size: 18px;
    margin: 0;
    font-family:
      Avenir Next,
      -apple-system,
      Roboto,
      Helvetica,
      sans-serif;
  }
  
  .detail-value {
    color: rgba(121, 123, 131, 1);
    font-weight: 400;
    margin-top: 8px;
    margin-bottom: 0;
    font-family:
      Avenir Next,
      -apple-system,
      Roboto,
      Helvetica,
      sans-serif;
  }
  
  .status-item {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    font-weight: 500;
    justify-content: center;
  }
  
  /* Permit Application Details Section */
  .permit-application-details-section {
    width: 929px;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .permit-application-details-section .section-title {
    color: rgba(0, 0, 0, 1);
    font-size: 24px;
    font-family:
      Avenir Next,
      -apple-system,
      Roboto,
      Helvetica,
      sans-serif;
    font-weight: 500;
    margin-top: 28px;
  }
  
  .status-timeline {
    display: flex;
    margin-top: 48px;
    width: 766px;
    max-width: 100%;
    align-items: stretch;
    gap: 30px;
    flex-wrap: wrap;
  }
  
  @media (max-width: 991px) {
    .status-timeline {
      margin-top: 40px;
    }
  }
  
  .status-icons {
    align-self: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
  }
  
  @media (max-width: 991px) {
    .status-icons {
      display: none;
    }
  }
  
  .status-icon {
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
    width: 32px;
  }
  
  .status-connector {
    border-color: rgba(223, 223, 223, 1);
    border-style: solid;
    border-width: 2px;
    min-height: 122px;
    width: 0px;
  }
  
  .status-details {
    font-weight: 400;
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: 0;
    width: fit-content;
  }
  
  @media (max-width: 991px) {
    .status-details {
      max-width: 100%;
    }
  }
  
  .status-info {
    width: 100%;
    font-family:
      Avenir Next,
      -apple-system,
      Roboto,
      Helvetica,
      sans-serif;
    font-size: 18px;
    color: rgba(121, 123, 131, 1);
  }
  
  @media (max-width: 991px) {
    .status-info {
      max-width: 100%;
    }
  }
  
  .status-title {
    color: rgba(0, 0, 0, 1);
    font-weight: 500;
    font-size: 18px;
    margin: 0;
  }
  
  @media (max-width: 991px) {
    .status-title {
      max-width: 100%;
    }
  }
  
  .status-date {
    display: block;
    margin-top: 7px;
    font-weight: normal;
  }
  
  @media (max-width: 991px) {
    .status-date {
      max-width: 100%;
    }
  }
  
  .status-description {
    line-height: 27px;
    margin-top: 7px;
  }
  
  @media (max-width: 991px) {
    .status-description {
      max-width: 100%;
    }
  }
  
  .note-box {
    border-radius: 8px;
    background-color: rgba(255, 203, 63, 0.12);
    margin-top: 16px;
    width: 100%;
    padding: 16px;
    gap: 10px;
    font-family:
      Helvetica Neue,
      -apple-system,
      Roboto,
      Helvetica,
      sans-serif;
    font-size: 16px;
    color: rgba(51, 51, 51, 1);
    line-height: 24px;
    font-style: italic;
  }
  
  @media (max-width: 991px) {
    .note-box {
      max-width: 100%;
    }
  }
  
  .note-label {
    font-weight: 700;
    color: rgba(51, 51, 51, 1);
  }
  
  .email-link {
    text-decoration: underline;
    color: inherit;
  }
  
  /* Adjust connector heights for different status items */
  .status-icons .status-connector:nth-child(2) {
    min-height: 122px;
  }
  
  .status-icons .status-connector:nth-child(4) {
    min-height: 268px;
  }
  
  .status-icons .status-connector:nth-child(6) {
    min-height: 98px;
  }
  
  .status-icons .status-connector:nth-child(8) {
    min-height: 103px;
  }
  
  /* Adjust icon sizes for different status items */
  .status-icons .status-icon:nth-child(7),
  .status-icons .status-icon:nth-child(9) {
    width: 24px;
  }
  
  /* Container styles */
  .container {
    position: relative;
    display: flex;
    width: 100%;
    padding: 10px 13px 48px;
    flex-direction: column;
    font-size: 16px;
    justify-content: end;
  }
  
  @media (max-width: 991px) {
    .container {
      max-width: 100%;
    }
  }
}

/* Timeline styling for status logs */
.status-timeline {
  padding: 50px 0;
}

.status-details {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

/* Timeline vertical line */
.status-details:before {
  content: '';
  position: absolute;
  top: -20px;
  bottom: 0px;
  left: 42px;
  width: 4px;
  background: #E0E0E0;
  z-index: 0;
}

/* Status info articles - the timeline items */
.status-info {
  position: relative;
  padding: 20px 20px 20px 80px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Circles on timeline - make them larger */
.status-info:before {
  content: '';
  position: absolute;
  top: 28px;
  left: 30px;
  width: 30px; /* Increased from 16px */
  height: 30px; /* Increased from 16px */
  border-radius: 50%;
  background: #BDBDBD;
  border: 4px solid #F5F5F5;
  z-index: 1;
}

/* Add checkmark inside completed status circles */
.status-info.completed:after {
  content: '✓';
  position: absolute;
  top: 28px;
  left: 30px;
  width: 30px;
  height: 30px;
  font-size: 16px;
  line-height: 30px;
  text-align: center;
  color: white;
  font-weight: bold;
  z-index: 2;
}

.status-info.disapproved:after {
  content: '✗';
  position: absolute;
  top: 27px;
  left: 30px;
  width: 30px;
  height: 30px;
  font-size: 16px;
  line-height: 30px;
  text-align: center;
  color: white;
  font-weight: bold;
  z-index: 2;
}

.breadcurm_box {
  margin-left: 25px;
  margin-right: 25px;
}


/* Adjust positioning for responsive design */
@media (max-width: 576px) {
  .status-info:before {
    left: 20px;
    width: 22px;
    height: 22px;
  }
  
  .status-info.completed:after {
    left: 20px;
    width: 22px;
    height: 22px;
    font-size: 13px;
    line-height: 22px;
  }
}

@media only screen and (max-width: 767px) {
  .breadcurm_box p {
      display: flex;
      flex-wrap: wrap;
      column-gap: 16px;
  }
}

/* Active/current status */

.status-info.active:before {
  background: #F57C00; /* Change from #5A949A (teal) to orange */
  border-color: #FFECB3; /* Change from #E7F6F8 (light teal) to light orange */
}

.status-info.active .status-title {
  color: #F57C00; /* Change title color to orange */
}

.status-info.disapproved:before {
  background: #D32F2F; /* Change from #5A949A (teal) to orange */
  border-color: #FFEBEE; /* Change from #E7F6F8 (light teal) to light orange */
}

.status-info.disapproved .status-title {
  color: red; 
}

/* Completed status */
.status-info.completed:before {
  background: #34A853;
  border-color: #E6F4EA;
}

/* Status title */
.status-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #333;
}

/* Status date */
.status-date {
  display: block;
  font-size: 14px;
  color: #757575;
  margin-bottom: 12px;
}

/* Status description */
.status-description {
  margin: 0;
  line-height: 1.6;
  color: #616161;
}

/* Note box styling */
.note-box {
  margin-top: 15px;
  padding: 12px 15px;
  background-color: #FFF8E1;
  border-radius: 4px;
}

.note-label {
  font-weight: 600;
  color: #F57C00;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .status-info {
    padding: 15px 15px 15px 60px;
  }
  
  .status-details:before {
    left: 26px;
  }
  
  .status-info:before {
    left: 20px;
  }
}

/* Animation for new items */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.status-info {
  animation: fadeIn 0.5s ease-out forwards;
  animation-delay: calc(var(--i, 0) * 0.1s);
}