/* CTA Buttons Container */
.cta-buttons-container {
    display: flex;
    align-items: center;
}

.cta-buttons-container .btn-cta {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 10px 24px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 700;
    font-size: var(--font-size-large);
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-buttons-container .btn-cta:hover {
    background-color: var(--color-secondary);
    color: var(--color-background);
    text-decoration: none;
    transform: translateY(-1px);
}

.cta-buttons-container .btn-link {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 500;
    font-size: var(--font-size-large);
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-buttons-container .btn-link:hover {
    color: var(--color-secondary);
    text-decoration: none;
}

/* Text Section Widget */
.text-section-container {
    width: 100%;
}

.text-section-heading {
    margin: 0;
    line-height: 1.2;
}

.text-section-description {
    margin: 0;
    line-height: 1.6;
}

/* Hero Section Widget */
.hero-section-container {
    width: 100%;
    margin-top: 3px;
}

.hero-section-container ul {
    list-style: disc;
    padding-left: 30px;
}

.hero-section-container ul li {
    color: #18181B;
    padding-left: 20px;
}

.hero-section-container ul li::marker {
    color: #3A5A78;
}

.hero-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% 50% */
    align-items: center;
}

.hero-left-column {
    display: flex;
    flex-direction: column;
}

.hero-right-column {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ikona v rámečku */
.hero-icon-frame {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    border: 1px solid var(--color-accent);
    border-radius: 19px;
    width: fit-content;
}

.hero-icon-frame .frame-icon {
    display: flex;
    align-items: center;
    font-size: var(--font-size-large);
}

.hero-icon-frame .frame-icon svg {
    width: 16px;
    height: 16px;
}

/* Odstranit inherit aby se používala originální barva z SVG když není nastavena custom barva */

.hero-icon-frame .frame-text {
    font-size: var(--font-size-small);
    line-height: var(--line-height-small);
    font-weight: 500;
    color: var(--color-primary);
}

/* Textový editor */
.hero-text-content {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
}

.hero-text-content h1,
.hero-text-content h2,
.hero-text-content h3,
.hero-text-content h4,
.hero-text-content h5,
.hero-text-content h6 {
    font-size: var(--font-size-xxxlarge);
    font-weight: 900;
    color: var(--color-text);
    line-height: 1.3;
    margin: 0 0 var(--spacing-sm) 0;
}

/* Barevný span uvnitř nadpisů */
.hero-text-content h1 span.style1,
.hero-text-content h2 span.style1,
.hero-text-content h3 span.style1,
.hero-text-content h4 span.style1,
.hero-text-content h5 span.style1,
.hero-text-content h6 span.style1 {
    color: var(--color-accent);
}

.hero-text-content h1 span.style2,
.hero-text-content h2 span.style2,
.hero-text-content h3 span.style2,
.hero-text-content h4 span.style2,
.hero-text-content h5 span.style2,
.hero-text-content h6 span.style2 {
    font-size:20px;
}

.hero-text-content p {
    margin: 0 0 var(--spacing-sm) 0;
}

.hero-text-content p:last-child {
    margin-bottom: 0;
}

/* CTA tlačítka */
.hero-cta-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Obrázek */
.hero-image {
    width: 100%;
    height: auto;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Info Box with Icon Widget */
.info-box-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .info-box-container {
        max-width: 1400px;
    }
}

.info-box-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 sloupce na desktopu */
    align-items: stretch; /* Všechny sloupce stejně vysoké */
    position: relative;
}

.info-box-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    padding: 0 40px; /* Padding z obou stran */
}

/* První sloupec v každém řádku bez paddingu vlevo (1., 4., 7., 10. ...) */
.info-box-column:nth-child(3n+1) {
    padding-left: 0;
}

/* Poslední sloupec v každém řádku bez paddingu vpravo (3., 6., 9., 12. ...) */
.info-box-column:nth-child(3n) {
    padding-right: 0;
}

/* Oddělující čára mezi sloupci - stejná výška pro všechny */
.info-box-column:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 1px;
    background-color: #C7C7C7;
}

/* Skrýt čáru u posledního sloupce v každém řádku (3., 6., 9., 12. ...) */
.info-box-column:nth-child(3n)::after {
    display: none;
}

.info-box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.info-box-icon svg {
    width: 24px;
    height: 24px;
}

.info-box-heading {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    line-height: 1.4;
}

.info-box-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #000000;
    margin: 0;
}

/* CTA Section Widget */
.cta-section-container {
    width: 100%;
}

.cta-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% 50% */
    align-items: start;
}

.cta-left-column {
    display: flex;
    flex-direction: column;
}

.cta-right-column {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.cta-section-heading {
    font-size: 44px;
    font-weight: 900;
    color: #18181B;
    margin: 0;
    line-height: 1.3;
}

.cta-section-description {
    font-size: 16px;
    line-height: 24px;
    color: #18181B;
    margin: 0;
}

.cta-contact-items {
    display: flex;
    flex-direction: column;
}

.cta-contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cta-contact-item:last-child {
    margin-bottom: 0;
}

.cta-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cta-contact-icon svg {
    width: 20px;
    height: 20px;
}

.cta-contact-text {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: #000000;
}

.cta-image {
    width: 100%;
    max-width: 312px;
}

.cta-image img {
    width: 100%;
    height: auto;
    display: block;
}

.cta-shortcode {
    width: 100%;
}

/* Contact Form 7 Styling */
.cta-shortcode .wpcf7 {
    margin-top: 96px;
    background: #ffffff;
    padding: 56px 36px 64px 36px;
}

.cta-shortcode .wpcf7 form {
    display: flex;
    flex-direction: column;
}

.cta-shortcode .wpcf7 label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #18181B;
    line-height: 1.5;
    margin-bottom: 24px;
}

.cta-shortcode .wpcf7 input[type="text"],
.cta-shortcode .wpcf7 input[type="email"],
.cta-shortcode .wpcf7 input[type="tel"],
.cta-shortcode .wpcf7 textarea {
    width: 100%;
    padding: 8px 12px;
    font-size: 16px;
    line-height: 24px;
    color: #18181B;
    background-color: #ffffff;
    border: 1px solid #E4E4E7;
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.cta-shortcode .wpcf7 input[type="text"]::placeholder,
.cta-shortcode .wpcf7 input[type="email"]::placeholder,
.cta-shortcode .wpcf7 input[type="tel"]::placeholder,
.cta-shortcode .wpcf7 textarea::placeholder {
    color: #71717A;
}

.cta-shortcode .wpcf7 input[type="text"]:focus,
.cta-shortcode .wpcf7 input[type="email"]:focus,
.cta-shortcode .wpcf7 input[type="tel"]:focus,
.cta-shortcode .wpcf7 textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(74, 107, 135, 0.1);
}

.cta-shortcode .wpcf7 input[type="submit"] {
    width: auto;
    padding: 10px 16px;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--color-primary);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 0 auto;
    margin-top: 16px;
}

.cta-shortcode .wpcf7 input[type="submit"]:hover {
    background-color: #3A5A78;
    transform: translateY(-1px);
}

.cta-shortcode .wpcf7 input[type="submit"]:active {
    transform: translateY(0);
}

/* Validace a chybové zprávy */
.cta-shortcode .wpcf7-not-valid-tip {
    font-size: 14px;
    color: #DC2626;
    margin-top: 4px;
}

.cta-shortcode .wpcf7-validation-errors,
.cta-shortcode .wpcf7-mail-sent-ok {
    padding: 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 20px;
}

.cta-shortcode .wpcf7-validation-errors {
    background-color: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #DC2626;
}

.cta-shortcode .wpcf7-mail-sent-ok {
    background-color: #F0FDF4;
    border: 1px solid #86EFAC;
    color: #16A34A;
}

.cta-shortcode .wpcf7-spinner {
    margin-left: 10px;
    margin-top: -32px;
}

/* Zajištění správného propojení labelů s inputy */
.cta-shortcode .wpcf7 label {
    cursor: pointer;
}

.cta-shortcode .wpcf7 label:hover {
    opacity: 0.8;
}

/* Comparator Section Widget */
.comparator-section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .comparator-section-container {
        max-width: 1400px;
    }
}

.comparator-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: start;
}

/* Jednotlivé sloupce */
.comparator-column {
    display: flex;
    flex-direction: column;
}

/* Hlavička sloupce */
.comparator-column .column-header {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-weight: 700;
    font-size: 18px;
}

/* Buňky v sloupcích */
.comparator-column .column-cell {
    padding: 0 16px;
    border-bottom: 1px solid #C7C7C7;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.comparator-column .column-cell:last-child {
    border-bottom: none;
}

/* Sloupec 1 - Názvy funkcí */
.comparator-column.column-1 .column-header {
    justify-content: flex-start;
}

.comparator-column.column-1 .column-cell {
    font-weight: 700;
    justify-content: flex-start;
    text-align: left;
}

/* Sloupec 2 - Zvýrazněný MAIRA */
.comparator-column.column-2 .column-header {
    margin-bottom: -1px;
}
.comparator-column.column-2 .column-header img {
    max-width: 120px;
    height: auto;
}
.comparator-column.column-2 .column-highlight {
    background: #ffffff;
    border: 1px solid #FF6B35;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
/* .comparator-column.column-2 .column-cell {
    border-color: rgba(255, 107, 53, 0.2);
}*/


/* Sloupec 3 */
.comparator-column.column-3 .column-header {
    font-weight: 700;
}

/* Icon styling */
.column-cell .icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.comparator-column.column-2 .column-cell .icon-wrapper svg {
    width: 20px;
    height: 20px;
}
.comparator-column.column-3 .column-cell .icon-wrapper svg {
    width: 12px;
    height: 12px;
}

/* Info Detail Section Widget */
.info-detail-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .info-detail-container {
        max-width: 1400px;
    }
}

.info-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    border-top: 1px solid #C7C7C7;
    padding-top: 30px;
}

.detail-column {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.detail-list-section {
    display: flex;
    flex-direction: column;
}

.detail-list-heading {
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    color: #000000;
    margin: 0 0 16px 0;
}

.detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #000000;
}

.detail-list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.detail-list-icon svg {
    width: 20px;
    height: 20px;
}

.detail-list-text {
    flex: 1;
    line-height: 24px;
}

/* Video Section Widget */
.video-section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .video-section-container {
        max-width: 1400px;
    }
}

.video-section-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    align-items: center;
}

.video-column {
    width: 100%;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-placeholder {
    background: #D9D9D9;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-placeholder p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.text-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.video-section-heading {
    font-size: 36px;
    font-weight: 700;
    color: #18181B;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.video-section-description {
    font-size: 16px;
    line-height: 24px;
    color: #18181B;
    margin: 0;
}

/* Prices Switch Section Widget */
.prices-switch-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .prices-switch-container {
        max-width: 1400px;
    }
}

.prices-switch-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.prices-switch-content {
    flex: 1;
}

.switch-heading {
    font-size: 36px;
    font-weight: 700;
    color: #18181B;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.switch-subheading {
    font-size: 16px;
    line-height: 24px;
    color: #18181B;
    margin: 0;
}

/* Toggle Switch */
.prices-switch-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.switch-label {
    font-size: 24px;
    font-weight: 500;
    color: #3A5A78;
    transition: color 0.3s ease;
    line-height: 24px;
}

.switch-label.active {
    font-weight: 700;
    color: #3A5A78;
}

.switch-toggle {
    position: relative;
    width: 48px;
    height: 24px;
    background: #E4E4E7;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.switch-toggle.active {
    background: #3A5A78;
}

.switch-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #FFFFFF;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.switch-toggle.active .switch-slider {
    transform: translateX(24px);
}

.switch-yearly {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.switch-savings {
    font-size: 24px;
    font-weight: 700;
    color: #FF6B35;
    text-decoration: underline;
    line-height: 24px;
}

/* Prices Section Widget */
.prices-section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .prices-section-container {
        max-width: 1400px;
    }
}

/* Cenové karty */
.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.price-card {
    background: #FFFFFF;
    border: 2px solid transparent;
    padding: 20px 20px 55px 20px;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.price-card.is-popular {
    border-color: #FF6B35;
}

.popular-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #FEFAF7;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #FF6B35;
    white-space: nowrap;
}

.price-card.is-coming-soon {
    background: #FFFFFF;
    border: 2px solid #D1D5DB;
    padding-top: 20px;
}
.price-card.is-coming-soon .coming-soon-label {
    background-color: #EBEBEB;
    color: #3A5A78;
}
.price-card.is-coming-soon .price-card-title {
    padding-top: 24px;
}
.price-card.is-coming-soon .price-card-price {
    margin-bottom: 0;
}
.price-card-content {
    display: flex;
    flex-direction: column;
    /*gap: 16px;*/
    align-items: center;
}

.price-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #18181B;
    margin: 0;
    text-transform: uppercase;
}

.price-card-range {
    font-size: 16px;
    color: #18181B;
    margin: 0;
    line-height: 24px;
}

.price-card-price {
    margin: 24px 0;
}

.price-amount {
    font-size: 32px;
    font-weight: 700;
    color: #18181B;
}

.price-currency {
    font-size: 32px;
    color: #18181B;
    margin-left: 4px;
    font-weight: 700;
}

.price-period {
    font-size: 16px;
    color: #18181B;
}

.price-amount-sale {
    display:block;
    text-align: center;
    color: var(--color-secondary);
    font-size: 20px;
    font-weight: 700;
    margin-top: -10px;
    text-decoration: line-through;
}

.price-card-content .btn-cta {
    width: 100%;
}
.price-card.is-popular .price-card-content .btn-cta {
    background-color: var(--color-secondary);
}
.price-card.is-popular .price-card-content .btn-cta:hover {
    background-color: var(--color-primary);
}

.price-card-details {
    display: inline-block;
    text-align: center;
    color: #3A5A78;
    text-decoration: underline !important;
    font-size: 20px;
    transition: color 0.3s ease;
    margin-top: 24px;
}

.price-card-details:hover {
    color: #FF6B35;
}

/* responzive */

@media (max-width: 1024px) {
    /* Info Box - 2 sloupce na tabletu */
    .info-box-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Skrýt čáru u každého druhého sloupce (pravé sloupce) */
    .info-box-column:nth-child(2n)::after {
        display: none;
    }
    
    /* Info Detail Section - Tablet */
    .info-detail-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    /* Video Section - Tablet */
    .video-section-grid {
        grid-template-columns: 2fr 1fr;
        gap: 32px;
    }
    
    /* Comparator Grid - Tablet layout */
    .comparator-grid {
        grid-template-columns: 1fr auto 1fr;
        gap: 16px;
    }
    
    .comparator-column.column-2.column-highlight {
        padding: 20px;
    }
    
    .comparator-column .column-cell {
        padding: 16px 12px;
    }
    
    /* Prices Section - Tablet */
    .prices-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media  (max-width: 767px) {
    .info-text-box {
        margin: var(--spacing-ssm);
    }
    
    .cta-buttons-container {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    /* Hero Section na mobilu */
    .hero-section-grid {
        grid-template-columns: 1fr; /* Jeden sloupec na mobilu */
        gap: var(--spacing-xlg);
    }
    
    .hero-text-content h1,
    .hero-text-content h2,
    .hero-text-content h3,
    .hero-text-content h4,
    .hero-text-content h5,
    .hero-text-content h6 {
        font-size: var(--font-size-xlarge) !important;
    }
    
    /* Info Box - 2 sloupce na mobilu */
    .info-box-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Skrýt čáru u každého druhého sloupce (pravé sloupce) */
    .info-box-column:nth-child(2n)::after {
        display: none;
    }
    
    /* Info Detail Section - Mobile */
    .info-detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .detail-column {
        gap: 24px;
    }
    
    /* Video Section - Mobile */
    .video-section-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* CTA Section na mobilu */
    .cta-section-grid {
        grid-template-columns: 1fr; /* Jeden sloupec na mobilu */
        gap: var(--spacing-xlg);
    }
    
    /* Comparator Grid - Mobile layout */
    .comparator-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .comparator-column.column-1 .column-header,
    .comparator-column.column-1 .column-cell {
        justify-content: center;
        text-align: center;
    }
    
    .comparator-column.column-2.column-highlight {
        padding: 16px;
    }
    
    .comparator-column .column-header {
        min-height: 60px;
        margin-bottom: 16px;
    }
    
    .comparator-column .column-cell {
        padding: 12px;
    }
    
    /* Prices Switch Section - Mobile */
    .prices-switch-header {
        flex-direction: column;
        gap: 24px;
    }
    
    .switch-heading {
        font-size: 28px;
    }
    
    .prices-switch-toggle {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    /* Prices Section - Mobile */
    .prices-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .price-card {
        padding: 24px 20px;
    }
}

/* Info Note Widget */
.info-note-container {
    background: #EBEBEB;
    border-radius: 2px;
    padding: 11px 24px 12px 24px;
    box-shadow: 0px 1px 2px 0px #0000000F, 0px 1px 3px 0px #0000001A;
    width: 100%;
    max-width: 100%;
}

.info-note-text {
    margin: 0;
    color: #3A5A78;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
}

@media (max-width: 768px) {
    .info-note-container {
        padding: 11px 24px 12px 24px;
    }
    
    .info-note-text {
        font-size: 14px;
        line-height: 20px;
    }
}