/* =====================================================================
   NAIS TURS - JAVNA FORMA ZA REZERVACIJU (v3)
   Koriste je: rezervacija.php (samostalno i u iframe-u), api_form.php (stari WP umetak)
   ===================================================================== */

:root {
    --primary: #f7931e;
    --on-primary: #07122d;
    --primary-hover: color-mix(in srgb, var(--primary) 86%, #000);
    --primary-light: color-mix(in srgb, var(--primary) 11%, #fff);
    --primary-soft: color-mix(in srgb, var(--primary) 22%, #fff);
    --primary-ring: color-mix(in srgb, var(--primary) 24%, transparent);
    --brand-navy: #07122d;
    --brand-ink: #131a2b;
    --bg-body: #f3f5f9;
    --bg-card: #ffffff;
    --bg-soft: #f6f8fb;
    --text-main: #131a2b;
    --text-muted: #5f6b7e;
    --text-faint: #94a0b2;
    --border-color: #e2e7ef;
    --border-strong: #cfd7e3;
    --error-color: #d92d20;
    --error-soft: #fef3f2;
    --success-color: #079455;
    --success-soft: #ecfdf3;
    --warning: #d97706;
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(7, 18, 45, .06);
    --shadow-md: 0 8px 24px rgba(7, 18, 45, .08);
    --shadow-lg: 0 24px 60px rgba(7, 18, 45, .12);
    --nt-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --nt-bar-h: 76px;
}

@supports not (color: color-mix(in srgb, red 50%, white)) {
    :root {
        --primary-hover: #df7c08;
        --primary-light: #fff4e6;
        --primary-soft: #ffe3c2;
        --primary-ring: rgba(247, 147, 30, .24);
    }
}

/* ---------- Osnova ---------- */
.bus-rezervacija-app, .bus-rezervacija-app *, .bus-rezervacija-app *::before, .bus-rezervacija-app *::after,
.custom-modal, .custom-modal *, .custom-modal *::before, .custom-modal *::after,
.toast-container, .toast-container * {
    box-sizing: border-box;
}
.bus-rezervacija-app, .custom-modal, .toast-container, .flatpickr-calendar {
    font-family: var(--nt-font);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

body.nt-page {
    margin: 0;
    min-height: 100vh;
    padding: 32px 20px 48px;
    background: radial-gradient(1200px 500px at 50% -200px, #ffffff 0%, var(--bg-body) 60%);
    font-family: var(--nt-font);
    color: var(--text-main);
}
html.nt-framed, html.nt-framed body.nt-page, body.nt-embedded {
    background: transparent;
}
html.nt-framed body.nt-page, body.nt-page.nt-embedded {
    min-height: 0;
    padding: 6px 6px 16px;
}

.nt-sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.bus-rezervacija-app :focus { outline: none; }
.bus-rezervacija-app :focus-visible,
.custom-modal :focus-visible {
    outline: 3px solid var(--primary-ring);
    outline-offset: 2px;
}

@keyframes slideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ntFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ntPop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ntShimmer { 0% { background-position: -200px 0; } 100% { background-position: 200px 0; } }
.spin, .nt-spin { animation: spin 1s linear infinite; }

/* ---------- Okvir aplikacije ---------- */
.bus-rezervacija-app {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid rgba(7, 18, 45, .08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
}
body.nt-no-frame .bus-rezervacija-app {
    border: 0;
    box-shadow: none;
    background: transparent;
}
body.nt-no-shadow .bus-rezervacija-app {
    box-shadow: none;
}

.booking-brand-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 32px;
    color: #fff;
    background:
        radial-gradient(600px 200px at 100% 0%, color-mix(in srgb, var(--primary) 35%, transparent), transparent 70%),
        linear-gradient(135deg, #07122d 0%, #14213f 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.booking-eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.booking-brand-bar h1 {
    margin: 0;
    color: #fff;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
}
.booking-brand-sub { margin: 6px 0 0; color: #c3cad8; font-size: 13px; }
.booking-brand-mark {
    flex: 0 0 56px;
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
    background: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}
.booking-brand-mark svg { width: 28px; height: 28px; }

/* ---------- Koraci ---------- */
.nt-stepper {
    padding: 18px 32px 0;
    border-bottom: 1px solid var(--border-color);
}
.nt-stepper ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
}
.nt-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-faint);
    font-size: 13px;
    font-weight: 600;
    min-width: 0;
}
.nt-step-dot {
    flex: 0 0 30px;
    width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--border-strong);
    background: #fff;
    color: var(--text-faint);
    font-size: 13px;
    font-weight: 700;
    transition: all .25s ease;
}
.nt-step-dot svg { display: none; width: 16px; height: 16px; }
.nt-step-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-step.is-active { color: var(--text-main); }
.nt-step.is-active .nt-step-dot {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 0 0 5px var(--primary-ring);
}
.nt-step.is-done { color: var(--text-main); }
.nt-step.is-done .nt-step-dot { border-color: var(--success-color); background: var(--success-color); color: #fff; }
.nt-step.is-done .nt-step-num { display: none; }
.nt-step.is-done .nt-step-dot svg { display: block; }
.progress-bar-container {
    height: 4px;
    margin: 16px -32px 0;
    background: var(--bg-soft);
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    width: 33%;
    background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 60%, #fff));
    transition: width .45s cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Raspored: forma + pregled ---------- */
.nt-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    padding: 28px 32px 32px;
    align-items: start;
}
.app-content { min-width: 0; padding: 0; }
.bus-rezervacija-app[data-step="uspeh"] .nt-layout { grid-template-columns: minmax(0, 1fr); }
.bus-rezervacija-app[data-step="uspeh"] .nt-summary,
.bus-rezervacija-app[data-step="uspeh"] .nt-mobile-bar { display: none !important; }

.form-step { display: none; }
.form-step.active-step { display: block; animation: slideIn .28s ease-out; }

.step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}
.icon-wrapper {
    flex: 0 0 48px;
    width: 48px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
}
.icon-wrapper svg { width: 24px; height: 24px; }
.step-header h2 {
    margin: 0 0 3px;
    color: var(--brand-navy);
    font-size: 21px;
    line-height: 1.25;
    font-weight: 700;
}
.step-header h2:focus { outline: none; }
.step-header p { margin: 0; color: var(--text-muted); font-size: 13.5px; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.form-grid.full { grid-template-columns: minmax(0, 1fr); }
.nt-field-wrap { position: relative; min-width: 0; }

/* ---------- Polja ---------- */
.modern-field {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    position: relative;
    z-index: 10;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.modern-field:hover { border-color: var(--border-strong); }
.modern-field:focus-within,
.modern-field.hover-state {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-ring);
    z-index: 500;
}
.modern-field.highlight { background: var(--bg-soft); }
#povratak-group { background: var(--primary-light); border-color: var(--primary-soft); }

.field-media {
    flex: 0 0 38px;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--bg-soft);
    position: relative;
}
.field-icon { display: flex; align-items: center; color: var(--brand-navy); transition: color .18s; }
.field-icon svg { width: 20px; height: 20px; }
.modern-field:focus-within .field-icon,
.modern-field.hover-state .field-icon { color: var(--primary); }
.flag-icon {
    display: none;
    width: 26px; height: 19px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.field-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.field-label-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.field-body label, .field-label-row label {
    margin: 0 0 2px;
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
}
.nt-optional { color: var(--text-faint); font-weight: 500; }
.field-price-tag {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--brand-navy);
    font-size: 12px;
    font-weight: 700;
}

.clean-input {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-main);
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.4;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
}
.clean-input::placeholder { color: var(--text-faint); font-weight: 500; }
textarea.clean-input { resize: vertical; min-height: 44px; }
.lep-kalendar { cursor: pointer; }
.nt-textarea-field { align-items: flex-start; margin-bottom: 16px; }

.nt-placeholder { color: var(--text-faint); font-weight: 500; }
.nt-hint {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 6px 2px 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
}
.nt-hint[hidden] { display: none; }
.nt-hint svg { flex: 0 0 14px; width: 14px; height: 14px; margin-top: 2px; color: var(--primary); }
.nt-hint strong { color: var(--text-main); }

/* Greske */
.modern-field.booking-field-error,
.modern-field.email-error,
.terms-group.booking-field-error {
    border-color: var(--error-color) !important;
    background: var(--error-soft);
    box-shadow: 0 0 0 4px rgba(217, 45, 32, .10);
}
.booking-field-error:not(.modern-field):not(.terms-group) { outline: 2px solid rgba(217, 45, 32, .35); outline-offset: 2px; border-radius: 6px; }
.nt-field-error-msg {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 6px 2px 0;
    color: var(--error-color);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    animation: ntFadeIn .2s ease;
}
.nt-field-error-msg svg { flex: 0 0 15px; width: 15px; height: 15px; margin-top: 1px; }

/* ---------- Padajuce liste (gradovi, tip i vrsta karte) ---------- */
.custom-dropdown-container { position: static; width: 100%; cursor: pointer; }
.custom-dropdown-container[style*="pointer-events:none"],
.custom-dropdown-container[style*="pointer-events: none"] { cursor: not-allowed; }
.custom-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 24px;
    color: var(--text-main);
    font-size: 15.5px;
    font-weight: 600;
    border-radius: 6px;
}
.custom-dropdown-trigger .selected-content {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.custom-dropdown-trigger .selected-content img { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; }
.custom-dropdown-trigger .selected-content svg { width: 18px; height: 18px; color: var(--primary); flex: 0 0 18px; }
.nt-chevron { flex: 0 0 18px; width: 18px; height: 18px; color: var(--text-faint); transition: transform .2s; }
.modern-field.hover-state .nt-chevron { transform: rotate(180deg); color: var(--primary); }
.modern-field.is-loading .nt-chevron { display: none; }
.nt-inline-spinner {
    flex: 0 0 18px;
    width: 18px; height: 18px;
    border: 2.5px solid var(--primary-soft);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 999;
    max-height: 320px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(7, 18, 45, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
    text-align: left;
    cursor: default;
}
.custom-dropdown-menu.show { opacity: 1; visibility: visible; transform: none; transition: opacity .16s ease, transform .16s ease, visibility 0s; }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    color: var(--text-main);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: background .12s, color .12s;
}
.dropdown-item + .dropdown-item { margin-top: 2px; }
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.is-focused { background: var(--primary-light); color: var(--brand-navy); outline: none; }
.dropdown-item.is-selected { background: var(--primary-light); box-shadow: inset 3px 0 0 var(--primary); }
.dropdown-item svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--primary); }
.dropdown-item img, .nt-flag-sm { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.dropdown-item.nt-item-danger, .dropdown-item.nt-item-danger svg { color: var(--error-color); }
.dropdown-item .nt-dd-meta { margin-left: auto; color: var(--text-muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.nt-search-hidden { display: none !important; }
.nt-dd-group {
    padding: 10px 12px 4px;
    color: var(--text-faint);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.nt-dd-group:not(:first-child) { margin-top: 6px; border-top: 1px solid var(--border-color); padding-top: 12px; }
.nt-dd-search {
    position: sticky;
    top: -6px;
    z-index: 2;
    margin: -6px -6px 6px;
    padding: 8px;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}
.nt-dd-search-inner { position: relative; }
.nt-dd-search-inner svg {
    position: absolute; left: 11px; top: 50%;
    width: 17px; height: 17px;
    transform: translateY(-50%);
    color: var(--text-faint);
    pointer-events: none;
}
.custom-dropdown-menu .nt-dd-search input,
#nt-saas-booking .custom-dropdown-menu .nt-dd-search input {
    width: 100%;
    height: 42px;
    padding: 0 12px 0 36px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-soft);
    color: var(--text-main);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    cursor: text;
}
.custom-dropdown-menu .nt-dd-search input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px var(--primary-ring); }
.nt-dd-empty {
    padding: 18px 12px;
    color: var(--text-muted);
    font-size: 13.5px;
    text-align: center;
}

/* Detalji stanice ispod polja */
.station-details {
    margin-top: -10px;
    padding: 18px 16px 12px;
    border: 1.5px solid var(--border-color);
    border-top: 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: var(--bg-soft);
    font-size: 13px;
    position: relative;
    z-index: 1;
    animation: slideIn .2s ease;
}
.detail-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; color: var(--text-muted); }
.detail-row strong { color: var(--text-main); font-weight: 700; text-align: right; }
.nt-time { color: var(--primary); font-size: 15px; }
.nt-time-arrive { color: var(--success-color); }
.nt-time-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 6px;
    background: #fef3c7;
    color: #b45309;
    font-size: 10.5px;
    font-weight: 700;
    vertical-align: middle;
}
.map-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    color: var(--brand-navy);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
}
.map-link svg { width: 14px; height: 14px; color: var(--primary); }

/* Telefon i datum rodjenja */
.phone-group { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; }
.prefix-select {
    flex: 0 0 auto;
    width: auto;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: var(--brand-navy);
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
}
.phone-divider { flex: 0 0 1px; width: 1px; height: 20px; background: var(--border-color); }
.phone-group .clean-input { min-width: 0; }

.dob-group { display: flex; align-items: center; gap: 4px; }
.dob-group input {
    width: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-main);
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 600;
    text-align: center;
    outline: none;
    -moz-appearance: textfield;
}
.dob-group input:last-child, .dob-group .sap-god { width: 64px; }
.dob-group input::placeholder { color: var(--text-faint); font-weight: 500; }
.dob-group .sep { color: var(--border-strong); }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* E-mail ikonice */
.email-validator { position: relative; }
.email-icon-status {
    position: absolute;
    right: 14px;
    top: 50%;
    width: 20px; height: 20px;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s;
}
.email-icon-status.show { opacity: 1; visibility: visible; }
.email-icon-status.valid { color: var(--success-color); }
.email-icon-status.invalid { color: var(--error-color); }
.email-validator .field-body { padding-right: 26px; }

/* ---------- Kartice putnika ---------- */
.passenger-card {
    position: relative;
    margin-bottom: 16px;
    padding: 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.passenger-card .form-grid:last-child { margin-bottom: 0; }
.main-passenger { border-color: var(--primary-soft); background: linear-gradient(180deg, var(--primary-light), #fff 90px); }
.saputnik-card { animation: slideIn .25s ease-out; }
.nt-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-right: 90px; }
.nt-card-head small { display: block; color: var(--text-muted); font-size: 12px; }
.nt-avatar {
    flex: 0 0 34px;
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--brand-navy);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
.main-passenger .nt-avatar { background: var(--primary); color: var(--on-primary); }
.card-title { margin: 0; color: var(--brand-navy); font-size: 16px; font-weight: 700; line-height: 1.25; }
.remove-passenger {
    position: absolute;
    top: 16px; right: 16px;
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid #fecdca;
    border-radius: 10px;
    background: #fff;
    color: var(--error-color);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.remove-passenger:hover { background: var(--error-soft); }
.remove-passenger svg { width: 16px; height: 16px; }

/* ---------- Dugmad ---------- */
.btn-primary, .btn-secondary, .btn-dashed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 12px 24px;
    border: 1.5px solid transparent;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s, box-shadow .18s, transform .18s, border-color .18s, color .18s;
}
.btn-primary svg, .btn-secondary svg, .btn-dashed svg { width: 18px; height: 18px; flex: 0 0 18px; }
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 8px 20px var(--primary-ring);
}
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-1px); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled, .btn-primary.is-disabled { background: #e3e8ef; border-color: #e3e8ef; color: #8592a6; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-primary.is-busy { cursor: progress; opacity: .85; }
.btn-secondary { background: #fff; border-color: var(--border-strong); color: var(--brand-navy); }
.btn-secondary:hover { background: var(--bg-soft); border-color: var(--brand-navy); }
.btn-dashed {
    width: 100%;
    margin-bottom: 16px;
    border: 2px dashed var(--border-strong);
    background: transparent;
    color: var(--brand-navy);
}
.btn-dashed:hover { border-color: var(--primary); background: var(--primary-light); }
.nt-btn-block { width: 100%; margin-top: 16px; }

/* ---------- Saglasnost i podnozje koraka ---------- */
.terms-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-soft);
    cursor: pointer;
    user-select: none;
}
.terms-group input { flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); cursor: pointer; }
.terms-text { color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.terms-text a { color: var(--brand-navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--primary); text-underline-offset: 3px; }

.step-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.nt-footer-note { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 12.5px; }
.nt-footer-note svg { width: 16px; height: 16px; color: var(--success-color); }

/* ---------- Pregled cene (desno / dole) ---------- */
.nt-summary {
    position: sticky;
    top: calc(var(--nt-vp-top, 0px) + 16px);
    min-width: 0;
    transition: top .15s linear;
}
.nt-summary-card {
    padding: 20px;
    border: 1.5px solid var(--border-color);
    border-radius: 18px;
    background: var(--bg-soft);
}
.nt-summary-title {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 14px;
    color: var(--brand-navy);
    font-size: 15px;
    font-weight: 700;
}
.nt-summary-title svg { width: 18px; height: 18px; color: var(--primary); }
.nt-sum-empty { color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.nt-summary-route { margin-bottom: 12px; }
.nt-sum-leg { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 4px 10px; }
.nt-sum-leg-line { display: flex; flex-direction: column; align-items: center; padding-top: 5px; }
.nt-sum-dot { width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--primary); background: #fff; }
.nt-sum-dot.end { border-color: var(--success-color); }
.nt-sum-rail { flex: 1; width: 2px; min-height: 18px; margin: 3px 0; background: repeating-linear-gradient(var(--border-strong) 0 4px, transparent 4px 8px); }
.nt-sum-city { color: var(--text-main); font-size: 14.5px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.nt-sum-city small { display: block; color: var(--text-muted); font-size: 12px; font-weight: 500; }
.nt-sum-city + .nt-sum-city { margin-top: 10px; }
.nt-summary-list { margin: 0 0 12px; padding: 12px 0 0; border-top: 1px dashed var(--border-strong); }
.nt-summary-list:empty { display: none; }
.nt-summary-list div { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 13px; }
.nt-summary-list dt { color: var(--text-muted); }
.nt-summary-list dd { margin: 0; color: var(--text-main); font-weight: 600; text-align: right; }
.nt-summary-pax { margin-bottom: 10px; }
.nt-summary-pax:empty { display: none; }
.nt-pax-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--border-strong); font-size: 13px; }
.nt-pax-row span { min-width: 0; color: var(--text-main); font-weight: 600; overflow-wrap: anywhere; }
.nt-pax-row small { display: block; color: var(--text-muted); font-weight: 500; }
.nt-pax-row strong { white-space: nowrap; }
.nt-summary-base { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--border-strong); color: var(--text-muted); font-size: 13px; }
.nt-summary-base strong { color: var(--text-main); }
.nt-summary-total {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 6px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--brand-navy);
    color: #fff;
}
.nt-summary-total .label { color: #b9c2d3; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.nt-summary-total .value { color: #fff; font-size: 26px; font-weight: 800; line-height: 1.15; }
.nt-summary-note { display: flex; gap: 6px; margin: 12px 0 0; color: var(--text-muted); font-size: 11.5px; line-height: 1.45; }
.nt-summary-note svg { flex: 0 0 14px; width: 14px; height: 14px; margin-top: 1px; }

.nt-mobile-bar { display: none; }

/* ---------- Uspeh ---------- */
.nt-success { text-align: center; max-width: 620px; margin: 0 auto; padding: 10px 0 6px; }
.nt-success-badge {
    width: 84px; height: 84px;
    margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--success-color);
    color: #fff;
    box-shadow: 0 0 0 10px var(--success-soft), 0 16px 32px rgba(7, 148, 85, .25);
    animation: ntPop .5s cubic-bezier(.2, .9, .3, 1.3) both;
}
.nt-success-badge svg { width: 44px; height: 44px; stroke-width: 3; }
.nt-success h2 { margin: 0 0 8px; color: var(--brand-navy); font-size: 26px; font-weight: 800; }
.nt-success h2:focus { outline: none; }
.nt-success-lead { margin: 0 auto 20px; max-width: 480px; color: var(--text-muted); font-size: 15px; line-height: 1.55; }
.nt-success-lead strong { color: var(--text-main); overflow-wrap: anywhere; }
.id-karta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0 auto 18px;
    padding: 20px;
    max-width: 420px;
    border: 2px dashed var(--primary);
    border-radius: 16px;
    background: var(--primary-light);
}
.id-karta-box span { color: var(--text-muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.id-karta-box strong { color: var(--brand-navy); font-size: 34px; font-weight: 800; letter-spacing: .04em; line-height: 1.1; overflow-wrap: anywhere; }
.nt-copy-btn {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 4px;
    padding: 7px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: #fff;
    color: var(--brand-navy);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.nt-copy-btn svg { width: 15px; height: 15px; }
.nt-copy-btn.is-copied { border-color: var(--success-color); color: var(--success-color); }
.nt-success-summary { margin: 0 auto 18px; max-width: 480px; text-align: left; }
.nt-success-summary:empty { display: none; }
.nt-success-summary .nt-summary-card { background: #fff; }
.nt-success-steps { list-style: none; margin: 0 auto 22px; padding: 0; max-width: 480px; text-align: left; }
.nt-success-steps li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 13.5px; line-height: 1.5; }
.nt-success-steps svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--primary); }
.nt-success-new { min-width: 240px; }

/* ---------- Modali ---------- */
.custom-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(7, 18, 45, .6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    overflow: hidden;
    overscroll-behavior: contain;
    animation: ntFadeIn .18s ease;
}
html.nt-framed.nt-vp .custom-modal {
    top: var(--nt-vp-top, 0px);
    bottom: auto;
    height: var(--nt-vp-height, 100vh);
}
html.nt-modal-open:not(.nt-framed), html.nt-modal-open:not(.nt-framed) body { overflow: hidden; }
.modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: calc(100% - 8px);
    min-height: 0;
    padding: 32px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(7, 18, 45, .08);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(7, 18, 45, .3);
    animation: slideIn .22s ease-out;
}
.nt-modal-sm { max-width: 440px; }
.nt-center { text-align: center; }
.close-modal {
    position: absolute;
    top: 14px; right: 14px;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--text-muted);
    cursor: pointer;
    z-index: 3;
}
.close-modal:hover { background: var(--error-soft); color: var(--error-color); }
.close-modal svg { width: 20px; height: 20px; }
.nt-modal-icon {
    width: 64px; height: 64px;
    margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
}
.nt-modal-icon svg { width: 30px; height: 30px; }
.nt-modal-icon.nt-danger { background: var(--error-soft); color: var(--error-color); }
.nt-modal-icon.nt-success-icon { background: var(--success-soft); color: var(--success-color); }
.nt-modal-title { margin: 0 0 8px; color: var(--brand-navy); font-size: 22px; font-weight: 800; line-height: 1.25; }
.nt-modal-lead { margin: 0 0 6px; color: var(--text-main); font-size: 15px; font-weight: 600; }
.nt-modal-text { margin: 0 0 16px; color: var(--text-muted); font-size: 13.5px; line-height: 1.55; }
.nt-modal-head {
    display: flex; align-items: center; gap: 12px;
    margin: 0 0 18px;
    padding: 0 48px 16px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--brand-navy);
    font-size: 20px;
    font-weight: 800;
}
.nt-modal-head > svg { width: 24px; height: 24px; color: var(--primary); }
.nt-modal-head .icon-wrapper { flex-basis: 42px; width: 42px; height: 42px; }
.nt-modal-head.nt-danger, .nt-modal-head.nt-danger > svg { color: var(--error-color); }
.nt-modal-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 8px; }
.nt-ticket-input {
    display: block;
    width: 100%;
    margin: 4px 0 0;
    padding: 14px !important;
    border: 1.5px solid var(--border-color) !important;
    border-radius: 12px !important;
    font-size: 22px !important;
    letter-spacing: .12em;
    text-align: center;
    text-transform: uppercase;
}
.nt-ticket-input:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 4px var(--primary-ring) !important; }
.nt-verify-label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 700; color: var(--text-main); text-align: left; }
.nt-verify-input {
    display: block;
    width: 100%;
    margin: 0;
    padding: 13px 14px !important;
    border: 1.5px solid var(--border-color) !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    text-align: center;
}
.nt-verify-input:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 4px var(--primary-ring) !important; }
.nt-verify-help { margin: 6px 0 14px; font-size: 12px; line-height: 1.4; color: var(--text-muted, #64748b); text-align: left; }

/* Pregled rezervacije */
.ticket-summary { font-size: 14px; color: var(--text-main); }
.nt-review-trip { margin-bottom: 16px; padding: 18px; border: 1.5px solid var(--border-color); border-radius: 16px; background: var(--bg-soft); }
.nt-review-legs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: start; }
.nt-review-legs > svg { width: 22px; height: 22px; margin-top: 22px; color: var(--text-faint); }
.nt-review-leg:last-child { text-align: right; }
.nt-review-leg small { display: block; color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.nt-review-leg strong { display: block; margin: 2px 0 4px; color: var(--brand-navy); font-size: 16px; overflow-wrap: anywhere; }
.nt-review-leg span { display: block; color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }
.nt-review-leg a { color: var(--brand-navy); font-weight: 600; }
.nt-review-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border-strong); }
.nt-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--border-color); color: var(--text-main); font-size: 12.5px; font-weight: 600; }
.nt-chip svg { width: 14px; height: 14px; color: var(--primary); }
.ticket-section { margin-bottom: 16px; padding-bottom: 4px; }
.ticket-section h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--brand-navy); font-size: 15px; font-weight: 700; }
.ticket-section h4 svg { width: 18px; height: 18px; color: var(--primary); }
.passenger-item { margin-bottom: 8px; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: 12px; background: #fff; }
.passenger-item.is-main { border-left: 4px solid var(--primary); }
.ticket-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.ticket-row:last-child { margin-bottom: 0; }
.ticket-label { color: var(--text-muted); font-weight: 500; }
.ticket-value { font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.total-row {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    margin-top: 6px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--brand-navy);
    color: #fff;
    font-weight: 700;
}
.total-row { flex-wrap: wrap; }
.total-row span:last-child { font-size: 24px; font-weight: 800; white-space: nowrap; margin-left: auto; }
.nt-pay-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.nt-pay-note svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; }
.nt-pay-note.card { background: #eff6ff; border: 1.5px solid #bfdbfe; color: #1e3a8a; }
.nt-pay-note.cash { background: var(--bg-soft); border: 1px solid var(--border-color); color: var(--text-muted); }

/* ---------- Obavestenja (toast) ---------- */
.toast-container {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: min(440px, calc(100% - 24px));
    transform: translateX(-50%);
    pointer-events: none;
}
html.nt-framed.nt-vp .toast-container {
    bottom: auto;
    top: calc(var(--nt-vp-top, 0px) + var(--nt-vp-height, 100vh) - 24px);
    transform: translate(-50%, -100%);
}
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    border-left: 4px solid var(--error-color);
    background: #fff;
    box-shadow: 0 14px 34px rgba(7, 18, 45, .18);
    pointer-events: auto;
    animation: slideIn .25s ease-out;
    transition: opacity .4s;
}
.toast.is-info { border-left-color: var(--primary); }
.toast.is-success { border-left-color: var(--success-color); }
.toast-icon { flex: 0 0 34px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--error-soft); color: var(--error-color); }
.toast.is-info .toast-icon { background: var(--primary-light); color: var(--primary); }
.toast.is-success .toast-icon { background: var(--success-soft); color: var(--success-color); }
.toast-icon svg { width: 18px; height: 18px; }
.toast h4 { margin: 0 0 2px; color: var(--text-main); font-size: 14px; font-weight: 700; }
.toast p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.45; }

/* ---------- Kalendar (flatpickr) ---------- */
.flatpickr-calendar {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(7, 18, 45, .18);
    padding: 6px;
    width: 320px;
}
.flatpickr-calendar.arrowTop::before, .flatpickr-calendar.arrowTop::after,
.flatpickr-calendar.arrowBottom::before, .flatpickr-calendar.arrowBottom::after { display: none; }
.flatpickr-months { padding: 4px 2px 8px; }
.flatpickr-months .flatpickr-month { height: 40px; color: var(--brand-navy); fill: var(--brand-navy); }
.flatpickr-current-month { font-size: 15px; font-weight: 700; padding-top: 8px; }
.flatpickr-current-month .flatpickr-monthDropdown-months { font-weight: 700; }
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month { top: 8px; padding: 8px; border-radius: 10px; }
.flatpickr-months .flatpickr-prev-month:hover, .flatpickr-months .flatpickr-next-month:hover { background: var(--bg-soft); }
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--primary); }
span.flatpickr-weekday { color: var(--text-faint); font-size: 12px; font-weight: 600; }
.flatpickr-innerContainer, .flatpickr-rContainer, .flatpickr-days, .dayContainer { width: 100%; min-width: 0; max-width: none; }
.flatpickr-day {
    max-width: none;
    height: 40px;
    line-height: 38px;
    margin: 1px 0;
    border-radius: 10px;
    color: var(--text-main);
    font-weight: 600;
}
.flatpickr-day:not(.flatpickr-disabled):not(.prevMonthDay):not(.nextMonthDay):not(.selected) { background: var(--primary-light); border-color: transparent; }
.flatpickr-day:hover:not(.flatpickr-disabled):not(.selected) { background: var(--primary-soft); border-color: var(--primary-soft); }
.flatpickr-day.today { border-color: var(--brand-navy) !important; }
.flatpickr-day.selected, .flatpickr-day.selected:hover, .flatpickr-day.selected:focus {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 6px 14px var(--primary-ring);
}
.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover {
    color: #c3cad6;
    font-weight: 500;
    background: transparent;
    text-decoration: line-through;
    text-decoration-color: rgba(195, 202, 214, .7);
}
.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: #c3cad6; }
.nt-cal-legend {
    margin: 6px 4px 2px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 11.5px;
    text-align: center;
}
.nt-cal-legend[hidden] { display: none; }

/* =====================================================================
   POVRATNA KARTA, OTKAZIVANJE, IZMENA (modali koje pravi JS)
   ===================================================================== */
.ticket-found-box { margin-bottom: 18px; padding: 14px; border: 1.5px dashed var(--primary); border-radius: 14px; background: var(--primary-light); text-align: center; }
.ticket-found-box h4 { margin: 0 0 4px; color: var(--brand-navy); font-size: 18px; font-weight: 800; }
.ticket-found-box p { margin: 0; color: var(--text-muted); font-size: 13px; font-weight: 600; }
.ticket-found-box.nt-danger-box { border-color: #fda29b; background: var(--error-soft); }
.ticket-found-box.nt-danger-box h4, .ticket-found-box.nt-danger-box p { color: var(--error-color); }
#cancel-penalty-info { margin-bottom: 16px; }

.return-passenger-card { margin-bottom: 12px; padding: 16px; border: 1.5px solid var(--border-color); border-radius: 16px; background: #fff; transition: .2s; }
.return-passenger-card.selected { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 8px 20px var(--primary-ring); }
.return-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; user-select: none; }
.return-name { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.return-name svg { width: 22px; height: 22px; color: var(--text-main); }
.return-name div strong { display: block; color: var(--text-main); font-size: 15px; }
.return-name div span { color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.return-passenger-card.selected .return-name svg { color: var(--primary); }
.return-date-box { display: none; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border-strong); animation: slideIn .25s ease; }
.return-passenger-card.selected .return-date-box { display: block; }
.custom-checkbox-round { flex: 0 0 24px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--border-strong); border-radius: 50%; background: #fff; transition: .2s; }
.custom-checkbox-round svg { width: 14px; height: 14px; opacity: 0; color: var(--on-primary); }
.return-passenger-card.selected .custom-checkbox-round { border-color: var(--primary); background: var(--primary); }
.return-passenger-card.selected .custom-checkbox-round svg { opacity: 1; }

.validity-tracker { margin-bottom: 18px; padding: 14px; border: 1px dashed var(--border-strong); border-radius: 14px; background: var(--bg-soft); }
.validity-header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 14px; color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.validity-header strong { color: var(--text-main); font-size: 13px; }
.validity-bar-bg { position: relative; width: 100%; height: 8px; border-radius: 10px; background: var(--border-color); }
.validity-fill { position: relative; max-width: 100%; height: 100%; border-radius: 10px; background: var(--primary); transition: width 1s ease-out; }
.validity-bus-icon { position: absolute; right: -12px; top: -10px; padding: 4px; border: 2px solid var(--primary); border-radius: 50%; background: #fff; color: var(--primary); }
.validity-danger .validity-fill { background: var(--error-color); }
.validity-danger .validity-bus-icon { color: var(--error-color); border-color: var(--error-color); }
.text-danger { color: var(--error-color) !important; }

.policy-timeline { position: relative; display: flex; align-items: flex-start; justify-content: space-between; margin: 0 0 6px; padding: 22px 10px; border: 1px solid var(--border-color); border-radius: 16px; background: var(--bg-soft); }
.policy-line { position: absolute; top: 42px; left: 16%; right: 16%; height: 3px; border-radius: 4px; background: var(--border-color); z-index: 1; }
.policy-step { position: relative; z-index: 2; flex: 1; text-align: center; opacity: .5; filter: grayscale(1); transition: .3s; }
.policy-step.active { opacity: 1; filter: none; }
.policy-step-icon { width: 42px; height: 42px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; border: 3px solid var(--border-strong); border-radius: 50%; background: #fff; color: var(--text-muted); }
.policy-step.active.green .policy-step-icon { border-color: var(--success-color); background: var(--success-soft); color: var(--success-color); box-shadow: 0 0 0 6px rgba(7, 148, 85, .14); }
.policy-step.active.yellow .policy-step-icon { border-color: var(--warning); background: #fffbeb; color: var(--warning); box-shadow: 0 0 0 6px rgba(217, 119, 6, .14); }
.policy-step.active.red .policy-step-icon { border-color: var(--error-color); background: var(--error-soft); color: var(--error-color); box-shadow: 0 0 0 6px rgba(217, 45, 32, .14); }
.policy-step h5 { margin: 0 0 6px; color: var(--text-main); font-size: 13px; font-weight: 700; line-height: 1.2; }
.policy-step p { display: inline-block; margin: 0; padding: 2px 6px; border: 1px solid var(--border-color); border-radius: 6px; background: #fff; color: var(--text-muted); font-size: 10.5px; font-weight: 700; text-transform: uppercase; }

.penalty-calculator { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; padding: 16px; border: 2px dashed var(--border-color); border-radius: 16px; background: #fff; transition: .3s; }
.penalty-calculator.active-penalty { border-color: var(--error-color); background: var(--error-soft); }
.calc-label { display: block; margin-bottom: 4px; color: var(--text-muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; }
.penalty-calculator.active-penalty .calc-label { color: #912018; }
.calc-value { color: var(--text-main); font-size: 24px; font-weight: 800; white-space: nowrap; }
.penalty-calculator.active-penalty .calc-value { color: var(--error-color); }

.btn-danger-submit { background: var(--error-color) !important; border-color: var(--error-color) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(217, 45, 32, .2) !important; }
.btn-danger-submit:hover:not(:disabled) { background: #b42318 !important; }
.btn-danger-submit:disabled { background: #e3e8ef !important; border-color: #e3e8ef !important; color: #8592a6 !important; box-shadow: none !important; }

/* Javna izmena karte */
.public-edit-modal-card { width: min(920px, 100%); max-width: 920px !important; padding: 28px !important; background: var(--bg-soft) !important; }
.public-edit-close { background: #fff !important; box-shadow: 0 6px 18px rgba(7, 18, 45, .1); }
.public-edit-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-right: 55px; }
.public-edit-heading-icon { flex: 0 0 52px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 22px var(--primary-ring); }
.public-edit-heading-icon svg { width: 25px; height: 25px; }
.public-edit-heading span { display: block; color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.public-edit-heading h3 { margin: 2px 0 0; color: var(--brand-navy); font-size: 22px; line-height: 1.2; }
.public-edit-policy { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; padding: 14px 16px; border: 1px solid #a6f4c5; border-radius: 15px; background: var(--success-soft); color: #05603a; }
.public-edit-policy.has-fee { border-color: #fed7aa; background: #fff7ed; color: #c2410c; }
.public-edit-policy > svg { flex: 0 0 22px; width: 22px; }
.public-edit-policy strong { display: block; margin-bottom: 2px; font-size: 13px; }
.public-edit-policy span { display: block; color: #475569; font-size: 12px; line-height: 1.45; }
.public-edit-section { margin-bottom: 14px; padding: 18px; border: 1px solid var(--border-color); border-radius: 18px; background: #fff; }
.public-edit-section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.public-edit-section-title > span { flex: 0 0 29px; width: 29px; height: 29px; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--brand-navy); color: #fff; font-size: 12px; font-weight: 800; }
.public-edit-section-title strong { display: block; color: var(--brand-navy); font-size: 14px; }
.public-edit-section-title small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 11.5px; }
.public-edit-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.public-edit-form-grid .wide { grid-column: 1 / -1; }
.public-edit-form-grid label, .public-edit-passenger-grid label { display: block; color: #334155; font-size: 11.5px; font-weight: 700; }
.public-edit-form-grid label > span, .public-edit-passenger-grid label > span { display: block; margin: 0 0 6px 2px; }
.custom-modal .public-edit-control { display: block; width: 100%; min-height: 46px; padding: 11px 12px; border: 1.5px solid var(--border-color); border-radius: 11px; outline: 0; background: #fff; color: var(--text-main); font-family: inherit; font-size: 14px; font-weight: 600; box-shadow: none; }
.custom-modal textarea.public-edit-control { min-height: 76px; resize: vertical; }
.custom-modal .public-edit-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.custom-modal .public-edit-control:disabled { background: var(--bg-soft); color: var(--text-faint); }
.public-edit-date { position: relative; }
.public-edit-date > svg { position: absolute; top: 13px; left: 12px; z-index: 2; width: 19px; color: var(--primary); pointer-events: none; }
.custom-modal .public-edit-date .public-edit-control, .custom-modal .public-edit-date .flatpickr-input + input { padding-left: 40px; }
.public-edit-passenger { margin-bottom: 9px; padding: 13px; border: 1px solid var(--border-color); border-radius: 14px; background: #fbfdff; }
.public-edit-passenger.is-main { border-color: var(--primary-soft); background: var(--primary-light); }
.public-edit-passenger-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.public-edit-passenger-title > span { display: flex; align-items: center; gap: 7px; color: var(--brand-ink); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.public-edit-passenger-title svg { width: 16px; height: 16px; color: var(--primary); }
.public-edit-passenger-title small { color: var(--text-muted); font-size: 10px; font-weight: 700; }
.public-edit-passenger-title button { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 9px; background: var(--error-soft); color: var(--error-color); cursor: pointer; }
.public-edit-passenger-title button svg { color: var(--error-color); }
.public-edit-passenger-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.25fr; gap: 9px; }
.public-edit-add { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 9px 13px; border: 1.5px dashed var(--border-strong); border-radius: 11px; background: var(--bg-soft); color: var(--brand-navy); font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.public-edit-add svg { width: 17px; }
.public-edit-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.public-edit-summary > div { padding: 14px 16px; border: 1px solid var(--border-color); border-radius: 14px; background: #fff; }
.public-edit-summary > div.fee { border-color: #fed7aa; background: #fff7ed; }
.public-edit-summary span, .public-edit-summary small { display: block; color: var(--text-muted); font-size: 11px; font-weight: 600; }
.public-edit-summary strong { display: block; margin: 3px 0; color: var(--brand-navy); font-size: 21px; }
.public-edit-summary .fee strong { color: #c2410c; }
.public-edit-submit { width: 100%; min-height: 56px; margin: 0; }

/* ---------- Placanje i kapacitet ---------- */
.payment-method-section { margin: 4px 0 16px; padding: 16px; border: 1.5px solid var(--border-color); border-radius: 16px; background: #fff; min-width: 0; }
.payment-method-head { display: flex; align-items: center; gap: 12px; float: left; width: 100%; margin-bottom: 14px; padding: 0 0 12px; border-bottom: 1px dashed var(--border-color); }
.payment-method-head + * { clear: both; }
.payment-method-head svg { width: 22px; height: 22px; color: var(--primary); }
.payment-method-head strong { display: block; color: var(--text-main); font-size: 15px; }
.payment-method-head small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 12px; }
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.payment-option { position: relative; display: flex; gap: 12px; padding: 14px; border: 2px solid var(--border-color); border-radius: 14px; background: #fff; cursor: pointer; transition: .2s; }
.payment-option:hover { border-color: var(--border-strong); }
.payment-option:focus-within { box-shadow: 0 0 0 4px var(--primary-ring); }
.payment-option.active { border-color: var(--primary); background: var(--primary-light); }
.payment-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.po-icon { flex: 0 0 42px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--bg-soft); color: var(--primary); }
.payment-option.active .po-icon { background: var(--primary); color: var(--on-primary); }
.po-icon svg { width: 20px; height: 20px; }
.po-body { flex: 1; min-width: 0; }
.po-body strong { display: block; margin-bottom: 3px; color: var(--text-main); font-size: 14px; }
.po-body small { display: block; color: var(--text-muted); font-size: 12px; line-height: 1.4; }
.po-badge { display: inline-block; margin-left: 4px; padding: 2px 7px; border-radius: 999px; background: var(--brand-navy); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.card-brands { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.card-brand { display: inline-flex; align-items: center; justify-content: center; height: 24px; min-width: 38px; padding: 0 8px; border: 1px solid var(--border-color); border-radius: 5px; background: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.card-brand.visa { color: #1a1f71; font-style: italic; font-family: Arial, sans-serif; font-size: 13px; }
.card-brand.mc { gap: 0; padding: 0 6px; }
.card-brand.mc .mc-c1, .card-brand.mc .mc-c2 { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.card-brand.mc .mc-c1 { background: #eb001b; }
.card-brand.mc .mc-c2 { margin-left: -5px; background: #f79e1b; mix-blend-mode: multiply; }
.card-brand.maestro { color: #fff; background: linear-gradient(90deg, #0099df 50%, #ed0006 50%); font-size: 9px; }
.card-brand.dina { color: #fff; background: linear-gradient(90deg, #003a70, #0066cc); font-size: 9px; }

.capacity-info-box { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 12px 16px; border: 1.5px solid; border-radius: 12px; font-size: 13px; font-weight: 600; }
.capacity-info-box svg { flex-shrink: 0; width: 18px; height: 18px; }
.capacity-info-box.ok { background: var(--success-soft); color: #05603a; border-color: #a6f4c5; }
.capacity-info-box.warn { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.capacity-info-box.full { background: var(--error-soft); color: #b42318; border-color: #fecdca; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 960px) {
    .nt-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .nt-summary { position: static; }
    .nt-summary-total { display: none; }

    /* Donja traka sa cenom i dugmetom */
    .bus-rezervacija-app.has-mobile-bar { padding-bottom: calc(var(--nt-bar-h) + env(safe-area-inset-bottom)); }
    .bus-rezervacija-app.has-mobile-bar .nt-mobile-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        min-height: var(--nt-bar-h);
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .97);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -10px 30px rgba(7, 18, 45, .1);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        animation: ntFadeIn .2s ease;
    }
    html.nt-framed .bus-rezervacija-app.has-mobile-bar .nt-mobile-bar {
        position: sticky;
        margin: 0;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
    html.nt-framed.nt-vp .bus-rezervacija-app.has-mobile-bar .nt-mobile-bar {
        position: fixed;
        bottom: auto;
        top: calc(var(--nt-vp-top, 0px) + var(--nt-vp-height, 0px));
        transform: translateY(-100%);
        border-radius: 0;
    }
    html.nt-framed .bus-rezervacija-app.has-mobile-bar { padding-bottom: 0; }
    html.nt-framed.nt-vp .bus-rezervacija-app.has-mobile-bar { padding-bottom: var(--nt-bar-h); }
    html.nt-framed.nt-vp-hidden .bus-rezervacija-app .nt-mobile-bar { visibility: hidden; }
    .nt-mobile-bar-total span { display: block; color: var(--text-muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
    .nt-mobile-bar-total strong { display: block; color: var(--brand-navy); font-size: 22px; font-weight: 800; line-height: 1.15; white-space: nowrap; }
    .nt-mobile-bar .btn-primary { flex: 0 1 auto; min-height: 50px; padding: 10px 20px; }
    .bus-rezervacija-app.has-mobile-bar .step-footer .btn-primary { display: none; }
    .bus-rezervacija-app.has-mobile-bar #korak-2 .step-footer { justify-content: flex-start; }
    .bus-rezervacija-app.has-mobile-bar ~ .toast-container { bottom: calc(var(--nt-bar-h) + 14px); }
    html.nt-framed.nt-vp .bus-rezervacija-app.has-mobile-bar ~ .toast-container { top: calc(var(--nt-vp-top, 0px) + var(--nt-vp-height, 100vh) - var(--nt-bar-h) - 14px); }
}

@media (max-width: 680px) {
    body.nt-page { padding: 0; background: #fff; }
    html.nt-framed body.nt-page, body.nt-page.nt-embedded { padding: 0 0 8px; background: transparent; }
    .bus-rezervacija-app { border-radius: 0; border: 0; box-shadow: none; }
    html.nt-framed .bus-rezervacija-app { border-radius: 16px; border: 1px solid var(--border-color); }
    body.nt-no-frame .bus-rezervacija-app { border: 0; }
    .booking-brand-bar { padding: 20px 16px; border-radius: 0; }
    html.nt-framed .booking-brand-bar { border-radius: 16px 16px 0 0; }
    .booking-brand-bar h1 { font-size: 21px; }
    .booking-brand-sub { font-size: 12.5px; }
    .booking-brand-mark { display: none; }
    .nt-stepper { padding: 14px 16px 0; }
    .nt-step { gap: 6px; font-size: 12px; }
    .nt-step-dot { flex-basis: 26px; width: 26px; height: 26px; font-size: 12px; }
    .progress-bar-container { margin: 12px -16px 0; }
    .nt-layout { padding: 18px 16px 20px; }
    .step-header { gap: 12px; margin-bottom: 16px; }
    .icon-wrapper { flex-basis: 42px; width: 42px; height: 42px; border-radius: 12px; }
    .step-header h2 { font-size: 18px; }
    .step-header p { font-size: 13px; }
    .form-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
    .modern-field { min-height: 60px; padding: 9px 12px; gap: 10px; }
    .field-media { flex-basis: 34px; width: 34px; height: 34px; }
    .clean-input, .custom-dropdown-trigger, .dob-group input { font-size: 16px; } /* 16px sprecava zumiranje na iOS-u */
    .custom-dropdown-menu { max-height: 60vh; }
    html.nt-framed .custom-dropdown-menu { max-height: 340px; }
    .passenger-card { padding: 14px; border-radius: 14px; }
    .nt-card-head { padding-right: 44px; }
    .remove-passenger { top: 12px; right: 12px; padding: 6px 9px; }
    .remove-passenger span { display: none; }
    .step-footer { flex-wrap: wrap; }
    .step-footer .btn-primary, .step-footer .btn-secondary { flex: 1 1 auto; }
    .nt-footer-note { width: 100%; justify-content: center; }
    .nt-summary-card { padding: 16px; }
    .nt-success h2 { font-size: 22px; }
    .id-karta-box strong { font-size: 28px; }
    .nt-success-new { width: 100%; min-width: 0; }

    .custom-modal { padding: 0; align-items: flex-end; }
    .modal-content {
        max-width: none !important;
        max-height: 94%;
        padding: 26px 18px calc(22px + env(safe-area-inset-bottom));
        border-radius: 22px 22px 0 0;
        animation: ntSheetUp .26s cubic-bezier(.2, .8, .2, 1);
    }
    .nt-modal-actions { grid-template-columns: 1fr; }
    .total-row span:last-child { font-size: 21px; }
    .nt-modal-head { font-size: 18px; }
    .nt-modal-actions .btn-secondary { order: 2; }
    .nt-review-legs { grid-template-columns: minmax(0, 1fr); }
    .nt-review-legs > svg { display: none; }
    .nt-review-leg:last-child { text-align: left; padding-top: 12px; border-top: 1px dashed var(--border-strong); }
    #modal-odabir-povratka .modal-content { height: 94%; }
    #btn-submit-return { position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -10px 20px rgba(255, 255, 255, .94); }
    .payment-options { grid-template-columns: 1fr; }
    .public-edit-modal-card { padding: 20px 14px 16px !important; }
    .public-edit-heading h3 { font-size: 19px; }
    .public-edit-section { padding: 14px 11px; }
    .public-edit-form-grid, .public-edit-passenger-grid, .public-edit-summary { grid-template-columns: 1fr; }
    .public-edit-form-grid .wide { grid-column: auto; }
    .policy-step h5 { font-size: 11.5px; }
    .penalty-calculator { flex-direction: column; align-items: flex-start; }
    .flatpickr-calendar { width: 300px; }
}
@keyframes ntSheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 360px) {
    .nt-step-label { display: none; }
    .nt-step.is-active .nt-step-label { display: inline; }
    .nt-mobile-bar .btn-primary { padding: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .bus-rezervacija-app *, .custom-modal *, .toast { animation: none !important; transition: none !important; }
}

/* =====================================================================
   STARI WORDPRESS UMETAK (#nt-saas-booking / #nt-saas-master)
   Stiti formu od stilova teme kada je ubacena direktno u stranu.
   ===================================================================== */
#nt-saas-booking *, #nt-saas-master .custom-modal * { font-family: var(--nt-font) !important; }
#nt-saas-booking .clean-input,
#nt-saas-booking input[type="text"],
#nt-saas-booking input[type="email"],
#nt-saas-booking input[type="number"],
#nt-saas-booking input[type="tel"],
#nt-saas-booking textarea {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: unset !important;
    line-height: 1.4 !important;
    color: var(--text-main) !important;
    width: 100% !important;
    pointer-events: auto !important;
}
#nt-saas-booking .dob-group input { width: 44px !important; text-align: center; }
#nt-saas-booking .dob-group input:last-child, #nt-saas-booking .dob-group .sap-god { width: 64px !important; }
#nt-saas-booking .btn-primary, #nt-saas-booking .btn-secondary, #nt-saas-booking .btn-dashed { margin-bottom: 0 !important; line-height: 1.2 !important; text-transform: none !important; }
#nt-saas-booking .btn-dashed { margin-bottom: 16px !important; }
#nt-saas-booking h1, #nt-saas-booking h2, #nt-saas-booking h3 { letter-spacing: 0 !important; text-transform: none !important; }
#nt-saas-booking ol, #nt-saas-booking ul { margin: 0; padding: 0; }
@media (max-width: 768px) {
    #nt-saas-master { padding-left: 0 !important; padding-right: 0 !important; }
}

/* Kada tema (roditeljska strana) crta donju traku sa cenom, unutrasnja traka se ne prikazuje */
html.nt-parent-bar .bus-rezervacija-app .nt-mobile-bar { display: none !important; }
html.nt-parent-bar .bus-rezervacija-app.has-mobile-bar { padding-bottom: 0 !important; }

/* Prozor sa opštim uslovima / politikom privatnosti */
.nt-modal-dokument { max-width: 720px; width: 100%; display: flex; flex-direction: column; max-height: min(86vh, 860px); padding: 0 !important; overflow: hidden; }
.nt-dok-glava { display: flex; align-items: center; gap: 12px; padding: 20px 64px 14px 22px; border-bottom: 1px solid var(--border-color, #e2e8f0); }
.nt-dok-glava .nt-modal-icon { margin: 0 !important; width: 42px; height: 42px; flex-shrink: 0; }
.nt-dok-glava .nt-modal-title { margin: 0 !important; text-align: left; }
.nt-dok-tekst { flex: 1 1 auto; min-height: 120px; overflow-y: auto; padding: 18px 22px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.7; color: var(--text-main, #172033); overscroll-behavior: contain; }
.nt-dok-dno { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 14px 22px; border-top: 1px solid var(--border-color, #e2e8f0); background: #f8fafc; }
.nt-dok-dno .btn-primary, .nt-dok-dno .btn-secondary { min-height: 46px; }
@media (max-width: 600px) {
    .nt-modal-dokument { max-height: 92vh; }
    .nt-dok-dno { flex-direction: column-reverse; }
    .nt-dok-dno > * { width: 100%; justify-content: center; }
}

/* Citljiv tekst dokumenta (iz admin editora) */
.nt-dok-tekst { white-space: normal !important; font-size: 15.5px; line-height: 1.75; }
.nt-dok-tekst > *:first-child { margin-top: 0; }
.nt-dok-tekst p { margin: 0 0 12px; }
.nt-dok-tekst h1, .nt-dok-tekst h2, .nt-dok-tekst h3, .nt-dok-tekst h4 { margin: 26px 0 10px; line-height: 1.3; color: var(--brand-navy, #07122d); font-weight: 800; }
.nt-dok-tekst h1 { font-size: 22px; }
.nt-dok-tekst h2 { font-size: 18px; padding-top: 16px; border-top: 1px solid var(--border-color, #e2e8f0); }
.nt-dok-tekst > h2:first-child { border-top: 0; padding-top: 0; }
.nt-dok-tekst h3 { font-size: 16px; }
.nt-dok-tekst h4 { font-size: 15px; }
.nt-dok-tekst ul, .nt-dok-tekst ol { margin: 0 0 14px; padding-left: 22px; }
.nt-dok-tekst li { margin: 0 0 6px; padding-left: 2px; }
.nt-dok-tekst li::marker { color: var(--primary, #f7931e); }
.nt-dok-tekst a { color: var(--primary, #f7931e); text-decoration: underline; overflow-wrap: anywhere; }
.nt-dok-tekst strong, .nt-dok-tekst b { color: var(--brand-navy, #07122d); }
.nt-dok-tekst blockquote { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--primary, #f7931e); background: #f8fafc; border-radius: 0 10px 10px 0; }
.nt-dok-tekst hr { border: 0; border-top: 1px solid var(--border-color, #e2e8f0); margin: 18px 0; }
.nt-dok-tekst table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 14px; display: block; overflow-x: auto; }
.nt-dok-tekst th, .nt-dok-tekst td { border: 1px solid var(--border-color, #e2e8f0); padding: 6px 10px; text-align: left; }


/* ===== Tip karte: pločice (nova karta 2x2, već imam kartu u redu) ===== */
.modern-field.nt-tip-polje { display: block; padding: 14px; min-height: 0; }
.modern-field.nt-tip-polje:focus-within { border-color: var(--border-color); box-shadow: none; }
.nt-tip-skriveno { display: none !important; }
.nt-tip-naslov { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.nt-tip-naslov svg { width: 15px; height: 15px; color: var(--primary); }
.nt-tip-naslov--imam { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border-color); }
.nt-tip-mreza { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nt-tip-plocica { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border: 1.5px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-card); color: var(--text-main); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s, transform .15s; }
.nt-tip-plocica:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.nt-tip-plocica:focus-visible, .nt-tip-akcija:focus-visible { outline: 3px solid var(--primary-ring); outline-offset: 2px; }
.nt-tip-plocica.is-active { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 3px var(--primary-ring); }
.nt-tip-zastava { position: relative; flex: 0 0 44px; width: 44px; height: 32px; }
.nt-tip-zastava img { width: 44px; height: 32px; border-radius: 6px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); display: block; }
.nt-tip-smer { position: absolute; right: -7px; bottom: -7px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--brand-navy); color: #fff; box-shadow: 0 0 0 2px var(--bg-card); }
.nt-tip-smer--povratna { background: var(--primary); color: var(--on-primary); }
.nt-tip-smer svg { width: 13px; height: 13px; stroke-width: 2.6; }
.nt-tip-tekst { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.nt-tip-tekst strong { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-tip-tekst small { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; color: var(--text-muted); margin-top: 3px; }
.nt-tip-kvacica { position: absolute; top: 8px; right: 8px; width: 16px; height: 16px; color: var(--primary); opacity: 0; transition: opacity .15s; }
.nt-tip-plocica.is-active .nt-tip-kvacica { opacity: 1; }
.nt-tip-akcije { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nt-tip-akcija { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-soft); color: var(--text-main); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.nt-tip-akcija > svg { flex: 0 0 34px; width: 34px; height: 34px; padding: 8px; box-sizing: border-box; border-radius: 10px; background: var(--bg-card); color: var(--brand-navy); box-shadow: var(--shadow-sm); }
.nt-tip-akcija span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.nt-tip-akcija strong { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-tip-akcija small { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.nt-tip-akcija:hover, .nt-tip-akcija.is-active { border-color: var(--primary); background: var(--primary-light); }
.nt-tip-akcija:hover > svg, .nt-tip-akcija.is-active > svg { color: var(--primary); }
.nt-tip-akcija--otkaz:hover, .nt-tip-akcija--otkaz.is-active { border-color: var(--error-color); background: var(--error-soft); }
.nt-tip-akcija--otkaz > svg { color: var(--error-color); }
button.nt-tip-naslov { width: 100%; border: 0; border-top: 1px dashed var(--border-color); background: none; font-family: inherit; text-align: left; cursor: default; padding-left: 0; padding-right: 0; padding-bottom: 0; }
.nt-imam-plus { display: none; }
.nt-boja-zelena { color: var(--success-color) !important; }
.nt-boja-plava { color: #1d64d8 !important; }
.nt-boja-crvena { color: var(--error-color) !important; }
.nt-tip-akcija[data-val="imam_povratnu"] > svg { color: var(--success-color); }
.nt-tip-akcija[data-val="izmena"] > svg { color: #1d64d8; }
@media (max-width: 560px) {
    /* Vec imate kartu? kao harmonika: plus desno, minus kad je otvoreno */
    button.nt-tip-naslov--imam { display: flex; align-items: center; margin-top: 12px; padding: 11px 12px; border: 1.5px solid var(--border-color); border-radius: 10px; background: var(--bg-soft); color: var(--text-main); font-size: 13px; letter-spacing: .02em; text-transform: none; cursor: pointer; }
    .nt-imam-plus { display: block; position: relative; margin-left: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-light); }
    .nt-imam-plus::before, .nt-imam-plus::after { content: ''; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px; border-radius: 2px; background: var(--primary); transition: transform .2s; }
    .nt-imam-plus::after { transform: rotate(90deg); }
    .nt-imam-otvoreno .nt-imam-plus::after { transform: rotate(0deg); }
    .nt-imam-otvoreno button.nt-tip-naslov--imam { border-color: var(--primary); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
    .nt-tip-polje:not(.nt-imam-otvoreno) .nt-tip-akcije { display: none; }
    .nt-imam-otvoreno .nt-tip-akcije { padding: 8px; border: 1.5px solid var(--primary); border-top: 0; border-radius: 0 0 10px 10px; }
    .modern-field.nt-tip-polje { padding: 12px; }
    .nt-tip-mreza { gap: 8px; }
    .nt-tip-plocica { gap: 10px; padding: 10px; }
    .nt-tip-zastava { flex-basis: 32px; width: 32px; height: 24px; }
    .nt-tip-zastava img { width: 32px; height: 24px; border-radius: 5px; }
    .nt-tip-smer { width: 18px; height: 18px; right: -6px; bottom: -6px; }
    .nt-tip-smer svg { width: 11px; height: 11px; }
    .nt-tip-tekst strong { font-size: 13px; white-space: normal; }
    .nt-tip-tekst small { font-size: 10.5px; }
    .nt-tip-kvacica { top: 5px; right: 5px; width: 14px; height: 14px; }
    /* Telefon: vec imam kartu jedno ispod drugog, ikonica levo, tekst u jednom redu */
    .nt-tip-akcije { grid-template-columns: 1fr; gap: 6px; }
    .nt-tip-akcija { padding: 5px 10px; gap: 10px; border-radius: 10px; }
    .nt-tip-akcija > svg { flex-basis: 26px; width: 26px; height: 26px; padding: 5px; border-radius: 8px; }
    .nt-tip-akcija span { flex-direction: row; align-items: baseline; gap: 6px; flex-wrap: wrap; }
    .nt-tip-akcija strong { font-size: 13.5px; }
    .nt-tip-akcija small { font-size: 12px; margin-top: 0; }
    .nt-tip-akcija small::before { content: '('; } .nt-tip-akcija small::after { content: ')'; }
}
