.itv-order-form {
    margin: 0 auto;
}

.itv-form-step {
    margin-bottom: 20px;
    padding: 2vh;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.itv-form-buttons {
    margin-top: 20px;
}

.itv-form-prev,
.itv-form-next,
.itv-order-form button[type="submit"] {
    padding: 10px 30px !important;
    background-color: #6231ED;
    color: #fff !important;
    border: none !important;
    border-radius: 5px;
    cursor: pointer;
    font-weight: normal !important;
}

.itv-form-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.itv-form-buttons .itv-form-next {
    margin-left: auto;
}

.itv-form-success {
    margin-top: 20px;
    padding: 20px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
}

.itv-form-error {
    margin-top: 20px;
    padding: 20px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    color: #721c24;
}

.itv-tv-varianty, .itv-internet-varianty {
    display: flex;
    flex-wrap: wrap;
}

.itv-tv-varianta, .itv-internet-varianta {
    width: calc(33.33% - 10px);
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.itv-tv-varianta-obsah, .itv-internet-varianta-obsah {
    background-color: #6231ED;
    color: white;
    height: 10vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 5px 5px 0px 0px;
    margin-bottom: 10px;
}

.itv-tv-varianta:hover, .itv-internet-varianta:hover {
    border-color: #6231ED;
    box-shadow: 0 0 5px rgba(98, 49, 237, 0.3);
    transform: scale(1.02);
}

.itv-tv-varianta.selected, .itv-internet-varianta.selected {
    border: 3px solid #6231ED;
    box-shadow: 0 0 10px rgba(98, 49, 237, 0.5);
    transform: scale(1.05);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.itv-tv-varianta.selected:after, .itv-internet-varianta.selected:after {
    content: "✓";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 25px;
    height: 25px;
    background-color: #6231ED;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.selected .itv-tv-varianta-obsah, .selected .itv-internet-varianta-obsah {
    border-radius: 0px !important;
}

.itv-tv-varianta input[type="radio"], .itv-internet-varianta input[type="radio"] {
    display: none;
}

.itv-form-table {
    width: 100%;
    border-collapse: collapse;
}

.itv-form-table th, .itv-form-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    width: 25%;
}

.itv-form-table th {
    background-color: #fff !important;
    font-weight: bold;
    border: none !important;
}

.itv-form-table td {
    background-color: #fff !important;
    border: none !important;
}

.itv-form-table td span {
    display: block;
    width: 100%;
}

.itv-form-table td {
    text-align: left;
}

.itv-form-table td:nth-child(2), .itv-form-table th:nth-child(2) {
    text-align: right;
}

.itv-form-table tr:last-child {
    border-top: 2px solid #ccc;
}

#form-progress-container {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
}

#form-progress-bar {
    width: 0%;
    height: 20px;
    background-color: #6231ED;
    text-align: center;
    line-height: 20px;
    color: white;
    border-radius: 5px;
}

.itv-tv-providers {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.itv-tv-provider {
    width: calc(33.33% - 10px);
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.itv-tv-provider:hover {
    box-shadow: 0 0 5px rgba(98, 49, 237, 0.3);
    transform: scale(1.02);
}

.itv-tv-provider.selected {
    border: 3px solid #6231ED;
    box-shadow: 0 0 10px rgba(98, 49, 237, 0.5);
    transform: scale(1.05);
    transition: all 0.3s ease;
    position: relative;
}

.itv-tv-provider.selected:after {
    content: "✓";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 25px;
    height: 25px;
    background-color: #6231ED;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.itv-tv-provider .itv-tv-logo {
    margin-bottom: 10px;
}

.itv-tv-provider .itv-tv-logo img {
    max-width: 100%;
    height: auto;
}

.itv-tv-packages {
    margin-top: 20px;
}

.itv-tv-package {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.itv-tv-package.selected {
    background-color: #f2f2f2;
}

.itv-tv-package-content {
    flex-grow: 1;
}

.itv-tv-varianta {
    cursor: pointer;
}

.itv-tv-varianta.selected {
    border: 2px solid #6231ED;
}

.itv-tv-provider {
    cursor: pointer;
}

.itv-tv-provider.selected {
    border: 3px solid #6231ED;
    box-shadow: 0 0 10px rgba(98, 49, 237, 0.5);
    transform: scale(1.05);
    transition: all 0.3s ease;
    position: relative;
}

.itv-tv-provider.selected:after {
    content: "✓";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 25px;
    height: 25px;
    background-color: #6231ED;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.itv-tv-package {
    cursor: pointer;
}

.itv-tv-package.selected {
    border: 3px solid #6231ED;
    box-shadow: 0 0 8px rgba(98, 49, 237, 0.5);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.itv-order-form-sidebar {
    width: 33%;
    float: left;
    border: 1px solid #ccc;
    padding: 2vh;
    margin-bottom: 5vh;
    flex: 1;
    border-radius: 5px;
}

.itv-order-form-content {
    flex: 2;
}

.itv-order-form-container {
    display: flex;
    flex-wrap: wrap;
}

.itv-widget-content {
    flex-grow: 1;
}

.itv-order-form-sidebar,
.itv-order-form-content {
    display: flex;
    flex-direction: column;
    min-width: 300px;
    padding: 20px;
    box-sizing: border-box;
}

.itv-order-form-content {
    width: 66%;
    float: right;
}

@media screen and (max-width: 904px) {
    .itv-order-form-sidebar,
    .itv-order-form-content {
        flex-basis: 100%;
        width: 100%;
    }

    .itv-widget-content {
        display: none;
    }

    .itv-widget-toggle {
        cursor: pointer;
        display: block !important;
    }

    .itv-widget-toggle .itv-widget-arrow {
        display: inline-block;
        transition: transform 0.3s;
    }

    .itv-widget-toggle.active .itv-widget-arrow {
        transform: rotate(180deg);
    }

    .itv-order-form-sidebar {
        width: 100%;
        text-align: center;
    }
}

.itv-tv-varianta p:has(input[type="hidden"]) {
    display: none;
}

.itv-internet-varianta p:has(input[type="hidden"]) {
    display: none;
}


.itv-success-message {
    color: green;
    margin-top: 5px;
    display: none;
}

.pole-formulare {
    display: flex;
    flex-wrap: wrap;
}

.pole-formulare label {
    font-weight: bold !important;
}
.pole-formulare input {
    border: 1px solid #ccc;
}

.itv-form-field {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 5px;
}

.itv-form-field input,
.itv-form-field button {
    width: 100%;
}

@media (max-width: 768px) {
    .itv-form-field {
        flex: 1 1 100%;
    }
}

.itv-crossed-price {
    text-decoration: line-through;
}

.itv-featured-product {
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    border-radius: 5px;
}

.itv-featured-product-image {
    flex: 0 0 33%;
    text-align: center;
}

.itv-featured-product-image img {
    max-width: 100%;
    height: auto;
}

.itv-featured-product-content {
    flex: 1;
    padding-left: 10px;
}

.itv-featured-product-button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
}

.itv-featured-product-button:hover {
    border-color: #6231ED;
    color: #6231ED;
}

.itv-featured-product-button input:checked + label {
    background-color: #6231ED;
    color: #fff;
    border-color: #6231ED;
}

.pole-formulare label {
    padding-bottom: 5px;
    font-weight: normal !important;
}

#itv-submit-button:disabled {
    background-color: #cccccc; /* Světle šedá barva pozadí */
    color: #666666; /* Šedá barva textu */
    cursor: not-allowed; /* Ikona kurzoru pro nedostupné položky */
    opacity: 0.6; /* Snížená průhlednost pro vizuální efekt */
  }
  

.itv-zip-code-field {
    display: flex;
    flex-direction: column;
}

.itv-zip-code-input-wrapper {
    display: flex;
    align-items: center;
}

.itv-zip-code-field input[type="text"] {
    flex: 1;
    max-width: 50%;
}

.itv-validate-zip-code {
    background-color: #e1f5fe !important;
    color: #000 !important;
    border: none !important;
    font-size: 1em !important;
    cursor: pointer;
    max-width: 50%;
    margin-left: 5px !important;
}

.itv-zip-code-message {
    margin-top: 5px;
}

/* Existující CSS zůstává nezměněno */

/* Nové styly pro responzivní design */
@media screen and (max-width: 1024px) {
    .itv-tv-varianty, .itv-internet-varianty, .itv-tv-providers {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .itv-tv-varianta, .itv-internet-varianta, .itv-tv-provider {
        width: calc(50% - 10px);
        margin-right: 0;
    }
}

@media screen and (max-width: 768px) {
    .itv-tv-varianta, .itv-internet-varianta, .itv-tv-provider {
        width: 100%;
        margin-right: 0;
    }

    .itv-form-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .itv-form-prev,
    .itv-form-next,
    .itv-order-form button[type="submit"] {
        width: 100%;
        margin: 5px 0;
    }

    .itv-form-buttons .itv-form-next {
        margin-left: 0;
    }

    .itv-featured-product {
        flex-direction: column;
    }

    .itv-featured-product-image,
    .itv-featured-product-content {
        width: 100%;
        padding: 10px 0;
    }

    .itv-zip-code-input-wrapper {
        flex-direction: column;
    }

    .itv-zip-code-field input[type="text"],
    .itv-validate-zip-code {
        max-width: 100%;
        width: 100%;
        margin: 5px 0;
    }
}

/* Úprava pro lepší zobrazení na menších obrazovkách */
.itv-order-form {
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px;
}

.itv-form-step {
    padding: 15px;
}

.itv-form-table {
    font-size: 14px;
}

/* Úprava pro lepší čitelnost na mobilních zařízeních */
@media screen and (max-width: 480px) {
    .itv-form-table th,
    .itv-form-table td {
        font-size: 12px;
        padding: 5px;
    }
}


.itv-invalid-field {
    border-color: red !important;
}

.itv-error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
    display: none;
}


.itv-form-field label {
    display: inline-block;
    margin-bottom: 5px;
}



.itv-form-field label:not([for$="psc"]):after {
    content: "";
}


.itv-zip-code-message {
    margin-top: 5px;
    font-size: 0.9em;
    display: none;
}

.itv-error-message {
    color: red;
}

.itv-success-message {
    color: green;
}

.itv-loading-message {
    color: #666;
    font-style: italic;
}

.itv-loading-message::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 5px;
    border: 2px solid #666;
    border-right-color: transparent;
    border-radius: 50%;
    animation: loading-spinner 1s linear infinite;
}

@keyframes loading-spinner {
    to {
        transform: rotate(360deg);
    }
}

.itv-warning-message {
    color: #856404;
    background-color: #fff3cd;
    padding: 5px;
    border-radius: 3px;
}

.itv-warning-field {
    border-color: #ffc107 !important;
}