.disposition-title-below {
    font-weight: 700;
    font-size: 1.2rem;
    color: #8d8d8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 12px; /* méně než předchozích 16px */
    margin-bottom: 0;
    text-align: center;
    width: 100%;
    display: block;
    padding: 0;
    line-height: 1.3;
}
.option-wrapper {

  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.option.disposition-option {
  padding: 20px;
  border: 2px solid #bdbdbd;
  border-radius: 12px;
  background: #fff;
  transition: border 0.2s;
}

.option-wrapper:hover .disposition-option,
.option-wrapper.selected .disposition-option {
  border-color: #e2001a;
}

.option-wrapper:hover .disposition-title-below,
.option-wrapper.selected .disposition-title-below {
  color: #505050;
}

.option-icon {
  width: 80px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 8px;
}


/* Title pod boxem mimo kartu u dispozic */
.option-title-below-outer {
    font-weight: 700;
    font-size: 1.2rem;
    color: #8d8d8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 18px;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
    display: block;
    position: relative;
    left: 0;
}

.option[data-idx][style*="flex-direction:column"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 0 !important;
}
/* Styl pro title pod boxem u dispozic */
.option-title-below {
    font-weight: 700;
    font-size: 1.2rem;
    color: #8d8d8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 16px;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
    display: block;
}

/* Ujisti se, že .option pro dispozice je sloupcová a zarovnaná na střed */
.option[data-idx][style*="flex-direction:column"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 0 !important;
}

.option[data-idx][style*="flex-direction:column"] .option-icon {
    margin-bottom: 0;
}
body {
    background: #f4f4f4;
    min-height: 100vh;
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100vw;
}


.container, .main-center {
    all: unset;
}

form#multiStepForm {
    width: 100%;
    max-width: 90vw;
    margin: 30px auto;
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

h1 {
    text-align: center;
    color: #e2001a;
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin: 0 0 12px 0;
    font-weight: 700;
}

h2 {
    text-align: center;
    color: #888;
    font-size: 1.1rem;
    margin: 0 0 32px 0;
    font-weight: 400;
}
h1 {
    margin: 30px auto 2px auto;
}

/* Progress bar nahoře, wizard steps pod ním */
#progress-bar {
    display: block;
    width: 100%;
    max-width: 900px;
    height: 4px;
    background: #e0e0e0;
    margin: 30px auto 2px auto;
    padding: 0;
    box-sizing: border-box;
    z-index: 3;
    overflow: hidden;
}

#progress-bar .progress-fill {
    background: #505050;
    height: 100%;
    transition: width 0.4s;
    width: 0%;
    margin-left: 0;
}

#progress-bar .progress-fill {
    background: #505050;
    height: 100%;
    transition: width 0.4s;
}

#wizard-steps {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 18px auto;
    padding: 0 6px;
    position: relative;
    z-index: 2;
    gap: 0 16px;
}

.wizard-step {
    flex: 1 1 0;
    text-align: center;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    align-items: center;
    position: relative;
    cursor: pointer;
    user-select: none;
}


.wizard-step .wizard-label {
    transition: color 0.2s, text-decoration 0.2s;
}
.wizard-step:hover .wizard-label {
    color: #e2001a;
    text-decoration: underline;
}

.orientation-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    max-width: 260px;   /* tady omezíš šířku tlačítek, není potřeba víc */
    margin: 14px 0 0 0;
    padding: 0;
}
.orientation-button {
    flex: 1 1 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 0;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #e2001a;
    border-radius: 12px;
    background: #fff;
    color: #e2001a;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
    margin: 0;
}

.orientation-button.selected,
.orientation-button:hover {
    background: #e2001a;
    color: #fff;
}

.orientation-buttons.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.orientace-btn {
  border: 2px solid #e2001a;
  padding: 10px 20px;
  margin: 0 10px;
  border-radius: 12px;
  background: white;
  color: #e2001a;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.orientace-btn.selected {
  background: #e2001a;
  color: white;
}


.wizard-label {
    font-size: 0.93rem;
    font-weight: 500;
    color: #bdbdbd;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-top: 2px;
    margin-bottom: 0;
    transition: color 0.2s;
    padding-bottom: 2px;
    display: inline-block;
}
.wizard-step.active .wizard-label {
    color: #232323;
}
.wizard-step.done .wizard-label {
    color: #505050;
}
.wizard-circle, .wizard-connector {
    display: none;
}

/* Wizard steps jsou viditelné jen na dostatečně široké obrazovce */
#wizard-steps {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 18px auto;
    padding: 0 6px;
    position: relative;
    z-index: 2;
    gap: 0 16px;
}

/* Skrytí progress baru a wizard kroků na mobilu */
@media (max-width: 768px) {
  #progress-bar,
  #wizard-steps {
    display: none !important;
  }

  .option-wrapper {
    flex-direction: row !important;
    align-items: center !important;
    gap: 20px;
    border: 2px solid #bdbdbd !important;
    border-radius: 12px !important;
    background: #fff !important;
    padding: 20px !important;
    transition: border 0.2s !important;

    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
  }

  .option-wrapper.selected {
    border-color: #e2001a !important;
    box-shadow: none !important;
    filter: none !important;
    outline: none !important;
  }
  /* Pokud je uvnitř option-wrapper vybraná .disposition-option, wrapper se zvýrazní */
  .option-wrapper:has(.disposition-option.selected),
  .option-wrapper:has(.option.selected) {
    border-color: #e2001a !important;
    box-shadow: none !important;
    filter: none !important;
    outline: none !important;
  }

  .disposition-option {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .option.disposition-option {
    margin: 0 !important;
    padding: 0px !important; /* dříve 20px */
    width: fit-content !important; /* aby zabíralo celou šířku */
}
.disposition-title-below {
    padding: 0 !important; /* odstraní padding */
    margin: 0 !important; /* odstraní margin */
}

  .option-wrapper .disposition-title-below {
    color: #aaa;
    font-weight: 700; /* tučně i v neaktivním stavu */
    font-size: 1.2rem;
    text-transform: uppercase;
    text-align: center;
    flex: 1;
  }

.option-wrapper {
    justify-content: center !important;
    text-align: center;
  }
}

  .disposition-option.selected + .disposition-title-below {
    color: #232323 !important;
  }



.wizard-step {
    flex: 1 1 0;
    text-align: center;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    align-items: center;
}
.wizard-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #bdbdbd;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
    margin-bottom: 0;
    transition: color 0.2s;
}
.wizard-step.active .wizard-label {
    color: #505050;
}
.wizard-step.done .wizard-label {
    color: #505050;
}
.wizard-circle, .wizard-connector {
    display: none;
}

/* Nový layout pro step container */
#step-container {
    margin-bottom: 40px;
    width: 100%;
    max-width: 90vw;
}

/* Step title styling */
.step-title {
    text-align: center;
    margin-bottom: 36px;
}

.step-title .question {
    color: #505050;
    font-weight: 500;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.step-title .sub {
    font-size: 1.2rem;
    color: #666;
}

/* Nový layout pro options - vertikální seznam */
.options {
    display: flex;
    justify-content: center;
    gap: 24px;
    width: 100%;
    background: none;
    flex-direction: row;
}

@media (max-width: 768px) {
  .options {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}



.option {
    width: 260px;
    background: #fff;
    border: 2px solid #858585; /* tmavší šedá */
    border-radius: 12px;
    cursor: pointer;
    transition: border 0.2s, box-shadow 0.2s;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: none;


}

.option:hover {
    border-color: #e2001a;

    .title, .desc {
        color: #505050;
    }
}

.option.selected {
    border-color: #e2001a;
    background: #fff;
    .title, .desc {
        color: #505050;
    }
    
}

/* Zrušit šedé pozadí u obrázků a ikon */
.option img, .option .option-icon {
    background: #fff;
}

/* --- Konec úprav pro desktop --- */

/* Ikony pro dispozice */
.option[data-disposition] .option-icon {
    width: 200px; /* nebo víc */
    height: 200px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Obrázky pro ostatní kroky */
.option img {
  width: 100%;
  height: auto;
  max-height: 220px; /* nebo nastav vlastní výšku podle požadovaného vzhledu */
  object-fit: cover;
  border-radius: 8px;
}

/* Text content v kartách */
.option-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
}
.option-content.price-option {
    align-items: center;
    text-align: center;
}

.option .title {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: #8d8d8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    border-bottom: 2px solid #bdbdbd;
    padding-bottom: 2px;
    margin-bottom: 8px;
    /* Čára nebude až k okrajům */
    display: inline-block;
    max-width: 80%;
}

.option .desc {
    font-size: 1rem;
    color: #8d8d8d;
    line-height: 1.4;
    margin-top: 0;
    width: 100%;
}

/* Navigation */
.step-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 24px 0;
    font-size: 1.1rem;
    color: #666;
}

.step-navigation .nav-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
    color: #999;
}

.step-navigation .nav-arrow:hover {
    background: #e2001a;
    color: white;
}

.step-navigation .nav-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.step-navigation .step-counter {
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

/* Form navigation */
.form-nav {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 32px;
}

button {
    background: #fff;
    color: #e2001a;
    border: 2px solid #e2001a;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button:hover {
    background: #e2001a;
    color: white;
}

button:disabled, button[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

button#backBtn {
    background: #f5f5f5;
    color: #666;
    border-color: #ddd;
}

button#backBtn:hover {
    background: #666;
    color: white;
}

/* Filled button style */
button.filled {
    background: #e2001a;
    color: white;
}

button.filled:hover {
    background: #c00016;
}

/* Přidej nebo uprav pouze tuto sekci pro .btn.ghost */
.btn.ghost {
    background: #e2001a !important;
    color: #fff !important;
    border: none;
}
.btn.ghost:hover,
.btn.ghost:focus {
    background: #c00016 !important;
    color: #fff !important;
}

/* Summary styles zůstávají podobné */
.summary-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
    margin: 38px 0 28px 0;
}

/* Oprava: pokud je jen 1 návrh, držet šířku jako při více kartách */
.summary-cards:only-child,
.summary-cards:has(.summary-card:nth-child(1):nth-last-child(1)) {
    justify-content: center;
}
.summary-cards .summary-card {
    width: 270px;
    border: 1.5px solid #eee;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 2px 16px #0001;
    padding: 18px 12px 20px 12px;
    text-align: center;
}
@media (min-width: 600px) {
  .summary-cards .summary-card {
    flex: 0 0 270px;
    max-width: 270px;
  }
}
@media (max-width: 600px) {
  .summary-cards .summary-card {
    width: 98vw;
    max-width: 98vw;
  }
}

/* Pokud je v .summary-cards pouze jeden .summary-card, zarovnej na střed a nedovol roztáhnutí */
.summary-cards .summary-card:only-child {
    margin-left: auto;
    margin-right: auto;
    width: 270px;
    max-width: 270px;
    flex: 0 0 270px;
}

.summary-card img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    background: #f7f7f7;
    border-radius: 7px;
    margin-bottom: 10px;
}

.sum-title {
    font-size: 1.07rem;
    margin: 4px 0 0 0;
    color: #222;
}

.sum-value {
    color: #555;
    font-size: 1rem;
    margin-bottom: 4px;
    text-align: center; /* Zarovnání ceny na střed v boxu shrnutí */
}

/* Contact form styles */
#contactForm {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 34px 22px 28px 22px;
    box-shadow: 0 8px 32px #e2001a1a, 0 2px 16px #0001;
    display: flex;
    flex-direction: column;
    gap: 18px;
}


.contact-field {
    position: relative;
    margin-bottom: 13px;
    width: 100%;
}
.summary-card.clickable.cena {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-input {
    width: 100%;
    font-size: 1.12rem;
    padding: 15px 16px 15px 44px;
    border: 2px solid #ececec;
    border-radius: 11px;
    outline: none;
    background: #fafbfc;
    color: #232323;
    transition: border 0.2s, box-shadow 0.16s;
    box-shadow: 0 1px 8px #00000008;
    box-sizing: border-box;
    display: block;
}

.contact-input:focus {
    border: 2px solid #e2001a;
    background: #fff;
    box-shadow: 0 2px 16px #e2001a12;
}

.contact-label {
    position: absolute;
    top: 50%;
    left: 46px;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
    pointer-events: none;
    transition: 0.17s cubic-bezier(.4,0,.2,1);
    background: transparent;
    padding: 0 4px;
}

.contact-input:focus + .contact-label,
.contact-input:not(:placeholder-shown) + .contact-label {
    top: 7px;
    left: 44px;
    font-size: 0.86rem;
    color: #e2001a;
    background: #fff;
}

.contact-field svg {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    color: #e2001a;
    opacity: 0.87;
}

#contactForm input[type="file"] {
    font-size: 1rem;
    padding: 8px 2px;
}

#contactForm label[for="priloha"] {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin-left: 4px;
}

.big-black-btn {
    display: block;
    margin: 0 auto;
    background: #e2001a;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px 38px;
    font-size: 1.15rem;
    margin-top: 12px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 1px;
    box-shadow: 0 2px 12px #e2001a14;
    transition: background 0.2s;
}

.big-black-btn:hover {
    background: #ad0014;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    form#multiStepForm {
        padding: 0 4px;
    }
    h1 {
        font-size: 2rem;
    }
    .step-title .question {
        font-size: 1.5rem;
    }
    .step-title .sub {
        font-size: 1.1rem;
    }
    .option {
        padding: 16px;
        gap: 16px;
    }
    .option img {
        width: 80px;
        height: 60px;
    }
    .option .title {
        font-size: 1.1rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .option .desc {
        font-size: 0.95rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .option-content {
        align-items: center;
        text-align: center;
    }
    #wizard-steps {
        gap: 0 4px;
        font-size: 0.95rem;
    }
    .wizard-step {
        min-width: 0;
    }
    .wizard-label {
        font-size: 0.95rem;
    }
}
/* Extra mezery mezi sekcemi a kroky */
.form-nav {
    margin-top: 36px;
    margin-bottom: 36px;
}
@media (max-width: 768px) {
  .option {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 16px 12px !important;
    gap: 16px !important;
    width: 100%;
    max-width: 100%;
  }

  .option img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important; /* změnit z contain */
    border-radius: 8px !important;
    background: #fff;
    flex: 0 0 50%;
    overflow: hidden;
  }

  .option {
    overflow: hidden; /* Důležité – zabrání přesahu obrázku mimo rámeček */
    border-radius: 12px !important;
  }

  .option-content {
    flex: 1 1 50%;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    padding: 0 !important;
    text-align: left !important;
  }

  .option .title {
    font-size: 1.25rem !important;
    font-weight: 700;
    color: #232323 !important;
    text-transform: uppercase;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    border: none !important;
    max-width: 100% !important;
    display: block;
  }

  .option .desc {
    font-size: 1rem;
    color: #666 !important;
    text-align: left !important;
    margin: 0 !important;
    line-height: 1.4;
  }

  .option.selected .title,
  .option.selected .desc {
    color: #232323 !important;
  }

.option .title {
    text-align: left !important;  /* místo center */
    margin-left: 0 !important;    /* žádné auto centrování */
    margin-right: 0 !important;
    display: block;
  }

  .option-content {
    align-items: flex-start !important;
    text-align: left !important;
  }
}

.option img {
  opacity: 0.65; /* více šedé pro nevybrané */
  transition: opacity 0.3s ease;
}

/* Obrázek bude plně viditelný jen když je option vybraná */
.option.selected img {
  opacity: 1;
}
.option:hover img {
  opacity: 1;
}
.summary-card.clickable {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.summary-card.clickable:hover {
    transform: translateY(-4px);
}

.summary-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(226, 0, 26, 0.85);
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    border-radius: 9px;
    text-transform: uppercase;
}

.summary-card.clickable:hover .overlay {
    opacity: 1;
}

/* Každá karta v .summary-cards bude mít max 1/3 šířky kontejneru (na desktopu) */
@media (min-width: 900px) {
  .summary-cards .summary-card {
    flex: 0 0 32%;
    max-width: 32%;
    min-width: 260px;
    width: 100%;
    box-sizing: border-box;
  }
  /* Pokud je pouze jedna karta, drž šířku 270px (ne 32%) */
  .summary-cards .summary-card:only-child {
    flex: 0 0 270px;
    max-width: 270px;
    min-width: 270px;
    width: 270px;
    margin-left: auto;
    margin-right: auto;
  }
}
