.project-details-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}
.project_title {
    margin-top: 0px;
    font-weight: 600;
    text-transform: capitalize;
    text-decoration: underline;
    text-decoration-color: #b19777;
}
.back-to-dashboard-btn {
    display: inline-block;
    padding: 10px 18px;
    background-color: #333; /* Main background */
    color: #fff; /* Text color */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}
.back-to-dashboard-btn:hover {
    background-color: #555; /* Slightly lighter on hover */
    transform: translateY(-2px); /* Lift effect */
}
.back-to-dashboard-btn:active {
    transform: translateY(0); /* Reset on click */
}
#uploadImageBtn {
    background-color: #7b6b52;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}
#uploadImageBtn:hover {
    background-color: #5c4d3a;
}
.room-block {
    border: 1px solid #ccc;
    padding: 20px;
    margin-bottom: 35px;
    border-radius: 6px;
    background-color: #fafafa;
}
.room-image-preview {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}
.room-type-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.room-type-options label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f9f9f9;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 14px;
  border: 1px solid #ddd;
}

.room-block label {
    font-weight: 600;
    display: block;
    margin-top: 20px;
    color: #b19777;
    font-size: 16px;
    margin-bottom: 0px !important;
}
.room-block select,
.room-block textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
span.design-links {
    float: right;
    color: #b19777;
    text-decoration: underline;
    font-weight: 600;
}
.room-block .service-checkbox {
    margin-right: 8px;
    margin-top: 8px;
}
.remove-room-btn {
    background-color: #c0392b;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    float: right;
    margin-bottom: 10px;
}
.remove-room-btn:hover {
    background-color: #992d22;
}
.room-block strong,
#grandTotalWrapper strong {
    display: block;
    margin-top: 15px;
    font-size: 18px;
    color: #333;
}
#grandTotalWrapper {
    margin-top: 30px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 6px;
    text-align: right;
    font-size: 20px;
    font-weight: bold;
}
.action-buttons {
    margin-top: 30px;
    text-align: right;
}
.action-buttons .button {
    background-color: #7b6b52;
    color: #fff;
    padding: 12px 22px;
    margin-left: 10px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
}
.action-buttons .button-primary {
    background-color: #3c8dbc;
}
.action-buttons .button:hover {
    opacity: 0.9;
}
ul#selectedServiceList {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 50px;
}
ul#selectedServiceList li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #fdfdfd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  transition: background 0.3s;
}
ul#selectedServiceList li:hover {
  background-color: #f8f8f8;
}
.add-room-wrapper {
  background: #333;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.2s;
}
.add-room-wrapper:hover {
  background-color: #555;
}
.room-block {
  border: 1px solid #ddd;
  padding: 16px;
  border-radius: 6px;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}
.room-block label {
  font-weight: 600;
  margin-top: 10px;
  display: block;
}
.room-block textarea,
.room-block select,
.room-block input[type="file"] {
  width: 100%;
  margin-top: 4px;
  margin-bottom: 10px;
}
.image-preview img {
  border-radius: 4px;
}
.project-info-and-services {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.project-description {
  flex: 1 1 60%;
}
.selected-services-section {
  flex: 1 1 35%;
}
#saveRoomPanelsBtn {
  background-color: #7b6b52;
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 30px;
}
#saveRoomPanelsBtn:hover {
  background-color: #5a4a34;
}

.remove-room-panel {
  background-color: #d9534f;
  border: none;
  color: white;
  border-radius: 4px;
  padding: 4px 10px;
  font-weight: bold;
  float: right;
  cursor: pointer;
}
.remove-room-panel:hover {
  background-color: #c9302c;
}
.room-block-inner.collapsed .room-content {
    display: none;
}
.toggle-room-content {
    background: none;
    border: 1px solid;
    color: #7b6b52;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-right: 6px;
    padding: 4px 8px;
    border-radius: 4px;
}
.room-block-inner.collapsed .toggle-room-content {
    transform: rotate(-90deg);
}
.hidden {
  display: none;
}
.service-panel {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.furniture-replacement-fields label {
  display: block;
  margin: 10px 0 5px;
}
.furniture-replacement-fields select,
.furniture-replacement-fields textarea,
.furniture-replacement-fields input[type="file"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.image-preview img {
  max-width: 100%;
  max-height: 200px;
  margin-top: 10px;
}
#roomSaveLoader {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#roomSaveLoader .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #fff;
  border-top: 4px solid #999;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* Interior Rendering Room Panel Enhancements */
.room-block .room-content {
  padding: 15px;
  border-top: 1px solid #ddd;
  margin-top: 10px;
}

.room-block label {
  display: block;
  font-weight: 700;
  margin: 12px 0 6px;
  font-size: 14px;
  color: #b22222;
}

.room-block input[type="text"],
.room-block input[type="number"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.image-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.checkbox-image-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 110px;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.checkbox-image-option:hover {
  border-color: #ccc;
}

.checkbox-image-option input[type="radio"] {
  display: none;
}

.checkbox-image-option img {
  width: 100%;
  height: auto;
  max-width: 100px;
  border-radius: 4px;
}

.checkbox-image-option span {
  margin-top: 6px;
  font-size: 13px;
  color: #333;
}

/* Highlight selected radio */
.checkbox-image-option input[type="radio"]:checked + img,
.checkbox-image-option input[type="radio"]:checked ~ span {
  outline: 2px solid #007cba;
  border-radius: 4px;
}

.room-block-inner {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #fafafa;
  padding: 12px;
  margin-bottom: 20px;
}

.room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f2f2f2;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: bold;
}
/* Renovation options container */
.renovation-options {
  display: flex;
  gap: 30px;
  margin-top: 0px;
}

/* Each column */
.renovation-column {
  flex: 1;
}

.renovation-column h4 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #b22222;
margin-top:12px;
}

.renovation-column label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #222;
    font-weight: 600;
}

@media (max-width: 768px) {
  ul#selectedServiceList {
    flex-direction: column;
  }
  ul#selectedServiceList li {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .add-room-wrapper {
    align-self: flex-end;
  }
  .room-block {
    padding: 14px;
  }
  .room-block label,
  .room-block textarea,
  .room-block select {
    font-size: 14px;
  }
}