@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
  }

  main > section:nth-last-of-type(1) {
    padding-bottom: 50px;
}
  
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    transition: transform 0.3s ease;
  }
  
  header.hidden {
    transform: translateY(-100%);
  }
  
  .nav-links {
    display: flex;
    margin-left: auto;
    list-style: none;
    overflow: hidden;
  }
  
  .nav-links a {
    text-decoration: none;
    color: #6a9ef7;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    padding: 37px 20px;
    flex-shrink: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .nav-links a:hover, .nav-links a.active {
    background-color: #e9eef7;
    color: #004aad;
  }
  
  body {
    margin-top: 100px;
  }
  
  .upper-hover-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    z-index: 999;
  }
  
  .logo img {  
    height: 140px;  
    padding: 30px;
}  

/* Request Title and Detail Section */
.request {
    padding: 20px;
  }
  
  .request {
    padding: 20px;
  }
  
  .request-title {
    font-size: 48px;
    color: #000;
    margin-bottom: 10px;
    text-align: left;  
    display: inline-block; 
    position: relative; 
  }
  
  .request-title::after {
    content: '';
    position: absolute;
    bottom: -5px; 
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000; 
  }
  
  .request-description {
    font-size: 16px;
    color: #000; 
    text-align: left; 
    line-height: 1.6;
  }
  

/* Select And Form To Request Section */
.select-request-section {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  background-color: #f5f5f5;
  gap: 20px;
}

.product-selection {
  flex: 3;
}

.sorting-options {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.sort-button {
    padding: 10px 15px;
    background-color: #add8e6;
    color: #000;
    border: 1px solid #add8e6;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .sort-button.active {
    background-color: #4682b4;
    color: #fff;
    border-color: #4682b4;
  }
  
  .sort-button:hover {
    background-color: #4682b4; 
    border-color: #4682b4;
  }

  .search-bar {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-left: auto; 
  }

.card-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.card {
  display: flex; 
  align-items: center;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 100%;
  height: auto;
  padding: 10px;
  gap: 15px; 
}

.card:hover {
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.card-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0; 
}

.card-details {
  flex: 1; 
  padding: 10px 15px;
}

.card-details h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.card-details p {
  font-size: 14px;
  color: #666;
}

.card-checkbox {
    display: block;
    margin: 10px auto; 
    width: 20px; 
    height: 20px; 
  }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
  }
  
  .pagination-button {
    padding: 10px 15px;
    background-color: #add8e6;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .pagination-button:hover {
    background-color: #4682b4;
  }
  
  .pagination-button.active {
    background-color: #4682b4;
    cursor: default;
  }  

.quote-form {
  flex: 1;
  background-color: #112760;
  border: 1px solid #112760;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.quote-form h2 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 20px;
    text-align: center; 
    position: relative; 
  }
  
  .quote-form h2::after {
    content: '';
    position: absolute;
    bottom: -5px; 
    left: 50%;
    transform: translateX(-50%); 
    width: 80%; 
    height: 2px;
    background-color: #fff; 
  }

.quote-form label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
  color: #fff;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #fff;
  border-radius: 5px;
}

.quote-form textarea {
  resize: none;
  height: 100px;
}

.quote-form form {
    display: block;
  }

.submit-button {
  display: block; 
  margin: 20px auto; 
  padding: 10px 20px;
  background-color: #000;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  }
  
  .submit-button:hover {
    background-color: #999;
    color: #000;
  }

.card[data-category="product"] {
  border: 2px solid #007bff; 
}

.card[data-category="product"] .card-details h3 {
  color: #007bff; 
}

.card[data-category="service"] {
  border: 2px solid #28a745; 
}

.card[data-category="service"] .card-image {
  filter: grayscale(50%); 
}

.card[data-category="service"] .card-details h3 {
  color: #28a745; 
}


.required {
  font-weight: bold;
  display: inline-block;
}

span.required {
  color: #ff6b6b;
}

/* Footer */  
footer {  
    padding: 10px;  
    margin: 0;  
    background-color: white;  
    color: black;  
}  

footer .footer-content {  
    display: flex;  
    justify-content: space-between;  
    align-items: center;  
}  

footer .social-icons {  
    display: flex;  
}   

footer .social-icons img {  
    width: 36px;  
    height: 36px;  
    margin: 0 5px;  
}