.loader {
  display: none;
  text-align: center;
  margin-top: 30px;
}
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #a30745;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.tracking-wrapper{
 transition: all 0.3s ease; /* applies smooth transition to all properties */	
}

body {font-family: "Poppins", sans-serif; background: #fdfdfd; margin: 0; padding: 5px 5px;}
.tracking-wrapper { margin: 0 auto; background: #fff; border-radius: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); padding: 40px 30px 60px; overflow-x: auto;}
.customer-info {display: flex; flex-wrap: wrap; justify-content: space-between; gap: 25px; background: #f7f7f7; padding: 25px 25px 15px; border-radius: 12px; border-left: 5px solid #a30745; margin-bottom: 40px;}
.customer-right {flex: 1; min-width: 260px; text-align:right;}
.customer-left {flex: 1; min-width: 260px;text-align:left;}

.customer-left h3 {margin-bottom: 10px; color: #a30745; font-weight: 600; font-size: 1.2rem;}
.customer-left p, .customer-right p {margin: 6px 0; color: #444; font-size: 0.95rem;}
.customer-right a {color: #a30745; text-decoration: none; font-weight: 500;}
.customer-right a:hover {text-decoration: underline;}
.status-badge {display: inline-block; padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-left: 10px; text-transform: capitalize;}
.status-unfulfilled {background: #fff3cd; color: #856404;}
.status-fulfilled {background: #d1ecf1; color: #0c5460;}
.status-partial {background: #cce7ff; color: #004085;}
.tracking-line {display: flex; align-items: flex-start; justify-content: space-between; position: relative; counter-reset: step; flex-wrap: nowrap;}
.tracking-line::before {content: ""; position: absolute; top: 40px; left: 10%; right: 10%; height: 4px; background: #e0e0e0; z-index: 0;}
.tracking-step {position: relative; text-align: center; flex: 1; min-width: 180px; z-index: 1;}
.tracking-icon {width: 50px; height: 50px; border-radius: 50%; background: #ccc; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 10px;  border: 4px solid #fff; box-shadow: 0 0 0 3px #e0e0e0; transition: all 0.4s ease;}
.tracking-step.completed .tracking-icon {background: #a30745; box-shadow: 0 0 0 3px rgba(40,167,69,0.3);}
.tracking-step.active .tracking-icon {background: #a30745; box-shadow: 0 0 0 3px rgba(163,7,69,0.3);}
.tracking-step.pending .tracking-icon {background: #6c757d; box-shadow: 0 0 0 3px rgba(108,117,125,0.3);}
.tracking-step.delivered .tracking-icon {background: #8bc53d; box-shadow: 0 0 0 3px rgba(108,117,125,0.3);}
.tracking-status {font-weight: 600; font-size: 0.95rem; color: #333;}
.tracking-location {font-size: 0.85rem; color: #666; margin-top: 5px;}
.tracking-message {font-size: 0.85rem; color: #555; margin-top: 8px; padding: 0 1px; line-height: 1.3;}
.tracking-date {display: block; font-size: 0.8rem; color: #888; margin-top: 10px;}
.no-tracking-message {text-align: center; padding: 30px 20px; background: #f8f9fa; border-radius: 12px; margin: 20px 0;}
.no-tracking-message h3 {color: #a30745; margin-bottom: 15px;}
.no-tracking-message p {color: #666; margin-bottom: 10px;}
.completed .tracking-icon {background: #a30745; box-shadow: 0 0 0 3px rgba(40,167,69,0.3);}

@media (max-width: 992px) {
  .tracking-wrapper {padding: 25px 20px 40px;}
}

@media (max-width: 768px) {
  .customer-info {flex-direction: column; padding: 20px;}
  .customer-left, .customer-right {width: 100%;}
  .tracking-line {flex-direction: column; align-items: flex-start; gap: 25px;}
  .tracking-line::before {content: none;}
  .tracking-step {padding-left: 1px; position: relative; margin-top:5px;}
  .tracking-icon {position: absolute; left: 0; top: 0;}
  .tracking-status {font-size: 1rem;}
  .tracking-location, .tracking-message, .tracking-date {font-size: 0.85rem;}
  
  .customer-right {
    flex: 1;
    min-width: 260px;
    text-align:left;
}
 
}

@media (max-width: 480px) {
  body {padding: 20px 8px;}
  .tracking-wrapper {padding: 20px 15px 30px;}
  .tracking-icon {width: 40px; height: 40px; font-size: 18px;}
  
 .track-form {

 
  flex-wrap: nowrap !important;
 
}
}
.track-section {
  text-align: center;
  margin-bottom: 10px;
}

.track-section h1 {
  color: #a30745;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 25px;
}

/* Search box styling */
.track-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto 50px;
}

.track-form input {
  flex: 1;
  border-radius: 10px;
  border: 1px solid #f4f4f4 !important;
  padding: 12px 15px;
  font-size: 1rem;
  transition: all 0.3s;
}
.track-form input:focus {
  border-color: #a30745;
  box-shadow: 0 0 0 0.2rem rgba(163, 7, 69, 0.2);
  outline: none;
}
.track-form button {
  background: #a30745;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.track-form button:hover {
  background: #8bc53d;
}

/* Service boxes */
.services {
  margin-top: 20px;
}
.services a {
  display: block;
  text-decoration: none;
  text-align: center;
  color: #fff;
  background: #a30745;
  border-radius: 14px;
  padding: 35px 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.services a:hover {
  background: #8bc53d;
  transform: translateY(-5px);
}
.services .icon {
  font-size: 2rem;
  margin-bottom: 15px;
}
.services h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .track-form {
    flex-direction: column;
  }
  .track-form input, .track-form button {
    width: 100%;
  }
}

.container {
    width: 75%;
    max-width: 1200px;
    margin: 10px auto;
    text-align: center;
}

  /* Header section */
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .header img {
    height: 60px;
  }

  /* Track section */
  .track-section {
    padding: 10px 5px;
  }

  .track-section h1 {
    font-size: 35px;
    margin-bottom: 20px;
  }

  .track-form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .track-form input {
    padding: 12px 15px;
    font-size: 16px;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 8px;
  }

  .track-form button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
  }

  .track-form button:hover {
    background-color: #0056b3;
  }

  /* Services section */
  .services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
  }

  .service-box {
    background: #a30745;
    padding: 15px;
	color:#fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
  }
  
  .track-form button{
	background: #a30745; 
	color:#fff;	
  }
  
  .track-form button:hover{
	background: #8bc53d; 
	color:#fff;	
  }
  
   .green {
    background: #8bc53d;
  }
  
  .service-box:hover {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
	color:#a30745;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
  }

  .service-box:hover {
    transform: translateY(-5px);
  }

  .service-box i {
    font-size: 30px;
    color: #fff;
    margin-bottom: 15px;
  }

  .service-box h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }

.service-box:hover p {
    color: #333;
}

.service-box p {
color: #fff;
font-size: 14px;
}

@media (max-width: 480px) {
  .service-box {
    flex: 1 1 100%;
  }
}

.order-info-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.order-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px 30px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #333;
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
}
