        /* Main Layout */
        body {
            background-color: #ffffff;
            font-family: 'Inter', Tahoma, Geneva, Verdana, sans-serif;
        }

        .main-container {
            max-width: 900px;
            margin: 0 auto;
            padding: 20px;
        }

        /* Header */
        .header {
            background: white;
            border-radius: 8px;
            /*padding:0px;*/
            margin-bottom: 30px;
            /*box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
            text-align: left;
        }

        .header h1 {
            color: #2c3e50;
            margin-bottom: 10px;
            font-weight: 300;
            font-size: 2.5rem;
        }

        .header p {
            color: #6c757d;
            margin-bottom: 30px;
        }

        /* Start Over Button - Inside Content Area */
        .start-over-btn {
            background: white;
            border: 1px solid #dcdcdc;
            color: #000000;
            padding: 8px 16px;
            border-radius: 6px;
            font-weight: 500;
            transition: all 0.2s ease;
            /*box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
            position: absolute;
            top: 20px;
            right: 20px;
        }

        .start-over-btn:hover {
            background: #E73439;
            color: white;
            border: 1px solid #E73439;
        }

        /* Clear Section Button Styling */
        .clear-section-btn {
            background: #dc3545;
            border: 1px solid #dc3545;
            color: white;
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .clear-section-btn:hover {
            background: #c82333;
            border-color: #bd2130;
            color: white;
            transform: translateY(-1px);
        }

        .clear-section-btn:focus {
            /*box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);*/
        }

        .clear-section-btn.hidden {
            display: none;
        }

        /* Progress Bar */
        .progress-container {
            background: white;
            border-radius: 8px;
            padding: 25px;
            margin-bottom: 30px;
            /*box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
        }

        /* Progress Wrapper */
        .progress-wrapper {
            position: relative;
            height: 20px;
        }

        .progress-bar-custom {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            position: relative;
            height: 40px;
        }

        .progress-line {
            position: absolute;
            top: 0px;
            left: 5px;
            right: 5px;
            height: 2px;
            background-color: #e9ecef;
            z-index: 1;
        }

        .progress-line-fill {
            height: 100%;
            background-color: #dc3545;
            transition: width 0.3s ease;
            width: 0%;
        }

        .progress-step-wrapper {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            z-index: 2;
        }

        .progress-step {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #e9ecef;
            border: 1px solid #e9ecef;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: #6c757d;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .progress-step.active {
            background-color: #dc3545;
            border-color: #dc3545;
            color: white;
        }

        .progress-step.completed {
            background-color: #28a745;
            border-color: #28a745;
            color: white;
        }

        .progress-label {
            margin-top: 10px;
            font-size: 0.9rem;
            color: #6c757d;
            text-align: center;
            white-space: nowrap;
        }

        .progress-label.active {
            color: #dc3545;
            font-weight: 600;
        }

        /* Content Area */
        .content-area {
            background: white;
            border-radius: 8px;
            padding: 30px;
            /*box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
            /*min-height: 400px;*/
            position: relative;
        }

        /* Approach Selection */
        .approach-selection {
            text-align: left;
        }
        .approach-selection h3{
            font-size: 32px;
            font-weight:400;
        }

        .approach-options {
            display: flex;
            gap: 20px;
            margin-top: 30px;
            justify-content: center;
        }

        .approach-card {
            flex: 1;
            max-width: 50%;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            padding: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            background: white;
        }
    
.approach-card-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px !important;

}

.approach-card-centered .approach-title {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}
        .approach-card:hover {
            border-color: #dc3545;
            transform: translateY(-2px);
            /*box-shadow: 0 4px 15px rgba(0,0,0,0.1);*/
        }

        .approach-card.selected {
            border-color: #dc3545;
            background: #ffffff;
        }
.approach-card.active {
    border-color: #dc3545;
    background: #ffffff;
}
        .approach-icon {
            font-size: 3rem;
            color: #dc3545;
            margin-bottom: 15px;
        }

        .approach-title {
            font-size: 14px;
            font-weight: 400;
            margin-bottom: 10px;
            color: #2c3e50;
        }

        .approach-description {
            color: #6c757d;
            font-size: 0.9rem;
            line-height: 1.5;
        }

        /* Configuration Forms */
        .config-section {
            margin-bottom: 25px;
        }

        .config-title {
            font-size: 32px;
            font-weight: 400;
            color: #000000;
            margin-bottom: 15px;
        }

        .form-label {
            font-weight: 500;
            color: #495057;
            margin-bottom: 8px;
        }

        .form-select, .form-control {
            border: 1px solid #dee2e6;
            border-radius: 6px;
            padding: 10px 12px;
            transition: border-color 0.15s ease-in-out;
        }

        .form-select:focus, .form-control:focus {
            border-color: #000000;
            box-shadow: none !important;
        }

        /* Configuration Cards */
        .config-option {
            border: 1px solid #dee2e6;
            border-radius: 6px;
            padding: 15px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .config-option:hover {
            border-color: #000000;
            background-color: #f3f3f3;
        }

        .config-option.selected {
            border-color: #d4edda;
            background-color: #d4edda;
        }

        .config-option input[type="radio"] {
            margin-right: 10px;
        }

        /* Alert Boxes */
        .info-box {
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            padding: 15px;
            margin: 15px 0;
        }

        .info-box.success {
            background: #d4edda;
            border-color: #c3e6cb;
        }

        .rx-code-display {
            background: #d4edda;
            border: 1px solid #d4edda;
            border-radius: 6px;
            padding: 12px;
            margin-top: 10px;
            text-align: left;
        }

        .rx-code-value {
            font-family: 'sans-serif', tahoma;
            font-weight: bold;
            font-size: 14px;
            color: #1976d2;
        }

        /* Navigation Buttons */
        .navigation-buttons {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #e9ecef;
        }

        .btn-nav {
            padding: 10px 25px;
            border-radius: 6px;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .btn-primary-nav {
            background-color: #dc3545;
            border-color: #dc3545;
            color: white;
        }

        .btn-primary-nav:hover:not(:disabled) {
            background-color: #c82333;
            border-color: #bd2130;
            color: white;
        }

        .btn-primary-nav:disabled {
            background-color: #6c757d;
            border-color: #6c757d;
            cursor: not-allowed;
        }

        .btn-secondary-nav {
            background-color: #ffffff;
            border-color: #000000;
            color: #000000;
            border-color: #6c757d;

        }
        .btn-secondary-nav:hover {
            border-color: #E73439;
        }
        
        .btn-outline-nav {
            border: 1px solid #6c757d;
            color: #6c757d;
            background: transparent;
        }

        .btn-outline-nav:hover {
            background-color: #6c757d;
            color: white;
        }

/* Start Button */
.btn-start {
    background: #e73439;   /* base color */
    border: none;
    color: white;
    padding: 15px 40px;
    font-size: 14px;
    font-weight: 400;
    border-radius: 8px;
    transition: background 0.3s ease; /* smooth color change */
}

.btn-start:hover {
    background: #c82333;   /* darker shade on hover */
    color: white;
}


        /* Quantity Control */
        .quantity-control {
            display: flex;
            align-items: center;
            gap: 0;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            overflow: hidden;
            background: white;
            width: fit-content;
            transition: all 0.2s ease;
        }

        .quantity-control:hover {
            border-color: #adb5bd;
        }

        .quantity-control:focus-within {
            border-color: #000000;
        }

        .qty-btn {
            width: 32px;
            height: 32px;
            background: #f8f9fa;
            border: none;
            border-right: 1px solid #dee2e6;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            user-select: none;
            font-size: 0.8rem;
            color: #6c757d;
        }

        .qty-btn:last-child {
            border-right: none;
            border-left: 1px solid #dee2e6;
        }

        .qty-btn:hover {
            background-color: #e9ecef;
            color: #495057;
        }

        .qty-btn:active {
            background-color: #dee2e6;
            transform: scale(0.95);
        }

        .qty-btn:disabled {
            background-color: #f8f9fa;
            color: #adb5bd;
            cursor: not-allowed;
        }

        .qty-btn:disabled:hover {
            background-color: #f8f9fa;
            color: #adb5bd;
        }

        .qty-input {
            width: 50px;
            height: 32px;
            text-align: center;
            border: none;
            outline: none;
            background: white;
            font-weight: 500;
            font-size: 0.9rem;
            color: #495057;
            -moz-appearance: textfield;
        }

        .qty-input::-webkit-outer-spin-button,
        .qty-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .qty-input-wrapper {
            position: relative;
            flex: 1;
        }

        .quantity-label {
            font-weight: 600;
            margin-bottom: 8px;
            color: #495057;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .quantity-section {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        /* Hidden class */
        .hidden {
            display: none !important;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .approach-options {
                flex-direction: column;
            }
            
            .main-container {
                padding: 15px;
            }
            
            .header, .content-area, .progress-container {
                padding: 20px;
            }

            .start-over-btn {
                position: static;
                margin-bottom: 15px;
                width: auto;
                top: auto;
                right: auto;
            }
        }
        /* --- Navigation layout overrides --- */
.navigation-buttons { justify-content: space-between; }
.navigation-buttons .nav-right { display: flex; gap: 12px; }

/* Make Start Over live inline at bottom-left when inside the nav bar */
.navigation-buttons .start-over-btn {
  position: static;   /* overrides absolute */
  top: auto; right: auto; /* neutralize old offsets */
  margin: 0;
}
/* Make the whole config card feel clickable everywhere */
#availableConfigs .config-option,
#availableConfigs .config-option label,
#availableConfigs .config-option * {
  cursor: pointer !important;
}

/* (optional) keep your hover/selected visuals */
#availableConfigs .config-option:hover {
  background-color: #f8f9fa;
}
#availableConfigs .config-option.selected {
  border-color: #28a745;
  background-color: #e8f5e9;
}
/* Clear section link */
.clear-section-link {
  display: inline-block;
  color: #6c757d;             /* gray text */
  text-decoration: underline; /* underline */
  font-size: 13px;
  cursor: pointer;
}

.clear-section-link:hover {
  color: #495057;             /* darker gray on hover */
  text-decoration: none;      /* remove underline on hover */
}


/* Modern Minimal Ball Valve Cards */
.valve-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
    min-height: 140px;
    overflow: hidden;
}

.valve-card:hover {
    border-color: #d1ecf1;
    transform: translateY(-2px);
}

.valve-card.selected {
    border-color: #28a745;
    background-color: #f8fff9;
}

.valve-card-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafbfc;
}

.valve-card.selected .valve-card-header {
    background: #e8f5e9;
    border-bottom-color: #d4edda;
}

.valve-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.valve-check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.valve-check-icon i {
    font-size: 11px;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
}

.valve-card.selected .valve-check-icon {
    background-color: #28a745;
}

.valve-card.selected .valve-check-icon i {
    opacity: 1;
}

.valve-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.valve-spec {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #f8f9fa;
}

.valve-spec:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.spec-value {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 600;
}

.valve-radio-hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .valve-card {
        min-height: 120px;
    }
    
    .valve-card-header {
        padding: 12px 16px 8px;
    }
    
    .valve-card-body {
        padding: 16px;
        gap: 12px;
    }
    
    .valve-spec {
        padding-bottom: 6px;
    }
    
    .spec-label {
        font-size: 0.75rem;
    }
    
    .spec-value {
        font-size: 0.85rem;
    }
    
    .valve-check-icon {
        width: 18px;
        height: 18px;
    }
    
    .valve-check-icon i {
        font-size: 10px;
    }
}