/* ===============================
   RESET & BASE
================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #f6f7f9; /* ista boja kao checkout-root */
}


/* ===============================
   ROOT & SHELL
================================ */
.checkout-root {
    background: #f6f7f9;
    padding: 32px 16px;
      min-height: 100%;
      display: flex;
      flex-direction: column;
}

.checkout-shell {
    max-width: 820px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    overflow: hidden;
}



/* ===============================
   HEADER
================================ */
.checkout-header {
    position: relative;
    padding: 16px 32px;
    background: #fafafa;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: center; /* brand centriran */
    align-items: center;
    height: 60px;
}

/* BRAND centriran */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1; /* da brand bude iznad back-button ako se preklapaju */
}

.brand-logo {
    font-size: 28px;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
}

/* BACK BUTTON */
.back-button {
    position: absolute;
    left: 16px;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #3182ce;
    cursor: pointer;
    transition: color 0.2s;
}

.back-button:hover {
    color: #2c5282;
}

.back-button i {
    font-size: 22px;
    margin-right: 6px;
}


/* ===============================
   CONTENT
================================ */
.checkout-content {
    padding: 32px;
}

h1 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
}

.subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
}

/* ===============================
   PLANS
================================ */
.plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.plan-card {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.plan-card:hover {
    border-color: #9ca3af;
}

.plan-card.selected {
    border-color: #2563eb;
    background: #f9fafb;
}

.plan-title {
    font-size: 15px;
    font-weight: 600;
}

.plan-price {
    font-size: 18px;
    font-weight: 600;
    margin: 8px 0;
}

.plan-desc {
    font-size: 13px;
    color: #6b7280;
}

/* ===============================
   FORM
================================ */
.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

select{
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

/* ===============================
   BUTTON
================================ */
.btn-primary {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #2563eb;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s;
}

.btn-primary:hover {
    background: #1e40af;
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* ===============================
   MESSAGES
================================ */
.message {
    font-size: 13px;
    margin-bottom: 12px;
    display: none;
}

.message.error {
    color: #b91c1c;
}

.message.success {
    color: #065f46;
}

/* ===============================
   FOOTER NOTE
================================ */
.secure-note {
    margin-top: 14px;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

/* ===============================
   LOADING
================================ */
.loading-view {
    display: none;
    text-align: center;
    padding: 60px 0;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    margin: 0 auto 12px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 640px) {
    .plans {
        grid-template-columns: 1fr;
    }

    .checkout-content {
        padding: 24px;
    }
}

/* ---------- Enterprise Checkout iframe u CTA ---------- */
.iframe-shell {
    width: 100%;
    max-width: 920px;       /* širina iframe-a */
    margin-top: 24px;       /* razmak od CTA teksta/dugmeta */
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    overflow: hidden;
    transition: all 0.3s ease;
}

.iframe-shell iframe {
    width: 100%;
    height: 760px;
    border: none;
}

@media (max-width: 1024px) {
    .iframe-shell {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .iframe-shell iframe {
        height: 100vh; /* mobilni prikaz */
    }
}

/* Opcionalno: dodaj hover efekt na iframe-wrapper */
.iframe-shell:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.18);
}

