body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background-color: #f9f9f9;
	margin: 0;
	padding: 0;
	line-height: 1.6;
	display: flex;
	flex-direction: column;
	min-height: 100vh
}

.container {
	max-width: 900px;
	margin: 0 auto;
	padding: 20px;
	flex: 1
}

.quote_form {
	background-color: #fff;
	padding: 20px;
	border-radius: 5px
}

.form-group {
	margin-bottom: 15px
}

.form-group p {
	margin-bottom: 10px
}

.form-group p,
label {
	display: block;
	font-weight: 700;
	margin-top: 0;
	margin-bottom: 10px
}

.explanation {
	font-weight: 400;
	color: #666;
	padding-bottom: 10px;
	font-size: .9rem;
	line-height: 1.4
}

.explanation_slider {
	font-weight: 400;
	color: #666;
	margin-top: 5px;
	margin-bottom: 15px;
	padding-top: 20px;
	font-size: .9rem;
	line-height: 1.4
}

input[type=email],
input[type=number],
input[type=text],
select,
textarea {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	width: calc(100% - 22px);
	padding: 8px;
	font-size: 14px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box
}

textarea {
	height: 100px;
	resize: none
}

.button-container {
	text-align: center;
	margin-top: 20px
}

button {
	background-color: #4caf50;
	color: #fff;
	padding: 10px 20px;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	font-size: 16px;
	transition: background-color .3s, box-shadow .3s;
	box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
	text-decoration: none
}

button:hover {
	background-color: #45a049;
	box-shadow: 0 6px 8px rgba(0, 0, 0, .15)
}

.remove {
	background-color: #f44336;
	margin-top: 22px;
	padding: 5px 10px;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	font-size: 16px;
	transition: background-color .3s, box-shadow .3s;
	box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
	font-weight: 700
}

.remove:hover {
	background-color: #d32f2f;
	box-shadow: 0 6px 8px rgba(0, 0, 0, .15)
}

.remove_spacer {
	background-color: #fff;
	margin-top: 22px;
	padding: 5px 10px;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	box-shadow: 0 0 0 #fff;
	font-weight: 700
}

.remove_spacer:hover {
	background-color: #fff;
	box-shadow: 0 0 0 #fff;
	cursor: default
}

.back {
	background-color: #f44336;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	padding: 10px 20px;
	font-size: 16px;
	transition: background-color .3s, box-shadow .3s;
	box-shadow: 0 4px 6px rgba(0, 0, 0, .1)
}

.back:hover {
	background-color: #d32f2f;
	box-shadow: 0 6px 8px rgba(0, 0, 0, .15)
}

.door-fields,
.drawer-fields {
	display: flex;
	align-items: center;
	position: relative
}

@media only screen and (max-width:405px) {

	.door-fields,
	.drawer-fields {
		font-size: 14px
	}

	.remove {
		margin-top: 18px;
		font-size: 14px
	}

	.remove_spacer {
		margin-top: 18px;
		font-size: 14px
	}
}

@media only screen and (max-width:371px) {

	.door-fields,
	.drawer-fields {
		font-size: 12px
	}

	.remove {
		margin-top: 16px;
		font-size: 12px
	}

	.remove_spacer {
		margin-top: 16px;
		font-size: 12px
	}
}

@media only screen and (max-width:338px) {

	.door-fields,
	.drawer-fields {
		font-size: 11px
	}

	.remove {
		margin-top: 15px;
		font-size: 11px
	}

	.remove_spacer {
		margin-top: 15px;
		font-size: 11px
	}
}

.door-fields .form-group,
.drawer-fields .form-group {
	flex: 1;
	margin-right: 10px
}

.door-fields .form-group:nth-last-child(2),
.drawer-fields .form-group:nth-last-child(2) {
	margin-right: 0;
	flex: .5
}

.door-fields .form-group:last-child,
.drawer-fields .form-group:last-child {
	margin-right: 0;
	flex: .25;
	align-self: center;
	margin-bottom: 0;
	display: flex;
	justify-content: left;
	align-items: center;
	height: 100%
}

.door h3,
.drawer h3 {
	margin: 0;
	font-size: 16px;
	text-decoration: underline
}

.section {
	display: none
}

.section.active {
	display: block
}

.tile-screen {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
	margin-bottom: 15px;
	margin-top: 15px
}

.selection-tile,
.wood-tile {
	width: 200px;
	height: 200px;
	border: 2px solid #ccc;
	border-radius: 5px;
	overflow: hidden;
	cursor: pointer;
	transition: transform .3s, border-color .3s, background-color .3s;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center
}

.wood-tile img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	margin-top: 0
}

.selection-tile img {
	width: 100%;
	height: 150px;
	object-fit: contain
}

.wood-tile p {
	margin: 0;
	padding: 5px;
	text-align: center;
	font-weight: 700
}

.selection-tile p {
	margin: 0;
	padding: 10px 0;
	font-weight: 700;
	width: 100%;
	background-color: #fff;
	box-sizing: border-box;
	flex-shrink: 0
}

.wood-tile.selected {
	border-color: #4caf50;
	background-color: #e8f5e9;
	transform: scale(1.05)
}

.selection-tile:hover,
.wood-tile:hover {
	transform: scale(1.05);
	border-color: #4caf50
}

@media (max-width:600px) {

	.selection-tile,
	.wood-tile {
		width: calc(50% - 20px);
		height: 150px
	}

	.selection-tile img,
	.wood-tile img {
		height: 100px
	}
}

.slider-container {
	display: flex;
	align-items: center;
	margin-top: 10px;
	position: relative
}

.slider-label {
	display: block;
	margin-bottom: -10px;
	font-weight: 700
}

.slider-wrapper {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 20px
}

input[type=range] {
	width: 100%;
	margin: 0
}

.input-wrapper {
	display: flex;
	align-items: center;
	margin-left: 20px
}

input[type=text].slider-input {
	width: 65px;
	padding-right: 0;
	height: 32px
}

.slider-values {
	display: flex;
	justify-content: space-between;
	width: 100%;
	margin-top: -20px
}

.slider-values span {
	font-size: .9rem
}

.summary-section h2 {
	font-size: 1.8rem;
	color: #333;
	text-align: center;
	margin-bottom: 20px;
	margin-top: 0
}

.summary-section .summary-container {
	background-color: #fff;
	padding: 20px;
	border-radius: 10px;
	margin-bottom: 20px;
	box-sizing: border-box
}

.summary-section .summary-item {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
	width: 100%;
	box-sizing: border-box;
	flex-wrap: wrap
}

.summary-section .summary-item:last-child {
	border-bottom: none
}

.summary-section .summary-label {
	font-weight: 700;
	color: #555;
	flex: 0 0 150px;
	text-align: left;
	box-sizing: border-box
}

.summary-section .summary-value-container {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 100%;
	box-sizing: border-box
}

.summary-section .summary-value {
	flex: 1;
	text-align: center;
	color: #333;
	background-color: #f0f0f0;
	padding: 5px 10px;
	border-radius: 5px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100px
}

.summary-section .edit-input-container {
	display: flex;
	align-items: center;
	width: 100%
}

.summary-section .edit-input {
	margin-right: 0;
	padding: 5px;
	padding-top: 3px;
	padding-bottom: 3px;
	font-size: 1rem;
	border: 1px solid #ccc;
	border-radius: 5px;
	width: 100%;
	box-sizing: border-box;
	text-align: center
}

.summary-section .summary-value-container .edit-input {
	max-width: 100px
}

.summary-section .estimated-price-container {
	margin-top: 20px
}

.summary-section .estimated-price {
	font-size: 1.5rem;
	font-weight: 700;
	text-align: center;
	color: #333;
	margin-top: 10px
}

.summary-section .button-container {
	margin-top: 20px
}

.summary-section .door-drawer-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 5px
}

.summary-section .door-drawer-label span {
	flex: 1;
	text-align: center;
	font-weight: 700;
	color: #555
}

.summary-section .summary-value-label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: 0;
	width: 100%
}

.summary-section .summary-value-label span {
	flex: none;
	width: 80px;
	text-align: left
}

.summary-section .summary-item .remove {
	align-self: center;
	margin-left: 10px;
	margin-right: 10px;
	margin-top: 0
}

.edit-button,
.save-button {
	display: inline-block;
	width: 60px;
	height: 40px;
	padding: 0;
	background-color: #007bff;
	color: #fff;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 16px;
	text-align: center;
	transition: background-color .3s, box-shadow .3s;
	box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
	margin-left: 10px
}

.save-button {
	background-color: #4caf50
}

.edit-button:hover,
.save-button:hover {
	background-color: #0056b3;
	box-shadow: 0 6px 8px rgba(0, 0, 0, .15)
}

.save-button:hover {
	background-color: #45a049
}

@media (max-width:800px) {
	.remove {
		margin-bottom: 5px;
		border-radius: 5px
	}

	.summary-section .summary-item {
		flex-direction: column;
		display: flex;
		justify-content: flex-start;
		flex-wrap: nowrap
	}

	.summary-section .summary-label {
		flex: 0 1 auto
	}

	.summary-section .summary-value-container {
		flex-direction: column;
		width: 100%;
		align-items: normal;
		flex: 0 1 auto
	}

	.summary-section .summary-value {
		min-height: 40px
	}

	.summary-section .summary-value-label {
		box-sizing: border-box;
		justify-content: space-between
	}

	.summary-section .summary-value-label>div:first-child {
		flex: none;
		width: 80px;
		text-align: left
	}

	.edit-button,
	.save-button {
		margin-top: 0
	}

	.summary-item .remove {
		margin-bottom: 0
	}

	.summary-value-container .edit-button,
	.summary-value-container .save-button {
		margin-top: -5px
	}

	@media (max-width:800px) {
		.summary-section .summary-item {
			flex-direction: column
		}

		.summary-section .summary-value-container {
			flex-direction: column;
			align-items: stretch
		}

		.summary-section .summary-value-label {
			flex-direction: row;
			justify-content: space-between
		}

		.summary-section .summary-value {
			width: 100%;
			text-align: left
		}

		.edit-button,
		.remove,
		.save-button {
			width: 100%;
			margin: 5px 0
		}
	}

	@media (max-width:800px) and (min-width:601px) {

		#summaryDoorsContainer,
		#summaryDrawersContainer {
			display: flex;
			flex-wrap: wrap;
			gap: 20px
		}

		.summary-item {
			flex: 1 1 calc(50% - 20px)
		}
	}

	@media (max-width:600px) {
		.summary-item {
			flex: 1 1 100%
		}

		.summary-section .summary-value-container .edit-input {
			max-width: 100%
		}
	}
}

#sectionSummaryBoth h3 {
	margin-bottom: 0;
}

@media (min-width: 801px) {
	#sectionSummaryBoth .summary-item:nth-of-type(3) .summary-label {
			font-size: small;
	}
}

#addDoorButtonBoth {
	margin-bottom: 10px;
}

/* Tooltip CSS */
.tooltip-icon {
  display: inline-block;
  margin-left: 5px;
  margin-right: 2px;
  color: #fff;
  font-size: 16px;
  width: 20px; /* Adjust width */
  height: 20px; /* Adjust height */
  border-radius: 50%; /* Create a circle */
  background-color: #666; /* Darker grey circle background */
  text-align: center;
  line-height: 20px; /* Center the question mark vertically */
  cursor: pointer;
}

.tooltip-icon:hover {
  background-color: #444; /* Even darker grey on hover */
}

.tooltip-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  color: #333;
  border-radius: 4px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1;
  border: 1px solid #ccc; /* Add border */
  opacity: 0; /* Initial opacity for fade-in effect */
  transition: opacity 0.1s ease-in-out; /* Add transition for opacity */
}

.tooltip-grid {
  display: flex;
  align-items: center;
}

.tooltip-grid p {
  margin: 0;
  flex: 1;
  max-width: 300px;
}

.tooltip-grid img {
  width: 300px; /* Adjust image width as needed */
}

.tooltip-content p {
margin: 0;
}

/* Media query for mobile devices */
@media screen and (max-width: 768px) {
  .tooltip-grid {
    display: flex;
    flex-direction: column; /* Change to column layout */
    align-items: flex-start; /* Align items to the start (left) */
  }

  .tooltip-grid img {
    width: 100%; /* Adjust image width to fit the column */
  }
  
  .tooltip-content {
    margin-right: 20px;
  }

  .tooltip-grid p {
    text-align: left; /* Align text to the left */
    margin: 0; /* Reset margin to ensure alignment */
    padding-bottom: 10px;
    max-width: 100%;
  }
}