﻿* {
    box-sizing: border-box;
}

.checkout-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 5px;

}
.pb-3 {
    padding-bottom: 0rem !important;
}
.checkout-shell {
    width: 100%;
    max-width: 1100px;
    background: #fff;
    border-radius: 26px;
    display: grid;
    grid-template-columns: 420px 1fr;
    box-shadow: 0 30px 60px rgba(0,0,0,.15), 0 80px 200px rgba(0,0,0,.22);
    overflow: hidden;
}

/* LEFT */
.checkout-left {
    background: radial-gradient( circle at top left, #8E7BFF 0%, #6C63FF 45%, #5A4EE6 100% );
    color: #fff;
    padding: 50px;
    position: relative;
}

    .checkout-left h1 {
        font-size: 34px;
        font-weight: 800;
        margin-bottom: 10px;
    }

    .checkout-left .lead {
        font-size: 15px;
        opacity: .9;
        line-height: 1.6;
        color:white;
    }
    .checkout-left::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to bottom, rgba(255,255,255,.08), rgba(0,0,0,.15) );
        pointer-events: none;
    }

.checkout-steps {
    margin-top: 40px;
    list-style: none;
    padding: 0;
}

    .checkout-steps li {
        padding: 12px 0;
        opacity: .6;
        font-weight: 500;
    }

        .checkout-steps li.active {
            opacity: 1;
            font-weight: 700;
        }

/* RIGHT */
.checkout-right {
    padding: 50px 60px;
}

.block {
    margin-bottom: 40px;
}

    .block h3 {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 20px;
        color: #2d2d3a;
    }

.field {
    margin-bottom: 18px;
}

    .field label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 6px;
        color: #444;
    }

        .field label span {
            font-weight: 400;
            color: #888;
        }

    .field input,
    .field select {
        width: 100%;
        padding: 14px 16px;
        border-radius: 14px;
        border: 1px solid #e2e4f0;
        font-size: 15px;
        transition: all .2s;
        background: #fafbff;
    }

        .field input:focus,
        .field select:focus {
            outline: none;
            border-color: #6c5ce7;
            background: #fff;
        }

    .field span {
        font-size: 12px;
        color: #e74c3c;
        margin-top: 4px;
        display: block;
    }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-next {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #6c5ce7, #8e7bff);
    cursor: pointer;
    transition: all .25s;
}

    .btn-next:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 30px rgba(108,92,231,.35);
    }

/* MOBILE */
@media (max-width: 900px) {
    .checkout-shell {
        grid-template-columns: 1fr;
        border-radius: 0px;
    }

    /* MOBILE HEADER */
    .checkout-left {
        display: block;
        /*padding: 28px 26px 24px;*/
        border-radius: 0;
        min-height: unset;
    }

        .checkout-left h1 {
            font-size: 26px;
            margin-bottom: 6px;
        }

        .checkout-left .lead {
            font-size: 14px;
            opacity: .95;
        }
    .pb-3 {
        padding-bottom: 0rem !important;
    }
    /* steps → horizontal pills */
    .checkout-steps {
        display: flex;
        gap: 10px;
        margin-top: 18px;
    }

        .checkout-steps li {
            padding: 6px 12px;
            border-radius: 20px;
            background: rgba(255,255,255,.15);
            font-size: 12px;
            opacity: .6;
        }

            .checkout-steps li.active {
                background: #fff;
                color: #6c5ce7;
                opacity: 1;
                font-weight: 700;
            }

    .checkout-right {
        padding: 26px 22px 30px;
    }

    .checkout-wrap {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0px;
    }

    .container{
        padding:0px;
    }

}


/* ===============================
   PAYMENT LOGOS
================================ */
.payment-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 40px;
}

    .payment-logos img {
        height: 28px; /* SVI ISTE VISINE */
        max-width: 120px;
        object-fit: contain;
        opacity: 0.85;
        transition: all .2s ease;
    }

        .payment-logos img:hover {
            opacity: 1;
            filter: grayscale(0%);
        }

.form-error {
    background: #ffecec;
    border: 1px solid #f5c2c7;
    color: #842029;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}


.checkout-right {
    min-height: 560px;
}

#step1,
#step2,
#step3 {
    min-height: 480px;
}


.checkout-left {
    position: relative;
}

.checkout-back {
    position: absolute;
    bottom: 30px;
    left: 40px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    opacity: 0.85;
}

    .checkout-back:hover {
        opacity: 1;
        text-decoration: underline;
    }

.checkout-steps li.done {
    opacity: 1;
    font-weight: 600;
    position: relative;
}

    .checkout-steps li.done::after {
        content: "✔";
        color: #2ecc71;
        font-weight: 800;
        position: absolute;
        right: -18px;
    }


.review-box {
    background: #fafbff;
    border: 1px solid #e6e9f5;
    border-radius: 18px;
    padding: 24px;
}

.review-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: #444;
}

    .review-row strong {
        font-weight: 600;
        color: #2d2d3a;
    }

.discount-row strong.discount {
    color: #2ecc71;
}

.review-total {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #dcdff0;
    font-size: 16px;
}

    .review-total strong {
        font-size: 20px;
        font-weight: 800;
        color: #6c5ce7;
    }

.price-old {
    color: #e74c3c;
    text-decoration-line: line-through;
    text-decoration-color: #e74c3c;  
    font-weight: 600;
}

.discount {
    color: #2ecc71;
    font-weight: 700;
}


.payment-message {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
}

    .payment-message.error {
        background: #fff1f1;
        border: 1px solid #f5c2c7;
        color: #842029;
    }

    .payment-message.info {
        background: #eef4ff;
        border: 1px solid #d6e0ff;
        color: #2f3a8f;
    }


.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* sakrij klasični radio */
.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all .2s ease;
}

    .payment-option:hover {
        border-color: #7b6cf6;
        background: #f6f5ff;
    }

    .payment-option .icon {
        font-size: 22px;
    }

    .payment-option .text {
        display: flex;
        flex-direction: column;
    }

    .payment-option small {
        color: #777;
        font-size: 12px;
    }

    /* SELECTED STATE */
    .payment-option input:checked ~ .text {
        color: #5b4ef5;
        font-weight: 600;
    }

    .payment-option input:checked ~ .icon {
        transform: scale(1.1);
    }

    /* lep selektovan border */
    .payment-option input:checked ~ .icon,
    .payment-option input:checked ~ .text {
        filter: none;
    }

    .payment-option:has(input:checked) {
        border-color: #5b4ef5;
        background: #f6f5ff;
    }

.card-notice {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #e74c3c; /* CRVENO */
}


.back-to-site {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    margin-top: 28px;
    border-radius: 12px;
    border: 1px solid #e1e4f5;
    background: #ffffff;
    color: #5b4ef5;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

    .back-to-site i {
        font-size: 14px;
    }

    .back-to-site:hover {
        background: #f6f5ff;
        border-color: #cfd3ff;
        transform: translateY(-1px);
    }


.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #e6e6f0;
    border-top-color: #6c5ce7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.turnstile-box {
    margin: 24px auto;
    padding: 20px 24px;
    border-radius: 14px;
    background: #f0fff7;
    border: 1px solid #b7f5d0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.turnstile-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #4b4b7a;
}

    .turnstile-status i {
        color: #6c5ce7;
        font-size: 18px;
    }

.turnstile-success {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

    .turnstile-success .turnstile-status {
        color: #166534;
    }

    .turnstile-success i {
        color: #22c55e;
    }

button:disabled,
.btn-next:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(40%);
}

/* opciono – da se baš vidi */
.btn-next:disabled {
    background: linear-gradient(90deg, #c9c9c9, #b5b5b5);
    box-shadow: none;
}
@media (max-width: 900px) {
    .checkout-steps {
        display: flex;
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

        .checkout-steps li {
            white-space: nowrap;
            font-size: 11px;
            padding: 6px 10px;
            border-radius: 18px;
        }

        .checkout-steps::-webkit-scrollbar {
            display: none;
        }
        .checkout-steps li.done::after {
            position: static;
            margin-left: 6px;
            font-size: 11px;
            color: #2ecc71;
        }
}


.payment-message {
    opacity: 1;
    transition: opacity 0.6s ease;
}

    .payment-message.fade-out {
        opacity: 0;
    }


.btn-promo {
    background: transparent;
    color: #4C6EF5;
    border: 2px solid #4C6EF5;
}

    .btn-promo:hover {
        background: #4C6EF5;
        color: #fff;
    }


.checkout-terms {
    margin: 16px 0;
    font-size: 14px;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

    /* sakrij pravi checkbox */
    .terms-checkbox input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    /* custom checkbox */
    .terms-checkbox .checkmark {
        width: 18px;
        height: 18px;
        border-radius: 5px;
        border: 2px solid #7F67F8;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        margin-top: 2px;
        flex-shrink: 0;
    }

        /* check icon */
        .terms-checkbox .checkmark::after {
            content: "✓";
            font-size: 13px;
            color: #fff;
            opacity: 0;
            transform: scale(0.6);
            transition: all 0.15s ease;
        }

    /* checked state */
    .terms-checkbox input:checked + .checkmark {
        background: #7F67F8;
        border-color: #7F67F8;
    }

        .terms-checkbox input:checked + .checkmark::after {
            opacity: 1;
            transform: scale(1);
        }

/* tekst */
.terms-text {
    color: #555;
    line-height: 1.5;
}

    .terms-text a {
        color: #7F67F8;
        font-weight: 500;
        text-decoration: none;
    }

        .terms-text a:hover {
            text-decoration: underline;
        }


.payment-logos.is-hidden {
    display: none;
}

.input-info {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #888;
}
