:root {
  --pending: #e8f1fd;
  --pendingText: #115abf;
  --pendingDot: #007bff;
  --completed: #e7f6f1;
  --completedText: #006c44;
  --completedDot: #09a57a;
  --completionDot: #BFC4C3;
  --rejected: #fbefee;
  --rejectedText: #ae241a;
  --rejectedDot: #ec221f;
  --review: #fff6e3;
  --reviewText: #945605;
  --reviewDot: #e8b931;
  --info: #fbeee6;
  --infoText: #993c01;
  --infoDot: #fd7e14;
  --line: #e9eceb;
  --border: #e2e9e7;
  --bg: #fcfbfe;
}

.status-service {
  display: flex;
  align-items: center;
  background: var(--bg);
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 24px;
  gap: 12px;
}
.status-service-icon > span {
  display: flex;
  width: 64px;
  height: 64px;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  background: #fff;
}
.status-service-icon > span > img {
  width: 44px;
  height: auto;
}
.status-service-title {
  color: #121212;
  font-family: "29ltbukrabold";
  font-size: 14px;
  line-height: 140%;
}
.status-service-ref {
  color: #4b4c4d;
  font-size: 16px;
  font-family: "DubaiRegular";
}
.status-service-ref > span {
  font-family: "DubaiMedium";
}
.status-case-row {
  display: flex;
  justify-content: space-between;
  border-bottom: solid 1px #d9dddb;
  padding: 6px 0;
  gap: 16px;
}
.status-case-row:last-child {
  border-bottom: none;
  padding-bottom: 0px;
}
.status-case-col {
  font-size: 14px;
  color: #6b6c6e;
}
.status-case-col:last-child {
  white-space: nowrap;
}
.status-case-col > span {
  font-family: "DubaiMedium";
  color: #4b4c4d;
}

.status-timeline {
  position: relative;
}

.status-step {
  position: relative;
  background: var(--bg);
  padding: 24px 40px 24px 64px;
  border-radius: 16px;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.rtl .status-step {
  padding-left: 40px;
  padding-right: 64px;
}

.status-step.visible {
  opacity: 1;
  transform: translateY(0);
}
.status-step:last-child {
  margin-bottom: 30px;
}

.status-step::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 26px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 4px solid var(--border);
  background: white;
  z-index: 1;
}

.rtl .status-step::before {
  left: auto;
  right: 22px;
}

.status-step::after {
  content: "";
  position: absolute;
  left: 31px;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--line);
}

.status-step:last-child::after {
  height: 26px;
}

.status-step:first-child::after {
    height: calc(100% - 28px);
    top: 28px;
}

.rtl .status-step::after {
  left: auto;
  right: 31px;

}

.status-step[data-status="Pending Approval"]::before {
  background: var(--pendingDot);
}

.status-step[data-status="Completed"]::before {
  background: var(--completedDot);
}

.status-step[data-status="Completion"]::before {
  background: var(--completionDot);
}

.status-step[data-status="Rejected"]::before {
  background: var(--rejectedDot);
}

.status-step[data-status="Under Review"]::before {
  background: var(--reviewDot);
}

.status-step[data-status="Additional Info Required"]::before {
  background: var(--infoDot);
}

.status-title {
  margin: 0;
  display: flex;
  align-items: center;
  font-family: "DubaiBold";
  font-size: 16px;
  color: #363637;
  line-height: 150%;
}

.completion .status-title
{
  color: #B5B6B7;
}

.status-chip {
  font-size: 13px;
  font-family: "DubaiMedium";
  border-radius: 4px;
  padding: 2px 6px;
}

.status-chip.pending {
  background: var(--pending);
  color: var(--pendingText);
}
.status-chip.completed {
  background: var(--completed);
  color: var(--completedText);
}
.status-chip.rejected {
  background: var(--rejected);
  color: var(--rejectedText);
}
.status-chip.review {
  background: var(--review);
  color: var(--reviewText);
}
.status-chip.info {
  background: var(--info);
  color: var(--infoText);
}

.status-date {
  font-size: 13px;
  color: #6b6c6e;
  margin: 0 0 20px 0;
  display: flex;
  gap: 4px;
  align-items: center;
}

.status-desc {
  font-size: 13px;
  color: #6b6c6e;
  margin: 0;
}

/* Service Main Page */

.service-main
{
  max-width: 518px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-bottom: 64px;
}
.service-main h3
{
  font-size: 28px;
  font-family: 'DubaiMedium';
  line-height: 150%;
  margin: 0 0 4px 0;
  padding: 0;
}
.service-main p
{
  color: #646464;
  font-size: 16px;
  line-height: 116%;
  margin: 0;
  padding: 0;
  text-align: center;
}
.service-main-icon
{
  display: flex;
  width: 96px;
  height: 96px;
  justify-content: center;
  align-items: center;
  border-radius: 24px;
  margin-bottom: 14px;
}
.service-main-icon img
{
  width: 66px;
  height: auto;
}
.inquiries-follow-up
{
  background: #F1F2F8;
}

.service-option
{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}
.service-option .status-service
{
  background: #F9F9F9; 
  border: 2px solid #F9F9F9;
  border-radius: 24px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
  cursor: pointer;
  padding: 22px;
  margin-bottom: 0px;
}

.service-option .status-service.visible {
  opacity: 1;
  transform: translateY(0);
}
.service-option .status-service.selected {
  border: 2px solid #008755;
}

.service-option .status-service-ref
{
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

}

.select-query-type
{
  text-align: center;
  font-size: 17px;
  color: #4B4C4D;
  font-family: '29ltbukraregular';
  margin-bottom: 24px;
}

/* New Legacy Services Color */
.inquiries-services .service-icon-2 {
  background: #F1F2F8;
}
.reporting-services .service-icon-2 {
  background: #FBEFEE;
}
.certificate-services .service-icon-2 {
  background: #FFF6E3;
}
.traffic-services .service-icon-2 {
  background: #E9FAF2;
}
.business-services .service-icon-2 {
  background: #E8FBFD;
}
.community-services .service-icon-2 {
  background: #F2EFFE;
}
.emergency-services .service-icon-2 {
  background: #E8F1FD;
}

@media (max-width: 767px) {
  .service-option {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .status-service
  {
    margin-bottom: 12px;
  }
  .status-service:last-child
  {
    margin-bottom: 0px;
  }
}
