.lbk-cpc-wrapper {
  max-width: 1100px;
  margin: auto;
  font-family: Arial, sans-serif;
}

.lbk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.lbk-box {
  border: 1px solid #ddd;
  padding: 20px;
  background: #fafafa;
}

.lbk-box h3 {
  margin-bottom: 15px;
  border-bottom: 2px solid #c62828;
  padding-bottom: 5px;
}

/* Thông tin cơ bản - 2 cột */
.lbk-basic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.lbk-basic-field {
  display: flex;
  flex-direction: column;
}

.lbk-basic-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.lbk-basic-field input,
.lbk-basic-field select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Thông tin chi tiết - 3 cột */
.lbk-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.lbk-details-field {
  display: flex;
  flex-direction: column;
}

.lbk-details-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.lbk-details-field select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Legacy styles for backward compatibility */
.lbk-box label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

.lbk-box input,
.lbk-box select {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  box-sizing: border-box;
}

.lbk-extra {
  margin: 20px 0;
  padding: 15px;
  border: 1px dashed #ccc;
}

.lbk-extra label {
  margin-right: 20px;
}

.lbk-btn {
  width: 100%;
  padding: 15px;
  background: #c62828;
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.lbk-btn:hover {
  background: #a91f1f;
}

#lbk-result {
  margin-top: 30px;
}

/* Result container */
.lbk-result-container {
  background: #fff;
  border: 2px solid #c62828;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.lbk-result-container h3 {
  color: #c62828;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 24px;
  border-bottom: 2px solid #c62828;
  padding-bottom: 10px;
}

.lbk-result-container h4 {
  color: #333;
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: 18px;
}

/* Result summary */
.lbk-result-summary {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.lbk-result-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 16px;
}

.lbk-result-row:last-child {
  border-bottom: none;
}

.lbk-result-row span {
  color: #666;
}

.lbk-result-row strong {
  color: #333;
  font-size: 16px;
}

.lbk-result-total {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  margin-top: 15px;
  border-top: 2px solid #c62828;
  font-size: 20px;
  font-weight: bold;
}

.lbk-result-total span {
  color: #c62828;
}

.lbk-result-total strong {
  color: #c62828;
  font-size: 24px;
}

/* Result details table */
.lbk-result-details {
  margin-top: 25px;
}

.lbk-details-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: #fff;
  border: 1px solid #ddd;
}

.lbk-details-table thead {
  background: #c62828;
  color: #fff;
}

.lbk-details-table th {
  padding: 15px 12px;
  text-align: left;
  font-weight: bold;
  border: 1px solid #b71c1c;
}

.lbk-details-table td {
  padding: 12px;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.lbk-details-table tbody tr:hover {
  background: #f9f9f9;
}

.lbk-details-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.lbk-details-table tbody tr:nth-child(even):hover {
  background: #f5f5f5;
}

/* Unit price row */
.lbk-details-table .lbk-unit-price-row {
  background: #fff3e0;
  font-weight: bold;
}

.lbk-details-table .lbk-unit-price-row td {
  border-top: 2px solid #c62828;
  border-bottom: 2px solid #c62828;
}

/* Total rows */
.lbk-details-table .lbk-total-row {
  background: #e8f5e9;
  font-weight: bold;
}

.lbk-details-table .lbk-total-row td {
  border-top: 2px solid #4caf50;
  border-bottom: 1px solid #4caf50;
}

.lbk-details-table .lbk-total-amount-row {
  background: #c62828;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
}

.lbk-details-table .lbk-total-amount-row td {
  border-top: 2px solid #b71c1c;
  padding: 15px 12px;
}

/* Loading and error states */
.lbk-loading {
  text-align: center;
  padding: 30px;
  color: #666;
  font-size: 18px;
}

.lbk-error {
  background: #ffebee;
  border: 1px solid #f44336;
  color: #c62828;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  .lbk-grid {
    grid-template-columns: 1fr;
  }
  
  .lbk-basic-grid {
    grid-template-columns: 1fr;
  }
  
  .lbk-details-grid {
    grid-template-columns: 1fr;
  }
  
  .lbk-result-row,
  .lbk-result-total {
    flex-direction: column;
    gap: 5px;
  }
  
  .lbk-details-table {
    font-size: 14px;
  }
  
  .lbk-details-table th,
  .lbk-details-table td {
    padding: 8px;
  }
}

@media (max-width: 992px) and (min-width: 769px) {
  .lbk-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}