@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500;700;900&display=swap");

.configurator {
  display: block;
  max-width: 500px;
  margin: 0 auto;
}
.configurator input,
.configurator button {
  font-family: "Montserrat", sans-serif;
  outline: 0;
}
.configurator .config-message {
  background: black;
  padding: 10px;
  margin-top: 10px;
  color: white;
  font-size: 14px;
}
.configurator .config-message.red {
  background: red;
}
.configurator .config-message.green {
  background: green;
}
.configurator .block {
  background: #eee;
  padding: 20px;
  margin: 10px 0;
}
.configurator .block .name {
  font-weight: bold;
}
.configurator .block .inner-block {
  background: #e0dfdf;
  padding: 10px;
  margin: 10px 0;
}
.configurator .block .inner-block .item-name {
  font-size: 20px;
  margin: 0 0 10px 0;
}
.configurator .block .measurements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 16px;
}
.configurator .block .measurements div {
  display: block;
  align-items: center;
}
.configurator .block .measurements div label {
  display: block;
  margin: 5px 5px 5px 0;
}
.configurator .block .measurements div .input-container {
  display: block;
  position: relative;
  background: white;
  padding: 10px;
}
.configurator .block .measurements div .input-container input {
  background: transparent;
  border: 0;
  width: calc(100% - 30px);
  outline: 0;
  margin: 0;
  padding: 0;
  font-size: 20px;
  font-weight: bold;
}
.configurator .block .measurements div .input-container span {
  position: absolute;
  right: 10px;
  line-height: 25px;
}
.configurator .block.full .measurements {
  grid-template-columns: 1fr;
}
.configurator .block .choose {
  display: block;
  margin: 10px 10px 10px 0;
}
.configurator .block .choose.number div {
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 20px;
}
.configurator .block .choose div {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  font-size: 12px;
  margin: 3px;
  padding: 5px 10px;
  border: 1px solid #d4d2d2;
  border-radius: 5px;
  cursor: pointer;
}
.configurator .block .choose div:hover {
  transform: scale(0.95);
}
.configurator .block .choose div.active {
  background: black;
  color: white;
}
.configurator .totals {
  border-top: 1px solid black;
  font-size: 20px;
  text-align: right;
  margin-top: 20px;
  padding-top: 20px;
}
.configurator .totals span {
  font-size: 50px;
  font-weight: bold;
}
.configurator .totals small {
  font-size: 14px;
  display: block;
}
.configurator button {
  background: black;
  border: 0;
  border-radius: 10px;
  font-size: 20px;
  color: white;
  padding: 10px 30px;
  margin: 10px auto;
  display: block;
  cursor: pointer;
}
.configurator button:hover {
  transform: scale(0.95);
}

/* Additional CSS for calculator functionality */
/* Add this to your existing style.css or include as a separate file */
/* Hide error message by default */
.config-message {
  display: none;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.config-message.red {
  background-color: #fee;
  border: 1px solid #fcc;
}

/* Cursor pointer for clickable elements */
.choose > div {
  cursor: pointer;
  transition: all 0.3s ease;
}

.choose > div:hover {
  opacity: 0.8;
}

/* Active state - you may already have this */
.choose > div.active {
  background-color: #007bff;
  color: white;
}

/* Input container styling */
.input-container {
  position: relative;
  display: inline-block;
}

.input-container span {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
}

/* Label styling */
.measurements label {
  display: block;
  margin-bottom: 5px;
  color: #000;
  font-size: 14px;
}

/* Block transitions */
.block {
  transition: all 0.3s ease;
}

/* Inner block spacing */
.inner-block {
  margin-top: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.inner-block .item-name {
  font-weight: bold;
  margin-bottom: 10px;
  color: #000;
}

/* Total styling */
.totals {
  font-size: 24px;
  font-weight: bold;
  margin: 30px 0;
  text-align: center;
}

.totals span {
  color: #28a745;
}

/* Button styling */
button {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover:not(:disabled) {
  opacity: 0.9;
}

button:disabled {
  background-color: #ccc !important;
  cursor: not-allowed !important;
  opacity: 0.5 !important;
}

/* Item error messages */
.item-error {
  color: #c33;
  background-color: #fee;
  border: 1px solid #fcc;
  padding: 8px 12px;
  margin-top: 10px;
  border-radius: 4px;
  font-size: 14px;
}

/* Responsive inputs */
input {
  width: 100%;
  box-sizing: border-box;
}

/* Invalid input styling */
input:invalid {
  border-color: #c33;
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Modal content */
.modal-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #000;
}

/* Customer form */
.customer-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #007bff;
}

/* Form actions */
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.form-actions button {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel {
  background-color: #6c757d;
  color: white;
}

.btn-cancel:hover {
  background-color: #545b62;
}

.btn-submit {
  background-color: #28a745;
  color: white;
}

.btn-submit:hover {
  background-color: #218838;
}

.btn-submit:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

/* Success message */
.success-message {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.success-content {
  background: white;
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  max-width: 500px;
  width: 90%;
}

.success-content h2 {
  color: #28a745;
  margin-bottom: 20px;
}

.success-content p {
  margin-bottom: 15px;
  color: #555;
}

.success-content strong {
  color: #000;
  font-size: 20px;
}

.success-content button {
  width: auto;
  padding: 10px 30px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  margin-top: 20px;
}

.success-content button:hover {
  background-color: #0056b3;
}/*# sourceMappingURL=style.css.map */