.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Formulár */
.feedback-wrapper {
    max-width: 600px;
    margin: 0 auto 40px;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.feedback-form input,
.feedback-form textarea {
    width: 100%;
    max-width: 100%;
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: none;
    box-sizing: border-box;
}

.feedback-form input[name="meno"] {
    height: 45px;
}

.feedback-form textarea[name="text"] {
    height: 120px;
}

.feedback-form button {
    background-color: #74a277;
    color: white;
    border: none;
    padding: 10px;
    font-family: 'Playfair Display', serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    font-size: 16px;
}

.feedback-form button:hover {
    background-color: #5e8c63;
}

/* ⭐ Hviezdičky hodnotenia – vo formulári */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    font-size: 28px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s ease;
}

.star-rating input[type="radio"]:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #f4c542;
}

/* ⭐ Hviezdičky vo výpise */
.stars {
    color: #f4c542;
    font-size: 18px;
    letter-spacing: 1px;
}

/* SLIDER – OBAL */
.referencie-slider-wrapper {
    display: flex;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto 40px;
    gap: 20px;
    padding: 0 10px;
    box-sizing: border-box;
}

/* SLIDER KONTAJNER */
.referencie-slider-container {
    overflow: hidden;
    flex: 1;
    height: 100%;
}

/* POSUVNÝ RAD */
.referencie-slider {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

/* JEDNA KARTA */
.slide {
    flex: 0 0 calc(33.3333% - 13.33px); /* 3 na šírku s medzerou */
    max-width: calc(33.3333% - 13.33px);
    margin-right: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.slide:last-child {
    margin-right: 0;
}

/* RESPO – 2 alebo 1 */
@media (max-width: 899px) {
    .slide {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}
@media (max-width: 599px) {
    .slide {
        flex: 0 0 100%;
        max-width: 100%;
        margin-right: 0;
    }
}

/* KARTA */
.referencia-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 100%;
}

.referencia-card.slide {
    height: 300px; /* alebo iná výška, ktorá zodpovedá 300 znakom aj s paddingom */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
}

.referencia-card.feedback-wrapper {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
}

/* Vyššia výška pre mobily */
@media (max-width: 599px) {
    .referencia-card.slide {
        height: 410px; /* alebo viac podľa potreby */
    }
}

/* HOVER */
.referencia-card:hover {
    /* transform: translateY(-4px); */ /* ZRUŠÍME POHYB */
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}


/* HLAVIČKA */
.referencia-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.referencia-card.slide p {
    flex-grow: 1; /* Text sa natiahne a začne odhora */
    margin: 0; /* odstráni defaultný dolný okraj */
}

.referencia-meno {
    margin-top: 0;
    font-size: 18px;
    color: #74a277;
}

.referencia-card h4 {
    margin-top: 0;
    font-size: 18px;
    color: #74a277;
}

.stars {
    color: #f4c542;
    font-size: 18px;
    white-space: nowrap;
}

/* ŠÍPKY */
.slider-arrow {
    background: transparent;
    border: none;
    font-size: 2em;
    cursor: pointer;
    padding: 5px;
    color: #333;
    transition: color 0.3s ease;
    align-self: center;
}

.slider-arrow:hover {
    color: #74a277;
}

.slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

