.in-konfigurator .sidebar {
  display: none;
}
.in-konfigurator h2 {
  color: #333;
}
.in-konfigurator .configurator-intro {
  max-width: 760px;
  margin: 0 0 24px;
  color: #333;
  font-size: 18px;
  line-height: 1.55;
}
#multiStepForm label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 17px;
}
#multiStepForm select {
  display: grid;
  min-width: -webkit-fill-available;
}
#multiStepForm select, input[type="number"], #multiStepForm input[type="text"], textarea, #email {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 4px;
  border: 1px solid #ddd;
}
#multiStepForm input[type="submit"] {
  background-color: #5cb85c;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  float: right;
}
#multiStepForm input[type="submit"]:hover {
  background-color: #4cae4c;
}
#multiStepForm .next-step, .previous-step {
  float: right;
}
#multiStepForm .previous-step {
  float: left;
  background-color: #6c757d;
}
#multiStepForm img {
  display: block;
  text-align: center;
  display: block;
  margin: 0 auto 15px;
}
.in-konfigurator .form-step.active-step {
  display: grid;
}
#step5 span {
  margin-right: 50px;
  font-weight: 400
}
@media only screen and (max-width: 768px) {
  #step5 span {
    margin-right: 20px;
  }
}
.in-konfigurator .info {
  display: block;
  margin-top: 75px;
}
.in-konfigurator .link-to {
  text-align: center;
  margin-bottom: 15px
}
.in-konfigurator .link-to a:hover {
  text-decoration: underline;
}
#multiStepForm button {
  background-color: #DEB887;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
#multiStepForm button:hover {
  background-color: #CD853F;
}
#multiStepForm input[type="number"]:hover, #multiStepForm input[type="text"]:hover, #multiStepForm textarea:hover {
  border-color: #bcbcbc;
}
#multiStepForm input[type="number"]:focus, #multiStepForm input[type="text"]:focus, #multiStepForm textarea:focus {
  border-color: #5cb85c;
  outline: none;
}
.in-konfigurator .form-step .selected {
  border: 1px solid #DEB887; /* Příklad zvýraznění */
}
.in-konfigurator img[role="button"] {
  cursor: pointer;
}
.in-konfigurator img[role="button"]:focus-visible {
  outline: 3px solid #1f6f43;
  outline-offset: 3px;
}
#step4 .selected {
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
#step1.form-step img, #step2.form-step img, #step4.form-step img, #step6.form-step img {
  width: calc(100% / 3 - 10px);
  margin: 5px !important;
  float: left;
  height: auto;
  object-fit: cover;
}
.in-konfigurator .category-images, .in-konfigurator .product-images, .in-konfigurator .wood-quality-image {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-start
}
#productImages, #shadeImages {
  margin-bottom: 24px;
  display: inline-block;
}
#woodQualityImages {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}
#multiStepForm {
  margin: 0 auto 50px;
  padding: 20px 20px 50px;
  background-color: #f3f3f3;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: grid;
}
#woodTypeImages {
  display: flex;
  justify-content: center;
}
#woodTypeImages img {
  margin: 10px;
  max-width: 200px;
  width: 50%;
}
@media only screen and (max-width: 768px) {
  #woodTypeImages img {
    max-width: 100px;
  }
}
@media only screen and (min-width: 1200px) {
  #step1.form-step img, #step2.form-step img, #step4.form-step img, #step6.form-step img {
    min-height: 330px;
  }
}
#step4.form-step img {
  max-width: 300px;
  min-height: auto
}
.in-konfigurator .summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.in-konfigurator .summary > div {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-items: center;
  min-height: 118px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e1ded8;
  border-radius: 6px;
}
.in-konfigurator .summary > div img {
  grid-row: 1 / 3;
  width: 118px;
  height: 98px;
  max-height: none;
  object-fit: cover;
  border-radius: 4px;
  background: #f4f2ee;
}
.in-konfigurator .summary label {
  margin: 0;
  color: #626861;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
}
.in-konfigurator .summary span {
  display: block;
  align-self: start;
  color: #222;
  font-size: 17px;
  line-height: 1.3;
  font-weight: bold;
}

#step8 #size {
  display: none;
}

#step8 .summary-value {
  width: 100%;
  margin: -6px 0 16px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

#step8 .summary-size-part {
  display: inline-block;
  white-space: nowrap;
}

@media only screen and (max-width: 768px) {
  .in-konfigurator .summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .in-konfigurator .summary > div {
    width: 100%;
    min-height: 92px;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 4px 10px;
    margin: 0;
    padding: 8px;
  }
  .in-konfigurator .summary > div img {
    width: 88px;
    height: 76px !important;
    max-height: none !important;
    margin: 0;
  }
  .in-konfigurator .summary label {
    min-height: 0;
    margin: 0;
    font-size: 12px;
  }
  .in-konfigurator .summary span {
    font-size: 15px;
  }
}

#multiStepForm * {
  box-sizing: border-box;
}

.in-konfigurator .configurator-progress {
  margin: 0 0 18px;
  color: #4f5b50;
  font-size: 15px;
  font-weight: 700;
}

.in-konfigurator .configurator-message,
#form-status-message {
  display: none;
  clear: both;
  width: 100%;
  margin: 15px 0;
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 600;
  line-height: 1.45;
}

.in-konfigurator .configurator-message.error,
#form-status-message.error {
  display: block;
  border: 1px solid #c46a5a;
  background: #fff3f1;
  color: #8a2f20;
}

.in-konfigurator .configurator-message.success,
#form-status-message.success {
  display: block;
  border: 1px solid #7fb069;
  background: #f1f8ee;
  color: #2f5d25;
}

#multiStepForm .field-error {
  border-color: #c46a5a !important;
  background-color: #fff8f6;
}

@media only screen and (max-width: 768px) {
  .in-konfigurator .configurator-intro {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  #multiStepForm {
    padding: 16px 12px 28px;
    border-radius: 8px;
    box-shadow: none;
  }

  #multiStepForm label {
    font-size: 16px;
    line-height: 1.35;
    margin-bottom: 10px;
  }

  #multiStepForm select,
  #multiStepForm input[type="number"],
  #multiStepForm input[type="text"],
  #multiStepForm input[type="email"],
  #multiStepForm textarea,
  #email {
    min-height: 46px;
    font-size: 16px;
    margin-bottom: 16px;
  }

  #multiStepForm button,
  #multiStepForm input[type="submit"] {
    width: 100%;
    min-height: 48px;
    margin: 8px 0 0;
    float: none;
    font-size: 16px;
  }

  #multiStepForm .next-step,
  #multiStepForm input[type="submit"] {
    background-color: #1f6f43;
    font-weight: 700;
  }

  #multiStepForm .next-step:hover,
  #multiStepForm input[type="submit"]:hover {
    background-color: #185936;
  }

  #multiStepForm .previous-step {
    background-color: transparent;
    border: 1px solid #8d968d;
    color: #445044;
    font-weight: 600;
  }

  #multiStepForm .previous-step:hover {
    background-color: #eef1ed;
  }

  #multiStepForm .previous-step {
    margin-top: 14px;
  }

  #step1.form-step img,
  #step2.form-step img,
  #step4.form-step img,
  #step6.form-step img {
    width: 100%;
    min-height: 210px;
    max-height: 340px;
    border-radius: 6px;
    object-fit: cover;
  }

  #step1.form-step .category-images,
  #step2.form-step .product-images,
  #step2.form-step #productImages {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
  }

  #step1.form-step img.category-image,
  #step2.form-step img.product-image {
    float: none !important;
    width: 100% !important;
    height: clamp(145px, 34vw, 230px);
    min-height: 0;
    max-height: none;
    margin: 0 !important;
    object-fit: cover;
  }

  #step4.form-step img,
  #step6.form-step img {
    width: calc(50% - 10px);
    min-height: 132px;
    max-height: 210px;
  }

  #woodTypeImages {
    gap: 10px;
  }

  #woodTypeImages img {
    width: calc(50% - 10px);
    max-width: none;
    min-height: 96px;
    object-fit: cover;
    border-radius: 6px;
  }

  #shadeImages {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  #shadeImages img {
    width: calc(50% - 10px);
    max-width: none;
    border-radius: 6px;
  }

  .in-konfigurator .form-step .selected {
    border: 2px solid #7a4f25;
    box-shadow: rgba(0, 0, 0, 0.22) 0 3px 10px;
  }

  #step5 span {
    display: block;
    margin: 3px 0 0;
    font-size: 14px;
    color: #606a60;
    font-weight: 500;
    line-height: 1.35;
  }

  #step5 label {
    margin-bottom: 8px;
  }

  #step8 label[for="total-price"] {
    margin-top: 8px;
    color: #1d3f2a;
    font-size: 17px;
  }

  #step8 #total-price {
    min-height: 58px;
    border: 2px solid #1f6f43;
    background: #f4fbf5;
    color: #163d25;
    font-size: 22px;
    font-weight: 800;
  }

  .in-konfigurator .info {
    margin-top: 28px;
    font-size: 14px;
    line-height: 1.5;
  }
}

@media only screen and (max-width: 420px) {
  #step1.form-step img,
  #step2.form-step img {
    width: 100%;
    height: clamp(132px, 40vw, 190px);
    min-height: 0;
    max-height: none;
  }

  #step4.form-step img,
  #step6.form-step img,
  #woodTypeImages img,
  #shadeImages img {
    width: calc(50% - 10px);
    min-height: 112px;
    max-height: 170px;
  }
}

@media only screen and (max-width: 340px) {
  #step4.form-step img,
  #step6.form-step img,
  #woodTypeImages img,
  #shadeImages img {
    width: 100%;
    max-height: 220px;
  }

  #step1.form-step img,
  #step2.form-step img {
    width: 100%;
    height: 150px;
    max-height: none;
  }
}

/* Final summary: preserve all calculation fields, present prices as a compact breakdown. */
#multiStepForm .configurator-final-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.85fr);
  gap: 32px;
  align-items: start;
  letter-spacing: 0;
}
#multiStepForm .configurator-overview,
#multiStepForm .configurator-contact { min-width: 0; }
#multiStepForm .configurator-contact {
  border-left: 1px solid #d6dcd8;
  padding-left: 28px;
}
#multiStepForm .configurator-contact h2 {
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 12px;
  color: #263b30;
  letter-spacing: 0;
}
#multiStepForm .configurator-reassurance {
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 24px;
  color: #3d4942;
}
#multiStepForm .configurator-contact label { font-size: 15px; margin-bottom: 8px; }
#multiStepForm .configurator-contact textarea { min-height: 92px; resize: vertical; }
#multiStepForm .configurator-contact input[type="email"] { background: #fff; min-height: 46px; }
#multiStepForm .configurator-overview .summary { grid-template-columns: 1fr; gap: 0; margin-bottom: 16px; }
#multiStepForm .configurator-overview .summary > div {
  grid-template-columns: 90px minmax(0, 1fr);
  min-height: 92px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #dce1dd;
  border-radius: 0;
  background: transparent;
}
#multiStepForm .configurator-overview .summary > div img {
  grid-column: 1;
  width: 80px;
  height: 72px;
  margin: 0;
  object-fit: contain;
  background: #fff;
}
#multiStepForm .configurator-overview .summary > div label,
#multiStepForm .configurator-overview .summary > div span { grid-column: 2; overflow-wrap: anywhere; }
#multiStepForm .configurator-overview .summary > div label { font-size: 13px; margin: 0; }
#multiStepForm .configurator-overview .summary > div span { font-size: 16px; }
#multiStepForm .configurator-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, 42%);
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
}
#multiStepForm .configurator-price-row label { margin: 0; font-size: 14px; font-weight: 400; }
#multiStepForm .configurator-price-row input[readonly] {
  width: 100%; min-width: 0; min-height: 0;
  padding: 0; margin: 0; border: 0; border-radius: 0;
  background: transparent; color: #263b30;
  font-size: 16px; font-weight: 600; text-align: right;
  box-shadow: none;
}
#multiStepForm .price-rootstock-price:has(input[style*="display: none"]) { display: none; }
#multiStepForm .price-size { display: block; padding: 0 0 14px; }
#multiStepForm .price-size .summary-value {
  padding: 4px 0 0; margin: 0; border: 0; border-radius: 0; background: transparent;
}
#multiStepForm .price-total-price { border-top: 1px solid #bdc8c0; padding-top: 14px; margin-top: 6px; }
#multiStepForm .price-total-price label { font-size: 16px; font-weight: 700; }
#multiStepForm .price-total-price input[readonly] { font-size: 22px; font-weight: 700; }
#multiStepForm .configurator-overview .info {
  margin-top: 20px; font-size: 13px; line-height: 1.5; color: #59645c;
}
#multiStepForm .configurator-overview .info p { margin-bottom: 8px; }
#multiStepForm .configurator-final-actions { display: grid; gap: 10px; }
#multiStepForm .configurator-final-actions input[type="submit"],
#multiStepForm .configurator-final-actions .previous-step {
  width: 100%; min-width: 0; min-height: 48px; margin: 0; float: none;
  padding: 12px 8px; font-size: 15px; font-weight: 600; letter-spacing: 0;
}
#multiStepForm .configurator-final-actions input[type="submit"] { background: #1f6f43; }
#multiStepForm .configurator-final-actions input[type="submit"]:hover { background: #185936; }
#multiStepForm .configurator-final-actions input[type="submit"]:disabled { opacity: 0.65; cursor: wait; }
#multiStepForm .configurator-final-actions .previous-step { background: transparent; color: #3d4942; border: 1px solid #aab8ad; }
#multiStepForm .configurator-final-actions #form-status-message { margin: 0; font-size: 14px; }
#form-status-message.configurator-success-screen {
  box-sizing: border-box;
  width: 100%;
  min-height: 280px;
  margin: 24px 0;
  padding: 64px 24px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #263b30;
  text-align: center;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  scroll-margin-top: 96px;
}
#form-status-message.configurator-success-screen h2 {
  margin: 0 0 16px;
  color: #1f6f43;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
}
#form-status-message.configurator-success-screen p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
}
#form-status-message.configurator-success-screen:focus { outline: none; }
@media (max-width: 900px) {
  #multiStepForm .configurator-final-layout { grid-template-columns: 1fr; gap: 24px; }
  #multiStepForm .configurator-contact { border-left: 0; border-top: 1px solid #cbd5ce; padding: 24px 0 0; }
  #multiStepForm .configurator-contact h2 { font-size: 22px; }
}
@media (max-width: 360px) {
  #multiStepForm .configurator-final-actions input[type="submit"] { font-size: 13px; }
  #multiStepForm .price-total-price input[readonly] { font-size: 18px; }
}
