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

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== HEADER ========== */
header {
  background-color: white;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  font-family: "Arial Black", sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.search-bar {
  flex: 1;
  max-width: 500px;
}

.search-bar input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

/* Pincode in header */
.pincode-section {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 13px;
  color: #1a5490;
  font-weight: 600;
  padding: 6px 10px;
  border: 1px solid #d0d8e8;
  border-radius: 6px;
  background: #f0f5ff;
  transition: all 0.2s;
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pincode-section:hover {
  background: #dce8ff;
  border-color: #1a5490;
}

.pincode-section i {
  color: #1a5490;
  font-size: 12px;
  flex-shrink: 0;
}

#locationDisplay {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Cart icon button */
.cart-icon-btn {
  position: relative;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #333;
  padding: 4px 6px;
  display: flex;
  align-items: center;
}

.cart-icon-btn:hover {
  color: #1a5490;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #e53935;
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.user-link,
.cart-link {
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-name {
  font-size: 14px;
  font-weight: 500;
}

.logout-btn {
  padding: 4px 12px;
  background-color: #f3f4f6;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s;
}

.logout-btn:hover {
  background-color: #e5e7eb;
}

/* ========== MAIN NAV ========== */
.main-nav {
  background-color: #1a5490;
  padding: 0;
  position: relative;
  z-index: 100;
}

.nav-container {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  padding: 0 !important;
}

.nav-dropdown {
  position: relative;
  flex: 1;
  min-width: 150px;
}

.nav-btn {
  background-color: transparent;
  color: white;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px 20px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  white-space: nowrap;
}

.nav-dropdown:last-child .nav-btn {
  border-right: none;
}
.nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}
.nav-btn i {
  font-size: 10px;
  transition: transform 0.3s;
}

.nav-dropdown.active .nav-btn {
  background-color: rgba(255, 255, 255, 0.1);
}
.nav-dropdown.active .nav-btn i {
  transform: rotate(180deg);
}

/* Sell / Buy action buttons in nav */
.nav-btn-sell {
  background-color: #2e7d32;
  color: white !important;
  font-weight: 600;
  border-radius: 4px;
  border-right: none !important;
}
.nav-btn-sell:hover {
  background-color: #1b5e20 !important;
}
.nav-btn-buy {
  background-color: #1565c0;
  color: white !important;
  font-weight: 600;
  border-radius: 4px;
  border-right: none !important;
}
.nav-btn-buy:hover {
  background-color: #0d47a1 !important;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 8px 8px;
  padding: 10px 0;
  z-index: 1000;
}

.nav-dropdown.active .dropdown-menu {
  display: block;
  animation: slideDown 0.3s ease;
}

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

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s;
}

.dropdown-menu a:hover {
  background-color: #f0f7eb;
  color: #1a5490;
}

/* ========== LISTING TABS ========== */
.listing-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
}

.listing-tab {
  flex: 1;
  padding: 15px 25px;
  background-color: #f5f5f5;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #666;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.listing-tab i {
  font-size: 20px;
}
.listing-tab:hover {
  background-color: #e8f5e9;
  border-color: #4caf50;
}
.listing-tab.active {
  background-color: #e8f5e9;
  border-color: #4caf50;
  color: #2e7d32;
}

/* ========== MAIN CONTENT ========== */
.main-content {
  padding: 30px 0;
}

/* ========== COMMODITY SECTION ========== */
.commodity-section {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.section-header h2 {
  font-size: 24px;
}
.highlight {
  color: #00bcd4;
}
.view-all {
  color: #666;
  text-decoration: none;
  font-size: 14px;
}

.commodity-table {
  overflow-x: auto;
}

.commodity-table table {
  width: 100%;
  border-collapse: collapse;
}

.commodity-table th {
  background-color: #f5f5f5;
  padding: 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #ddd;
}

.commodity-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.commodity-table tbody tr {
  background-color: #2c3e5f;
  color: white;
}
.commodity-table tbody tr:nth-child(even) {
  background-color: #3a4e6b;
}
.commodity-table td a {
  color: #4fc3f7;
  text-decoration: none;
}

/* ========== DEALS / PRODUCTS ========== */
.deals-section,
.cities-section {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-info {
  padding: 15px;
}
.product-info h3 {
  font-size: 16px;
  margin-bottom: 5px;
}
.product-info .price {
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}
.product-info .location {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

.contact-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  font-size: 14px;
  transition: background-color 0.3s;
}

.contact-btn:hover {
  background-color: #218838;
}

/* ========== CITIES — HORIZONTAL SCROLL ========== */
.cities-carousel-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scroll-btn {
  background-color: #1a5490;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  flex-shrink: 0;
}

.scroll-btn:hover {
  background-color: #145080;
}

.cities-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  scroll-behavior: smooth;
  width: 100%;
}

.cities-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.city-btn {
  background-color: #f0f0f0;
  padding: 10px 18px;
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  border: 2px solid transparent;
}

.city-btn:hover {
  background-color: #dce8ff;
  border-color: #1a5490;
  color: #1a5490;
  transform: translateY(-2px);
}

/* ========== CART SIDEBAR ========== */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1500;
  opacity: 0;
  transition: opacity 0.3s;
}

.cart-overlay.open {
  display: block;
  opacity: 1;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  max-width: 95vw;
  height: 100vh;
  background: white;
  z-index: 1600;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-sidebar.open {
  right: 0;
}

.cart-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 16px;
  border-bottom: 2px solid #f0f0f0;
  background: #1a5490;
  color: white;
}

.cart-sidebar-header h3 {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.cart-close-btn:hover {
  opacity: 1;
}

.cart-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  color: #aaa;
  font-size: 15px;
  text-align: center;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #eee;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  font-size: 14px;
  color: #222;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 13px;
  color: #666;
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.cart-item-total {
  font-weight: 700;
  font-size: 14px;
  color: #1a5490;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #e53935;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 4px;
  transition: color 0.2s;
}

.cart-item-remove:hover {
  color: #b71c1c;
}

.cart-sidebar-footer {
  padding: 16px 20px;
  border-top: 2px solid #f0f0f0;
  background: #fafafa;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #222;
}

.cart-checkout-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: #1a5490;
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.3s;
}

.cart-checkout-btn:hover {
  background: #145080;
}

/* ========== MODAL STYLES ========== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 40px;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: slideIn 0.3s;
}

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

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: #000;
}

.auth-modal-content {
  max-width: 450px;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid #e0e0e0;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 16px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
}

.auth-tab.active {
  color: #1a5490;
  border-bottom-color: #1a5490;
}

.auth-form {
  display: none;
}
.auth-form.active {
  display: block;
}

.auth-form h2 {
  font-size: 24px;
  color: #1a1a1a;
  margin-bottom: 25px;
  text-align: center;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
  font-family: inherit; /* Ensure font matches inputs */
}

.form-group textarea {
  resize: vertical; /* Allow only vertical resizing */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a5490;
}

.auth-submit-btn {
  width: 100%;
  padding: 14px;
  background: #1a5490;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.auth-submit-btn:hover {
  background: #145080;
}

.auth-divider {
  text-align: center;
  margin: 25px 0;
  position: relative;
}
.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e0e0e0;
}
.auth-divider span {
  background: white;
  padding: 0 15px;
  color: #999;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.google-login-btn {
  width: 100%;
  padding: 14px;
  background: white;
  color: #333;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.google-login-btn:hover {
  border-color: #1a5490;
  background: #f9f9f9;
}
.google-login-btn i {
  font-size: 18px;
  color: #4285f4;
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #666;
}
.auth-switch a {
  color: #1a5490;
  text-decoration: none;
  font-weight: 600;
}
.auth-switch a:hover {
  text-decoration: underline;
}

.pincode-modal-content {
  max-width: 400px;
}
.pincode-modal-content h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #333;
}

#locationResult {
  padding: 15px;
  background-color: #f0f7eb;
  border-radius: 8px;
  border-left: 4px solid #4caf50;
}

/* ========== FOOTER ========== */
footer {
  background-color: #c8e6c9;
  padding: 40px 0 0 0;
  margin-top: 50px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr; /* Changed to single column */
  gap: 40px;
  padding-bottom: 30px;
}

.footer-section h3 {
  color: #2e7d32;
  margin-bottom: 15px;
}

/* Updated footer category styles */
.footer-categories {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.footer-categories li {
  margin-bottom: 8px;
  color: #333;
  cursor: pointer;
  transition: color 0.2s;
  font-weight: 500;
}

.footer-categories li:hover {
  color: #1a5490;
  text-decoration: underline;
}

.footer-bottom {
  background-color: #000;
  color: white;
  text-align: center;
  padding: 15px 0;
}

/* ========== FORM PAGES ========== */
.form-container {
  padding: 30px 0;
}

.progress-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 30px;
  background: white;
  padding: 15px;
  border-radius: 8px;
}

.progress-tabs .tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  background: #f5f5f5;
  border-radius: 5px;
  font-weight: 500;
  color: #666;
}

.progress-tabs .tab.active {
  background: #1a5490;
  color: white;
}

.checkout-form {
  background: white;
  padding: 30px;
  border-radius: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: #1a5490;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: #145080;
}

.upload-btn {
  width: 100%;
  padding: 12px;
  background: #f0f7eb;
  color: #2e7d32;
  border: 2px dashed #4caf50;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 15px;
  transition: all 0.3s;
}

.upload-btn:hover {
  background: #e8f5e9;
}

.photo-preview {
  margin-top: 10px;
}

/* ========== CHECKOUT SUCCESS ========== */
.checkout-success {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.success-modal {
  background: white;
  padding: 60px 40px;
  border-radius: 16px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.success-icon {
  margin-bottom: 25px;
}

.success-modal h1 {
  font-size: 32px;
  margin-bottom: 15px;
}
.success-modal p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 30px;
}

.success-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 12px 30px;
  background: #1a5490;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #145080;
}

.btn-secondary {
  padding: 12px 30px;
  background: white;
  color: #1a5490;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid #1a5490;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #f0f5ff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
  }

  .search-bar {
    order: 3;
    width: 100%;
    max-width: 100%;
  }

  .nav-container {
    flex-direction: column;
  }
  .nav-dropdown {
    width: 100%;
    min-width: auto;
  }

  .nav-btn {
    justify-content: space-between;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav-dropdown:last-child .nav-btn {
    border-bottom: none;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.95);
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  .listing-tabs {
    flex-direction: column;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }

  .cart-sidebar {
    width: 100%;
    max-width: 100%;
  }

  .pincode-section {
    max-width: 120px;
    font-size: 12px;
  }
}
/* =================================================================
   FINAL "CLEAN & MODERN" SELLING PAGE DESIGN (Paste at Bottom)
   ================================================================= */

/* --- 1. Reset & Layout --- */
.checkout-form {
  background: transparent !important; /* Remove old white box */
  padding: 0 !important;
  box-shadow: none !important;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two distinct columns */
  gap: 30px;
  align-items: start;
}

/* --- 2. Fix the "Chonky" Top Bar (Make it text-only & elegant) --- */
.progress-tabs {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  margin-bottom: 30px !important;
  text-align: center;
}

.progress-tabs .tab {
  background: none !important; /* Remove background color */
  color: #9ca3af; /* Light grey for inactive */
  font-size: 16px;
  font-weight: 600;
  padding: 10px 20px;
  border: none !important;
  display: inline-block;
}

.progress-tabs .tab.active {
  color: #1a5490 !important; /* Blue text */
  background: transparent !important; /* Ensure no blue box */
  font-size: 24px; /* Larger, like a page title */
  border-bottom: 3px solid #1a5490 !important; /* clean underline */
  border-radius: 0 !important;
  padding-bottom: 8px;
  box-shadow: none !important;
}

/* --- 3. The "Floating Cards" Design --- */
.form-left,
.form-right {
  background: white;
  padding: 35px;
  border-radius: 16px; /* Smooth rounded corners */
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08); /* Premium soft shadow */
}

/* Section Headings inside cards */
.form-left h3,
.form-right h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f3f4f6;
  letter-spacing: -0.02em;
}

/* --- 4. Modern Input Fields --- */
.form-group {
  margin-bottom: 24px; /* More breathing room */
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280; /* Cool grey */
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background-color: #f9fafb; /* Very light grey background */
  border: 1px solid #e5e7eb;
  color: #1f2937;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  font-family: inherit;
  resize: vertical;
}

/* Focus State (The "Pop" effect) */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background-color: #fff;
  border-color: #1a5490;
  box-shadow: 0 0 0 4px rgba(26, 84, 144, 0.1); /* Blue glow ring */
  outline: none;
}

/* --- 5. Specific Field Tweaks --- */
#postcode {
  letter-spacing: 2px; /* Make pincode easier to read */
  font-weight: 700;
}

.form-group textarea {
  min-height: 100px;
  line-height: 1.6;
}

/* --- 6. Buttons --- */
/* Upload Button */
.upload-btn {
  background-color: #ecfdf5; /* Mint green tint */
  color: #059669; /* Green text */
  border: 2px dashed #6ee7b7;
  border-radius: 10px;
  padding: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 25px;
}

.upload-btn:hover {
  background-color: #d1fae5;
  transform: translateY(-1px);
}

/* Submit Button */
.submit-btn {
  background: linear-gradient(135deg, #1a5490 0%, #0d3866 100%);
  color: white;
  padding: 16px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(26, 84, 144, 0.3);
  transition: all 0.3s;
  border: none;
  width: 100%;
}

.submit-btn:hover {
  box-shadow: 0 6px 15px rgba(26, 84, 144, 0.4);
  transform: translateY(-2px);
}

/* --- 7. Mobile Responsiveness --- */
@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: 1fr; /* Stack vertically on tablet/mobile */
    gap: 20px;
  }

  .form-left,
  .form-right {
    padding: 24px;
  }

  .progress-tabs .tab.active {
    font-size: 20px;
  }
}
/* =========================================================
   SAFE HEADER NAVIGATION FIX (Paste at Bottom)
   ========================================================= */

/* 1. Target ONLY the nav that lives INSIDE the header (Selling Page) 
      The Homepage nav is OUTSIDE the header, so this won't touch it. */
header .main-nav .nav-container {
  gap: 50px !important; /* Increase space between Home/Buy/Sell */
}

/* 2. Style the links inside this specific nav */
header .main-nav .nav-container a {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  padding: 8px 16px;
  border-radius: 6px;
  transition:
    background 0.2s,
    color 0.2s;
}

header .main-nav .nav-container a:hover {
  background-color: #f0f5ff;
  color: #1a5490;
}

/* 3. Ensure the active page link looks distinct */
header .main-nav .nav-container a[href="selling.html"] {
  color: #1a5490;
  background-color: #eef2ff;
}

/* 4. Layout Adjustment: Only apply space-between if the header has NO search bar 
      (This is a trick to target the Selling page layout specifically) */
header .header-content:not(:has(.search-bar)) {
  justify-content: space-between;
}

/* =========================================================
   PHOTO PREVIEW GRID STYLES (Paste at Bottom)
   ========================================================= */

/* The Grid Container */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 15px;
  margin-bottom: 20px;
}

/* Individual Thumbnail */
.photo-preview-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1; /* Perfect Square */
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The 'Remove' (X) Button */
.remove-photo-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s;
}

.remove-photo-btn:hover {
  background: #e53935;
}
