.cw-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.cw-navbar .logo {
  font-weight: 700;
  text-decoration: none;
  color: #111;
}

.nav-center {
  position: relative;
}

#calculatorSearch {
  width: 260px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.search-results {
  position: absolute;
  top: 38px;
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  z-index: 999;
}

.search-item {
  padding: 8px 10px;
  cursor: pointer;
}

.search-item:hover {
  background: #f3f4f6;
}

.nav-right a {
  margin-left: 16px;
  text-decoration: none;
  color: #333;
}

.cw-footer {
  border-top: 1px solid #e5e7eb;
  padding: 2px 2px;
  background: #fff;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #555;
}

.footer-links a {
  margin-left: 16px;
  text-decoration: none;
  color: #555;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .footer-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-links a {
    margin: 0 8px;
  }
}

/* ===== Page Layout ===== */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.page-container {
  flex: 1;
  max-width: 800px;
  margin: 40px auto;
  padding: 0 16px;
}

.page-container h1 {
  margin-bottom: 10px;
}

/* ===== Support Form ===== */
.support-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-form input,
.support-form textarea {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.support-form textarea {
  min-height: 120px;
  resize: vertical;
}

.support-form button {
  width: 120px;
  padding: 10px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.support-form button:hover {
  background: #1e40af;
}

@media (max-width: 768px) {

  .navbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }

  .navbar-left,
  .navbar-center,
  .navbar-right {
    width: 100%;
    justify-content: center;
  }

  .navbar .search-container {
    width: 100%;
  }

  .navbar input[type="search"],
  .navbar input[type="text"] {
    width: 100%;
    max-width: 100%;
  }

  .navbar-right {
    justify-content: center;
    gap: 12px;
  }
}

/* =========================
   Calcwise Mobile Navbar Fix
   ========================= */
@media (max-width: 768px) {

  .cw-navbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
  }

  .cw-navbar .nav-left,
  .cw-navbar .nav-center,
  .cw-navbar .nav-right {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  /* Logo */
  .cw-navbar .nav-left {
    justify-content: center;
  }

  /* Search */
  .cw-navbar .nav-center {
    position: relative;
  }

  #calculatorSearch {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .search-results {
    width: 100%;
    left: 0;
    right: 0;
  }

  /* Nav links */
  .cw-navbar .nav-right {
    justify-content: center;
    gap: 16px;
  }
}

