/* Main Wrapper */
.vc-cost-calculator-wrapper {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 24px;
    box-sizing: border-box;
}

.vc-cost-calculator-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Row Layout: 4 Columns -> Checkbox | Image | Details | Price */
.vc-cost-calculator-row {
    display: grid;
    grid-template-columns: 50px 80px 1fr 140px;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fdfdfd;
}

.vc-cost-calculator-row:hover {
    border-color: #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transform: translateY(-1px);
}

.vc-cost-calculator-row.vcc-active {
    background: #fff;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

/* Col 1: Checkbox */
.vcc-col-check {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Col 2: Image/Icon */
.vcc-col-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.vcc-checkbox-container {
    display: block;
    position: relative;
    width: 24px;
    height: 24px;
    cursor: pointer;
    user-select: none;
}

.vcc-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.vcc-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: #eee;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.vcc-checkbox-container:hover input~.vcc-checkmark {
    background-color: #ddd;
}

.vcc-checkbox-container input:checked~.vcc-checkmark {
    background-color: #4CAF50;
}

.vcc-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.vcc-checkbox-container input:checked~.vcc-checkmark:after {
    display: block;
}

.vcc-checkbox-container .vcc-checkmark:after {
    left: 9px;
    top: 5px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Icon */
.vcc-icon img {
    max-width: 40px;
    height: auto;
    display: block;
}

/* Col 2: Details */
.vcc-col-details {
    display: flex;
    flex-direction: column;
}

.vcc-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.vcc-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.vcc-description p {
    margin: 0;
}

/* Quantity Slider */
.vcc-quantity-wrapper {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    transition: opacity 0.3s ease, height 0.3s ease;
    opacity: 0.5;
    pointer-events: none;
}

.vcc-active .vcc-quantity-wrapper {
    opacity: 1;
    pointer-events: auto;
}

.vcc-quantity-wrapper label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

.vcc-range-slider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vcc-quantity-slider {
    flex-grow: 1;
    -webkit-appearance: none;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    outline: none;
}

.vcc-quantity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    transition: background .15s ease-in-out;
}

.vcc-quantity-slider::-webkit-slider-thumb:hover {
    background: #45a049;
}

.vcc-quantity-value {
    font-weight: 700;
    color: #333;
    min-width: 30px;
    text-align: right;
}

/* Col 3: Price */
.vcc-col-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.vcc-price-display {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.vcc-base-price-hint {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* Footer & Total */
.vc-cost-calculator-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 32px;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.vcc-total-wrapper {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.vcc-total-label {
    font-size: 20px;
    color: #555;
    font-weight: 500;
}

.vcc-total-amount {
    font-size: 42px;
    font-weight: 800;
    color: #4CAF50;
    line-height: 1;
}

/* Book Button */
.vcc-book-btn {
    display: inline-block;
    background: #111;
    color: #fff;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.vcc-book-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.vcc-book-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .vc-cost-calculator-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }

    .vcc-col-check {
        flex-direction: row;
        justify-content: center;
    }

    .vcc-col-price {
        align-items: center;
        background: #f9f9f9;
        padding: 12px;
        border-radius: 6px;
    }

    .vcc-total-amount {
        font-size: 32px;
    }
}