/* =========================================================
   OFFICE: konfigurator i narudžba (order/office.php)
   Svi selektori su pod .op, da ne diraju glavni header i main.css sajta. Responsive pravila su na dnu fajla.
========================================================= */

.op {
    --main: #006eff;
    --main-d: #0052c2;
    --heading: #012970;
    --ink: #0f172b;
    --muted: #62748e;
    --light: #edf8ff;
    --lighter: #f4f9ff;
    --border: #dde8f6;
    --bg: #f5f9ff;
    --danger: #d92d20;
    --ok: #12a150;

    --head: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --rethink: "Google Sans", sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

.op *,
.op *::before,
.op *::after {
    box-sizing: border-box;
}

.op {
    margin: 0;
    color: var(--ink);
    font: 300 13px/1.6 var(--body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.op img,
.op svg {
    display: block;
    max-width: 100%;
}

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

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

.op button,
.op input {
    font: inherit;
    color: inherit;
}

.op button {
    cursor: pointer;
}

.op [hidden] {
    display: none !important;
}

.op .wrap {
    width: min(1180px, 100% - 40px);
    margin: 0 auto;
    padding-bottom: 80px;
}

/* ---------- uvod ---------- */
.op .intro {
    display: flex;
    flex-direction: row;
    margin: 20px 0;
    padding: 10px 0;
    max-width: 100%;
    gap: 20px;
    align-items: center;
}

.op .intro img{
    display: flex;
    height: 140px;
    width: auto;
    filter: drop-shadow(-2px 3px 4px rgba(0, 0, 0, 0.315));
}

.op .intro h1 {
    font: 700 clamp(20px, 2vw, 30px)/1.05 var(--head);
    letter-spacing: -.03em;
    color: #000;
}

.op .intro h1 em {
    font-style: normal;
    background: linear-gradient(100deg, #ff6600 0%, #b64c05 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.op .intro p {
    margin: 10px 0 0;
    padding: 0;
    font: 400 clamp(13px, 1.5vw, 17px)/1.3 "Google Sans", sans-serif;
    color: var(--muted);
}

@media (max-width: 768px) {
    .op .intro{
        gap: 12px;
    }
    .op .intro img{
        height: 100px;
    }
    .op .intro p {
        margin: 6px 0 0;
        font-size: 12px;
    }
}

.op .intro-line{
    color: #bbbbbb;
}
/* ---------- raspored ---------- */
.op .grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    align-items: start;
    gap: 26px;
}

.op .steps {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.op .ocard {
    padding: 24px 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(1, 41, 112, .04), 0 24px 50px -34px rgba(1, 41, 112, .28);
}

.op .card-h {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.op .num {
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--l-2);
    color: var(--heading);
    font: 650 15px/1 var(--head);
}

.op .card-h h2 {
    font: 650 clamp(16px, 2vw, 18px)/1 var(--head);
    letter-spacing: -.02em;
    color: var(--heading);
}

.op .card-h p {
    margin-top: 2px;
    font-size: 13.5px;
    font-weight: 350;
    color: var(--muted);
    line-height: 1.2;
}

/* ---------- veliki izbori (kartice) ---------- */
.op .opts {
    display: grid;
    gap: 14px;
}

.op .opts--2 { grid-template-columns: 1fr 1fr; }
.op .opts--3 { grid-template-columns: repeat(3, 1fr); }

.op .opt {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: #fff;
    text-align: left;
    transition: border-color .25s, background-color .25s, transform .3s var(--ease), box-shadow .3s;
}

.op .opt.opt-dis {
    opacity: 0.6;
}

.op .opt:not(.opt-dis):hover {
    transform: translateY(-2px);
    border-color: #b9d7ff;
    box-shadow: 0 14px 28px -20px rgba(0, 110, 255, .5);
}

.op .opt.is-on {
    border-color: var(--main);
    background: linear-gradient(160deg, var(--lighter), #fff);
    box-shadow: 0 0 0 4px rgba(0, 110, 255, .1), 0 12px 20px -16px rgba(0, 110, 255, .55);
}

.op .opt:focus-visible,
.op .seg-b:focus-visible,
.op .orow:focus-visible,
.op .send:focus-visible {
    outline: 3px solid rgba(0, 110, 255, .45);
    outline-offset: 2px;
}

.opt-ico-wrap{
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

.op .opt-ico {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--l-1);
    color: var(--heading);
    transition: background-color .25s, color .25s;
}

.op .opt-ico svg {
    width: 22px;
    height: 22px;
}

.op .opt.is-on .opt-ico {
    background: var(--heading);
    color: #74deff;
}

.op .opt-ico--dark { background: #eaf0fb; color: #1a2b52; }
.op .opt-ico--light { background: #fff6dd; color: #c98a00; }

.op .opt.is-on .opt-ico--dark { background: #12203f; color: #fff; }
.op .opt.is-on .opt-ico--light { background: #f5b301; color: #fff; }

.op .opt b {
    font: 700 19px/1 var(--rethink);
    letter-spacing: -0.4px;
    color: var(--heading);
    margin: 0;
}

.op .opt-d {
    font-family: var(--rethink);
    font-size: 13.5px;
    color: var(--heading);
    font-weight: 350;
    line-height: 1.2;
    margin: 10px 0 0;
    background: var(--l-0);
    padding: 6px 8px;
    border-radius: 8px;
    width: 100%;
}

.op .opt-p {
    margin-top: auto;
    padding-top: 10px;
    font: 650 14px/1.3 var(--head);
    color: var(--main);
}

.op .tick {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 24px;
    height: 24px;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    background: #fff;
    transition: background-color .25s, border-color .25s;
}

.op .tick::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .3s var(--ease);
}

.op .opt.is-on .tick {
    background: var(--heading);
    border-color: var(--heading);
}

.op .opt.is-on .tick::after {
    transform: rotate(45deg) scale(1);
}

.op .opt--sm {
    padding: 20px 18px 18px;
}

/* ---------- broj stranica ---------- */
.op .pages {
    margin-top: 18px;
    padding: 20px;
    border: 1.5px dashed #bcd9ff;
    border-radius: 12px;
    background: var(--lighter);
    animation: pop .45s var(--ease);
}

@keyframes pop {
    from { opacity: 0; transform: translateY(-8px); }
}

.op .pages-h {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
    margin-bottom: 14px;
}

.op .pages-h b {
    font: 700 16px/1.2 var(--head);
    color: var(--heading);
}

.op .pages-h span {
    font-size: 13.5px;
    color: var(--muted);
}

.op .seg {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 90%;
    margin: 0 auto;
}

.op .seg-b {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 6px 10px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: #fff;
    transition: border-color .25s, background-color .25s, color .25s, transform .25s var(--ease);
}

.op .seg-b b {
    font: 700 22px/1 var(--head);
    color: var(--heading);
}

.op .seg-b small {
    margin-top: 3px;
    font-size: 12px;
    color: var(--muted);
}

.op .seg-b:hover {
    transform: translateY(-2px);
    border-color: #b9d7ff;
}

.op .seg-b.is-on {
    border-color: var(--main);
    background: var(--main);
}

.op .seg-b.is-on b,
.op .seg-b.is-on small {
    color: #fff;
}

/* ---------- redovi sa prekidačem ---------- */
.op .rows {
    display: grid;
    gap: 12px;
}

.op .orow.orow-dis {
    position: relative;
    border: 2px solid transparent;
    border-radius: 13px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(180deg, #556cff, #141bd6) border-box;
}
.op .orow.orow-dis::before{
    position: absolute;
    content: 'Business';
    background: #556cff;
    color: #fff;
    font: 550 13px/1 "Inter", sans-serif;
    letter-spacing: -0.2px;
    padding: 3px 6px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}
.op .orow.orow-dis *{
    opacity: 0.8;
}

.op .orow {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 18px;
    border: 1.5px solid var(--border);
    border-radius: 13px;
    background: #fff;
    text-align: left;
    transition: border-color .25s, background-color .25s, box-shadow .3s;
}

.op button.orow:not(.orow-dis):hover {
    border-color: #b9d7ff;
}

.op .orow.is-on {
    border-color: var(--main);
    background: linear-gradient(160deg, var(--lighter), #fff);
    box-shadow: 0 0 0 4px rgba(0, 110, 255, .08);
}

.op .orow.is-on .row-ico{
    background: var(--l-3);
    color: var(--main);
}

.op .row-ico {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--l-1);
    color: var(--heading);
    transition: color .25s, background .25s;
}

.op .row-ico svg {
    width: 20px;
    height: 20px;
}

.op .row-ico--ok {
    background: #e6f7ee;
    color: var(--ok);
}

.op .row-t {
    flex: 1;
    min-width: 0;
}

.op .row-t b {
    display: block;
    font: 700 16px/1.3 var(--head);
    color: var(--heading);
}

.op .row-t small {
    display: block;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--muted);
}

.op .row-p {
    flex: none;
    max-width: 170px;
    text-align: right;
    font: 650 13.5px/1.35 var(--head);
    color: var(--main);
}

.op .row-p--in {
    color: var(--ok);
}

.op .row--fixed {
    border-style: solid;
    border-color: #cdeedc;
    background: #f6fdf9;
    cursor: default;
}

.op .sw {
    position: relative;
    flex: none;
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: #e3eaf5;
    transition: background-color .3s;
    box-shadow: 0 0 1px #0000005e;
}

.op .sw::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(1, 41, 112, .3);
    transition: transform .35s var(--ease);
}

.op .orow.is-on .sw {
    background: #31d166;
}

.op .orow.is-on .sw::after {
    transform: translateX(19px);
}

/* SEO: uključeno i zaključano */
.op .chk {
    position: relative;
    flex: none;
    width: 27px;
    height: 27px;
}

.op .chk input {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
}

.op .chk span {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: var(--ok);
}

.op .chk span::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 5px;
    width: 7px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2.8px 2.8px 0;
    transform: rotate(45deg);
}

/* jezici */
.op .lang {
    margin-top: 10px;
    padding: 18px;
    border: 1.5px dashed #bcd9ff;
    border-radius: 12px;
    background: var(--lighter);
    animation: pop .45s var(--ease);
}

.op .lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.op .hint {
    margin-top: 12px;
    font-size: 13.5px;
    color: var(--muted);
}

/* ---------- polja ---------- */
.op .fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.op .f {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.op .f--full {
    grid-column: 1 / -1;
}

.op .f > span {
    font: 650 13.5px/1 var(--head);
    color: var(--heading);
}

.op .f em {
    font-style: normal;
    font-weight: 450;
    color: var(--muted);
}

.op .f input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 450;
    color: var(--heading);
    outline: 0;
    transition: border-color .25s, box-shadow .25s;
}

.op .f input::placeholder {
    color: #9fb0c8;
}

.op .f input:focus {
    border-color: var(--main);
    box-shadow: 0 0 0 4px rgba(0, 110, 255, .12);
}

.op .f.is-bad input {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(217, 45, 32, .1);
}

.op .err {
    margin-top: 10px;
    font: 550 13.5px/1.4 var(--body);
    color: var(--danger);
}

.op .f .err {
    margin-top: 0;
}

.op .err--form {
    margin-top: 18px;
    padding: 13px 16px;
    border-radius: 12px;
    background: #fdecea;
}

.op .notice {
    display: flex;
    gap: 14px;
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--light);
    border: 1px solid #cfe6ff;
}

.op .notice svg {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: var(--main);
}

.op .notice p {
    font: 450 13px/1.2 var(--head);
    color: rgb(59, 77, 95);
}

.op .notice b {
    color: var(--heading);
}

/* ---------- dugme za slanje ---------- */
.op .send {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: fit-content;
    margin: 22px auto 0;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(#396dfc, #0f4cf5);
    color: #fff;
    font: 450 13.5px/1.2 var(--head);
    box-shadow: inset 0pt 4pt 3pt -2pt #386fff, 0pt 4pt 5pt -3pt #0009;
    border-bottom: 2pt solid #073de0;
    text-shadow: 0 -1px 0 rgba(0, 40, 120, 0.4);
    transition: transform .3s var(--ease), box-shadow .3s, filter .3s;
}

.op .send b {
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .2);
    font-weight: 700;
}

.op .send b:empty {
    display: none;
}

.op .send:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 26px 40px -18px rgba(0, 110, 255, .95);
}

.op .send:disabled {
    opacity: .7;
    cursor: wait;
}

.op .send--ghost {
    display: inline-flex;
    width: auto;
    margin-top: 28px;
    background: #fff;
    color: var(--main);
    border: 1.5px solid #bcd9ff;
    box-shadow: none;
}

/* ---------- sažetak ---------- */
.op .sum {
    position: sticky;
    top: 110px
}

.op .sum-in {
    padding: 26px 24px 22px;
    border-radius: 10px;
    background: linear-gradient(165deg, #020711 0%, #101f30 100%);
    color: #fff;
    box-shadow: 0 12px 20px -10px rgba(1, 41, 112, .8);
}

.op .sum h3 {
    margin-bottom: 18px;
    font: 450 18px/1.2 "Inter", sans-serif;
    letter-spacing: -.02em;
    color: #f3f3f3;
}
.op .sum h3 span {
    color: #ee8032;
    font-weight: 750;
}

.op .sum-lines{
    padding: 0;
}
.op .sum-lines li {
    display: flex;
    justify-content: space-between;
    gap: 2px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    font-size: 13px;
    animation: line-in .45s var(--ease);
    color: #fff;
}

@keyframes line-in {
    from { opacity: 0; transform: translateX(-8px); }
}

.op .sum-lines li span {
    color: rgba(255, 255, 255, .85);
    font-weight: 300;
}

.op .sum-lines li b {
    flex: none;
    font: 500 14px/1.3 var(--head);
    white-space: nowrap;
}

.op .sum-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 16px;
    background: #ffffff0e;
    padding: 5px 8px;
    border-radius: 6px;
}

.op .sum-total span {
    font: 400 13px/1 var(--head);
    color: rgba(255, 255, 255, 0.589);
    text-transform: uppercase;
}

.op .sum-total b {
    font: 600 clamp(18px, 2vw, 22px)/1 var(--head);
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

.op .sum-hint {
    margin-top: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .12);
    font-size: 13px;
}

.op .sum-note {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(221, 229, 233, 0.65);
}

/* ---------- potvrda ---------- */
.op .done {
    max-width: 640px;
    margin: clamp(40px, 7vw, 90px) auto 0;
    padding: clamp(26px, 5vw, 46px);
    border: 1px solid var(--border);
    border-radius: 26px;
    background: #fff;
    text-align: center;
    box-shadow: 0 30px 70px -40px rgba(1, 41, 112, .4);
}

.op .done-ico {
    width: 84px;
    margin: 0 auto 20px;
    color: var(--ok);
}

.op .done-ico circle {
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
    animation: draw .8s .1s var(--ease) forwards;
}

.op .done-ico path {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: draw .6s .7s var(--ease) forwards;
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

.op .done h2 {
    font: 800 clamp(24px, 4vw, 30px)/1.15 var(--head);
    letter-spacing: -.02em;
    color: var(--heading);
}

.op .done > p {
    max-width: 460px;
    margin: 14px auto 0;
    color: var(--muted);
}

.op .done-ref {
    display: inline-block;
    margin: 22px 0 8px;
    padding: 12px 22px;
    border-radius: 14px;
    background: var(--light);
    color: var(--muted);
    font-size: 14px;
}

.op .done-ref b {
    margin-left: 8px;
    font: 750 16px/1 var(--head);
    letter-spacing: .08em;
    color: var(--main);
}

.op .sum-lines--done {
    margin-top: 14px;
    text-align: left;
}

.op .sum-lines--done li {
    border-bottom-color: var(--border);
    animation: none;
}

.op .sum-lines--done li span {
    color: var(--ink);
}

.op .done-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 2px solid var(--heading);
}

.op .done-total span {
    font: 650 13px/1 var(--head);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.op .done-total b {
    font: 700 16px/1 var(--head);
    color: var(--heading);
}

/* ---------- honeypot + mobilna traka ---------- */
.op .hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.op .bar {
    display: none;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1060px) {
    .op .grid {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 20px;
    }

    .op .opts--3 {
        grid-template-columns: 1fr;
    }

    .op .opts--3 .opt {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 14px;
    }

    .op .opts--3 .opt-ico {
        margin: 0;
    }

    .op .opts--3 .opt-p {
        margin: 0 0 0 auto;
        padding: 0 34px 0 0;
    }
}

@media (max-width: 900px) {

    .op .grid {
        grid-template-columns: 1fr;
    }

    /* sažetak se spušta ispod koraka, a cijenu na vrhu ekrana nosi donja traka */
    .op .sum {
        position: static;
        order: 2;
    }

    .op .bar {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 60;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 12px 14px 12px 20px;
        border-radius: 18px;
        background: var(--heading);
        color: #fff;
        box-shadow: 0 20px 40px -14px rgba(1, 41, 112, .8);
        transform: translateY(140%);
        transition: transform .5s var(--ease);
    }

    .op .bar.has-price:not(.is-hidden) {
        transform: none;
    }

    .op .bar small {
        display: block;
        font-size: 11.5px;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, .7);
    }

    .op .bar b {
        font: 800 24px/1.1 var(--head);
        font-variant-numeric: tabular-nums;
    }

    .op .bar-btn {
        padding: 13px 22px;
        border-radius: 13px;
        background: linear-gradient(#396dfc, #0f4cf5);
        color: #fff;
        font: 450 13.5px/1.2 var(--head);
        box-shadow: inset 0pt 4pt 3pt -2pt #386fff, 0pt 4pt 5pt -3pt #0009;
        border-bottom: 2pt solid #073de0;
        text-shadow: 0 -1px 0 rgba(0, 40, 120, 0.4);
    }
}

@media (max-width: 640px) {
    .op .wrap {
        width: calc(100% - 28px);
        padding-bottom: 50px;
    }

    

    .op .opts--2,
.op .fields,
.op .lang-grid {
        grid-template-columns: 1fr;
    }

    .op .ocard {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .op .orow {
        flex-wrap: wrap;
        padding: 14px;
        gap: 12px 14px;
    }

    .op .row-t {
        flex: 1 1 calc(100% - 140px);
    }

    .op .row-p {
        max-width: none;
        margin-left: 58px;
        order: 5;
        flex: 1 1 100%;
        text-align: left;
    }

    .op .sw,
.op .chk {
        margin-left: auto;
    }

    .op .row--fixed .row-p {
        margin-left: 58px;
    }

    .op .seg {
        gap: 8px;
    }

    .op .send {
        font-size: 16px;
        padding: 17px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    

    .op * {
        animation: none !important;
        transition: none !important;
    }
}
