/* ============================================
   KW Multistep Form — Garaža Gym
   1:1 Figma design match
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@400;500;600;700&display=swap');

/* ── Reset & Container ── */
.kw-msf,
.kw-msf * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.comments-area a, .page-content a {
    text-decoration: none!important;
}

.kw-msf {
    max-width: 430px;
    margin: 0 auto;
    background: #fff;
    font-family: 'Barlow', sans-serif;
    color: #202020;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

/* ── Header bar & banner stripe (persistent) ── */
.kw-msf-header-bar {
    width: 100%;
    background: #fff;
    line-height: 0;
}

.kw-msf-header-bar-img {
    width: 100%;
    height: 56px;
    object-fit: cover;
    display: block;
}

.kw-msf-banner-stripe {
    width: 100%;
    line-height: 0;
}

.kw-msf-banner-stripe-img {
    width: 100%;
    height: 61px;
    object-fit: cover;
    display: block;
}

/* ── Step transitions ── */
.kw-msf-step {
    padding: 0 19px 32px;
    animation: kwMsfFadeIn 0.3s ease;
}

@keyframes kwMsfFadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Header ── */
.kw-msf-header {
    text-align: center;
    padding: 40px 0 30px;
}

.kw-msf-logo {
    width: 78px!important;
    height: 78px!important;
    display: block;
    margin: 0 auto 24px;
}

.kw-msf-header-icon {
    width: 105px!important;
    height: 105px!important;
    display: block;
    margin: 0 auto 16px;
}

.kw-msf-header-icon--flip {
    transform: scaleY(-1);
    width: 102px!important;
    height: 102px!important;
}

.kw-msf-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 33.5px;
    text-transform: uppercase;
    color: #202020;
    letter-spacing: 0;
    line-height: normal;
}

/* ── Options list ── */
.kw-msf-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    filter: drop-shadow(0px 13.5px 28.5px rgba(0,0,0,0.03));
}

.kw-msf-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 13px;
    padding: 32px 26px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.kw-msf-option:hover {
    border-color: #d3a96c;
    box-shadow: 0 4px 16px rgba(211, 169, 108, 0.15);
}

.kw-msf-option--compact {
    padding: 24px 26px;
    height: 88px;
}

.kw-msf-option-inner {
    display: flex;
    align-items: center;
    gap: 21px;
    flex: 1;
    min-width: 0;
}

.kw-msf-option-icon {
    width: 42px!important;
    height: 42px!important;
    flex-shrink: 0;
    object-fit: contain;
}

.kw-msf-option-icon--sm {
    width: 32px!important;
    height: 40px!important;
}

.kw-msf-option-text {
    display: flex;
    flex-direction: column;
    gap: 11px;
    min-width: 0;
    text-decoration: none!important;
}

a.kw-msf-option,
a.kw-msf-option:hover,
a.kw-msf-option:focus,
a.kw-msf-option:visited {
    text-decoration: none;
}

.kw-msf-option-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 22.5px;
    text-transform: uppercase;
    color: #202020;
    line-height: normal;
    text-decoration: none!important;
}

.kw-msf-option-label--underline {
    text-decoration: underline;
}

.kw-msf-option-label--muted {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    color: #737373;
}

.kw-msf-option-desc {
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #5c5c5c;
    line-height: normal;
}

.kw-msf-option-desc-xl {
	font-size: 18px;
}

.kw-msf-arrow {
    width: 17px;
    height: 28px;
    flex-shrink: 0;
    margin-left: 12px;
}

/* ── Content blocks ── */

.kw-msf-heading-lg {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 26.5px;
    text-transform: uppercase;
    color: #202020;
    line-height: normal;
    margin-bottom: 10px;
}

.kw-msf-text-bold {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 17.5px;
    color: #202020;
    line-height: normal;
}

.kw-msf-text-sub {
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #5c5c5c;
    line-height: 1.5;
    margin-top: 12px;
}

.kw-msf-text-sub-highlighted {
    color: #8D4040;
}

.kw-msf-text-sub u {
    color: #967039;
    font-weight: 600;
}

.kw-msf-text-sm {
    font-size: 13.5px;
}

.kw-msf-divider {
    border: none;
    border-top: 1.5px solid #e5e5e5;
    margin: 28px 16px;
}

/* ── Why section ── */
.kw-msf-why {
    display: flex;
    align-items: center;
    gap: 13.5px;
    margin-bottom: 25px;
}

.kw-msf-why-line {
    width: 3px;
    height: 26px;
    background: #d3a96c;
    border-radius: 2px;
    flex-shrink: 0;
}

.kw-msf-why-text {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 17.5px;
    color: #967039;
    line-height: normal;
}

/* ── Benefits ── */
.kw-msf-benefits {
    display: flex;
    flex-direction: column;
    gap: 21.5px;
    margin-top: 20px;
}

.kw-msf-benefit {
    padding-bottom: 21.5px;
    border-bottom: 1px solid #e5e5e5;
}

.kw-msf-benefit:last-child {
    border-bottom: none;
}

.kw-msf-benefit-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}

.kw-msf-benefit-head span {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 19px;
    text-transform: uppercase;
    color: #202020;
    line-height: normal;
}

.kw-msf-check {
    width: 20px!important;
    height: 20px!important;
    flex-shrink: 0;
}

.kw-msf-benefit p {
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #5c5c5c;
    line-height: normal;
    padding-left: 28px;
}

/* ── Packages ── */
.kw-msf-packages {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 32px 0 0;
    filter: drop-shadow(0px 13.5px 28.5px rgba(0,0,0,0.03));
}

.kw-msf-package {
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 13px;
    padding: 32px 26px 24px;
    overflow: hidden;
}

.kw-msf-package-icon {
    width: 32px!important;
    height: 40px!important;
    object-fit: contain;
    display: block;
    margin-bottom: 24px;
}

.kw-msf-package-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 22.5px;
    text-transform: uppercase;
    color: #202020;
    line-height: normal;
    margin-bottom: 11px;
}

.kw-msf-package-desc {
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #5c5c5c;
    line-height: normal;
    margin-bottom: 19px;
}

.kw-msf-package-price {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #967039;
    line-height: normal;
    margin-bottom: 19px;
}

/* ── Buttons ── */
.kw-msf-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14.5px 10px;
    background: #d3a96c;
    color: #202020;
    border: none;
    border-radius: 7.5px;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    line-height: normal;
}

.kw-msf-btn:hover {
    background: #c49b5e;
    color: #202020;
    text-decoration: none;
}

.kw-msf-btn:active {
    transform: scale(0.98);
}

.kw-msf-btn--outline {
    background: transparent;
    border: 1.5px solid #d3a96c;
    color: #967039;
}

.kw-msf-btn--outline:hover {
    background: rgba(211, 169, 108, 0.08);
    color: #967039;
}

.kw-msf-btn--confirm {
    margin-top: 24px;
}

.kw-msf-onetime-actions {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 32px 0 0;
}

/* ── Back button ── */
.kw-msf-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
    padding: 10px 0;
    background: none;
    border: none;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #967039;
    cursor: pointer;
    transition: color 0.2s;
}

.kw-msf-back:hover {
    color: #7a5a2e;
    background: none;
}

/* ── Notice box ── */
.kw-msf-notice {
    margin-top: 20px;
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #8D4040;
}

/* ── Legal ── */
.kw-msf-legal-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 17px;
    text-transform: uppercase;
    color: #202020;
    margin-top: 20px;
    margin-bottom: 8px;
    padding: 0 16px;
}

.kw-msf-confirm {
    padding: 32px 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 550px;
    margin: 0 auto;
}

div.kw-msf-step[data-step="5-student-installment-semi-annual"] .kw-msf-confirm {
    max-width: 100%;
}

/* ── Success ── */
.kw-msf-success {
    text-align: center;
    padding: 80px 20px;
}

.kw-msf-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #d3a96c;
    color: #fff;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

/* ── Responsive — Mobile ── */
@media (max-width: 480px) {
    .kw-msf {
        max-width: 100%;
    }

    .kw-msf-option {
        padding: 24px 18px;
    }

    .kw-msf-why {
        margin-top: 25px;
    }
}

/* ==============================================
   DESKTOP — min-width: 768px
   Matches Figma "Kupi Karto Flow Desktop" 1:1
   ============================================== */
@media (min-width: 768px) {

    /* ── Outer wrapper: gym background + dark overlay ── */
    .kw-msf {
        max-width: 100%;
        background: none;
        min-height: 100vh;
        overflow: visible;
    }

    .kw-msf::before {
        content: '';
        position: fixed;
        inset: 0;
        z-index: -2;
        background: var(--kw-msf-gym-bg) center / cover no-repeat;
    }

    .kw-msf::after {
        content: '';
        position: fixed;
        inset: 0;
        z-index: -1;
        background: rgba(18, 18, 18, 0.56);
    }

    /* ── Desktop header bar ── */
    .kw-msf-header-bar {
        background: none;
    }

    .kw-msf-header-bar-img {
        height: 116px;
        width: 100%;
        object-fit: cover;
    }

    /* ── Hide mobile banner stripe on desktop ── */
    .kw-msf-banner-stripe {
        display: none;
    }

    /* ── White card container ── */
    .kw-msf-step {
        max-width: 1290px;
        margin: 100px auto 40px;
        background: #fff;
        border-radius: 16.5px;
        padding: 60px;
        position: relative;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    }

    /* ── Steps 1, 2, 3: Two-column with icon/title on left, options on right ── */
    .kw-msf-step[data-step="1"],
    .kw-msf-step[data-step="2"],
    .kw-msf-step[data-step="3-student"],
    .kw-msf-step[data-step="3-employed"] {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: 0 100px;
        padding: 80px 80px;
        min-height: 420px;
    }

    /* Left column: header with icon + title centered */
    .kw-msf-step[data-step="1"] > .kw-msf-header,
    .kw-msf-step[data-step="2"] > .kw-msf-header,
    .kw-msf-step[data-step="3-student"] > .kw-msf-header,
    .kw-msf-step[data-step="3-employed"] > .kw-msf-header {
        grid-column: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px 0;
        border-right: 1.5px solid #e5e5e5;
        min-height: 300px;
    }

    /* Right column: options */
    .kw-msf-step[data-step="1"] > .kw-msf-options,
    .kw-msf-step[data-step="2"] > .kw-msf-options,
    .kw-msf-step[data-step="3-student"] > .kw-msf-options,
    .kw-msf-step[data-step="3-employed"] > .kw-msf-options {
        grid-column: 2;
        max-width: 420px;
        align-self: center;
    }

    /* Back button spans full width */
    .kw-msf-step[data-step="1"] > .kw-msf-back,
    .kw-msf-step[data-step="2"] > .kw-msf-back,
    .kw-msf-step[data-step="3-student"] > .kw-msf-back,
    .kw-msf-step[data-step="3-employed"] > .kw-msf-back {
        grid-column: 1 / -1;
    }

    /* ── Step 4 installment: Benefits left, heading + packages right ── */
    .kw-msf-step[data-step="4-student-installment"],
    .kw-msf-step[data-step="4-employed-installment"] {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        grid-template-rows: auto auto 1fr auto;
        gap: 0 40px;
        padding: 60px;
        align-items: start;
    }

    /* Left side: text content + benefits */
    .kw-msf-step[data-step="4-student-installment"] > .kw-msf-content-block,
    .kw-msf-step[data-step="4-employed-installment"] > .kw-msf-content-block {
        grid-column: 1;
    }

    .kw-msf-step[data-step="4-student-installment"] > .kw-msf-divider,
    .kw-msf-step[data-step="4-employed-installment"] > .kw-msf-divider {
        display: none;
    }

    .kw-msf-step[data-step="4-student-installment"] > .kw-msf-why,
    .kw-msf-step[data-step="4-employed-installment"] > .kw-msf-why {
        grid-column: 1;
    }

    .kw-msf-step[data-step="4-student-installment"] > .kw-msf-benefits,
    .kw-msf-step[data-step="4-employed-installment"] > .kw-msf-benefits {
        grid-column: 1;
    }

    /* Right side: heading block + packages */
    .kw-msf-step[data-step="4-student-installment"] > .kw-msf-content-block:first-child,
    .kw-msf-step[data-step="4-employed-installment"] > .kw-msf-content-block:first-child {
        grid-column: 2;
        grid-row: 1;
        padding-left: 50px;
    }

    .kw-msf-step[data-step="4-student-installment"] > .kw-msf-packages,
    .kw-msf-step[data-step="4-employed-installment"] > .kw-msf-packages {
        grid-column: 2;
        grid-row: 2 / 5;
    }

    /* Second content block (the "V našem gymu..." text) stays on left */
    .kw-msf-step[data-step="4-student-installment"] > .kw-msf-content-block:nth-of-type(2),
    .kw-msf-step[data-step="4-employed-installment"] > .kw-msf-content-block:nth-of-type(2) {
        grid-column: 1;
        grid-row: 1;
    }

    .kw-msf-step[data-step="4-student-installment"] > .kw-msf-back,
    .kw-msf-step[data-step="4-employed-installment"] > .kw-msf-back {
        grid-column: 1 / -1;
    }

    /* Vertical divider between columns */
    .kw-msf-step[data-step="4-student-installment"]::after,
    .kw-msf-step[data-step="4-employed-installment"]::after {
        content: '';
        position: absolute;
        left: calc(40% + 30px);
        top: 60px;
        bottom: 60px;
        width: 1.5px;
        background: #e5e5e5;
    }

    /* ── Step 4 one-time: two-column layout ── */
    .kw-msf-step.kw-msf-step--onetime {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 60px;
        max-width: 1290px;
        align-items: start;
    }

    .kw-msf-step.kw-msf-step--onetime .kw-msf-onetime-left {
        grid-column: 1;
    }

    .kw-msf-step.kw-msf-step--onetime .kw-msf-onetime-left .kw-msf-content-block {
        padding: 0;
    }

    .kw-msf-step.kw-msf-step--onetime .kw-msf-onetime-left .kw-msf-divider {
        margin: 28px 0;
    }

    .kw-msf-step.kw-msf-step--onetime .kw-msf-onetime-left .kw-msf-why {
        padding: 0;
    }

    .kw-msf-step.kw-msf-step--onetime .kw-msf-onetime-left .kw-msf-onetime-actions {
        padding: 24px 0 0;
    }

    .kw-msf-step.kw-msf-step--onetime .kw-msf-onetime-left .kw-msf-btn {
        width: 100%;
    }

    .kw-msf-step.kw-msf-step--onetime .kw-msf-onetime-right {
        grid-column: 2;
    }

    .kw-msf-step.kw-msf-step--onetime .kw-msf-onetime-right .kw-msf-benefits {
        padding: 16px 0 0;
    }

    .kw-msf-step.kw-msf-step--onetime .kw-msf-onetime-right .kw-msf-why {
        padding: 0;
    }

    .kw-msf-step.kw-msf-step--onetime > .kw-msf-back {
        grid-column: 1 / -1;
    }

    /* ── Step 5: Confirm — Two columns: instructions left, legal right ── */
    .kw-msf-step[data-step^="5-"][data-step*="installment"] .kw-msf-confirm {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 60px;
        padding: 0;
        position: relative;
        max-width: 100%;
        text-align: center;
        align-items: center;
    }

    /* Left column */
    .kw-msf-step[data-step^="5-"][data-step*="installment"] .kw-msf-confirm > .kw-msf-confirm-left {
        grid-column: 1;
        display: flex;
        flex-direction: column;
        text-align: left;
    }

    /* Right column: legal text — centered vertically */
    .kw-msf-step[data-step^="5-"][data-step*="installment"] .kw-msf-confirm > .kw-msf-legal {
        grid-column: 2;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
    }

    .kw-msf-step[data-step^="5-"][data-step*="installment"] .kw-msf-confirm > .kw-msf-legal .kw-msf-legal-heading {
        padding: 0;
    }

    /* Vertical divider for confirm steps */
    .kw-msf-step[data-step^="5-"][data-step*="installment"] .kw-msf-confirm::after {
        content: '';
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 1.5px;
        background: #e5e5e5;
    }

    /* Confirm button width on desktop */
    .kw-msf-step[data-step^="5-"] .kw-msf-confirm .kw-msf-btn--confirm {
        max-width: 358px;
        margin-top: 50px;
    }

    /* ── Packages on desktop — side by side within the right column ── */
    .kw-msf-packages {
        gap: 20px;
        padding-left: 50px;
    }

    .kw-msf-package {
        padding: 27px 26px 24px;
    }

    /* ── Back button on desktop ── */
    .kw-msf-back {
        margin-top: 36px;
    }

    /* ── Success on desktop ── */
    .kw-msf-step[data-step="success"] {
        max-width: 700px;
        text-align: center;
    }
}

/* ── Embedded JotForm iframe ── */
.kw-msf-iframe-wrap {
    margin-top: 24px;
    width: 100%;
    border-radius: 12px;
}
.kw-msf-iframe-wrap iframe,
.kw-msf-iframe-wrap iframe[id^="JotFormIFrame"] {
    display: block;
    width: 100% !important;
    height: auto;
    min-height: 1800px;
    border: none;
    max-width: 100%;
}
