/* =========================================================
   STORAGE CALCULATOR
   Two panels, one shell. Step 1 is a two-column picker:
   category accordions on the left, a sticky running list on the
   right. Step 2 is the estimate and the two send buttons.

   Colours are the site's own: orange for anything chosen or
   priced, cream cards on the off-white sheet, hairline #e8e3da
   borders — the same treatment the pricing cards use.
========================================================= */

.storage-calculator {
    padding: var(--section-pad) 24px;
}

.sc-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ---- Header ---- */
.sc-header {
    max-width: 640px;
    margin-bottom: 26px;
}

.sc-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 13px;
    border-radius: 100px;
    background: rgba(254, 111, 1, .1);
    border: 1px solid rgba(254, 111, 1, .22);
    color: var(--orange-dark, #cb5901);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.sc-title {
    font-family: "Manrope", sans-serif;
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.4px;
    color: var(--black, #171714);
}

.sc-subtitle {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray, #706b61);
}

/* ---- Step rail ---- */
.sc-steps {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.sc-step {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px 9px 9px;
    border-radius: 100px;
    border: 1px solid #e8e3da;
    background: #ffffff;
    transition: border-color 260ms ease, background 260ms ease;
}

.sc-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f4efe6;
    color: var(--gray, #706b61);
    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 800;
    transition: background 260ms ease, color 260ms ease;
}

.sc-step-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray, #706b61);
    transition: color 260ms ease;
}

.sc-step.is-active {
    border-color: rgba(254, 111, 1, .5);
    background: #fffdf8;
}

.sc-step.is-active .sc-step-num,
.sc-step.is-done .sc-step-num {
    background: var(--orange, #fe6f01);
    color: #171714;
}

.sc-step.is-active .sc-step-label,
.sc-step.is-done .sc-step-label {
    color: var(--black, #171714);
}

.sc-step-rule {
    flex: 1;
    max-width: 90px;
    height: 1px;
    background: #e8e3da;
}

/* =====================================================
   STEP 1 — PICKER
   ====================================================== */
.sc-pick {
    display: grid;
    grid-template-columns: 1fr 380px;
    align-items: start;
    gap: 24px;
}

.sc-cats-title,
.sc-summary-title,
.sc-quote-title {
    font-family: "Manrope", sans-serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--black, #171714);
}

.sc-cats-title {
    margin-bottom: 12px;
}

/* ---- Category accordion ---- */
.sc-cat + .sc-cat {
    margin-top: 10px;
}

.sc-cat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e8e3da;
    border-radius: 16px;
    background: #ffffff;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

.sc-cat-head:hover {
    border-color: rgba(254, 111, 1, .45);
    box-shadow: 0 10px 24px rgba(23, 23, 20, .06);
}

.sc-cat-head:focus-visible {
    outline: 2px solid var(--orange, #fe6f01);
    outline-offset: 3px;
}

.sc-cat.is-open .sc-cat-head {
    border-color: rgba(254, 111, 1, .5);
    background: #fffdf8;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.sc-cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgba(254, 111, 1, .11);
    color: var(--orange-dark, #cb5901);
}

.sc-cat-icon i,
.sc-cat-icon svg {
    width: 18px;
    height: 18px;
}

.sc-cat-name {
    flex: 1;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.3px;
    color: var(--black, #171714);
}

.sc-cat-count,
.sc-cat-tally {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #a8a294;
}

.sc-cat-tally {
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--orange, #fe6f01);
    color: #171714;
    letter-spacing: .6px;
}

.sc-cat-chevron {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--orange-dark, #cb5901);
    transition: transform 260ms cubic-bezier(.2, .8, .2, 1);
}

.sc-cat.is-open .sc-cat-chevron {
    transform: rotate(180deg);
}

.sc-cat-items {
    display: none;
}

.sc-cat.is-open .sc-cat-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(254, 111, 1, .5);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: #fffdf8;
    animation: sc-open 280ms cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes sc-open {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---- Item card ---- */
.sc-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 11px;
    border: 1px solid #ece7de;
    border-radius: 14px;
    background: #ffffff;
    transition: border-color 240ms ease, box-shadow 240ms ease;
}

.sc-item.is-chosen {
    border-color: var(--orange, #fe6f01);
    box-shadow: 0 8px 20px rgba(254, 111, 1, .14);
}

.sc-item-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sc-item-pic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff4e8;
    border: 1px solid #ffe2c6;
    color: var(--orange-dark, #cb5901);
}

.sc-item.is-chosen .sc-item-pic {
    background: var(--orange, #fe6f01);
    border-color: var(--orange, #fe6f01);
    color: #171714;
}

.sc-item-pic i,
.sc-item-pic svg {
    width: 20px;
    height: 20px;
}

.sc-item-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sc-item-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--black, #171714);
}

.sc-item-meta {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--gray, #706b61);
}

/* ---- Quantity stepper ---- */
.sc-stepper {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    flex: none;
    padding: 3px;
    border-radius: 100px;
    background: #f7f2e9;
}

/* In a card it spans the width; in a summary row it stays compact. */
.sc-item > .sc-stepper {
    align-self: stretch;
}

.sc-step-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: var(--black, #171714);
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.sc-step-btn:hover:not(:disabled) {
    background: var(--orange, #fe6f01);
    transform: scale(1.06);
}

.sc-step-btn:disabled {
    opacity: .4;
    cursor: default;
}

.sc-step-btn:focus-visible {
    outline: 2px solid var(--orange, #fe6f01);
    outline-offset: 2px;
}

.sc-step-btn i,
.sc-step-btn svg {
    width: 14px;
    height: 14px;
}

.sc-count {
    min-width: 22px;
    text-align: center;
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: var(--black, #171714);
}

.sc-stepper--sm .sc-step-btn {
    width: 23px;
    height: 23px;
}

.sc-stepper--sm .sc-count {
    min-width: 18px;
    font-size: 12px;
}

/* =====================================================
   RUNNING LIST
   ====================================================== */
.sc-summary {
    position: sticky;
    top: calc(96px + var(--topbar-h, 36px));
    padding: 20px;
    border: 1px solid #e8e3da;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(23, 23, 20, .06);
}

.sc-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sc-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #e8e3da;
    border-radius: 100px;
    background: #ffffff;
    color: var(--gray, #706b61);
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 220ms ease, color 220ms ease, background 220ms ease;
}

.sc-reset:hover {
    border-color: rgba(254, 111, 1, .5);
    background: #fffdf8;
    color: var(--orange-dark, #cb5901);
}

.sc-reset:focus-visible {
    outline: 2px solid var(--orange, #fe6f01);
    outline-offset: 2px;
}

.sc-reset i,
.sc-reset svg {
    width: 13px;
    height: 13px;
}

.sc-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    max-height: 320px;
    overflow-y: auto;
    list-style: none;
}

.sc-row {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px;
    border-radius: 12px;
    background: #fffdf8;
    border: 1px solid #f1ece3;
}

.sc-row-pic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(254, 111, 1, .12);
    color: var(--orange-dark, #cb5901);
}

.sc-row-pic i,
.sc-row-pic svg {
    width: 15px;
    height: 15px;
}

.sc-row-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sc-row-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--black, #171714);
}

.sc-row-meta {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray, #706b61);
}

/* Clears the whole line, however many of it there are. */
.sc-row-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #a8a294;
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease;
}

.sc-row-remove:hover {
    background: #ffe7dc;
    color: #c2410c;
}

.sc-row-remove:focus-visible {
    outline: 2px solid var(--orange, #fe6f01);
    outline-offset: 1px;
}

.sc-row-remove i,
.sc-row-remove svg {
    width: 13px;
    height: 13px;
}

.sc-empty {
    padding: 16px 12px;
    border: 1px dashed #e8e3da;
    border-radius: 12px;
    font-size: 12.5px;
    line-height: 1.6;
    color: #a8a294;
    text-align: center;
}

.sc-totals {
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid #f1ece3;
    display: grid;
    gap: 8px;
}

.sc-totals > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.sc-totals dt {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #a8a294;
}

.sc-totals dd {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--black, #171714);
}

.sc-total-price {
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px solid #f1ece3;
}

.sc-total-price dd {
    font-size: 24px;
    letter-spacing: -1px;
    color: var(--orange-dark, #cb5901);
}

.sc-total-price dd small {
    font-size: .46em;
    font-weight: 700;
    color: var(--gray, #706b61);
}

.sc-rate-note {
    margin: 10px 0 0;
    font-size: 11px;
    line-height: 1.55;
    color: #a8a294;
}

.sc-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    margin-top: 14px;
    padding: 14px 18px;
    border: 0;
    border-radius: 13px;
    background: var(--orange, #fe6f01);
    color: #171714;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 240ms cubic-bezier(.2, .8, .2, 1), box-shadow 240ms ease;
}

.sc-cta:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(254, 111, 1, .34);
}

.sc-cta:disabled {
    background: #f1ece3;
    color: #a8a294;
    cursor: default;
}

.sc-cta i,
.sc-cta svg {
    width: 16px;
    height: 16px;
}

/* =====================================================
   STEP 2 — THE ESTIMATE
   ====================================================== */
.sc-quote {
    display: grid;
    grid-template-columns: 1fr 380px;
    align-items: start;
    gap: 24px;
}

.sc-quote-main {
    padding: 22px;
    border: 1px solid #e8e3da;
    border-radius: 20px;
    background: #ffffff;
}

.sc-table {
    width: 100%;
    margin-top: 14px;
    border-collapse: collapse;
}

.sc-table th,
.sc-table td {
    padding: 11px 8px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid #f1ece3;
}

.sc-table thead th {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #a8a294;
}

.sc-table tbody th {
    font-weight: 700;
    color: var(--black, #171714);
}

.sc-table tbody td {
    color: var(--gray, #706b61);
    font-weight: 600;
}

.sc-table th:last-child,
.sc-table td:last-child {
    text-align: right;
}

.sc-cell-price {
    text-align: right;
    font-family: "Manrope", sans-serif;
    font-weight: 800;
    color: var(--black, #171714);
}

.sc-table tfoot th,
.sc-table tfoot td {
    padding-top: 13px;
    border-bottom: 0;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--black, #171714);
}

.sc-table tfoot .sc-cell-price {
    font-size: 17px;
    color: var(--orange-dark, #cb5901);
}

.sc-unit {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 13px 15px;
    border-radius: 14px;
    background: #fffdf8;
    border: 1px solid #f1ece3;
    font-size: 13px;
    line-height: 1.6;
    color: var(--gray, #706b61);
}

.sc-unit i,
.sc-unit svg {
    flex: none;
    width: 17px;
    height: 17px;
    margin-top: 2px;
    color: var(--orange-dark, #cb5901);
}

.sc-unit strong {
    color: var(--black, #171714);
}

.sc-unit a {
    color: var(--orange-dark, #cb5901);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sc-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 11px 18px;
    border: 1px solid #e8e3da;
    border-radius: 100px;
    background: #ffffff;
    color: var(--black, #171714);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 240ms ease, background 240ms ease;
}

.sc-back:hover {
    border-color: rgba(254, 111, 1, .5);
    background: #fffdf8;
}

.sc-back i,
.sc-back svg {
    width: 15px;
    height: 15px;
}

/* ---- Send panel ---- */
.sc-send {
    padding: 22px;
    border: 1px solid #e8e3da;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(23, 23, 20, .06);
}

.sc-send h3 {
    font-family: "Manrope", sans-serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--black, #171714);
}

.sc-send > p {
    margin: 6px 0 16px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--gray, #706b61);
}

.sc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.sc-field label {
    font-size: 12px;
    font-weight: 700;
    color: #3d3830;
}

.sc-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e8e3da;
    border-radius: 12px;
    background: #fffdf8;
    color: var(--black, #171714);
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    transition: border-color 240ms ease;
}

.sc-input::placeholder {
    color: #a8a294;
}

.sc-input:focus {
    outline: none;
    border-color: rgba(254, 111, 1, .9);
}

.sc-send-actions {
    display: grid;
    gap: 9px;
    margin-top: 16px;
}

.sc-send-wa,
.sc-send-mail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 18px;
    border-radius: 12px;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 240ms cubic-bezier(.2, .8, .2, 1), box-shadow 240ms ease, background 240ms ease;
}

.sc-send-wa {
    border: 0;
    background: #25d366;
    color: #10361d;
}

.sc-send-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(37, 211, 102, .32);
}

.sc-send-mail {
    border: 1px solid #e8e3da;
    background: #ffffff;
    color: var(--black, #171714);
}

.sc-send-mail:hover {
    border-color: rgba(254, 111, 1, .5);
    background: #fffdf8;
}

.sc-send-wa i.fa-brands {
    font-size: 17px;
}

.sc-send-mail i,
.sc-send-mail svg {
    width: 16px;
    height: 16px;
}

.sc-send-note:empty {
    display: none;
}

.sc-send-note {
    margin: 12px 0 0;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--orange-dark, #cb5901);
}

/* =====================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 1000px) {

    .sc-pick,
    .sc-quote {
        grid-template-columns: 1fr;
    }

    .sc-summary {
        position: static;
    }

    .sc-rows {
        max-height: none;
    }
}

@media (max-width: 760px) {
    .storage-calculator {
        padding-inline: 16px;
    }

    .sc-steps {
        gap: 8px;
    }

    .sc-step {
        padding: 7px 13px 7px 7px;
    }

    .sc-step-label {
        font-size: 12px;
    }

    .sc-cat-items {
        grid-template-columns: 1fr;
    }

    .sc-table th,
    .sc-table td {
        padding: 10px 5px;
        font-size: 12.5px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .sc-cat.is-open .sc-cat-items {
        animation: none;
    }

    .sc-cat-chevron,
    .sc-step-btn,
    .sc-cta,
    .sc-send-wa,
    .sc-send-mail {
        transition: none;
    }
}
