/* Core Layout Resets */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: sans-serif;
  background-color: #fcfbfa;
}

/* Top Branded Banner */
.brand-banner {
  background-color: #3b5998;
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  box-sizing: border-box;
}

.logo-box {
  border: 1px solid white;
  padding: 5px 15px;
  letter-spacing: 3px;
  font-weight: bold;
}

.banner-title {
  font-size: 1.8rem;
  font-style: italic;
}

.banner-title .highlight {
  color: #ffff00;
  font-weight: bold;
  font-style: normal;
}

/* Three Column Layout: Sidebar | Form Panel | Product Catalog */
.main-container {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 60px);
}

/* Room Navigation Sidebar */
.room-sidebar {
  width: 180px;
  flex-shrink: 0;
  background-color: #22315c;
  padding: 20px 0;
  box-sizing: border-box;
}

.room-sidebar button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 20px;
  background: none;
  border: none;
  border-left: 4px solid transparent;
  color: #cfd8ea;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.room-sidebar button:hover {
  background-color: #2c3d6f;
  color: white;
}

.room-sidebar button.active {
  background-color: #3b5998;
  border-left-color: #ffff00;
  color: white;
  font-weight: bold;
}

.left-panel {
  width: 38%;
  padding: 20px;
  border-right: 1px solid #dcdcdc;
  background-color: #eaf6ff;
  overflow: visible;
  box-sizing: border-box;
}

.right-panel {
  width: 62%;
  padding: 20px;
  background-color: #fdfaf4;
  overflow: visible;
  box-sizing: border-box;
}

/* Utility Elements */
#room-preview img {
  display: block;
  width: 100%;
  border-radius: 4px;
  margin-bottom: 20px;
}

/* Dual Column Order Field Format Configuration */
.form-header {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 25px;
}

.form-column {
  width: 48%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  align-items: flex-end;
}

.label-text {
  font-size: 0.85rem;
  color: #333;
  min-width: 85px;
  padding-bottom: 2px;
}

.form-group input[type="text"] {
  flex-grow: 1;
  border: none;
  border-bottom: 1px solid #666;
  background: transparent;
  padding: 2px 4px;
  font-size: 0.85rem;
  outline: none;
}

.checkbox-group {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  margin-top: 5px;
  font-size: 0.8rem;
  padding-left: 85px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

/* Order List Header Flex Alignment & Heading Rules */
.order-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 8px;
}

.order-list-header h3 {
  margin: 0;
  font-size: 1rem;
  color: #222;
}

.order-list-buttons {
  display: flex;
  gap: 8px;
}

#reset-order-btn, #reset-cart-btn {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #b5b5b5;
  padding: 4px 12px;
  font-size: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#reset-order-btn:hover {
  background-color: #f5f5f5;
  border-color: #888888;
}

#reset-cart-btn {
  background-color: #fdecea;
  color: #a12b21;
  border-color: #e3a9a2;
}

#reset-cart-btn:hover {
  background-color: #f9d3ce;
  border-color: #c0392b;
}

/* Order List Layout Matrix Rules */
.order-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  font-size: 0.8rem;
  margin-bottom: 25px;
}

.order-table th {
  border-bottom: 1px solid #888;
  padding: 6px 4px;
  text-align: left;
  font-weight: normal;
  color: #444;
}

.order-table td {
  border-bottom: 1px dashed #ccc;
  padding: 8px 4px;
  height: 20px;
}

.order-table tfoot td {
  border: none;
  padding: 6px 4px;
  font-weight: bold;
  text-align: right;
}

.order-table tfoot tr:first-child td {
  padding-top: 15px;
}

.order-table tfoot .total-row td {
  font-size: 0.9rem;
  padding-top: 10px;
}

.remove-item-btn {
  background-color: #fdecea;
  color: #a12b21;
  border: 1px solid #e3a9a2;
  padding: 3px 8px;
  font-size: 0.7rem;
  border-radius: 3px;
  cursor: pointer;
}

.remove-item-btn:hover {
  background-color: #f9d3ce;
}

/* Form Actions Button Wrapper Container Layout */
.form-actions-container {
  display: flex;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
}

#confirm-quote-btn {
  width: 100%;
  background-color: #2e7d32;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease, transform 0.1s ease;
}

#confirm-quote-btn:hover {
  background-color: #1b5e20;
}

#confirm-quote-btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

/* Product Selection Panels Catalog Rules */
.category-block {
  margin-bottom: 35px;
}

.category-title {
  font-size: 1.2rem;
  color: #333;
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding-bottom: 5px;
  border-bottom: 1px solid #ddd;
}

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

.product-card {
  background: white;
  border: 1px solid #eae6df;
  padding: 15px;
  text-align: center;
  border-radius: 4px;
}

.product-card img {
  width: 100%;
  max-width: 110px;
  height: auto;
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 0.9rem;
  margin: 8px 0;
  color: #444;
}

.product-card p {
  font-size: 0.85rem;
  color: #777;
  margin: 5px 0;
}

.product-card button {
  background-color: #3b5998;
  color: white;
  border: none;
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 5px;
}

.product-card button:hover {
  background-color: #2d4373;
}
