/* 
* DaryExpress - Delivery Unlimited
* Main stylesheet
*/

:root {
  --primary-color: #FF5722; /* Orange from logo */
  --secondary-color: #1A2A3A; /* Dark blue/black from logo */
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --gray-color: #6c757d;
  --light-gray: #e9ecef;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  color: var(--secondary-color);
  background-color: #fff;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #e64a19; /* Darker orange */
  text-decoration: none;
}

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

/* Header */
.header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  max-height: 60px;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 30px;
}

.nav-link {
  color: var(--secondary-color);
  font-weight: 500;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.signin-btn {
  background-color: var(--primary-color);
  color: #fff !important;
  padding: 8px 15px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.signin-btn:hover {
  background-color: #e64a19;
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.signin-btn::after {
  display: none;
}

.mobile-menu-btn {
  display: none;
  cursor: pointer;
  font-size: 24px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #2c3e50 100%);
  color: #fff;
  padding: 150px 0 100px;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: #e64a19;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background-color: #fff;
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Tracking Section */
.tracking {
  padding: 80px 0;
  background-color: var(--light-color);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.tracking-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--light-gray);
  border-radius: 5px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.2);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  width: 80%;
  max-width: 700px;
  position: relative;
  animation: slideIn 0.4s ease;
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  color: var(--gray-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-modal:hover {
  color: var(--primary-color);
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.tracking-result {
  margin-top: 30px;
}

.tracking-timeline {
  position: relative;
  padding-left: 30px;
}

.timeline-item {
  position: relative;
  padding-bottom: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--primary-color);
  left: -30px;
  top: 5px;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 100%;
  background-color: var(--light-gray);
  left: -23.5px;
  top: 5px;
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-date {
  font-size: 14px;
  color: var(--gray-color);
  margin-bottom: 5px;
}

.timeline-content {
  background-color: #fff;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* About Us Section */
.about {
  padding: 80px 0;
}

.about-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  padding-right: 30px;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* How It Works Section */
.how-it-works {
  padding: 80px 0;
  background-color: var(--light-color);
}

.steps {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 50px;
}

.step {
  flex: 0 0 30%;
  text-align: center;
  padding: 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.step h3 {
  margin-bottom: 15px;
  color: var(--secondary-color);
}

/* Engagements Section */
.engagements {
  padding: 80px 0;
}

.engagement-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.engagement-item {
  flex: 0 0 48%;
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
}

.engagement-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-right: 20px;
}

.engagement-content h3 {
  margin-bottom: 10px;
  color: var(--secondary-color);
}

/* Services Section */
.services {
  padding: 80px 0;
  background-color: var(--light-color);
}

.service-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.service-item {
  flex: 0 0 30%;
  margin-bottom: 40px;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.service-item:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 20px;
}

.service-content h3 {
  margin-bottom: 10px;
  color: var(--secondary-color);
}

/* Cities and Fees Section */
.cities-fees {
  padding: 80px 0;
}

.cities-search {
  margin-bottom: 30px;
}

.search-form {
  max-width: 500px;
  margin: 0 auto;
}

.search-group {
  position: relative;
}

.search-btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0 20px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background-color: #e64a19;
}

.pagination-container {
  margin-top: 30px;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

/* Styles for all pages view */
.show-all-pages .cities-table tbody tr {
  position: relative;
}

.show-all-pages .cities-table tbody tr::before {
  content: attr(data-page);
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-color);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.loading-indicator {
  text-align: center;
  padding: 20px;
  color: var(--gray-color);
}

.show-less-btn {
  background-color: var(--secondary-color);
  color: white !important;
  padding: 10px 20px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.show-less-btn:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.page-link {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 5px 10px;
  background-color: #fff;
  color: var(--secondary-color);
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.page-link:hover {
  background-color: var(--light-gray);
  color: var(--primary-color);
}

.page-link.active {
  background-color: var(--primary-color);
  color: #fff;
}

.page-ellipsis {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 5px 10px;
  color: var(--gray-color);
}

.cities-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.show-all-pages .cities-table {
  padding-left: 30px;
}

.cities-table th,
.cities-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--light-gray);
}

.cities-table th {
  background-color: var(--secondary-color);
  color: #fff;
}

.cities-table tr:last-child td {
  border-bottom: none;
}

.cities-table tr:hover {
  background-color: var(--light-gray);
}

/* Signup Section */
.signup {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #2c3e50 100%);
  color: #242424;
}

.signup-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.signup-form h2 {
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 30px;
}

.form-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.form-col {
  flex: 0 0 48%;
}

.form-message {
  margin-top: 20px;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  display: none;
}

.form-message.success {
  background-color: var(--success-color);
  color: #fff;
}

.form-message.error {
  background-color: var(--danger-color);
  color: #fff;
}

/* Terms and Conditions Styles */
.terms-group {
  margin: 20px 0;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
}

.form-checkbox {
  margin-right: 10px;
  margin-top: 5px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.terms-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 500;
}

.terms-link:hover {
  color: #e64a19;
}

/* Footer */
.footer {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-col {
  flex: 1;
  margin-right: 30px;
  margin-bottom: 30px;
}

.footer-col:last-child {
  margin-right: 0;
}

.footer-logo {
  max-width: 150px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  color: #fff;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer h4::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #fff;
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  margin-top: 30px;
  text-align: center;
  font-size: 14px;
  opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 20px 0;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-item {
    margin: 10px 0;
    text-align: center;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .step {
    flex: 0 0 48%;
    margin-bottom: 30px;
  }
  
  .service-item {
    flex: 0 0 48%;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-text {
    padding-right: 0;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .step {
    flex: 0 0 100%;
  }
  
  .service-item {
    flex: 0 0 100%;
  }
  
  .engagement-item {
    flex: 0 0 100%;
  }
  
  .form-col {
    flex: 0 0 100%;
    margin-bottom: 20px;
  }
  
  .footer-col {
    flex: 0 0 100%;
    margin-right: 0;
  }
}

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

.animate {
  animation: fadeIn 0.8s ease forwards;
}
