.dodo-tracker-wrapper {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.dodo-tracker-form {
  width: 50%;
  max-width: 600px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .dodo-tracker-form {
    width: 100% !important;
    padding: 0 15px; /* optional padding so it doesn’t touch screen edges */
  }

  .dodo-tracker-form .form-row {
    flex-direction: column; /* stack input + select on mobile */
  }

  .dodo-tracker-form input[type="text"],
  .dodo-tracker-form select {
    flex: unset;
    width: 100%;
  }
  
}

.dodo-tracker-form .form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.dodo-tracker-form input[type="text"] {
  flex: 80%;
  padding: 12px 20px;
  border: 1px solid #ccc;
  border-radius: 0px;
  font-size: 16px;
}

.dodo-tracker-form select {
  flex: 20%;
  padding: 12px 20px;
  border: 1px solid #ccc;
  border-radius: 0px;
  font-size: 16px;
}

.dodo-tracker-form button {
  width: 100%;
  background: #de0405;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  border: none;
  border-radius: 0px;
  padding: 14px;
  margin-top: 15px;
  cursor: pointer;
}

.dodo-tracker-form button:hover {
  background: #de0405;
}


/* Spinner */
.dodo-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--wp--preset--color--primary, #0073e6);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Results Container */
.dodo-result {
    padding: 40px 40px 30px 40px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.0);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    min-height: 60px;
    transition: all 0.3s ease;
    margin: 40px auto 0 auto;
}

/* Success Status */
.dodo-result.success {
    border-left: 6px solid #28a745;
}

/* Error / Not Found */
.dodo-result.error {
    border-left: 6px solid #dc3545;
}

/* In Transit */
.dodo-result.in-transit {
    border-left: 6px solid #007bff;
}

/* Header */
.dodo-result h3 {
    margin-top: 0;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

/* Tracking details list */
.dodo-result ul {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.dodo-result ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dodo-result ul li:last-child {
    border-bottom: none;
}

/* Status badge */
.dodo-result .status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-transform: capitalize;
    background: #f1f1f1;
    color: #444;
}

.dodo-result .status-badge.success {
    background: #28a745;
    color: #fff;
}

.dodo-result .status-badge.error {
    background: #dc3545;
    color: #fff;
}

.dodo-result .status-badge.in-transit {
    background: #007bff;
    color: #fff;
}

/* -----------------------------------
   Modern DHL-style Timeline
----------------------------------- */
.dodo-timeline {
  margin-top: 25px;
}

.dodo-timeline h4 {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
}

.dodo-timeline ul {
  list-style: none;
  padding-left: 20px;
  margin: 0;
  position: relative;
}

.dodo-timeline ul::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8px;
  width: 2px;
  height: 100%;
  background: #ddd;
}

.dodo-timeline li {
  position: relative;
  margin-bottom: 20px;
}

.dodo-timeline li:last-child {
  margin-bottom: 0;
}

.dodo-timeline li .dot {
  position: absolute;
  left: -2px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: #ccc;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #ddd;
}

.dodo-timeline li.active .dot {
  background: #de0405; /* Your brand red */
  box-shadow: 0 0 0 2px #de0405;
}

.dodo-timeline li .content {
  margin-left: 30px;
}

.dodo-timeline .desc {
  font-size: 14px;
  font-weight: 500;
}

.dodo-timeline .meta {
  font-size: 12px;
  color: #777;
}
