:root {
  --kp-navy: #12304a;
  --kp-blue: #1769aa;
  --kp-blue-dark: #0e4f83;
  --kp-green: #23835a;
  --kp-sand: #f4f7f9;
  --kp-line: #dbe3e9;
  --kp-text: #20313f;
  --kp-muted: #607483;
  --kp-danger: #b42318;
  --kp-radius: 18px;
  --kp-shadow: 0 14px 36px rgba(16, 48, 73, .09);
}

.kp-app { color: var(--kp-text); max-width: 1180px; margin: 0 auto; padding: clamp(16px, 3vw, 38px); font-size: 16px; line-height: 1.55; }
.kp-app *, .kp-app *::before, .kp-app *::after { box-sizing: border-box; }
.kp-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: clamp(28px, 6vw, 66px); margin-bottom: 24px; border-radius: 24px; color: #fff; background: linear-gradient(125deg, rgba(10, 54, 84, .96), rgba(23, 105, 170, .90)), radial-gradient(circle at 85% 15%, #65b5dc, transparent 42%); box-shadow: var(--kp-shadow); }
.kp-hero--small { padding-block: clamp(26px, 4vw, 48px); }
.kp-hero h1 { color: inherit; margin: .15rem 0 .55rem; font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1.03; letter-spacing: -.035em; }
.kp-hero--small h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.kp-hero p { max-width: 720px; margin: 0; font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,.86); }
.kp-eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: #91d6ff; }
.kp-card { background: #fff; border: 1px solid var(--kp-line); border-radius: var(--kp-radius); padding: clamp(20px, 4vw, 36px); margin-bottom: 22px; box-shadow: 0 8px 28px rgba(16, 48, 73, .055); }
.kp-card--compact { padding-block: 20px; }
.kp-section-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.kp-section-heading h2, .kp-card h2 { margin: 0 0 4px; color: var(--kp-navy); font-size: clamp(1.25rem, 3vw, 1.65rem); }
.kp-section-heading p { margin: 0; color: var(--kp-muted); }
.kp-section-number { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--kp-blue); color: #fff; font-weight: 800; }
.kp-steps { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0 0 22px; padding: 0; background: var(--kp-sand); border-radius: 14px; overflow: hidden; }
.kp-steps li { display: flex; justify-content: center; align-items: center; gap: 9px; padding: 13px; border-right: 1px solid var(--kp-line); }
.kp-steps li:last-child { border-right: 0; }
.kp-steps strong { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #dbeaf5; color: var(--kp-blue-dark); }
.kp-grid { display: grid; gap: 18px; }
.kp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kp-grid--report { grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); align-items: start; }
.kp-field { min-width: 0; }
.kp-field label { display: block; margin-bottom: 7px; color: var(--kp-navy); font-weight: 750; }
.kp-field input, .kp-field select, .kp-field textarea { width: 100%; min-height: 48px; border: 1px solid #b9c8d3; border-radius: 10px; background: #fff; color: var(--kp-text); padding: 11px 13px; font: inherit; transition: border-color .15s, box-shadow .15s; }
.kp-field textarea { resize: vertical; }
.kp-field input:focus, .kp-field select:focus, .kp-field textarea:focus { outline: 0; border-color: var(--kp-blue); box-shadow: 0 0 0 4px rgba(23,105,170,.14); }
.kp-field [aria-invalid="true"] { border-color: var(--kp-danger); }
.kp-help, .kp-counter { display: block; margin: 7px 0 18px; color: var(--kp-muted); font-size: .9rem; }
.kp-counter { text-align: right; margin-top: 4px; }
.kp-location-search { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; gap: 10px; align-items: end; margin-bottom: 14px; }
.kp-map-wrap { overflow: hidden; border: 1px solid var(--kp-line); border-radius: 14px; background: var(--kp-sand); }
.kp-map { width: 100%; height: clamp(330px, 50vw, 510px); z-index: 1; }
.kp-map--track { height: 360px; }
.kp-map:focus { outline: 3px solid rgba(23,105,170,.35); outline-offset: 2px; }
.kp-map-status { margin: 0; padding: 10px 14px; color: var(--kp-navy); background: #edf6fc; font-weight: 650; }
.kp-map-fallback { padding: 30px; }
.kp-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid transparent; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 800; text-decoration: none !important; cursor: pointer; transition: transform .12s, background .12s, border-color .12s; }
.kp-button:hover { transform: translateY(-1px); }
.kp-button:focus-visible { outline: 3px solid rgba(65,180,235,.45); outline-offset: 2px; }
.kp-button:disabled { opacity: .58; cursor: wait; transform: none; }
.kp-button--primary { color: #fff !important; background: var(--kp-blue); }
.kp-button--primary:hover { background: var(--kp-blue-dark); }
.kp-button--secondary { color: var(--kp-blue-dark) !important; background: #edf6fc; border-color: #bcd9ec; }
.kp-button--ghost { color: #fff !important; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); white-space: nowrap; }
.kp-upload { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 14px; align-items: start; }
.kp-upload-preview img { display: block; width: 140px; height: 100px; border-radius: 10px; object-fit: cover; }
.kp-consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.kp-consent input { flex: 0 0 auto; width: 21px; height: 21px; margin-top: 2px; accent-color: var(--kp-blue); }
.kp-form-actions { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 10px 2px 30px; }
.kp-form-actions p { margin: 0; color: var(--kp-muted); }
.kp-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.kp-lookup { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.kp-alert { padding: 16px 18px; margin-bottom: 22px; border-radius: 12px; }
.kp-alert--error { color: #7a271a; background: #fef3f2; border: 1px solid #fecdca; }
.kp-ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.kp-ticket-head h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: .02em; }
.kp-ticket-head p { margin: 0; color: var(--kp-muted); }
.kp-status { display: inline-flex; padding: 8px 13px; border-radius: 999px; color: #175c3d; background: #e8f6ef; font-weight: 800; white-space: nowrap; }
.kp-status--odbijeno { color: #8b2c20; background: #feecea; }
.kp-progress { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; margin: 0 0 24px; padding: 0; }
.kp-progress li { position: relative; display: grid; justify-items: center; gap: 7px; color: #7b8b96; text-align: center; font-size: .86rem; }
.kp-progress li::before { content: ''; position: absolute; top: 16px; left: -50%; width: 100%; height: 3px; background: var(--kp-line); z-index: 0; }
.kp-progress li:first-child::before { display: none; }
.kp-progress span { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--kp-line); background: #fff; font-weight: 800; }
.kp-progress .is-complete { color: var(--kp-green); }
.kp-progress .is-complete::before { background: var(--kp-green); }
.kp-progress .is-complete span { color: #fff; background: var(--kp-green); border-color: var(--kp-green); }
.kp-details { margin: 0; }
.kp-details > div { padding: 13px 0; border-bottom: 1px solid var(--kp-line); }
.kp-details > div:last-child { border-bottom: 0; }
.kp-details dt { color: var(--kp-muted); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.kp-details dd { margin: 3px 0 0; }
.kp-report-photo { display: block; width: 100%; max-height: 520px; object-fit: contain; border-radius: 12px; margin-top: 18px; background: var(--kp-sand); }
.kp-timeline { list-style: none; margin: 8px 0 0; padding: 0; }
.kp-timeline li { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 14px; padding-bottom: 22px; }
.kp-timeline li:not(:last-child)::before { content: ''; position: absolute; left: 7px; top: 15px; bottom: -2px; width: 2px; background: var(--kp-line); }
.kp-timeline-dot { position: relative; z-index: 1; width: 16px; height: 16px; margin-top: 4px; border: 4px solid #cde8db; border-radius: 50%; background: var(--kp-green); }
.kp-timeline-meta { display: flex; justify-content: space-between; gap: 16px; }
.kp-timeline-meta time { color: var(--kp-muted); font-size: .88rem; }
.kp-timeline p { margin: 5px 0 0; }

@media (max-width: 760px) {
  .kp-app { padding: 12px; }
  .kp-hero { align-items: stretch; flex-direction: column; padding: 26px 20px; border-radius: 18px; }
  .kp-hero h1 { font-size: 2.15rem; }
  .kp-grid--2, .kp-grid--report, .kp-lookup, .kp-location-search { grid-template-columns: 1fr; }
  .kp-steps span { display: none; }
  .kp-steps li { padding: 10px; }
  .kp-card { padding: 20px 16px; border-radius: 14px; }
  .kp-location-search .kp-button { width: 100%; }
  .kp-map { height: 390px; }
  .kp-upload { grid-template-columns: 1fr; }
  .kp-upload-preview img { width: 100%; height: 190px; }
  .kp-form-actions, .kp-ticket-head { align-items: stretch; flex-direction: column; }
  .kp-form-actions .kp-button { width: 100%; }
  .kp-progress strong { font-size: .7rem; }
  .kp-progress span { width: 30px; height: 30px; }
  .kp-progress li::before { top: 14px; }
  .kp-timeline-meta { flex-direction: column; gap: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  .kp-app *, .kp-app *::before, .kp-app *::after { scroll-behavior: auto !important; transition: none !important; }
}
