/* General Layout */
body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
}

.product-container {
  display: flex;
  gap: 40px;
  padding: 40px 20px;
  width: 100%;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 20px;
  overflow: hidden;
  width: 75%;
}

.product-image {
  display: flex;
  gap: 10%;
  padding: 0px 20px;
}

.product-image img {
  max-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin: auto 0px;
  height: 200px;
  object-fit: contain;
}

.action-buttons {
  flex-direction: column;
  gap: 10%;
  display: flex;
  justify-content: center;
  width: 100%;
}

.product-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-align: center;
}

.product-button img {
  width: 18px;
  height: 18px;
}

.btn-kb {
  background-color: #3d59ab;
  margin-right: auto;
  color: white;
}

.btn-kb:hover {
  background-color: #1c43bb;
  color: white;
}

.btn-schedule {
  background-color: #ffd700;
  color: black;
}

.btn-schedule:hover {
  background-color: #e6c200;
}

.product-details {
  padding: 20px;
}

.product-name {
  font-size: 2.5rem;
  color: #333;
}

.product-description {
  /* font-size: 0.9rem; */
  color: #666;
  margin-top: 10px;
}

.product-details ul  li {
  list-style-type: disc !important
}

.product-details h2{
  font-size: 2rem;
}

.product-details h3{
  font-size: 1.5rem;
}

.product-details h4{
  font-size: 1.2rem;
}

.product-tags {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  background-color: #e0f7fa;
  color: #00796b;
  font-size: 0.85rem;
  padding: 5px 10px;
  border-radius: 16px;
}

.more-products-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #191971;
  text-decoration: underline;
}

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

.product-details-market-card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
  max-width: 300px;
}

.meeting-btn-div {
  display: flex;
  align-items: center;
  gap: 2%;
  justify-content: start;
}

.image-container {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

.product-info {
  padding: 5px 15px 0px 15px;
}

.product-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

.product-short-desc {
  font-size: 0.9rem;
  color: #666;
  margin: 10px 0;
  font-weight: lighter;
}

.product-price {
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-action {
  padding: 5px;
  text-align: center;
}

.btn-know-more {
  padding: 10px 10px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
  background-color: #3d59ab;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3sease;
  width: 40%;
  margin: 0px 0px 3% 3%;
}

.btn-know-more:hover {
  background-color: #1c43bb;
  color: #fff;
}

/* Dialog Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

/* Dialog Container */
.product-form-container {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Form Styles */
#referProductForm h5 {
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  color: #333;
  font-weight: 600;
}

/* Utility Classes */
.flex-row {
  display: flex;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.spacing-md {
  gap: 1rem;
}

.spacing-top-md {
  margin-top: 1rem;
}

/* Checkbox Container */
.checkbox-group {
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 6px;
}

.checkbox-group > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #007bff;
}

.checkbox-group label {
  margin: 0;
  cursor: pointer;
  font-size: 0.95rem;
  color: #555;
}

/* Form Labels */
#referProductForm label {
  display: inline-block;
  font-weight: 500;
  color: #333;
  font-size: 0.95rem;

}

/* Input Fields */
.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-input:required:invalid {
  border-color: #ddd;
}

/* Submit Button */
.submit-button {
  width: 100%;
  padding: 0.875rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
}

.submit-button:hover {
  background-color: #0056b3;
}

.submit-button:active {
  transform: scale(0.98);
}

/* Responsive Design */
@media (max-width: 576px) {
  .product-form-container {
    padding: 1.5rem;
    width: 95%;
  }

  .checkbox-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  #referProductForm h5 {
    font-size: 1.25rem;
  }
}

/* Hide dialog by default - add this class when you want to show it */
.modal-overlay.hidden {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-container {
    flex-direction: column;
  }

  .product-details-market-card{
    max-width: 100%;
  }

  .product-card {
    padding: 10px 0px;
    width: 100%;
  }

  .product-image {
    flex-direction: column;
  }

  .product-image img{
    max-width: 100%;
  }

  .action-buttons {
    height: 250px;
    gap: 10px;
  }

  .product-tags {
    flex-wrap: wrap;
  }

  .btn {
    width: 100%;
  }
}