/* Stranica Utisci (/utisci). Boje i fontovi prate custom.css teme. */

.ut-section {
    padding: 50px 0 70px;
    scroll-margin-top: 140px;
}

.ut-intro {
    padding: 8px 8px 24px 0;
}
.ut-intro h2 {
    font-size: 1.75rem;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--primary-color, #072f04);
}
.ut-intro p {
    font-size: 1rem;
    line-height: 1.65;
    color: #444;
}
.ut-call a {
    color: var(--primary-color-light, #0d7e05);
    font-weight: 600;
    white-space: nowrap;
}

.ut-panel {
    background: #fff;
    border: 1px solid #e3e8df;
    border-radius: 14px;
    padding: 28px 28px 24px;
    box-shadow: 0 10px 30px rgba(7, 47, 4, 0.07);
}

/* Pomoćne */
.ut-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.ut-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Zvezdice */
.ut-rating {
    border: 0;
    padding: 0;
    margin: 0 0 22px;
    min-width: 0;
}
.ut-rating legend,
.ut-form label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e2022;
    margin-bottom: 8px;
    float: none;
    width: auto;
}
.ut-stars {
    display: flex;
    gap: 4px;
    margin-left: -6px;
}
.ut-stars label {
    display: inline-flex;
    margin: 0;
    padding: 6px;
    cursor: pointer;
    border-radius: 10px;
    -webkit-tap-highlight-color: transparent;
}
.ut-stars svg {
    width: 44px;
    height: 44px;
    fill: #e7eae4;
    stroke: #b8bfb2;
    stroke-width: 1.1;
    stroke-linejoin: round;
    transition: fill .15s ease, stroke .15s ease, transform .15s ease;
}
.ut-stars input:focus-visible + label {
    outline: 3px solid var(--primary-color-light, #0d7e05);
    outline-offset: 1px;
}

/* Izabrana ocena: JS postavlja data-ocena; :has() radi i bez JS-a */
.ut-stars[data-ocena="1"] label:nth-of-type(-n+1) svg,
.ut-stars[data-ocena="2"] label:nth-of-type(-n+2) svg,
.ut-stars[data-ocena="3"] label:nth-of-type(-n+3) svg,
.ut-stars[data-ocena="4"] label:nth-of-type(-n+4) svg,
.ut-stars[data-ocena="5"] label:nth-of-type(-n+5) svg,
.ut-stars:has(#ut-ocena-1:checked) label:nth-of-type(-n+1) svg,
.ut-stars:has(#ut-ocena-2:checked) label:nth-of-type(-n+2) svg,
.ut-stars:has(#ut-ocena-3:checked) label:nth-of-type(-n+3) svg,
.ut-stars:has(#ut-ocena-4:checked) label:nth-of-type(-n+4) svg,
.ut-stars:has(#ut-ocena-5:checked) label:nth-of-type(-n+5) svg {
    fill: #f5b301;
    stroke: #d39a00;
}

/* Pregled pri prelasku mišem (samo uređaji sa mišem) */
@media (hover: hover) {
    .ut-stars:hover label svg {
        fill: #ffd257;
        stroke: #d39a00;
    }
    .ut-stars label:hover ~ label svg {
        fill: #e7eae4;
        stroke: #b8bfb2;
    }
    .ut-stars label:hover svg {
        transform: scale(1.08);
    }
}

.ut-star-hint {
    margin: 4px 0 0;
    min-height: 1.4em;
    font-size: 0.9rem;
    color: #666;
}

/* Polja */
.ut-field {
    margin-bottom: 18px;
}
.ut-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}
.ut-form .form-control {
    font-size: 16px; /* manje od 16px na iPhone-u zumira stranicu */
    border-radius: 8px;
    margin-bottom: 0;
}
.ut-form textarea.form-control {
    min-height: 140px;
    resize: vertical;
}
.ut-form .form-control:focus {
    border-color: var(--primary-color-light, #0d7e05);
    box-shadow: 0 0 0 3px rgba(13, 126, 5, 0.15);
}
.ut-form .form-control.is-invalid {
    border-color: #c62828;
    background-image: none;
    padding-right: 0.75rem;
}
.ut-req {
    color: #c62828;
}
.ut-optional {
    font-weight: 400;
    color: #777;
}
.ut-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.ut-count {
    margin-left: auto;
    padding-top: 6px;
    font-size: 0.8rem;
    color: #888;
    white-space: nowrap;
}
.ut-help {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: #6b6b6b;
    line-height: 1.4;
}
.ut-error {
    margin: 6px 0 0;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #c62828;
}
.ut-error[hidden] {
    display: none;
}
.ut-form-error {
    padding: 12px 14px;
    margin: 0 0 16px;
    background: #fdecea;
    border-radius: 8px;
}
.ut-captcha {
    min-height: 78px;
}

/* #ut-form: tema na .btn ima jača pravila (plava boja, velika slova) */
#ut-form .ut-submit {
    display: block;
    width: 100%;
    height: auto;
    min-height: 48px;
    line-height: 1.3;
    margin: 6px 0 0;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .3px;
    color: #fff;
    background-color: var(--primary-color, #072f04);
    border: 0;
    border-radius: 8px;
    text-transform: none;
}
#ut-form .ut-submit:hover,
#ut-form .ut-submit:focus {
    color: #fff;
    background-color: var(--primary-color-light, #0d7e05);
}
#ut-form .ut-submit:disabled {
    opacity: .7;
    cursor: wait;
}
.ut-privacy {
    margin: 12px 0 0;
    font-size: 0.8rem;
    color: #777;
    text-align: center;
}

/* Posle slanja */
.ut-done {
    text-align: center;
    padding: 18px 4px 8px;
    outline: none;
}
.ut-done-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    fill: none;
    stroke: var(--primary-color-light, #0d7e05);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ut-done h2 {
    font-size: 1.5rem;
    color: var(--primary-color, #072f04);
    margin-bottom: 12px;
}
.ut-done p {
    color: #444;
    line-height: 1.6;
}
.ut-done strong {
    word-break: break-all;
}
.ut-done a {
    color: var(--primary-color-light, #0d7e05);
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .ut-section {
        padding: 30px 0 50px;
    }
    .ut-intro {
        padding: 0 0 18px;
    }
    .ut-intro h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 575.98px) {
    .ut-panel {
        padding: 20px 14px 18px;
        border-radius: 12px;
    }
    .ut-row {
        grid-template-columns: 1fr;
    }
    .ut-stars {
        gap: 0;
        margin-left: -4px;
        max-width: 280px;
        justify-content: space-between;
    }
    .ut-stars label {
        padding: 4px;
    }
    .ut-stars svg {
        width: 42px;
        height: 42px;
    }
    /* reCAPTCHA je široka 304px; na uskim ekranima je smanjujemo da ne izlazi iz okvira */
    .ut-captcha .g-recaptcha {
        transform-origin: 0 0;
    }
}
@media (max-width: 399.98px) {
    .ut-captcha {
        min-height: 71px;
    }
    .ut-captcha .g-recaptcha {
        transform: scale(0.9);
    }
}
@media (max-width: 363.98px) {
    .ut-captcha {
        min-height: 63px;
    }
    .ut-captcha .g-recaptcha {
        transform: scale(0.8);
    }
    .ut-stars svg {
        width: 38px;
        height: 38px;
    }
}
@media (max-width: 333.98px) {
    .ut-captcha {
        min-height: 57px;
    }
    .ut-captcha .g-recaptcha {
        transform: scale(0.72);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ut-stars svg {
        transition: none;
    }
}
