:root {
    --ap-red: #D7262E;
    --ap-red-dark: #B71C23;
    --ap-red-soft: #FDECEC;
    --ap-ink: #0E0E10;
    --ap-ink-2: #1A1A1E;
    --ap-text: #141416;
    --ap-muted: #5F5F67;
    --ap-line: #E6E6EA;
    --ap-bg: #F6F6F7;
    --ap-surface: #FFFFFF;
    --ap-green: #1E9E5A;
    --ap-green-soft: #E7F6EE;
    --ap-radius: 18px;
    --ap-radius-sm: 12px;
    --ap-shadow: 0 1px 2px rgba(14, 14, 16, .04), 0 8px 24px rgba(14, 14, 16, .06);
    --ap-shadow-lg: 0 24px 60px rgba(14, 14, 16, .18);
    --ap-header-h: 72px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--ap-header-h) + 16px);
}

html, body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Roboto, sans-serif;
    background: var(--ap-bg);
    color: var(--ap-text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p {
    margin: 0;
}

h1:focus {
    outline: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

/* Footer je uvek na dnu ekrana, i kad je sadržaj kratak */
.ap-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.ap-main {
    flex: 1;
}

.ap-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.ap-narrow {
    max-width: 640px;
}

.ap-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ap-muted {
    color: var(--ap-muted);
}

/* Hover efekti su svuda u @media (hover: hover): na telefonu nema miša, pa bi hover ostao
   "zalepljen" na mestu poslednjeg dodira (npr. crveni okvir na redu koji korisnik nije ni dirao). */

/* ---------- Buttons ---------- */

.ap-btn.mud-button-root {
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.ap-btn--lg.mud-button-root {
    padding: 14px 28px;
    font-size: 1rem;
}

.ap-btn.mud-button-filled-primary:not(.mud-button-disabled) {
    box-shadow: 0 8px 20px rgba(215, 38, 46, .28);
}

@media (hover: hover) {
    .ap-btn.mud-button-filled-primary:hover {
        background-color: var(--ap-red-dark);
    }
}

.ap-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    font-weight: 600;
    transition: background .2s, border-color .2s;
}

@media (hover: hover) {
    .ap-btn-ghost:hover {
        background: rgba(255, 255, 255, .08);
        border-color: rgba(255, 255, 255, .4);
    }
}

.ap-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    color: var(--ap-text);
    transition: background .2s;
}

@media (hover: hover) {
    .ap-link-btn:hover {
        background: var(--ap-bg);
    }
}

/* ---------- Logo ---------- */

.ap-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Pravi logo firme (isečen iz originalne slike) */
.ap-logo__mark {
    display: block;
    width: auto;
    height: 54px;
    border-radius: 12px;
}

.ap-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.ap-logo__text strong {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.ap-logo__text small {
    font-size: .72rem;
    font-weight: 600;
    color: var(--ap-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ---------- Header ---------- */

.ap-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--ap-header-h);
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(14, 14, 16, .06);
}

.ap-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 16px;
}

/* Linkovi su desno, uz dugmad: levo logo, desno sve na šta se klikće */
.ap-header__nav {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.ap-header__nav a {
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    color: var(--ap-muted);
    transition: color .2s, background .2s;
}

@media (hover: hover) {
    .ap-header__nav a:hover {
        color: var(--ap-text);
        background: var(--ap-bg);
    }
}

.ap-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 16px;
    border-left: 1px solid var(--ap-line);
}

/* Označena stavka: gde je korisnik trenutno.
   Sekcije početne strane dolaze iz <html data-section> (js/scroll.js), stranice iz NavLink klase is-active. */
html[data-section="usluge"] .ap-header__nav a[href="/#usluge"],
html[data-section="placanje"] .ap-header__nav a[href="/#placanje"],
html[data-section="kontakt"] .ap-header__nav a[href="/#kontakt"],
.ap-link-btn.is-active {
    background: var(--ap-red-soft);
    color: var(--ap-red);
    font-weight: 700;
}

html[data-section="usluge"] .ap-menu a[href="/#usluge"],
html[data-section="placanje"] .ap-menu a[href="/#placanje"],
html[data-section="kontakt"] .ap-menu a[href="/#kontakt"],
.ap-menu a.is-active {
    background: var(--ap-red-soft);
    color: var(--ap-red);
    font-weight: 700;
}

html[data-section="usluge"] .ap-menu a[href="/#usluge"] .mud-icon-root,
html[data-section="placanje"] .ap-menu a[href="/#placanje"] .mud-icon-root,
html[data-section="kontakt"] .ap-menu a[href="/#kontakt"] .mud-icon-root,
.ap-menu a.is-active .mud-icon-root {
    color: var(--ap-red);
}

@media (max-width: 960px) {
    .ap-header__actions {
        padding-left: 0;
        border-left: 0;
    }
}

/* Na telefonu je "Moj termin" samo ikonica: kad je aktivna, puna crvena */
@media (max-width: 640px) {
    .ap-link-btn.is-active {
        background: var(--ap-red);
        color: #fff;
    }
}

/* ---------- Hero ---------- */

.ap-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(900px 500px at 85% 10%, rgba(215, 38, 46, .45), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(215, 38, 46, .18), transparent 60%),
    linear-gradient(180deg, var(--ap-ink) 0%, var(--ap-ink-2) 100%);
    padding: 72px 0 96px;
}

.ap-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
    pointer-events: none;
}

.ap-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 56px;
    align-items: center;
}

.ap-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: .88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
}

.ap-pill .mud-icon-root {
    color: var(--ap-red);
}

.ap-hero__title {
    margin: 22px 0 18px;
    font-size: clamp(2.3rem, 5vw, 3.9rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.035em;
}

.ap-hero__title span {
    color: var(--ap-red);
}

.ap-hero__lead {
    max-width: 520px;
    font-size: 1.12rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .72);
}

.ap-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

/* "Prvi slobodan termin": kartica u obliku karte, sa perforacijom između dva dela */
.ap-slot-card {
    max-width: 440px;
    margin-left: auto;
    color: var(--ap-text);
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45));
}

/* Polukružni zarezi na spoju dva dela su stvarno providni (radial-gradient), pa se kroz njih vidi pozadina */
.ap-slot-card__top {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px 26px 24px;
    border-radius: 24px 24px 0 0;
    background: radial-gradient(circle at 0 100%, transparent 11px, #fff 11.5px) left bottom / 51% 100% no-repeat,
    radial-gradient(circle at 100% 100%, transparent 11px, #fff 11.5px) right bottom / 51% 100% no-repeat;
}

.ap-slot-card__bottom {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: -1px;
    padding: 23px 26px 22px;
    border-radius: 0 0 24px 24px;
    background: radial-gradient(circle at 0 0, transparent 11px, #fff 11.5px) left top / 51% 100% no-repeat,
    radial-gradient(circle at 100% 0, transparent 11px, #fff 11.5px) right top / 51% 100% no-repeat;
}

/* perforacija */
.ap-slot-card__bottom::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    border-top: 2px dashed #D5D5DC;
}

.ap-slot-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 78px;
    padding: 11px 0;
    border-radius: 18px;
    background: var(--ap-red);
    color: #fff;
    box-shadow: 0 8px 18px rgba(215, 38, 46, .3);
}

.ap-slot-card__date small,
.ap-slot-card__date span {
    font-size: .74rem;
    font-weight: 700;
    line-height: 1.2;
    opacity: .9;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.ap-slot-card__date strong {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.05;
}

.ap-slot-card__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ap-slot-card__head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ap-muted);
}

.ap-slot-card__time {
    margin: 2px 0;
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
}

.ap-slot-card__day {
    font-size: .95rem;
    font-weight: 600;
    color: var(--ap-muted);
}

.ap-slot-card__more {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    font-size: .84rem;
    font-weight: 600;
    color: var(--ap-muted);
}

.ap-slot-card__times {
    display: flex;
    gap: 8px;
}

.ap-slot-card__times a {
    flex: 1;
    padding: 9px 4px;
    border: 1.5px solid var(--ap-line);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    color: var(--ap-text);
    transition: border-color .15s, background .15s, color .15s;
}

@media (hover: hover) {
    .ap-slot-card__times a:hover {
        border-color: var(--ap-red);
        background: var(--ap-red-soft);
        color: var(--ap-red);
    }
}

.ap-slot-card__other {
    align-self: center;
    margin-top: 14px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ap-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (hover: hover) {
    .ap-slot-card__other:hover {
        color: var(--ap-red);
    }
}

@media (max-width: 960px) {
    .ap-slot-card {
        max-width: 460px;
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .ap-slot-card {
        max-width: none;
    }

    .ap-slot-card__top {
        padding: 22px 20px 20px;
    }

    .ap-slot-card__bottom {
        padding: 21px 20px 20px;
    }

    .ap-slot-card__time {
        font-size: 2.8rem;
    }
}

.ap-hero__discount {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    font-size: .95rem;
    font-weight: 600;
    color: #7EE2A8;
}

.ap-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ap-green);
    box-shadow: 0 0 0 0 rgba(30, 158, 90, .5);
    animation: ap-pulse 2s infinite;
}

@keyframes ap-pulse {
    70% {
        box-shadow: 0 0 0 10px rgba(30, 158, 90, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(30, 158, 90, 0);
    }
}

/* ---------- Sections ---------- */

.ap-section {
    padding: 88px 0;
}

.ap-section--muted {
    background: var(--ap-surface);
    border-top: 1px solid var(--ap-line);
    border-bottom: 1px solid var(--ap-line);
}

/* sekcija koja se nastavlja na prethodnu, bez duplog razmaka */
.ap-section--flush {
    padding-top: 0;
}

.ap-section__title {
    margin-bottom: 28px;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.03em;
}

/* Meni postoji samo na telefonu (stilovi su u @media ispod) */
.ap-menu-btn,
.ap-menu,
.ap-menu-backdrop {
    display: none;
}

.ap-service__partner {
    display: inline-block;
    margin-top: 14px;
    padding: 5px 12px;
    border: 1px solid var(--ap-line);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--ap-text);
}

/* Logo partnera na kartici usluge: mali, na dnu kartice */
.ap-service {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ap-service__logo {
    display: block;
    width: auto;
    max-width: 150px;
    height: 24px;
    margin-top: auto;
    padding-top: 16px;
    box-sizing: content-box;
    object-fit: contain;
    object-position: left center;
}

/* Termin izabran prečicom sa početne strane */
.ap-preselected {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px !important;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--ap-green-soft);
    font-size: .9rem;
    color: #136B3D;
}

/* Oznake na kartici usluge (načini plaćanja) */
.ap-service__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.ap-service__tags li {
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--ap-bg);
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
}

/* kartica do koje vodi link iz menija staje ispod headera */
.ap-service[id] {
    scroll-margin-top: 8px;
}

/* ---------- Gallery ---------- */

.ap-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.ap-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--ap-radius-sm);
    object-fit: cover;
    background: var(--ap-line);
}

/* ---------- Services ---------- */

.ap-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ap-service {
    padding: 28px;
    background: var(--ap-surface);
    border: 1px solid var(--ap-line);
    border-radius: var(--ap-radius);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}

@media (hover: hover) {
    .ap-service:hover {
        transform: translateY(-4px);
        box-shadow: var(--ap-shadow);
        border-color: transparent;
    }
}

.ap-service h3 {
    margin: 18px 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
}

.ap-service p {
    line-height: 1.6;
    color: var(--ap-muted);
}

.ap-icon-badge {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--ap-red-soft);
    color: var(--ap-red);
}

.ap-icon-badge--lg {
    width: 54px;
    height: 54px;
    border-radius: 16px;
}

/* ---------- Steps ---------- */

/* ---------- Banner ---------- */

.ap-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 48px;
    border-radius: 28px;
    color: #fff;
    background: radial-gradient(500px 300px at 100% 0%, rgba(215, 38, 46, .55), transparent 70%),
    var(--ap-ink);
}

.ap-banner__text {
    max-width: 600px;
}

.ap-banner h2 {
    margin: 10px 0 12px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.03em;
}

.ap-banner p {
    line-height: 1.6;
    color: rgba(255, 255, 255, .72);
}

.ap-banner__call {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    padding: 16px 24px 16px 16px;
    border-radius: 999px;
    background: #fff;
    color: var(--ap-text);
    transition: transform .2s;
}

@media (hover: hover) {
    .ap-banner__call:hover {
        transform: scale(1.03);
    }
}

.ap-banner__call > .mud-icon-root {
    width: 48px;
    height: 48px;
    padding: 12px;
    box-sizing: border-box;
    border-radius: 50%;
    background: var(--ap-red);
    color: #fff;
}

.ap-banner__call span {
    display: flex;
    flex-direction: column;
}

.ap-banner__call small {
    font-size: .8rem;
    color: var(--ap-muted);
}

.ap-banner__call strong {
    font-size: 1.15rem;
    font-weight: 800;
}

/* ---------- Contact ---------- */

.ap-contact {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 24px;
}

.ap-contact__info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ap-info-row {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: var(--ap-radius);
    background: var(--ap-bg);
    transition: background .2s;
}

@media (hover: hover) {
    a.ap-info-row:hover {
        background: var(--ap-red-soft);
    }
}

.ap-info-row > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ap-info-row small,
.ap-review__row small {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ap-muted);
}

.ap-info-row strong {
    font-size: 1.05rem;
}

.ap-hours {
    flex: 1;
}

.ap-hours__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    font-size: .95rem;
    color: var(--ap-muted);
}

.ap-hours__row strong {
    font-size: .95rem;
    color: var(--ap-text);
}

.ap-contact__map {
    min-height: 360px;
    border-radius: var(--ap-radius);
    overflow: hidden;
    background: var(--ap-bg);
}

.ap-contact__map iframe {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
    display: block;
}

/* ---------- Footer ---------- */

.ap-footer {
    padding: 18px 0;
    background: var(--ap-ink);
    color: rgba(255, 255, 255, .55);
    font-size: .85rem;
}

.ap-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.ap-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.ap-footer__links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, .75);
    transition: color .2s;
}

@media (hover: hover) {
    .ap-footer__links a:hover,
    .ap-footer__legal:hover {
        color: #fff;
    }
}

.ap-footer__legal {
    color: rgba(255, 255, 255, .75);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ap-footer__links .mud-icon-root {
    font-size: 1rem;
    color: var(--ap-red);
}

/* ---------- Sticky mobile CTA ---------- */

.ap-sticky-cta {
    display: none;
}

/* ---------- Booking pages ---------- */

.ap-page {
    padding: 48px 0 80px;
    background: radial-gradient(700px 300px at 50% -100px, rgba(215, 38, 46, .10), transparent 70%);
}

.ap-page__head {
    margin-bottom: 24px;
    text-align: center;
}

.ap-page__head h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 6px;
}

.ap-card {
    background: var(--ap-surface);
    border: 1px solid var(--ap-line);
    border-radius: 24px;
    box-shadow: var(--ap-shadow);
}

.ap-booking {
    padding: 32px;
}

.ap-booking__step {
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: ap-fade-in .3s ease;
}

.ap-booking__step h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.ap-booking__step > .mud-button-root {
    margin-top: 22px;
}

@keyframes ap-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.ap-step-tag {
    font-size: .8rem;
    font-weight: 700;
    color: var(--ap-red);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* progress */

/* Koraci: numerisani krugovi spojeni linijom, trenutni korak je crven i istaknut */
.ap-progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 16px;
}

.ap-progress__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    cursor: pointer;
}

.ap-progress__item:disabled {
    cursor: default;
}

/* linija ka prethodnom koraku */
.ap-progress__item:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 15px;
    right: calc(50% + 20px);
    left: calc(-50% + 20px);
    height: 3px;
    border-radius: 999px;
    background: var(--ap-line);
    transition: background .3s;
}

.ap-progress__item.is-done::before,
.ap-progress__item.is-current::before {
    background: var(--ap-red);
}

.ap-progress__dot {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 2px solid var(--ap-line);
    border-radius: 50%;
    background: var(--ap-surface);
    font-size: .9rem;
    font-weight: 800;
    color: #9A9AA2;
    transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}

.ap-progress__dot .mud-icon-root {
    font-size: 1.1rem;
}

.ap-progress__item.is-done .ap-progress__dot {
    border-color: var(--ap-red);
    background: var(--ap-red-soft);
    color: var(--ap-red);
}

.ap-progress__item.is-current .ap-progress__dot {
    border-color: var(--ap-red);
    background: var(--ap-red);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(215, 38, 46, .15);
}

.ap-progress__label {
    font-size: .8rem;
    font-weight: 600;
    color: #9A9AA2;
}

.ap-progress__item.is-done .ap-progress__label {
    color: var(--ap-muted);
}

.ap-progress__item.is-current .ap-progress__label {
    color: var(--ap-red);
    font-weight: 800;
}

@media (hover: hover) {
    .ap-progress__item.is-done:hover .ap-progress__dot {
        background: var(--ap-red);
        color: #fff;
    }
}

/* phone input */

.ap-phone-field {
    display: flex;
    align-items: stretch;
    margin-top: 18px;
    border: 2px solid var(--ap-line);
    border-radius: 16px;
    background: var(--ap-surface);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

.ap-phone-field:focus-within {
    border-color: var(--ap-red);
    box-shadow: 0 0 0 4px rgba(215, 38, 46, .12);
}

.ap-phone-field__prefix {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px 0 16px;
    border-right: 1px solid var(--ap-line);
    background: var(--ap-bg);
    font-weight: 700;
    font-size: 1.1rem;
}

.ap-flag {
    display: block;
    width: 28px;
    height: 21px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .1);
}

/* consent */

.ap-consent {
    position: relative;
    margin-top: 14px;
    padding: 10px 10px 10px 14px;
    border: 1.5px solid var(--ap-line);
    border-radius: 14px;
    transition: border-color .15s, background .15s;
}

@media (hover: hover) {
    .ap-consent:hover {
        border-color: #CFCFD6;
    }
}

.ap-consent__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ap-consent__main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    cursor: pointer;
}

.ap-consent__label {
    font-size: .9rem;
    font-weight: 600;
    color: var(--ap-text);
}

.ap-consent__toggle {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--ap-muted);
    cursor: pointer;
}

@media (hover: hover) {
    .ap-consent__toggle:hover {
        background: var(--ap-red-soft);
    }
}

.ap-consent__toggle .mud-icon-root {
    transition: transform .2s;
}

.ap-consent__toggle.is-open .mud-icon-root {
    transform: rotate(180deg);
}

.ap-consent.is-checked {
    border-color: #BFE6CF;
    background: #F4FBF7;
}

.ap-consent input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.ap-consent__box {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid #B5B5BC;
    border-radius: 7px;
    background: var(--ap-surface);
    color: transparent;
    transition: background .15s, border-color .15s;
}

.ap-consent__box .mud-icon-root {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.ap-consent input:focus-visible + .ap-consent__box {
    box-shadow: 0 0 0 4px rgba(215, 38, 46, .18);
}

.ap-consent.is-checked .ap-consent__box {
    border-color: var(--ap-green);
    background: var(--ap-green);
    color: #fff;
}

.ap-consent__text {
    margin: 8px 4px 2px 32px;
    animation: ap-fade-in .2s ease;
    font-size: .85rem;
    line-height: 1.5;
    color: var(--ap-muted);
}

.ap-consent__text a {
    color: var(--ap-red);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* legal page */

.ap-legal {
    padding: 32px;
    line-height: 1.65;
    color: #33333A;
}

.ap-legal h2 {
    margin: 28px 0 8px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ap-text);
}

.ap-legal h2:first-child {
    margin-top: 0;
}

.ap-legal p {
    margin: 0 0 10px;
}

.ap-legal ul {
    margin: 0 0 10px;
    padding-left: 20px;
}

.ap-legal li {
    margin: 2px 0;
}

.ap-legal a {
    color: var(--ap-red);
    font-weight: 600;
}

.ap-legal__version {
    margin-top: 28px !important;
    padding-top: 16px;
    border-top: 1px solid var(--ap-line);
    font-size: .85rem;
    color: var(--ap-muted);
}

.ap-phone-field.is-valid {
    border-color: var(--ap-green);
}

.ap-phone-field.is-valid:focus-within {
    box-shadow: 0 0 0 4px rgba(30, 158, 90, .12);
}

.ap-phone-field.is-invalid {
    border-color: var(--ap-red);
    background: #FFFAFA;
}

.ap-phone-field .mud-input-control {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.ap-phone-field .mud-input-control > .mud-input-control-input-container {
    height: 100%;
}

.ap-phone-field .mud-input {
    height: 100%;
}

.ap-phone-field .mud-input > input.mud-input-root {
    height: auto;
    padding: 18px 16px;
    font: inherit;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--ap-text);
}

.ap-phone-field .mud-input > input.mud-input-root::placeholder {
    color: #B5B5BC;
    font-weight: 500;
    opacity: 1;
}

.ap-phone-field__ok.mud-icon-root {
    align-self: center;
    margin-right: 14px;
    color: var(--ap-green);
}

.ap-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: .85rem;
    color: var(--ap-muted);
}

.ap-hint--error {
    color: var(--ap-red);
    font-weight: 600;
}

/* moji termini (iz kolačića) */

.ap-loading {
    display: flex;
    justify-content: center;
    padding: 80px 0;
}

.ap-my-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ap-my-list .ap-call {
    margin-top: 10px;
    text-align: center;
}

/* podsetnik i navigacija */

.ap-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
}

.ap-action {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border: 1.5px solid var(--ap-line);
    border-radius: 999px;
    background: var(--ap-surface);
    font-size: .88rem;
    font-weight: 700;
    color: var(--ap-text);
    white-space: nowrap;
    transition: border-color .15s, color .15s, background .15s;
}

.ap-action .mud-icon-root {
    color: var(--ap-red);
}

@media (hover: hover) {
    .ap-action:hover {
        border-color: var(--ap-red);
        background: var(--ap-red-soft);
    }
}

.ap-call {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
}

/* dostignut limit pokušaja */

.ap-limit {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1.5px solid #F5C2C4;
    border-radius: 14px;
    background: #FFF5F5;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--ap-red-dark);
    animation: ap-fade-in .25s ease;
}

.ap-limit .mud-icon-root {
    flex-shrink: 0;
    margin-top: 1px;
}

/* postojeći termin za ovaj broj */

.ap-existing {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
    padding: 14px;
    border: 1.5px solid #FBE3B5;
    border-radius: 16px;
    background: #FFF8EC;
    animation: ap-fade-in .25s ease;
}

.ap-existing__head {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #B45309;
}

.ap-existing p {
    font-size: .88rem;
    line-height: 1.5;
    color: #7C4A0E;
}

.ap-existing__when {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--ap-surface);
    font-size: .95rem;
}

.ap-existing > .mud-button-root {
    margin-top: 4px;
}

/* discount */

.ap-discount {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 16px;
    padding: 14px 18px;
    border: 1px solid #BFE6CF;
    border-radius: 16px;
    background: linear-gradient(135deg, #EAF8F0, #F4FBF7);
    text-align: left;
}

.ap-discount__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--ap-green);
    color: #fff;
}

.ap-discount__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ap-discount__text strong {
    color: #136B3D;
}

.ap-discount__text small {
    font-size: .82rem;
    color: #3F7A5A;
}

.ap-result .ap-discount {
    margin: 4px 0 0;
}

.ap-discount__text {
    flex: 1;
    min-width: 0;
}

.ap-discount__toggle {
    display: none;
}

/* legend & availability */

.ap-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 10px;
    font-size: .8rem;
    color: var(--ap-muted);
}

.ap-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ap-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ap-dot--free {
    background: var(--ap-green);
}

.ap-dot--few {
    background: #F59E0B;
}

.ap-dot--full {
    background: #C9C9CF;
}

/* dates */

.ap-month {
    margin: 22px 0 10px;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ap-muted);
}

.ap-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.ap-calendar__weekday {
    padding-bottom: 2px;
    font-size: .75rem;
    font-weight: 700;
    text-align: center;
    color: var(--ap-muted);
}

.ap-calendar .ap-day {
    aspect-ratio: 1;
    justify-content: center;
    padding: 4px;
}

/* Naslov sledećeg meseca: na računaru običan naslov, na telefonu dugme za otvaranje */
.ap-month__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    text-align: left;
    cursor: default;
}

.ap-month__toggle small,
.ap-month__toggle .mud-icon-root {
    display: none;
}

.ap-date-short {
    display: none;
}

.ap-calendar .ap-day small {
    min-height: 1em;
    font-size: .66rem;
    line-height: 1;
}

.ap-day,
.ap-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
    padding: 12px 4px;
    border: 1.5px solid var(--ap-line);
    border-radius: 14px;
    background: var(--ap-surface);
    color: var(--ap-text);
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}

.ap-day small,
.ap-day span {
    font-size: .72rem;
    color: var(--ap-muted);
}

.ap-day strong {
    font-size: 1.25rem;
    font-weight: 800;
}

@media (hover: hover) {
    .ap-day:not(:disabled):hover,
    .ap-slot:not(:disabled):hover {
        border-color: var(--ap-red);
        transform: translateY(-2px);
    }
}

.ap-day.is-free small {
    color: var(--ap-green);
    font-weight: 700;
}

.ap-day.is-few {
    background: #FFF7E8;
    border-color: #FBE3B5;
}

.ap-day.is-few small {
    color: #B45309;
    font-weight: 700;
}

.ap-day.is-today {
    border-color: var(--ap-red);
}

.ap-day.is-selected,
.ap-slot.is-selected {
    background: var(--ap-red);
    border-color: var(--ap-red);
    color: #fff;
    box-shadow: 0 8px 18px rgba(215, 38, 46, .3);
}

.ap-day.is-selected small,
.ap-day.is-selected span,
.ap-slot.is-selected small {
    color: rgba(255, 255, 255, .85);
}

.ap-day:disabled {
    cursor: not-allowed;
    background: var(--ap-bg);
    border-color: transparent;
    opacity: .55;
}

/* time slots */

.ap-day-switch {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-top: 10px;
}

.ap-day-switch__btn {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 48px;
    border: 1.5px solid var(--ap-line);
    border-radius: 14px;
    background: var(--ap-surface);
    color: var(--ap-text);
    cursor: pointer;
    transition: border-color .15s;
}

@media (hover: hover) {
    .ap-day-switch__btn:not(:disabled):hover {
        border-color: var(--ap-red);
        color: var(--ap-red);
    }
}

.ap-day-switch__btn:disabled {
    opacity: .35;
    cursor: default;
}

.ap-day-switch__current {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px;
    border: 0;
    border-radius: 14px;
    background: var(--ap-bg);
    color: var(--ap-text);
    cursor: pointer;
}

.ap-day-switch__current small {
    font-size: .78rem;
    font-weight: 700;
    color: var(--ap-red);
}

.ap-slot-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-top: 18px;
}

.ap-slot-summary .ap-legend {
    margin-top: 0;
}

.ap-slot-summary__count strong {
    font-size: 1.2rem;
    color: var(--ap-green);
}

.ap-meter {
    display: flex;
    gap: 3px;
    margin: 8px 0 18px;
}

.ap-meter span {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: #DCDCE1;
}

.ap-meter span.is-free {
    background: var(--ap-green);
}

.ap-slots {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.ap-slot {
    padding: 14px 4px;
}

.ap-slot strong {
    font-size: 1.15rem;
    font-weight: 800;
}

.ap-slot small {
    font-size: .74rem;
    font-weight: 700;
}

.ap-slot.is-free {
    border-color: #BFE6CF;
}

.ap-slot.is-free small {
    color: var(--ap-green);
}

.ap-slot.is-taken {
    cursor: not-allowed;
    border-color: transparent;
    background: repeating-linear-gradient(-45deg, #F2F2F4 0 6px, #EAEAED 6px 12px);
    color: #9A9AA2;
}

.ap-slot.is-taken strong {
    text-decoration: line-through;
}

.ap-slot.is-taken small {
    color: #9A9AA2;
}

.ap-back {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    margin-top: 24px;
    padding: 8px 12px 8px 8px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--ap-muted);
    font-weight: 600;
    cursor: pointer;
}

@media (hover: hover) {
    .ap-back:hover {
        background: var(--ap-bg);
        color: var(--ap-text);
    }
}

.ap-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px;
    margin-top: 16px;
    border-radius: var(--ap-radius);
    background: var(--ap-bg);
    color: var(--ap-muted);
    text-align: center;
}

/* review */

.ap-review {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.ap-review__row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid var(--ap-line);
    border-radius: 16px;
    background: var(--ap-surface);
    text-align: left;
    color: var(--ap-text);
    cursor: pointer;
    transition: border-color .15s;
}

@media (hover: hover) {
    .ap-review__row:hover {
        border-color: var(--ap-red);
    }
}

.ap-review__row > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ap-review__row strong {
    font-size: 1.02rem;
}

.ap-review__edit {
    font-size: .85rem;
    font-weight: 700;
    color: var(--ap-red);
}

/* result */

.ap-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 32px;
    text-align: center;
    animation: ap-fade-in .35s ease;
}

.ap-result--compact {
    margin-top: 16px;
    padding: 32px;
}

.ap-result h1 {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.ap-result h2 {
    font-size: 1.35rem;
    font-weight: 800;
}

.ap-result__icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: var(--ap-green);
    color: #fff;
    box-shadow: 0 0 0 10px var(--ap-green-soft);
    animation: ap-pop .45s cubic-bezier(.2, 1.4, .4, 1);
}

.ap-result__icon--muted {
    background: var(--ap-bg);
    color: var(--ap-muted);
    box-shadow: none;
}

@keyframes ap-pop {
    from {
        transform: scale(.4);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.ap-result__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

/* ---------- Kartica termina ---------- */

.ap-appt {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
    padding: 18px;
    border: 1px solid var(--ap-line);
    border-radius: 22px;
    background: var(--ap-surface);
    box-shadow: var(--ap-shadow);
    text-align: left;
}

/* Unutar druge kartice (potvrda zakazivanja, rezultat provere) bez senke, na svetloj podlozi */
.ap-result .ap-appt {
    margin: 10px 0 4px;
    border-color: transparent;
    background: var(--ap-bg);
    box-shadow: none;
}

.ap-appt__head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ap-appt__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 58px;
    padding: 8px 0;
    border-radius: 14px;
    background: var(--ap-red);
    color: #fff;
    box-shadow: 0 6px 14px rgba(215, 38, 46, .25);
}

.ap-appt__date small,
.ap-appt__date span {
    font-size: .66rem;
    font-weight: 700;
    line-height: 1.2;
    opacity: .9;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.ap-appt__date strong {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.1;
}

.ap-appt__when {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: .88rem;
    color: var(--ap-muted);
}

.ap-appt__time {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15;
    color: var(--ap-text);
    white-space: nowrap;
}

.ap-appt__title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--ap-text);
}

.ap-appt__when .ap-chip-success {
    align-self: flex-start;
    margin-bottom: 2px;
}

/* redovi sa ikonom: telefon, adresa */
.ap-appt__rows {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--ap-line);
}

.ap-appt__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 2px;
    border-bottom: 1px solid var(--ap-line);
    font-size: .95rem;
    font-weight: 600;
    color: var(--ap-text);
}

.ap-appt__row > .mud-icon-root:first-child {
    color: var(--ap-muted);
}

.ap-appt__row span {
    flex: 1;
    min-width: 0;
}

.ap-appt__chevron.mud-icon-root {
    color: #B5B5BC;
}

@media (hover: hover) {
    a.ap-appt__row:hover {
        color: var(--ap-red);
    }
}

/* više termina istog dana */
.ap-appt__times {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ap-appt__times li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 10px 10px 14px;
    border-radius: 14px;
    background: var(--ap-bg);
}

.ap-appt__slot {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ap-appt__slot strong {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.ap-appt__slot small {
    font-size: .82rem;
    color: var(--ap-muted);
}

.ap-appt__reminder {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--ap-surface);
    font-size: .82rem;
    font-weight: 700;
    color: var(--ap-text);
}

.ap-appt__reminder .mud-icon-root {
    color: var(--ap-red);
}

/* dva jednaka dugmeta na dnu kartice */
.ap-appt .ap-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 10px;
    margin-top: 0;
}

.ap-appt .ap-action {
    padding: 12px 8px;
    border-radius: 14px;
    background: var(--ap-surface);
}

.ap-result .ap-appt .ap-action,
.ap-result .ap-appt .ap-appt__reminder {
    border-color: transparent;
}

.ap-chip-success {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px 3px 6px;
    border-radius: 999px;
    background: var(--ap-green-soft);
    color: var(--ap-green);
    font-size: .78rem;
    font-weight: 700;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .ap-hero__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ap-services {
        grid-template-columns: repeat(2, 1fr);
    }

    .ap-contact {
        grid-template-columns: 1fr;
    }

    .ap-header__nav {
        display: none;
    }
}

@media (max-width: 640px) {
    :root {
        --ap-header-h: 54px;
    }

    .ap-container {
        padding: 0 16px;
    }

    .ap-header__cta,
    .ap-link-btn span {
        display: none !important;
    }

    .ap-page__head {
        margin-bottom: 14px;
    }

    .ap-page__head h1 {
        font-size: 1.5rem;
        margin-bottom: 2px;
    }

    .ap-page__head p {
        font-size: .9rem;
    }

    /* Manji header na telefonu */
    .ap-logo {
        gap: 8px;
    }

    .ap-logo__mark {
        height: 44px;
        border-radius: 10px;
    }

    .ap-logo__text strong {
        font-size: .98rem;
    }

    .ap-logo__text small {
        font-size: .62rem;
    }

    .ap-hero {
        padding: 44px 0 64px;
    }

    .ap-hero__actions > * {
        flex: 1 1 100%;
        justify-content: center;
    }

    .ap-section {
        padding: 36px 0;
    }

    /* Sekcija koja se nastavlja na prethodnu: samo razmak ispod */
    .ap-section--flush {
        padding-top: 0;
    }

    /* Dugmad u kartici termina: ista širina, tekst u jednom redu */
    .ap-appt .ap-action {
        padding: 12px 4px;
        font-size: .84rem;
    }

    .ap-appt {
        padding: 16px;
    }

    .ap-appt__time {
        font-size: 1.3rem;
    }

    .ap-services {
        grid-template-columns: 1fr;
    }

    .ap-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
    }

    body:has(.ap-sticky-cta) .ap-footer {
        padding-bottom: 92px;
    }

    .ap-day__unit {
        display: none;
    }

    /* Popust: na telefonu samo naslov, opis na klik */
    .ap-discount {
        gap: 10px;
        padding: 8px 4px 8px 10px;
        margin-bottom: 12px;
    }

    .ap-discount__icon {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .ap-discount__icon .mud-icon-root {
        font-size: 1.1rem;
    }

    .ap-discount__text strong {
        font-size: .82rem;
    }

    .ap-discount__text small {
        display: none;
        font-size: .76rem;
    }

    .ap-discount.is-open .ap-discount__text small {
        display: block;
    }

    .ap-discount__toggle {
        display: grid;
        place-items: center;
        flex-shrink: 0;
        width: 30px;
        height: 30px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: none;
        color: #3F7A5A;
        cursor: pointer;
    }

    .ap-discount__toggle .mud-icon-root {
        transition: transform .2s;
    }

    .ap-discount.is-open .ap-discount__toggle .mud-icon-root {
        transform: rotate(180deg);
    }

    /* Sledeći mesec se otvara na klik */
    .ap-month__toggle {
        justify-content: space-between;
        margin-top: 12px;
        padding: 10px 8px 10px 12px;
        border: 1.5px solid var(--ap-line);
        border-radius: 12px;
        background: var(--ap-surface);
        cursor: pointer;
    }

    .ap-month__toggle span,
    .ap-month__toggle small {
        white-space: nowrap;
    }

    .ap-month__toggle small {
        display: inline;
        margin-left: auto;
        font-size: .72rem;
        font-weight: 600;
        text-transform: none;
        letter-spacing: 0;
        color: var(--ap-green);
    }

    .ap-month__toggle .mud-icon-root {
        display: inline-block;
        transition: transform .2s;
    }

    .ap-month-section.is-open .ap-month__toggle .mud-icon-root {
        transform: rotate(180deg);
    }

    .ap-month-section.is-collapsible:not(.is-open) .ap-calendar {
        display: none;
    }

    .ap-month-section.is-collapsible.is-open .ap-month__toggle {
        margin-bottom: 8px;
    }

    .ap-date-long {
        display: none;
    }

    .ap-date-short {
        display: inline;
    }

    /* Zakazivanje: gornji deo je isti na svim koracima, menja se samo kartica */
    .ap-page--booking {
        padding-top: 14px;
    }

    .ap-page--booking .ap-progress {
        margin-bottom: 10px;
    }

    .ap-page--booking .ap-booking {
        padding: 16px 14px;
    }

    .ap-page--booking .ap-booking__step h2 {
        font-size: 1.25rem;
    }

    .ap-page--booking .ap-booking__step > .ap-muted {
        font-size: .85rem;
    }

    .ap-page--booking .ap-legend {
        margin-top: 6px;
        font-size: .74rem;
        gap: 4px 12px;
    }

    .ap-page--booking .ap-month {
        margin: 12px 0 6px;
    }

    .ap-page--booking .ap-day-switch {
        margin-top: 8px;
    }

    .ap-page--booking .ap-day-switch__current {
        padding: 7px;
    }

    .ap-page--booking .ap-day-switch__current strong {
        font-size: .92rem;
    }

    .ap-page--booking .ap-slot-summary {
        margin-top: 12px;
        font-size: .88rem;
    }

    .ap-page--booking .ap-meter {
        margin: 6px 0 12px;
    }

    /* Dugmad termina već pišu "Slobodno/Zauzeto", legenda je na telefonu višak */
    .ap-page--booking .ap-slot-summary .ap-legend {
        display: none;
    }

    .ap-page--booking .ap-slots {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .ap-page--booking .ap-slot {
        padding: 9px 2px;
        border-radius: 12px;
    }

    .ap-page--booking .ap-slot strong {
        font-size: 1rem;
    }

    .ap-page--booking .ap-slot small {
        font-size: .64rem;
    }

    .ap-consent {
        padding: 8px 2px 8px 12px;
    }

    .ap-consent__row {
        gap: 2px;
    }

    .ap-consent__main {
        gap: 8px;
    }

    .ap-consent__label {
        font-size: .78rem;
        line-height: 1.3;
    }

    .ap-consent__toggle {
        width: 30px;
        height: 30px;
    }

    .ap-consent__text {
        font-size: .78rem;
    }

    .ap-consent__box {
        width: 20px;
        height: 20px;
    }

    .ap-sticky-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        display: flex;
        gap: 10px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .92);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid var(--ap-line);
    }

    .ap-sticky-cta__call {
        display: grid;
        place-items: center;
        flex-shrink: 0;
        width: 50px;
        height: 50px;
        border: 2px solid var(--ap-red);
        border-radius: 50%;
        background: var(--ap-surface);
        color: var(--ap-red);
    }

    .ap-page {
        padding: 28px 0 56px;
    }

    /* Meni na telefonu */
    /* Ikonice u headeru: isti stil kao ostale ikonice na sajtu (svetlocrvena podloga, zaobljen kvadrat) */
    .ap-link-btn,
    .ap-menu-btn {
        display: grid;
        place-items: center;
        width: 38px;
        height: 38px;
        padding: 0;
        border: 0;
        border-radius: 12px;
        background: var(--ap-red-soft);
        color: var(--ap-red);
        cursor: pointer;
        transition: background .15s, color .15s;
    }

    .ap-menu-btn[aria-expanded="true"] {
        background: var(--ap-red);
        color: #fff;
    }

    /* Poziv u crnoj kartici preko cele širine */
    .ap-banner__call {
        align-self: stretch;
    }

    /* Footer: ikonice u jednom redu, ispod jedan red teksta */
    .ap-footer {
        padding: 16px 0;
    }

    .ap-footer__inner {
        flex-direction: column-reverse;
        align-items: center;
        gap: 12px;
        text-align: center;
    }

    .ap-footer__links {
        gap: 10px;
    }

    .ap-footer__links a {
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: rgba(255, 255, 255, .08);
    }

    .ap-footer__links a span {
        display: none;
    }

    .ap-footer__links .mud-icon-root {
        font-size: 1.25rem;
    }

    /* absolute, ne fixed: header ima backdrop-filter, pa bi fixed bio ograničen na visinu headera */
    .ap-menu-backdrop {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 100vh;
        background: rgba(14, 14, 16, .45);
        animation: ap-fade-in .15s ease;
    }

    /* Mala kartica u gornjem desnom uglu, ispod dugmeta menija */
    .ap-menu {
        position: absolute;
        top: calc(100% + 8px);
        right: 12px;
        display: flex;
        flex-direction: column;
        gap: 1px;
        width: 236px;
        padding: 8px;
        border: 1px solid var(--ap-line);
        border-radius: 18px;
        background: var(--ap-surface);
        box-shadow: 0 18px 40px rgba(14, 14, 16, .18);
        animation: ap-fade-in .16s ease;
    }

    .ap-menu a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 9px 10px;
        border-radius: 10px;
        font-size: .92rem;
        font-weight: 600;
        color: var(--ap-text);
    }

    .ap-menu a .mud-icon-root {
        font-size: 1.15rem;
        color: var(--ap-muted);
    }

    .ap-menu a:active {
        background: var(--ap-bg);
    }

    /* Jedino puno crveno dugme u meniju */
    .ap-menu a.ap-menu__primary {
        justify-content: center;
        margin-bottom: 6px;
        padding: 11px 10px;
        border-radius: 12px;
        background: var(--ap-red);
        color: #fff;
        font-weight: 700;
        box-shadow: 0 6px 14px rgba(215, 38, 46, .28);
    }

    .ap-menu a.ap-menu__primary .mud-icon-root {
        color: #fff;
    }

    /* Broj telefona: diskretan red na dnu */
    .ap-menu a.ap-menu__phone {
        justify-content: center;
        gap: 6px;
        margin-top: 6px;
        padding: 10px 10px 4px;
        border-top: 1px solid var(--ap-line);
        border-radius: 0;
        font-size: .8rem;
        font-weight: 600;
        color: var(--ap-muted);
    }

    .ap-menu a.ap-menu__phone .mud-icon-root {
        font-size: .95rem;
    }

    .ap-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .ap-section__title {
        margin-bottom: 20px;
    }

    .ap-booking {
        padding: 22px 18px;
    }

    .ap-calendar {
        gap: 5px;
    }

    .ap-calendar .ap-day {
        border-radius: 12px;
    }

    .ap-calendar .ap-day strong {
        font-size: 1.05rem;
    }

    .ap-slots {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ap-progress__label {
        font-size: .74rem;
    }

    .ap-progress__dot {
        width: 28px;
        height: 28px;
        font-size: .82rem;
    }

    .ap-progress__item:not(:first-child)::before {
        top: 13px;
        right: calc(50% + 18px);
        left: calc(-50% + 18px);
    }
}

/* Vrlo uski telefoni (320px) */
@media (max-width: 359px) {
    .ap-month__toggle small {
        display: none !important;
    }

    .ap-page--booking .ap-legend {
        font-size: .68rem;
        gap: 4px 8px;
    }

    .ap-discount__text strong {
        font-size: .76rem;
    }
}

/* Niski telefoni (npr. iPhone SE, Galaxy S 360×740) – niže ćelije kalendara i termina */
@media (max-width: 640px) and (max-height: 780px) {
    .ap-page--booking .ap-calendar .ap-day {
        aspect-ratio: auto;
        height: 40px;
    }

    .ap-page--booking .ap-booking__step > .ap-muted {
        display: none;
    }

    .ap-page--booking .ap-slot {
        padding: 7px 2px;
    }

    .ap-page--booking .ap-page__head {
        margin-bottom: 10px;
    }

    .ap-page--booking .ap-page__head h1 {
        font-size: 1.3rem;
    }

    .ap-page--booking .ap-review {
        gap: 8px;
        margin-top: 12px;
    }

    .ap-page--booking .ap-review__row {
        padding: 9px 12px;
    }

    .ap-page--booking .ap-review__row .ap-icon-badge {
        width: 36px;
        height: 36px;
    }
}

/* ---------- Blazor ---------- */

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 20px;
    box-sizing: border-box;
    background: #FFF4CE;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, .2);
}

#blazor-error-ui .dismiss {
    position: absolute;
    right: 16px;
    top: 10px;
    cursor: pointer;
}

.blazor-error-boundary {
    padding: 1rem;
    background: #B32121;
    color: white;
}

.blazor-error-boundary::after {
    content: "Došlo je do greške.";
}

/* ---------- Obaveštenje vlasnika (iskače u donjem desnom uglu) ---------- */
.ap-notice {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: min(380px, calc(100vw - 24px));
    padding: 14px 12px 14px 14px;
    border-radius: 18px;
    background: var(--ap-ink);
    color: #fff;
    box-shadow: var(--ap-shadow-lg);
    animation: ap-notice-in .35s cubic-bezier(.2, .8, .2, 1);
}

.ap-notice__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--ap-red);
}

.ap-notice__body {
    flex: 1;
    min-width: 0;
}

.ap-notice__body strong {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}

.ap-notice__body p {
    margin: 2px 0 0;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.ap-notice__close {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    cursor: pointer;
}

@keyframes ap-notice-in {
    from { opacity: 0; transform: translateY(16px); }
}

@media (hover: hover) {
    .ap-notice__close:hover {
        background: rgba(255, 255, 255, .2);
    }
}

/* Na telefonu preko cele širine, iznad dugmeta "Zakaži termin" koje stoji na dnu početne strane */
@media (max-width: 720px) {
    .ap-notice {
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
    }

    body:has(.ap-sticky-cta) .ap-notice {
        bottom: calc(84px + env(safe-area-inset-bottom));
    }
}

/* ---------- Logo: znak + naziv ---------- */
.ap-logo {
    gap: 10px;
    color: var(--ap-text);
    text-decoration: none;
}

.ap-logo__mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(215, 38, 46, .28);
}

.ap-logo__text {
    line-height: 1;
}

.ap-logo__text small {
    margin-bottom: 3px;
    font-size: .64rem;
    letter-spacing: .14em;
}

.ap-logo__text strong {
    font-size: 1.32rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

/* Naziv firme na vrhu početne strane */
.ap-hero__brand {
    margin: 0 0 14px;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .78);
}

.ap-hero__brand strong {
    color: #fff;
    font-weight: 800;
}

.ap-hero__brand::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 3px;
    margin-right: 12px;
    border-radius: 2px;
    background: var(--ap-red);
    vertical-align: middle;
}

@media (max-width: 720px) {
    .ap-logo__mark {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .ap-logo__text strong {
        font-size: 1.12rem;
    }

    .ap-logo__text small {
        font-size: .58rem;
    }
}

/* Polje za telefon je obično <input> koje formatira js/phone.js (izgled isti kao ranije) */
.ap-phone-field__native {
    flex: 1;
    min-width: 0;
    padding: 18px 16px;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--ap-text);
}

.ap-phone-field__native::placeholder {
    color: #B5B5BC;
    font-weight: 500;
    opacity: 1;
}
