/* Osnovni layout za cjenik stranicu */
.pricing-page {
    padding: 40px 0 60px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #222;
}

/* Header */
.pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.pricing-header p {
    font-size: 1rem;
    color: #555;
}

/* Intro red (info box + kartice) */
.pricing-intro-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}



/* Info box */
.pricing-info-box {
    flex: 1 1 260px;
    background: #ffffff;
    border-radius: 8px;
    padding: 20px 22px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
    border: 1px solid #e0e0e0;
}

.pricing-info-box h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.pricing-info-box p {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 10px;
}

.pricing-info-box ul {
    padding-left: 18px;
    margin: 0;
}

.pricing-info-box li {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Wrapper za kartice paketa */
.pricing-cards-wrapper {
    flex: 2 1 360px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* Kartica paketa */
.pricing-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px 16px 20px;
    border: 1px solid #e3e3e3;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Istaknuta kartica */
.pricing-card-featured {
    border-color: #0077c8;
    box-shadow: 0 6px 16px rgba(0, 119, 200, 0.18);
    transform: translateY(-3px);
}

.pricing-badge {
    position: absolute;
    top: 10px;
    right: -35px;
    background: #0077c8;
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 40px;
    transform: rotate(35deg);
}

/* Header kartice */
.pricing-card-header {
    margin-bottom: 10px;
}

.pricing-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.pricing-title-row h3 {
    font-size: 1.1rem;
    margin: 0;
}

.pricing-hint {
    font-size: 0.8rem;
    color: #777;
    background: #f3f3f3;
    padding: 3px 8px;
    border-radius: 999px;
}

/* Cijena */
.pricing-price {
    margin-top: 8px;
}

.pricing-price .amount {
    font-size: 1.8rem;
    font-weight: 700;
    margin-right: 4px;
}

.pricing-price .currency {
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 3px;
}

.pricing-price .period {
    font-size: 0.85rem;
    color: #777;
}

/* Tijelo kartice */
.pricing-body {
    flex: 1;
}

.pricing-description {
    font-size: 0.9rem;
    color: #555;
    margin: 8px 0 10px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    font-size: 0.88rem;
    margin-bottom: 6px;
    padding-left: 16px;
    position: relative;
}

.pricing-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #0077c8;
}


/* Hover efekt za li */
.pricing-features li:hover {
    text-decoration: underline;
}













/* Footer kartice */
.pricing-footer {
    margin-top: 15px;
}

/* postojeći .btn-primary dopuni s color */
.btn-primary {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: #0077c8;
    color: #fff; /* <--- DODANO */
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s ease, transform 0.1s ease;
}

/* osiguraj da na hover/visited ostane bijelo */
.btn-primary:hover,
.btn-primary:visited,
.btn-primary:active {
    color: #fff!important;          /* <--- BITNO */
}

.btn-primary:hover {
    background: #005f9b;
    transform: translateY(-1px);
}


/* Dodatne opcije */
.extra-options {
    margin-top: 50px;
}

.extra-options h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.extra-options > p {
    font-size: 0.95rem;
    color: #444;
    max-width: 800px;
}

.extra-options-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.extra-option-box {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px 16px 18px;
    border: 1px solid #e3e3e3;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}

.extra-option-box h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.extra-option-box p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
}

.extra-option-box ul {
    padding-left: 18px;
    margin: 0;
}

.extra-option-box li {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.extra-note {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #666;
    max-width: 800px;
}

/* FAQ sekcija */
.faq-section {
    margin-top: 60px;
    border-top: 1px solid #ddd;
    padding-top: 30px;
}

.faq-section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.faq-item {
    border-radius: 6px;
    border: 1px solid #e2e2e2;
    background: #ffffff;
    margin-bottom: 10px;
    overflow: hidden;
}

/* Pitanje */
.faq-question {
    width: 100%;
    background: #ffffff;
    border: none;
    outline: none;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
}

.faq-question span:first-child {
    padding-right: 10px;
    font-weight: 700;
}

.faq-toggle {
    font-size: 1.2rem;
    color: #0077c8;
}

/* Odgovor */
.faq-answer {
    padding: 0 14px 10px;
    font-size: 0.9rem;
    color: #555;
}

/* Pomoćni anchor za #kontakt */
.contact-anchor-helper {
    margin-top: 30px;
}

/* Responsivnost */
@media (max-width: 1024px) {
    .pricing-cards-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .extra-options-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .pricing-intro-row {
        flex-direction: column;
    }

    .pricing-cards-wrapper {
        grid-template-columns: 1fr;
    }

    .extra-options-grid {
        grid-template-columns: 1fr;
    }

    .pricing-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .pricing-page {
        padding: 30px 0 40px;
    }

    .pricing-header p {
        font-size: 0.9rem;
    }
}








@media (max-width: 768px) {

    .pricing-intro-row {
        flex-direction: column;
    }

    .pricing-cards-wrapper {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding: 10px 0 15px;
        margin: 0 0px;    
    }

    .pricing-card {
        flex: 0 0 100%;
        max-width: calc(100% - 20px);
        scroll-snap-align: center;
        box-sizing: border-box;
        margin: 0 0px;   
    }

    /* scroll bar – opcionalno malo suptilniji */
    .pricing-cards-wrapper::-webkit-scrollbar {
        height: 4px;
    }

    .pricing-cards-wrapper::-webkit-scrollbar-track {
        background: transparent;
    }

    .pricing-cards-wrapper::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 999px;
    }

    /* body unutar kartice raste */
    .pricing-card .pricing-body {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    /* footer gumb na dnu */
    .pricing-card .pricing-footer {
        margin-top: auto; /* guranje na dno */
    }

    /* dodatni donji padding same kartice */
    .pricing-card {
        padding-bottom: 20px; /* po potrebi povećaj */
    }


    .pricing-dots {
        display: flex;
        width: 100%;
        justify-content: center;
        gap: 6px;
        margin-top: 8px;
    }

    .pricing-dots .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ccc;
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .pricing-dots .dot.active {
        background: #0077c8;
        transform: scale(1.2);
    }

}







/*PAKETI COMPARE*/
.pricing-comparison {
    margin-top: 50px;
    font-size: 14px;
}

/* ovdje je ključ — wrapper omogućava h-scroll */
.comparison-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; /* za snap po sekcijama */
    padding-bottom: 10px;
}

/* tablica (grid) ostaje uvijek široka */
.comparison-table {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    min-width: 700px;          /* << OBAVEZNO — spriječi lomljenje!! */
    scroll-snap-align: start;  /* snap */
    gap: 1px;
    background: #ccc;
    border-radius: 8px;
}

/* ostatak tvog CSS-a bez medija */
.comparison-header,
.comparison-row {
    display: contents;
}

.feature-col, .package-col {
    padding: 15px;
    background: #fff;
    text-align: center;
}

.feature-col {
    text-align: left;
    font-weight: 600;
    background: #f7f7f7;
}

.feature-desc {
    font-weight: 400;
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.comparison-header .feature-col {
    background: #0077c8;
    color: #fff;
    font-size: 1rem;
}

.comparison-header .package-col {
    background: #005f9b;
    color: #fff;
    font-size: 1rem;
}

.package-col.clickable:hover {
    opacity: 0.8;
}

.comparison-table .comparison-row:nth-child(even) .feature-col,
.comparison-table .comparison-row:nth-child(even) .package-col {
    background: #fafafa;
}

