@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #1d212d;
  margin: 0;
  padding: 20px;
  color: #f2f2f2;
}

#delivery {
  max-width: 600px;
  margin: 30px auto;
  background-color: #2c2f3a;
  border: 1px solid #00ff99;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 0 16px rgba(0, 255, 153, 0.05);
}

#delivery h2 {
  text-align: center;
  color: #00ff99;
  margin-bottom: 25px;
  font-size: 1.6rem;
}

form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #ccc;
}

form input,
form select {
  width: 100%;
  max-width: 100%;
  display: block;
  padding: 12px;
  margin-bottom: 20px;
  background-color: #1a1a1a;
  border: 1px solid #444;
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
}

form input::file-selector-button {
  background-color: #444;
  color: #fff;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  margin-right: 10px;
  cursor: pointer;
}

form input:focus,
form select:focus {
  border-color: #00ff99;
  outline: none;
}

button[type="submit"] {
  width: 100%;
  background-color: #27ae60;
  border: none;
  padding: 14px;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #219150;
}

/* 📍 Use My Location Button */
#location-btn {
  display: inline-block;
  background-color: #00ff99;
  color: #1d212d;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 15px;
  transition: background-color 0.3s ease;
}

#location-btn:hover {
  background-color: #00e68a;
}

/* 🗺️ Map Styling */
#map {
  height: 300px;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 20px;
  border: 1px solid #444;
  border-radius: 8px;
}

/* ✅ Success & Error Messages */
#success-message,
#error-message {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-weight: bold;
}

#success-message {
  background-color: #2ecc71;
  color: #fff;
}

#error-message {
  background-color: #e74c3c;
  color: #fff;
}

/* 📱 Responsive */
@media (max-width: 600px) {
  #delivery {
    margin: 15px;
    padding: 20px;
  }

  #location-btn {
    width: 100%;
    text-align: center;
  }
}

.hidden {
    display: none !important;
  }
  
  #home-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #4CAF50;
  color: white;
  padding: 12px 18px;
  font-size: 18px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  z-index: 9999;
}
#home-btn:hover {
  background: #45a049;
}
