/* Container for the full-width background */
.calculator-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    overflow: hidden;
}

/* Video and photo background */
.calculator-background-video,
.calculator-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    background-color: #121212;
}

/* Darkening layer */
.calculator-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.7);
    z-index: -1;
}

/* Styles for the calculator itself */
.calculator-wrapper {
    background-color: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #383838a3;
    color: #f8f9fa;
    max-width: 1200px; /* Limit the maximum width */
}

.model-viewer-container {
    height: 450px;
    background-color: #2a2a2a;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border: 2px dashed #444;
}

.form-label {
    color: #a7ffeb;
    font-weight: 500;
}

.range-slider-value {
    color: #f8f9fa;
    font-weight: bold;
}

.form-range::-webkit-slider-thumb {
    background: #a7ffeb;
}

.form-range::-moz-range-thumb {
    background: #a7ffeb;
}

.form-check-input:checked {
    background-color: #112b26;
    border-color: #4fe8c4;
}

model-viewer {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.quantity-counter {
    display: flex;
    align-items: center;
    background-color: #2a2a2a;
    border: 1px solid #383838;
    border-radius: 8px;
    max-width: 150px;
}

.quantity-counter .btn {
    background-color: transparent;
    color: #a7ffeb;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
}

.quantity-counter .btn:hover {
    background-color: #383838;
}

.quantity-counter .quantity-input {
    width: 100%;
    text-align: center;
    background-color: transparent;
    border: none;
    color: #f8f9fa;
    font-weight: bold;
    -moz-appearance: textfield;
}

.quantity-counter .quantity-input::-webkit-outer-spin-button,
.quantity-counter .quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-counter .main-action-btn {
    flex-grow: 1; /* The "Add" button takes up the remaining space */
}