/* ===== SECTION ===== */
.calculator-section {
    padding: 3rem 0 5rem;
}

.calculator-page #floating-icon {
    display: none;
}

body.has-summary-bar {
    padding-bottom: 80px;
}

/* ===== STEPS BAR ===== */
.steps-bar {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding-bottom: 4px;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
    cursor: pointer;
    position: relative;
}
.step-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 14px;
    background: #f0f0f0; color: #999;
    border: 2px solid #ddd;
    transition: all 0.2s;
    margin-bottom: 6px;
}
.step-item.active .step-circle { background: #eb6549; color: #fff; border-color: #eb6549; }
.step-item.done .step-circle   { background: #e8f5e9; color: #2e7d32; border-color: #4caf50; }
.step-labels { text-align: center; }
.step-title  { display: block; font-size: 14px; font-weight: 600; color: #555; }
.step-item.active .step-title { color: #eb6549; }
.step-sub    { display: block; font-size: 11px; color: #aaa; }
.step-line {
    flex: 1; height: 2px; background: #e0e0e0;
    margin: 17px 4px 0; min-width: 20px;
}

/* Step states */
.step-item:not(.active):not(.done):not(.completed) {
    cursor: not-allowed;
    opacity: 0.5;
}
.step-item.done,
.step-item.completed {
    cursor: pointer;
    opacity: 1;
}
.step-item.locked,
.step-item.completed.locked {
    cursor: not-allowed;
    opacity: 0.5;
}
.step-item.locked[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    padding: 8px 10px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 20;
    pointer-events: none;
}

/* ===== PANELS ===== */
.step-panel { display: none; }
.step-panel.active { display: block; }
.step-panel h2 { font-size: 26px; font-weight: 600; margin-bottom: 4px; }
.panel-subtitle { color: #555; opacity: .75; }
.section-label { font-weight: 600; font-size: 18px; margin-bottom: 1rem; }
.req { color: #eb6549; }

/* ===== SERVICE INFO BOX ===== */
.service-info-box {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid #f0ece8;
    background: #fff8f4;
    margin-top: 1.5rem;
    min-height: 180px;
}
.service-info-img {
    width: 200px;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
}
.service-info-content {
    padding: 1.25rem 1.5rem;
    border-left: 4px solid #eb6549;
    flex: 1;
}
.service-info-content p.highlighted { font-size: 15px; }
.service-info-title { font-weight: 600; margin-bottom: 2px; font-size: 24px; }
.service-info-sub   { font-size: 13px; color: #666; margin-bottom: 8px; }
.service-info-box ul { margin: 0; padding-left: 1.25rem; }
.service-info-box li { font-size: 13px; color: #555; margin-bottom: 3px; }

@media (max-width: 576px) {
    .service-info-box { flex-direction: column; }
    .service-info-img { width: 100%; height: 160px; }
}

/* ===== PACKAGES ===== */
.package-card {
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
    height: 100%;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.package-card.selected {
    border-color: #eb6549;
    background: #fff8f4;
    box-shadow: 0 4px 12px rgba(235, 101, 73, 0.35);
}
.package-popular {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: #eb6549; color: #fff;
    font-size: 11px; font-weight: 600;
    padding: 3px 14px; border-radius: 20px; white-space: nowrap;
}
.package-name { font-size: 18px; font-weight: 600; margin-bottom: 2px; }
.package-desc { font-size: 13px; color: #666; line-height: 1.5; }
.package-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.package-tags span {
    background: #ffe8d6;
    color: #c0502a;
    font-size: 11px; padding: 3px 8px;
    border-radius: 20px;
}
.package-price-info { padding: 10px 0; }
.pkg-price-amount { font-weight: 700; font-size: 18px; color: #eb6549; }
.pkg-price-per    { font-weight: 400; font-size: 13px; color: #888; }

/* ===== PACKAGE DRAWER ===== */
.pkg-detail-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 13px;
    color: black;
    cursor: pointer;
    width: 100%;
    margin-top: 0;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.pkg-detail-btn:hover {
    color: #d6532f;
    box-shadow: none;
}
.pkg-detail-btn:hover .pkg-arrow { color: #d6532f; }
.pkg-detail-btn:focus:not(:focus-visible) { outline: none; box-shadow: none; }

.pkg-arrow {
    transform: rotate(90deg);
    transition: transform 0.2s ease, color 0.15s ease;
    vertical-align: middle;
    display: inline-block;
}
.pkg-detail-btn.open .pkg-arrow { transform: rotate(270deg); }

.package-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.btn-select-package {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #eb6549;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn-select-package:hover {
    background: #d6532f;
    box-shadow: 0 4px 14px rgba(235, 101, 73, 0.4);
    transform: translateY(-1px);
}
.btn-select-package:focus:not(:focus-visible) { outline: none; box-shadow: none; }

.package-card.selected .btn-select-package {
    background: #eb6549;
    color: #fff;
}

.package-card.selected .btn-select-package:hover {
    box-shadow: none;
    transform: none;
}

.pkg-drawer {
    display: none;
    border: 1.5px solid #eb6549;
    border-radius: 12px;
    background: #fff8f4;
    margin-bottom: 16px;
    overflow: hidden;
}
.pkg-drawer.open { display: block; }
.pkg-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f0e0d8;
}
.pkg-drawer-title { font-size: 14px; font-weight: 600; color: #222; }
.pkg-drawer-close {
    background: none; border: none; cursor: pointer;
    color: #000; font-size: 18px; line-height: 1; padding: 0 4px;
}
.pkg-drawer-close:hover { color: #eb6549; }
.pkg-drawer-body { padding: 14px 18px; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.product-item {
    border: 1px solid #ede0d8;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.product-info { padding: 10px 12px; }
.product-name { font-size: 13px; font-weight: 600; color: #333; margin-bottom: 3px; line-height: 1.3; }
.product-qty  { font-size: 12px; color: #888; margin-bottom: 5px; }
.product-cat  {
    display: inline-block;
    background: #ffe8d6; color: #c0502a;
    font-size: 11px; padding: 2px 7px; border-radius: 10px;
}

/* ===== OPTIONS (extra / addons) ===== */
#extras-list > [class*="col-"],
#addons-list > [class*="col-"] {
    margin-bottom: 16px;
}
.option-item {
    position: absolute; opacity: 0;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.option-label {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 8px 16px;
    cursor: pointer;
    width: 100%;
    height: 100%;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.option-label:hover {
    border-color: #eb6549;
    box-shadow: 0 4px 14px rgba(235, 101, 73, 0.12);
    transform: translateY(-1px);
}
.option-item:checked ~ .option-label {
    border-color: #eb6549;
    background: #fffaf7;
}
.option-checkbox {
    width: 22px; height: 22px;
    flex-shrink: 0;
    border: 1.5px solid #d5d5d5;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.18s ease;
    background: #fff;
}
.option-item:checked ~ .option-label .option-checkbox {
    background: #eb6549;
    border-color: #eb6549;
    transform: scale(1.05);
}
.option-item:checked ~ .option-label .option-checkbox::after {
    content: '\2714';
    color: #fff; font-size: 13px; font-weight: 700; line-height: 1;
}
.option-body { flex: 1; min-width: 0; }
.option-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.option-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.35;
}
.option-price {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: #eb6549;
    background: rgba(235, 101, 73, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
.option-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.35;
    margin-top: 4px;
}

/* ===== SUMMARY ===== */
.summary-box {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
}
.summary-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin: 22px 0 8px;
    padding: 0;
    background: none;
    border: none;
}
.summary-section-title:first-child { margin-top: 0; }
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #ebebeb;
    font-size: 14px;
    color: #444;
}
.summary-row:last-child { border-bottom: none; }
.summary-row.total {
    font-size: 18px;
    font-weight: 600;
    padding-top: 14px;
    border-bottom: none;
    color: #222;
}

/* Tlačidlo "Zobraziť detaily balíka" — textový odkaz pod balíkom */
.btn-package-detail {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #eb6549;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    transition: color 0.15s;
}
.btn-package-detail:hover {
    color: #d6532f;
    background: none;
    text-decoration: underline;
}
.btn-package-detail:focus:not(:focus-visible) { outline: none; box-shadow: none; }

/* ===== NAVIGATION ===== */
.step-nav {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 2rem; padding-top: 1.5rem;
    border-top: 1px solid #ebebeb;
}
.btn-back {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid #ddd;
    color: #666;
    padding: 11px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.btn-back:hover {
    border-color: #eb6549;
    color: #eb6549;
    background: rgba(235, 101, 73, 0.06);
}
.btn-back:hover svg { color: #eb6549; }
.btn-back:focus:not(:focus-visible) { outline: none; box-shadow: none; }

.btn-next {
    display: flex; gap: 4px; align-items: center;
    background: #eb6549; border: none; color: #fff;
    padding: 11px 28px; border-radius: 6px;
    cursor: pointer; font-size: 15px; font-weight: 500;
    transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn-next:hover {
    background: #d6532f;
    box-shadow: 0 4px 12px rgba(235, 101, 73, 0.35);
}
.btn-next:active { transform: translateY(0); }
.btn-next:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.btn-next:disabled {
    background: #ccc; cursor: not-allowed;
    box-shadow: none; transform: none;
}

.calculator-section button:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* ===== FORM STATES ===== */
.form-control.is-invalid {
    border-color: #dc3545;
    border-width: 1px;
}
.invalid-feedback {
    display: none;
    font-size: 12px;
    color: #dc3545;
    margin-top: 2px;
    margin-left: 2px;
}
.form-control.is-invalid ~ .invalid-feedback { display: block; }
.form-text {
    font-size: 12px;
    margin-top: 4px;
    margin-left: 4px;
}
label small.text-muted {
    color: #333 !important;
    opacity: .85;
}
.calculator-section textarea { resize: none; }
.calculator-section input:hover,
.calculator-section textarea:hover,
.calculator-section select:hover,
.calculator-section input:focus,
.calculator-section textarea:focus,
.calculator-section select:focus {
    border-color: #eb6549;
    outline: none;
}

/* ===== GDPR ===== */
.gdpr-check { margin-top: 8px; }
.gdpr-label {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer;
}
.gdpr-input { display: none; }
.gdpr-box {
    width: 20px; height: 20px; flex-shrink: 0;
    border: 1.5px solid #ccc; border-radius: 4px;
    background: #fff; display: flex;
    align-items: center; justify-content: center;
    transition: all 0.15s;
}
.gdpr-input:checked + .gdpr-box {
    background: #eb6549; border-color: #eb6549;
}
.gdpr-input:checked + .gdpr-box::after {
    content: '\2713';
    color: #fff; font-size: 13px; font-weight: 700; line-height: 1;
}
.gdpr-input.is-invalid + .gdpr-box { border-color: #dc3545; }
.gdpr-text { font-size: 14px; color: #555; }
.gdpr-text a { color: #eb6549; }

/* ===== SUMMARY BAR (fixed bottom) ===== */
.calc-summary-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #eb6549;
    background-image: url(../images/highlights.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 100;
    padding: 12px 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
}
.calc-summary-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.calc-summary-bar-items {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0;
}
.calc-summary-bar-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    padding: 0 20px;
}
.calc-summary-bar-item:first-child { padding-left: 0; }
.calc-summary-bar-label {
    font-size: 12px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.calc-summary-bar-value {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}
.calc-summary-bar-divider {
    width: 1px; height: 40px;
    opacity: .7;
    background: #e0e0e0; flex-shrink: 0;
}
.calc-summary-bar-total {
    display: flex; flex-direction: column;
    align-items: flex-end; gap: 1px;
    flex-shrink: 0;
    padding-left: 20px;
    border-left: 1px solid rgba(224, 224, 224, .7);
}
.calc-summary-bar-total-label {
    font-size: 12px; color: #fff;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.calc-summary-bar-total-value {
    font-size: 28px; font-weight: 700; color: #fff;
}
.btn-bar-submit {
    background: #fff;
    color: #d4533a;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px; font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 20px;
    transition: background 0.15s, opacity 0.15s;
}
.btn-bar-submit:hover:not(:disabled) { background: rgba(255, 255, 255, .85); }
.btn-bar-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

#form-success,
#form-error {
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    margin-top: 16px;
}

#form-success {
    background: #2e9e5b;
    color: #fff;
}

#form-error {
    background: #d6362f;
    color: #fff;
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 15px 20px;
    border-radius: .35rem;
    border: 1px solid #ccc;
    background: #fff8f4;
    margin-bottom: 20px;
}

.info-box svg {
    width: 24px;
    fill: #eb6549;
    position: relative;
    top: 6px;
    flex-shrink: 0
}

.info-box p {
    font-size: 1.15rem;
    margin-bottom: 0;
}

#package-modal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .calc-summary-bar-item {
        padding: 0 16px;
    }
    .calc-summary-bar-value {
        font-size: 18px;
    }
    .calc-summary-bar-total-value {
        font-size: 20px;
    }
}

@media (max-width: 992px) {
    #calc-summary-bar .container {
        max-width: 100%;
    }

    .calc-summary-bar-item {
        padding: 0 12px;
    }
    .calc-summary-bar-value {
        font-size: 16px;
    }
}
@media (max-width: 768px) {
    .calc-summary-bar-divider { display: none; }
    .calc-summary-bar-items   { gap: 8px; flex-wrap: wrap; }
    .calc-summary-bar-item    { padding: 0 8px; flex: none; }
    .calc-summary-bar-value   { font-size: 14px; }
    .calc-summary-bar-total-value { font-size: 20px; }
    .custom-gap {
        gap: 16px;
    }
    .calc-summary-bar {
        padding: 12px 0;
    }

    .calc-summary-bar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    /* 2x2 grid */
    .calc-summary-bar-items {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .calc-summary-bar-item {
        padding: 0;
        min-width: 0;
    }

    .calc-summary-bar-divider {
        display: none;
    }

    .calc-summary-bar-label {
        font-size: 11px;
        opacity: .85;
    }

    .calc-summary-bar-value {
        font-size: 15px;
        line-height: 1.3;
    }

    /* total center */
    .calc-summary-bar-total {
        border-left: 0;
        padding-left: 0;
        align-items: flex-start;
        text-align: center;
    }

    .calc-summary-bar-total-label {
        font-size: 11px;
    }

    /* CTA full width */
    .btn-bar-submit {
        width: 100%;
        margin-left: 0;
        padding: 16px;
        font-size: 16px;
    }
}
@media (max-width: 576px) {
    .step-sub   { display: none; }
    .step-title { font-size: 10px; }
    .steps-bar  { gap: 0; }
}