/* ===== CALCULATOR LAYOUT ===== */

.calc-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
    margin-top: 50px;
    align-items: start;
}

.calc-options {
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.calc-group-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
    color: var(--text-light);
}

.calc-group-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
}

.calc-group-header .calc-group-title {
    margin-bottom: 0;
}

.calc-clear-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.78rem;
    color: var(--logo-gray);
    text-decoration: underline;
    cursor: pointer;
}

.calc-clear-btn:hover {
    color: var(--logo-green);
}

/* ===== BASE PACKAGE (fixed, informational) ===== */

.calc-base-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    background: rgba(45, 196, 0, 0.05);
    border: 1px solid var(--logo-green);
    border-radius: 4px;
    padding: 18px 20px;
}

.calc-base-line-stacked {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.calc-base-line-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.calc-base-note-inline {
    margin: 0;
    color: var(--logo-gray);
}

.calc-base-name {
    font-weight: 600;
    font-size: 1rem;
}

.calc-base-price {
    font-size: 1.3rem;
    font-weight: 700;
}

.calc-base-note {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 10px;
    line-height: 1.4;
}

/* ===== ADDON ITEMS ===== */

.calc-subgroup {
    margin-bottom: 22px;
}

.calc-subgroup:last-child {
    margin-bottom: 0;
}

.calc-subgroup-title {
    font-weight: 600;
    font-size: 0.92rem;
    margin: 0 0 10px 0;
}

.calc-subgroup-title span {
    display: block;
    font-weight: 400;
    color: var(--muted);
    font-size: 0.82rem;
    margin-top: 2px;
}

.calc-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.calc-item:hover {
    border-color: var(--logo-green);
}

.calc-item input {
    width: 18px;
    height: 18px;
    accent-color: var(--logo-green);
    flex-shrink: 0;
    cursor: pointer;
}

.calc-item-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-grow: 1;
}

.calc-item-name {
    font-weight: 600;
    font-size: 0.92rem;
}

.calc-item-note {
    font-size: 0.78rem;
    color: var(--muted);
}

.calc-item:has(input:checked) {
    border-color: var(--logo-green);
    background: rgba(45, 196, 0, 0.05);
}

/* ===== STANDARD / PREMIUM PAIRS ===== */

.calc-pair-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.calc-item-pair {
    margin-bottom: 0;
}

/* ===== SUMMARY PANEL ===== */

/* ===== SECTION TONE (breaks up repeated white sections, no black) ===== */

.calc-tone {
    background: #F0F3EE;
    border-top: 1px solid #e4e8e0;
    border-bottom: 1px solid #e4e8e0;
}

.calc-summary {
    position: sticky;
    top: 30px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 30px 26px;
}

.calc-summary h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 18px 0;
}

.calc-summary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
}

.calc-summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.85rem;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eee;
}

.calc-summary-list li span:first-child {
    color: var(--logo-gray);
}

.calc-summary-list li span:last-child {
    font-weight: 600;
    white-space: nowrap;
}

.calc-summary-empty {
    font-size: 0.85rem;
    color: var(--muted);
}

.calc-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 16px;
    border-top: 2px solid var(--text-light);
    font-weight: 700;
}

.calc-total span:first-child {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calc-total span:last-child {
    font-size: 1.6rem;
}

.calc-vat-note {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 10px;
    line-height: 1.4;
}

.calc-request-btn {
    margin-top: 18px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
    .calc-wrapper {
        grid-template-columns: 1fr;
    }

    .calc-summary {
        position: static;
        order: -1;
    }
}

@media (max-width: 420px) {
    .calc-pair-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== MOBILE STICKY TOTAL BAR ===== */

.mobile-sticky-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(249, 249, 249, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 -6px 24px rgba(0,0,0,0.08);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-sticky-bar.is-visible {
    transform: translateY(0);
}

.mobile-sticky-total-block {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    flex: 0 1 auto;
    min-width: 0;
}

.mobile-sticky-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
}

.mobile-sticky-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    white-space: nowrap;
}

.mobile-sticky-cta {
    width: auto;
    flex: 0 1 auto;
    max-width: 58%;
    margin: 0 0 0 auto;
    padding: 10px 16px;
    font-size: 0.65rem;
    line-height: 1.25;
    letter-spacing: 0.2px;
    white-space: normal;
    text-align: center;
}

@media (max-width: 900px) {
    .mobile-sticky-bar {
        display: flex;
    }
}
